1 2024-03-25 Richard Biener <rguenther@suse.de>
3 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1036.
5 (isa_hsa_name): Handle gfx1036.
7 (max_isa_vgprs): Likewise.
9 2024-03-22 Kwok Cheung Yeung <kcyeung@baylibre.com>
11 * config/accel/target-indirect.c: Include string.h and hashtab.h.
12 Remove include of splay-tree.h. Update comments.
13 (splay_tree_prefix, splay_tree_c): Delete.
14 (struct indirect_map_t): New.
15 (hash_entry_type, htab_alloc, htab_free, htab_hash, htab_eq): New.
16 (GOMP_INDIRECT_ADD_MAP): Remove volatile qualifier.
17 (USE_SPLAY_TREE_LOOKUP): Rename to...
18 (USE_HASHTAB_LOOKUP): ..this.
19 (indirect_map, indirect_array): Delete.
21 (build_indirect_map): Remove locking. Build indirect map using
23 (GOMP_target_map_indirect_ptr): Use indirect_htab to lookup target
25 (GOMP_target_map_indirect_ptr): Remove volatile qualifier.
26 * config/gcn/team.c (gomp_gcn_enter_kernel): Call build_indirect_map
27 from first thread of first team only.
28 * config/nvptx/team.c (gomp_nvptx_main): Likewise.
29 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c (main):
30 Add missing break statements.
31 * testsuite/libgomp.fortran/declare-target-indirect-2.f90: Remove
34 2024-03-22 Andrew Stubbs <ams@baylibre.com>
36 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1103.
38 (isa_hsa_name): Handle gfx1103.
40 (max_isa_vgprs): Likewise.
42 2024-03-14 Thomas Schwinge <tschwinge@baylibre.com>
44 * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: Fix 'char'
45 initialization, copy, check.
47 2024-03-13 Tobias Burnus <tburnus@baylibre.com>
50 * testsuite/libgomp.fortran/declare-target-indirect-4.f90: New test.
52 2024-03-12 Tobias Burnus <tburnus@baylibre.com>
54 * libgomp.texi (Device Memory Routines): Swap item order to match
55 the order of the '@node's of the '@subsection's.
57 2024-03-08 Thomas Schwinge <tschwinge@baylibre.com>
59 * plugin/plugin-gcn.c (GOMP_OFFLOAD_can_run): Don't consider
60 'GCN_SUPPRESS_HOST_FALLBACK' anymore (assume always-'true').
61 (init_hsa_context): Adjust 'GCN_SUPPRESS_HOST_FALLBACK' error
64 2024-03-08 Thomas Schwinge <tschwinge@baylibre.com>
66 * plugin/plugin-nvptx.c (nvptx_get_num_devices):
67 'cuDeviceGetCount' failure is fatal.
69 2024-03-08 Thomas Schwinge <tschwinge@baylibre.com>
71 * plugin/plugin-gcn.c (init_hsa_runtime_functions): Fatal error
73 * plugin/plugin-nvptx.c (init_cuda_lib): Likewise.
75 2024-03-06 John David Anglin <danglin@gcc.gnu.org>
78 2024-02-01 John David Anglin <danglin@gcc.gnu.org>
80 * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
82 * testsuite/libgomp.c/omp-loop03.c: Likewise.
84 2024-03-04 Jakub Jelinek <jakub@redhat.com>
87 * target.c (gomp_target_rev): Change host_fn type and corresponding
88 cast from void (*)() to void (*) (void *).
90 2024-03-01 Jakub Jelinek <jakub@redhat.com>
91 Tobias Burnus <tburnus@baylibre.com>
94 * testsuite/libgomp.c++/target-lambda-3.C: Moved from
95 gcc/testsuite/g++.dg/gomp/ and fixed is-mapped handling.
96 * testsuite/libgomp.c++/target-lambda-1.C: Modify to also
97 also work without offloading.
98 * testsuite/libgomp.c++/firstprivate-1.C: New test.
99 * testsuite/libgomp.c++/firstprivate-2.C: New test.
100 * testsuite/libgomp.c++/private-1.C: New test.
101 * testsuite/libgomp.c++/private-2.C: New test.
102 * testsuite/libgomp.c++/target-lambda-4.C: New test.
103 * testsuite/libgomp.c++/use_device_ptr-1.C: New test.
105 2024-02-27 Tobias Burnus <tburnus@baylibre.com>
107 * libgomp.texi (OpenACC Runtime Library Routines): Document new 3.3
108 routines that simply map to their C counterpart.
109 * openacc.f90 (openacc): Add them.
110 * openacc_lib.h: Likewise.
111 * testsuite/libgomp.oacc-fortran/acc_host_device_ptr.f90: New test.
112 * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: New test.
113 * testsuite/libgomp.oacc-fortran/acc-memcpy-2.f90: New test.
114 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Crossref to f90 test.
115 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
116 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
118 2024-02-21 Tobias Burnus <tburnus@baylibre.com>
120 * libgomp.texi (OpenMP Context Selectors): Add 'nvptx64' as additional
121 'arch' value for nvptx.
123 2024-02-15 Kwok Cheung Yeung <kcyeung@baylibre.com>
125 * libgomp.texi (OpenMP 5.1): Mark indirect call support as fully
128 2024-02-15 Kwok Cheung Yeung <kcyeung@baylibre.com>
130 * testsuite/libgomp.fortran/declare-target-indirect-1.f90: New.
131 * testsuite/libgomp.fortran/declare-target-indirect-2.f90: New.
132 * testsuite/libgomp.fortran/declare-target-indirect-3.f90: New.
134 2024-02-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
137 * testsuite/libgomp.c/alloc-pinned-1.c [!__linux__] (CHECK_SIZE):
139 * testsuite/libgomp.c/alloc-pinned-2.c [!__linux__] (CHECK_SIZE):
142 2024-02-11 John David Anglin <danglin@gcc.gnu.org>
145 * configure.tgt (hppa*-*-linux*): Define config_path.
147 2024-02-01 John David Anglin <danglin@gcc.gnu.org>
149 * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
151 * testsuite/libgomp.c/omp-loop03.c: Likewise.
153 2024-01-29 Tobias Burnus <tburnus@baylibre.com>
155 * testsuite/libgomp.c/declare-variant-4.h: Use gfx1100/gfx1030
156 function not gfx90a for gfx1100/gfx1030 context selector.
158 2024-01-26 Richard Biener <rguenther@suse.de>
160 * plugin/plugin-gcn.c (suitable_hsa_agent_p): Filter out
161 agents with unsupported ISA.
163 2024-01-26 Richard Biener <rguenther@suse.de>
165 * plugin/plugin-gcn.c
166 (EF_AMDGPU_MACH::EF_AMDGPU_MACH_UNSUPPORTED): Add.
167 (isa_code): Return that instead of -1.
168 (GOMP_OFFLOAD_init_device): Adjust.
170 2024-01-26 Tobias Burnus <tburnus@baylibre.com>
172 * testsuite/libgomp.c/declare-variant-4.h: Add variant functions
173 for gfx1030 and gfx1100.
174 * testsuite/libgomp.c/declare-variant-4-gfx1030.c: New test.
175 * testsuite/libgomp.c/declare-variant-4-gfx1100.c: New test.
177 2024-01-26 Andrew Stubbs <ams@baylibre.com>
179 * config/gcn/time.c (RTC_TICKS): Configure RDNA3.
180 (omp_get_wtime): Add RDNA3-compatible variant.
181 * plugin/plugin-gcn.c (max_isa_vgprs): Tune for gfx1030 and gfx1100.
183 2024-01-24 Tobias Burnus <tburnus@baylibre.com>
184 Sandra Loosemore <sandra@codesourcery.com>
186 * libgomp.texi (Runtime Library Routines): Document
187 omp_pause_resource, omp_pause_resource_all and
188 omp_target_memcpy{,_rect}{,_async}.
190 2024-01-22 Tobias Burnus <tburnus@baylibre.com>
192 * testsuite/libgomp.c/declare-variant-4-fiji.c: Xfail as fiji
193 support is no longer enabled by default.
194 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
196 2024-01-20 John David Anglin <danglin@gcc.gnu.org>
198 * testsuite/libgomp.fortran/alloc-comp-3.f90: Increase
199 timeout by 2 on hppa*-*-*.
201 2024-01-20 John David Anglin <danglin@gcc.gnu.org>
203 * testsuite/libgomp.c/simd-math-1.c: Don't run on
206 2024-01-17 Jakub Jelinek <jakub@redhat.com>
209 * testsuite/libgomp.c/bitint-1.c: New test.
211 2024-01-11 Julian Brown <julian@codesourcery.com>
213 * libgomp.texi: C/C++ lvalues are supported now for map/to/from.
214 * testsuite/libgomp.c-c++-common/ind-base-4.c: New test.
215 * testsuite/libgomp.c-c++-common/unary-ptr-1.c: New test.
217 2024-01-10 Jakub Jelinek <jakub@redhat.com>
220 * configure.ac (FLOCK): Use $libgomp_abs_srcdir/testsuite/flock
221 instead of \$(abs_top_srcdir)/testsuite/flock.
222 * configure: Regenerated.
224 2024-01-09 Julian Brown <julian@codesourcery.com>
226 * testsuite/libgomp.c++/baseptrs-4.C: Remove commented-out cases that
228 * testsuite/libgomp.c++/baseptrs-6.C: New test.
229 * testsuite/libgomp.c++/ind-base-1.C: New test.
230 * testsuite/libgomp.c++/ind-base-2.C: New test.
231 * testsuite/libgomp.c++/lvalue-tofrom-1.C: New test.
232 * testsuite/libgomp.c++/lvalue-tofrom-2.C: New test.
233 * testsuite/libgomp.c++/map-comma-1.C: New test.
234 * testsuite/libgomp.c++/map-rvalue-ref-1.C: New test.
235 * testsuite/libgomp.c++/struct-ref-1.C: New test.
236 * testsuite/libgomp.c-c++-common/array-field-1.c: New test.
237 * testsuite/libgomp.c-c++-common/array-of-struct-1.c: New test.
238 * testsuite/libgomp.c-c++-common/array-of-struct-2.c: New test.
240 2024-01-09 Jakub Jelinek <jakub@redhat.com>
243 * configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
244 rather than $srcdir/testsuite/flock.
245 * configure: Regenerated.
247 2024-01-08 Thomas Schwinge <thomas@codesourcery.com>
249 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
250 'EF_AMDGPU_MACH_AMDGCN_GFX1100'.
252 2024-01-08 Julian Brown <julian@codesourcery.com>
254 * plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
255 hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
256 hsa_amd_memory_async_copy_rect_fn function pointers.
257 (init_hsa_runtime_functions): Add above functions, with
259 (GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
261 2024-01-08 Tobias Burnus <tobias@codesourcery.com>
263 * plugin/plugin-gcn.c (gcn_gfx1100_s): New const string.
264 (gcn_isa_name_len): Fix length.
265 (isa_hsa_name, isa_code, max_isa_vgprs): Handle gfx1100.
267 2024-01-06 Tobias Burnus <tobias@codesourcery.com>
269 * libgomp.texi (OpenMP Technical Report 12): Fix a typo.
270 (Device Memory Routines): Fix OpenMP 5.1 spec refs; add
271 omp_target_is_accessible.
272 (Environment Display Routine): Uncomment and add
273 omp_display_env description.
274 (OMP_DISPLAY_ENV): Update wording, add 'see also'.
276 2024-01-06 Mark Wielaard <mark@klomp.org>
278 * configure: Regenerate.
280 2024-01-03 Jakub Jelinek <jakub@redhat.com>
282 * libgomp.texi: Bump @copying's copyright year.
284 2023-12-21 Julian Brown <julian@codesourcery.com>
286 * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
288 2023-12-20 Julian Brown <julian@codesourcery.com>
290 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
291 avoid out-of-bounds array checks in CUDA runtime.
292 (GOMP_OFFLOAD_memcpy3d): Likewise.
293 * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
295 2023-12-18 Jakub Jelinek <jakub@redhat.com>
297 * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
298 drop because of that unneeded target selector from other directives
299 and remove the aarch64 specific ones.
301 2023-12-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
303 * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
304 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
306 2023-12-15 Thomas Schwinge <thomas@codesourcery.com>
308 * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
309 'dg-output's to 'target offload_device_nonshared_as'.
311 2023-12-15 Julian Brown <julian@codesourcery.com>
313 * oacc-mem.c (find_group_last, goacc_enter_data_internal,
314 goacc_exit_data_internal, GOACC_enter_exit_data): Add
315 GOMP_MAP_STRUCT_UNORD support.
316 * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
317 Detect incorrect use of variable indexing of arrays of structs.
318 (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
319 GOMP_MAP_STRUCT_UNORD support.
320 * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
321 * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
322 * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
323 * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
325 2023-12-13 Julian Brown <julian@codesourcery.com>
327 * testsuite/libgomp.fortran/map-subarray.f90: New test.
328 * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
329 * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
330 * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
331 * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
332 * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
333 * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
334 * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
335 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
336 descriptor-mapping changes. Remove XFAIL.
338 2023-12-13 Julian Brown <julian@codesourcery.com>
340 * target.c (gomp_map_pointer): Modify zero-length array section
342 (gomp_attach_pointer): Likewise.
343 (gomp_map_fields_existing): Use gomp_map_0len_lookup.
344 (gomp_attach_pointer): Allow attaching null pointers (or Fortran
345 "unassociated" pointers).
346 (gomp_map_vars_internal): Handle zero-sized struct members. Add
347 diagnostic for unmapped struct pointer members.
348 * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
349 * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
350 * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
351 * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
352 * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
353 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
355 * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
356 * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
357 * testsuite/libgomp.c++/class-array-1.C: New test.
358 * testsuite/libgomp.c++/baseptrs-3.C: New test.
359 * testsuite/libgomp.c++/baseptrs-4.C: New test.
360 * testsuite/libgomp.c++/baseptrs-5.C: New test.
361 * testsuite/libgomp.c++/baseptrs-8.C: New test.
362 * testsuite/libgomp.c++/baseptrs-9.C: New test.
363 * testsuite/libgomp.c++/ref-mapping-1.C: New test.
364 * testsuite/libgomp.c++/target-48.C: New test.
365 * testsuite/libgomp.c++/target-49.C: New test.
366 * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
367 * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
369 * testsuite/libgomp.c++/target-this-3.C: Likewise.
370 * testsuite/libgomp.c++/target-this-4.C: Likewise.
371 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
372 * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
374 2023-12-13 Thomas Schwinge <thomas@codesourcery.com>
376 * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
377 vs. '%ld' format string mismatch.
379 2023-12-13 Andrew Stubbs <ams@codesourcery.com>
380 Thomas Schwinge <thomas@codesourcery.com>
382 * allocator.c (MEMSPACE_ALLOC): Add PIN.
383 (MEMSPACE_CALLOC): Add PIN.
384 (MEMSPACE_REALLOC): Add PIN.
385 (MEMSPACE_FREE): Add PIN.
386 (MEMSPACE_VALIDATE): Add PIN.
387 (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
388 (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
389 (omp_aligned_calloc): Likewise.
390 (omp_realloc): Likewise.
391 (omp_free): Likewise.
392 * config/linux/allocator.c: New file.
393 * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
394 (MEMSPACE_CALLOC): Add PIN.
395 (MEMSPACE_REALLOC): Add PIN.
396 (MEMSPACE_FREE): Add PIN.
397 (MEMSPACE_VALIDATE): Add PIN.
398 * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
399 (MEMSPACE_CALLOC): Add PIN.
400 (MEMSPACE_REALLOC): Add PIN.
401 (MEMSPACE_FREE): Add PIN.
402 * libgomp.texi: Switch pinned trait to supported.
403 (MEMSPACE_VALIDATE): Add PIN.
404 * testsuite/libgomp.c/alloc-pinned-1.c: New test.
405 * testsuite/libgomp.c/alloc-pinned-2.c: New test.
406 * testsuite/libgomp.c/alloc-pinned-3.c: New test.
407 * testsuite/libgomp.c/alloc-pinned-4.c: New test.
409 2023-12-11 Lipeng Zhu <lipeng.zhu@intel.com>
411 * testsuite/libgomp.fortran/rwlock_1.f90: New file.
412 * testsuite/libgomp.fortran/rwlock_2.f90: New file.
413 * testsuite/libgomp.fortran/rwlock_3.f90: New file.
415 2023-12-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
417 * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
418 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
420 2023-12-11 Tobias Burnus <tobias@codesourcery.com>
422 * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
424 2023-12-08 Tobias Burnus <tobias@codesourcery.com>
426 * allocator.c (struct fort_alloc_splay_tree_key_s,
427 fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
428 * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
429 * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
430 GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
431 (GOMP_5.1.1): ... here.
432 * libgomp.texi (Impl. Status, Memory management): Update for
433 allocators/allocate directives.
434 * splay-tree.c: Handle splay_tree_static define to declare all
436 (splay_tree_lookup_node): New.
437 * splay-tree.h: Handle splay_tree_decl_only define.
438 (splay_tree_lookup_node): New prototype.
439 * target.c: Define splay_tree_static for 'reverse'.
440 * testsuite/libgomp.fortran/allocators-1.f90: New test.
441 * testsuite/libgomp.fortran/allocators-2.f90: New test.
442 * testsuite/libgomp.fortran/allocators-3.f90: New test.
443 * testsuite/libgomp.fortran/allocators-4.f90: New test.
444 * testsuite/libgomp.fortran/allocators-5.f90: New test.
446 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
448 * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
449 (TEAM_ARENA_FREE): Likewise.
450 (TEAM_ARENA_END): Likewise.
451 (GCN_LOWLAT_HEAP): New.
452 * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
453 (__gcn_lowlat_init): New prototype.
454 (gomp_gcn_enter_kernel): Initialize the low-latency heap.
455 * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
456 (TEAM_ARENA_FREE): Likewise.
457 (TEAM_ARENA_END): Likewise.
458 * plugin/plugin-gcn.c (lowlat_size): New variable.
459 (print_kernel_dispatch): Label the group_segment_size purpose.
460 (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
461 (create_kernel_dispatch): Pass low-latency head allocation to kernel.
462 (run_kernel): Use shadow; don't assume values.
463 * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
464 * config/gcn/allocator.c: New file.
465 * libgomp.texi: Document low-latency implementation details.
467 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
469 * allocator.c (MEMSPACE_VALIDATE): New macro.
470 (omp_init_allocator): Use MEMSPACE_VALIDATE.
471 (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
472 (omp_aligned_calloc): Likewise.
473 (omp_realloc): Likewise.
474 * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
475 (MEMSPACE_VALIDATE): New macro.
476 (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
477 * libgomp.texi: Document low-latency implementation details.
478 * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
479 * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
480 * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
481 * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
482 * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
483 * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
484 * testsuite/libgomp.c/omp_alloc-traits.c: New test.
486 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
487 Kwok Cheung Yeung <kcy@codesourcery.com>
488 Thomas Schwinge <thomas@codesourcery.com>
490 * allocator.c (MEMSPACE_ALLOC): New macro.
491 (MEMSPACE_CALLOC): New macro.
492 (MEMSPACE_REALLOC): New macro.
493 (MEMSPACE_FREE): New macro.
494 (predefined_alloc_mapping): New array. Add _Static_assert to match.
495 (ARRAY_SIZE): New macro.
496 (omp_aligned_alloc): Use MEMSPACE_ALLOC.
497 Implement fall-backs for predefined allocators. Simplify existing
499 (omp_free): Use MEMSPACE_FREE.
500 (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
501 predefined allocators. Simplify existing fall-backs.
502 (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
503 Implement fall-backs for predefined allocators. Simplify existing
505 * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
506 (__nvptx_lowlat_init): New prototype.
507 (gomp_nvptx_main): Call __nvptx_lowlat_init.
508 * libgomp.texi: Update memory space table.
509 * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
510 (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
511 (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
512 * basic-allocator.c: New file.
513 * config/nvptx/allocator.c: New file.
514 * testsuite/libgomp.c/omp_alloc-1.c: New test.
515 * testsuite/libgomp.c/omp_alloc-2.c: New test.
516 * testsuite/libgomp.c/omp_alloc-3.c: New test.
517 * testsuite/libgomp.c/omp_alloc-4.c: New test.
518 * testsuite/libgomp.c/omp_alloc-5.c: New test.
519 * testsuite/libgomp.c/omp_alloc-6.c: New test.
521 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
523 * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
524 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
525 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
526 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
527 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
528 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
529 * testsuite/libgomp.c/declare-variant-4.h: Likewise.
530 * testsuite/libgomp.c/declare-variant-4.c: New.
532 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
534 * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
536 * testsuite/libgomp.c/declare-variant-3.c: New.
537 * testsuite/libgomp.c/declare-variant-3.h: Extend.
539 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
541 * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
542 'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
543 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
544 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
545 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
546 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
547 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
548 * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
549 'scan-offload-tree-dump' to
550 'only_for_offload_target amdgcn-amdhsa'.
551 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
552 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
553 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
554 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
555 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
557 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
559 * testsuite/libgomp.c/declare-variant-3-sm30.c:
560 'dg-additional-options -foffload=nvptx-none'.
561 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
562 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
563 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
564 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
565 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
567 2023-11-29 Thomas Schwinge <thomas@codesourcery.com>
569 * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
570 'scan-offload-ipa-dump's to
571 'only_for_offload_target amdgcn-amdhsa'.
572 * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
573 * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
575 2023-11-24 Tobias Burnus <tobias@codesourcery.com>
577 * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
580 2023-11-22 Thomas Schwinge <thomas@codesourcery.com>
582 * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
583 (f75, f80, f): Add '__attribute__ ((noipa))'.
584 * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
585 (gfx908, gfx90a, f): Likewise.
587 2023-11-15 Andrew Stubbs <ams@codesourcery.com>
588 Andrew Jenner <andrew@codesourcery.com>
590 * plugin/plugin-gcn.c (max_isa_vgprs): New.
591 (run_kernel): CDNA2 devices have more VGPRs.
593 2023-11-10 Tobias Burnus <tobias@codesourcery.com>
595 * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
596 renamed section from TR11.
598 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
600 * config/linux/target-indirect.c: Move to...
601 * target-indirect.c: ...here.
603 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
605 * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
606 * Makefile.in: Regenerate.
607 * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
608 (GOMP_OFFLOAD_load_image): Add extra argument.
609 * libgomp.h (struct indirect_splay_tree_key_s): New.
610 (indirect_splay_tree_node, indirect_splay_tree,
611 indirect_splay_tree_key): New.
612 (indirect_splay_compare): New.
613 * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
614 * libgomp.texi (OpenMP 5.1): Update documentation on indirect
615 calls in target region and on indirect clause.
616 (Other new OpenMP 5.2 features): Add entry for virtual function calls.
617 * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
618 * oacc-host.c (host_load_image): Add extra argument.
619 * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
620 enough, read host indirect functions table and pass to
622 * config/accel/target-indirect.c: New.
623 * config/linux/target-indirect.c: New.
624 * config/gcn/team.c (build_indirect_map): Add prototype.
625 (gomp_gcn_enter_kernel): Initialize support for indirect
626 function calls on GCN target.
627 * config/nvptx/team.c (build_indirect_map): Add prototype.
628 (gomp_nvptx_main): Initialize support for indirect function
629 calls on NVPTX target.
630 * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
631 indirect functions count.
632 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
633 is high enough, build address translation table and copy it to target
635 * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
637 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
638 is high enough, Build address translation table and copy it to target
640 * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
641 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
642 * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
644 2023-11-05 Jakub Jelinek <jakub@redhat.com>
646 * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
649 2023-10-31 Thomas Schwinge <thomas@codesourcery.com>
651 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
652 'acc_map_data' variant.
654 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
656 * oacc-parallel.c (GOACC_data_start): Handle
657 'GOACC_FLAG_LOCAL_DEVICE'.
658 (GOACC_parallel_keyed): Simplify accordingly.
659 * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
661 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
663 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
664 * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
665 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
666 * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
667 * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
669 2023-10-25 Chung-Lin Tang <cltang@codesourcery.com>
671 * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
672 GOACC_FLAG_LOCAL_DEVICE case.
673 * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
675 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
677 * Makefile.am: Handle Darwin rpaths.
678 * Makefile.in: Regenerate.
679 * configure: Regenerate.
680 * configure.ac: Handle Darwin rpaths
682 2023-10-20 Andrew Stubbs <ams@codesourcery.com>
684 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
685 (isa_hsa_name): Recognise gfx1030.
686 (isa_code): Likewise.
687 * team.c (defined): Remove s_endpgm.
689 2023-10-20 Tobias Burnus <tobias@codesourcery.com>
691 * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
694 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
696 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
697 improve wording especially for Fortran; mention -fopenmp-simd.
698 (Enabling OpenACC): Minor cleanup; remove conditional compilation
701 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
703 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
704 Actually document what the function does.
705 (GCC_ACC_NOTIFY): Remove unused env var.
707 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
709 * libgomp.texi: Replace most future tense by present tense.
711 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
713 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
714 dg-additional-options "-fdump-tree-gimple"; fix scan.
716 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
718 * libgomp.texi: Fix some typos.
719 (Memory Management Routines): Document remaining 5.x routines.
720 (Memory allocation): Make clear when the section applies.
722 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
724 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
725 supports the allocate directive for stack variables.
726 * testsuite/libgomp.fortran/allocate-5.f90: New test.
727 * testsuite/libgomp.fortran/allocate-6.f90: New test.
728 * testsuite/libgomp.fortran/allocate-7.f90: New test.
729 * testsuite/libgomp.fortran/allocate-8.f90: New test.
731 2023-10-12 Tobias Burnus <tobias@codesourcery.com>
733 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
735 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
736 clarify MANDATORY behavior.
738 2023-10-12 Zhang, Jun <jun.zhang@intel.com>
740 * env.c (initialize_env): Use do_adjust_default_spincount.
741 * config/linux/x86/spincount.h: New file.
743 2023-10-08 Tobias Burnus <tobias@codesourcery.com>
745 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
747 2023-10-06 Tobias Burnus <tobias@codesourcery.com>
749 * libgomp.texi (Device Memory Routines): New.
751 2023-10-04 Tobias Burnus <tobias@codesourcery.com>
753 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
754 and that other target archs have no 'arch'/'isa' traits implemented.
756 2023-09-20 Tobias Burnus <tobias@codesourcery.com>
758 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
759 implemented for C only.
760 * testsuite/libgomp.c/allocate-4.c: New test.
761 * testsuite/libgomp.c/allocate-5.c: New test.
762 * testsuite/libgomp.c/allocate-6.c: New test.
764 2023-09-20 Jakub Jelinek <jakub@redhat.com>
767 * libgomp.texi: Mark decl attribute was added to the C++ attribute
768 syntax as implemented.
770 2023-09-19 Jakub Jelinek <jakub@redhat.com>
773 * env.c (initialize_env): Don't dereference environ if it is NULL.
776 2023-09-18 Richard Biener <rguenther@suse.de>
778 PR tree-optimization/111294
779 * team.c (gomp_team_start): Assert alloca size to avoid false
780 positive alloc-size diagnostic.
782 2023-09-12 Thomas Schwinge <thomas@codesourcery.com>
783 Chung-Lin Tang <cltang@codesourcery.com>
787 * configure.ac: Revert earlier changes, instead
788 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
789 * Makefile.in: Regenerate.
790 * configure: Likewise.
791 * testsuite/Makefile.in: Likewise.
792 * testsuite/lib/libgomp.exp (libgomp_init): Remove
793 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
794 If '--with-build-sysroot=[...]' was specified, use it for
796 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
797 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
798 (SYSROOT_CFLAGS_FOR_TARGET): Set.
799 * testsuite/libgomp.c++/c++.exp (lang_source_re)
800 (lang_include_flags): Set for build-tree testing.
801 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
802 (lang_include_flags): Likewise.
804 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
806 * libgomp.texi (Memory Management Routines): New; add documentation for
807 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
808 omp_get_default_allocator.
809 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
811 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
813 * target.c (gomp_unload_device): Remove tailing whitespace.
815 2023-09-04 Tobias Burnus <tobias@codesourcery.com>
816 Thomas Schwinge <thomas@codesourcery.com>
818 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
820 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
822 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
824 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
826 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
827 * testsuite/libgomp.fortran/imperfect1.f90: New.
828 * testsuite/libgomp.fortran/imperfect2.f90: New.
829 * testsuite/libgomp.fortran/imperfect3.f90: New.
830 * testsuite/libgomp.fortran/imperfect4.f90: New.
831 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
832 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
833 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
834 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
836 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
838 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
839 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
840 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
841 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
842 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
843 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
844 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
845 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
846 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
847 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
849 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
851 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
852 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
853 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
854 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
855 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
856 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
857 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
858 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
859 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
860 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
861 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
862 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
863 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
865 2023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
867 * testsuite/lib/libgomp.exp: Add effective target.
868 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
871 2023-08-22 Tobias Burnus <tobias@codesourcery.com>
873 * libgomp.texi (OpenMP 5.2 status): Add depobj with
874 destroy-var argument as 'N'. Mark defaultmap with
875 'all' category as 'Y'.
877 2023-08-19 Tobias Burnus <tobias@codesourcery.com>
880 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
882 2023-08-17 Tobias Burnus <tobias@codesourcery.com>
885 * allocator.c (gomp_init_libnuma): Call numa_available; if
886 not available or not returning 0, disable libnuma usage.
888 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
890 * configure: Regenerate.
892 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
894 * configure: Regenerate.
896 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
898 * configure: Regenerate.
900 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
902 * configure: Regenerate.
904 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
906 * configure: Regenerate.
908 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
910 * configure: Regenerate.
912 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
914 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
915 GOMP_OFFLOAD_CAP_SHARED_MEM.
916 (omp_target_memcpy_rect_copy): Likewise for lock condition.
917 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
919 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
920 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
921 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
923 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
925 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
926 GOMP_OFFLOAD_memcpy3d): New prototypes.
927 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
929 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
930 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
931 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
932 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
933 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
934 GOMP_OFFLOAD_memcpy3d): New.
935 * target.c (omp_target_memcpy_rect_worker):
936 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
937 Permit all device-to-device copyies; invoke new plugins for
938 2D and 3D copying when available.
939 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
940 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
941 * testsuite/libgomp.fortran/target-12.f90: Likewise.
942 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
944 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
946 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
947 (Tasking Routines): Document omp_in_explicit_task.
948 (Implementation-defined ICV Initialization): Use @ref not @code.
950 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
952 * libgomp.texi (OpenMP Runtime Library Routines):
953 Split long list by adding sections and moving routines there.
954 (OMP_ALLOCATORS): Fix typo.
956 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
959 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
960 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
962 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
963 test file; tests are in non-rectangular-loop-1.f90.
964 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
965 testcase to use a non-constant step to retain the 'sorry' test.
966 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
968 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
969 Chung-Lin Tang <cltang@codesourcery.com>
971 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
972 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
974 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
976 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
977 the traits. Add crossref to 'Memory allocation'.
978 (Memory allocation): Refer to OMP_ALLOCATOR for the available
979 traits and allocators/mem spaces; document the default value
980 for the pool_size trait.
982 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
984 * allocator.c (omp_init_allocator): Check whether symbol from
985 dlopened libnuma is available before using libnuma for
988 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
990 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
991 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
992 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
994 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
996 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
997 'Memory allocation' section which contains the full status.
998 (TR11): Remove differently worded duplicated entry.
1000 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
1002 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
1003 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
1004 add GOMP_MEMKIND_LIBNUMA.
1005 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
1006 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
1007 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
1008 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
1010 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
1011 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
1012 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
1013 updated for libnuma usage.
1014 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
1015 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
1017 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
1019 * allocator.c (omp_init_allocator): Use malloc for
1020 omp_high_bw_mem_space when the memkind lib is unavailable
1021 instead of returning omp_null_allocator.
1022 * libgomp.texi (OpenMP 5.0): Fix typo.
1023 (Memory allocation with libmemkind): Document implementation
1026 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
1028 * libgomp.texi: Use @var for ICV vars.
1029 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
1030 document which ICV is set and which scope the ICV has; extend/cleanup
1032 (Implementation-defined ICV Initialization): New.
1033 (nvptx): Document the implementation-defined used per-warp stack size.
1035 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
1037 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
1040 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
1042 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
1043 as expected dg-output.
1045 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
1047 PR middle-end/110270
1048 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
1049 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
1050 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
1051 * testsuite/libgomp.c/target-19.c: Update expected value.
1052 * testsuite/libgomp.c++/target-18.C: Likewise.
1053 * testsuite/libgomp.c++/target-19.C: Likewise.
1054 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
1055 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
1056 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
1058 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
1060 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
1061 gomp_init_targets_once was called before using default-device-var.
1062 * testsuite/libgomp.c/target-55.c: New test.
1063 * testsuite/libgomp.c/target-55a.c: New test.
1065 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
1067 * env.c (gomp_def_allocator_envvar): New var.
1068 (parse_allocator): Handle OpenMP 5.1 syntax.
1070 (omp_display_env): Output gomp_def_allocator_envvar
1071 for an allocator with traits.
1072 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
1073 OMP_DISPLAY_AFFINITY): New.
1074 * testsuite/libgomp.c/allocator-1.c: New test.
1075 * testsuite/libgomp.c/allocator-2.c: New test.
1076 * testsuite/libgomp.c/allocator-3.c: New test.
1077 * testsuite/libgomp.c/allocator-4.c: New test.
1078 * testsuite/libgomp.c/allocator-5.c: New test.
1079 * testsuite/libgomp.c/allocator-6.c: New test.
1081 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1083 * target.c (resolve_device): Align a
1084 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
1085 * testsuite/libgomp.c/target-51.c: Adjust.
1087 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1089 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
1091 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
1093 * testsuite/libgomp.c/simd-math-1.c: Remove
1094 '-foffload-options=-lm'.
1095 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
1097 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1100 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1102 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
1103 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1106 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1108 * testsuite/libgomp.c/target-51.c: Fix typo.
1110 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
1112 * env.c (gomp_default_icv_values): Init default_device_var to
1113 an nonconforming value - INT_MIN.
1114 (initialize_env): After env-var parsing, set default_device_var to
1115 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
1116 (omp_display_env): If default_device_var is INT_MIN, call
1117 gomp_init_targets_once.
1118 * icv-device.c (omp_get_default_device): Likewise.
1119 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
1120 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
1121 * target.c (resolve_device): Improve error message device-num < 0
1122 with 'mandatory' and no no-host devices available.
1123 (gomp_target_init): Set default-device-var if INT_MIN.
1124 * testsuite/libgomp.c/target-48.c: New test.
1125 * testsuite/libgomp.c/target-49.c: New test.
1126 * testsuite/libgomp.c/target-50.c: New test.
1127 * testsuite/libgomp.c/target-50a.c: New test.
1128 * testsuite/libgomp.c/target-51.c: New test.
1129 * testsuite/libgomp.c/target-52.c: New test.
1130 * testsuite/libgomp.c/target-53.c: New test.
1131 * testsuite/libgomp.c/target-54.c: New test.
1133 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
1136 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
1137 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
1139 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
1141 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
1142 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
1143 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
1145 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
1146 changed error message.
1147 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1148 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
1149 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1150 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
1151 extend testcase to check that data is copied when needed.
1152 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1153 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1155 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
1156 Tobias Burnus <tobias@codesourcery.com>
1158 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
1159 also for non-offload_device targets; check that it runs
1160 successfully for those and for all until a checkpoint for all
1161 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
1162 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1163 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1164 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1165 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
1166 add missing vars to map clause.
1168 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
1170 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
1171 unified_address requirement as supported.
1172 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
1173 'unified_address' from the not-supported requirements.
1175 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
1176 Tobias Burnus <tobias@codesourcery.com>
1178 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
1179 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
1180 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
1182 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
1183 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
1184 Emit runtime error if memory region not present.
1185 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
1186 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
1187 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
1188 * testsuite/libgomp.fortran/target-present-1.f90: New test.
1189 * testsuite/libgomp.fortran/target-present-2.f90: New test.
1190 * testsuite/libgomp.fortran/target-present-3.f90: New test.
1192 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
1195 * testsuite/lib/libgomp.exp: 'flock' through stdout.
1196 * testsuite/flock: New.
1197 * configure.ac (FLOCK): Point to that if no 'flock' available, but
1199 * configure: Regenerate.
1201 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
1203 * configure.ac (PERL): Remove.
1204 * configure: Regenerate.
1205 * Makefile.in: Likewise.
1206 * testsuite/Makefile.in: Likewise.
1208 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
1210 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
1212 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
1214 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
1216 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
1219 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
1220 * config/nvptx/target.c (GOMP_teams4): Likewise.
1221 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
1222 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
1223 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
1224 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
1226 2023-05-19 Jakub Jelinek <jakub@redhat.com>
1229 * configure.ac (link_gomp): Include also $DL_LIBS.
1230 * configure: Regenerated.
1232 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
1234 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
1236 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
1237 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
1238 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
1239 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
1241 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1244 * configure.ac: Look for 'flock'.
1245 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
1246 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
1247 * testsuite/lib/libgomp.exp: ... but here, instead.
1248 (libgomp_load): Override for parallel testing.
1249 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
1250 * configure: Regenerate.
1251 * Makefile.in: Regenerate.
1252 * testsuite/Makefile.in: Regenerate.
1254 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1255 Thomas Schwinge <thomas@codesourcery.com>
1258 * testsuite/Makefile.am (PWD_COMMAND): New variable.
1259 (%/site.exp): New target.
1260 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
1261 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
1262 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
1264 (check_DEJAGNU_libgomp_targets): New variables.
1265 ($(check_DEJAGNU_libgomp_targets)): New target.
1266 ($(check_DEJAGNU_libgomp_targets)): New dependency.
1267 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
1268 * testsuite/Makefile.in: Regenerate.
1269 * testsuite/lib/libgomp.exp: For parallel testing,
1270 'load_file ../libgomp-test-support.exp'.
1272 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1275 * configure.ac: 'AC_SUBST(CXX)'.
1276 * configure: Regenerate.
1277 * Makefile.in: Likewise.
1278 * testsuite/Makefile.in: Likewise.
1279 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
1280 (GFORTRAN_UNDER_TEST): Set.
1281 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
1282 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
1283 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1284 * testsuite/libgomp.fortran/fortran.exp: Use
1285 'GFORTRAN_UNDER_TEST'.
1286 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1288 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1291 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
1293 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
1294 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1295 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1296 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1298 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
1299 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
1300 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
1303 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
1306 * testsuite/libgomp.c++/target-map-class-1.C: New test.
1307 * testsuite/libgomp.c++/target-map-class-2.C: New test.
1309 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1311 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
1312 'lang_library_path' into a list of 'lang_library_paths'.
1313 * testsuite/libgomp.c++/c++.exp: Adjust.
1314 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1315 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
1317 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1319 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1321 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
1322 at 'lang_test_file_found'.
1323 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
1324 'return' early if not able to test. Simplify 'ld_library_path' setup.
1325 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1326 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1327 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1329 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1331 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
1333 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1334 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1335 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1337 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1339 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
1340 * testsuite/libgomp.c/c.exp: Likewise.
1341 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1342 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1343 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1344 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1345 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1347 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1349 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
1350 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1351 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1352 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1353 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
1355 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1356 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1357 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
1358 'lang_test_file_found' instead of 'lang_test_file'.
1360 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1362 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
1364 * testsuite/libgomp.c++/c++.exp: Likewise.
1365 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1367 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1369 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
1370 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
1372 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1374 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
1375 of 'libstdcxx_includes'.
1376 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1378 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1380 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
1381 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
1382 * libgomp.h (gomp_target_rev): Adjust.
1383 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
1384 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
1385 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
1386 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
1387 (rev_off_host_to_dev_cpy): Remove.
1388 (GOMP_OFFLOAD_run): Adjust.
1390 2023-05-04 Julian Brown <julian@codesourcery.com>
1393 * testsuite/libgomp.fortran/pr109622.f90: Move test...
1394 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
1395 vector length warning.
1396 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
1397 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
1398 missing copyin/copyout variable. Ignore vector length warnings.
1399 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
1400 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
1401 vector length warnings.
1402 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
1404 2023-04-28 Julian Brown <julian@codesourcery.com>
1407 * testsuite/libgomp.fortran/pr109622.f90: New test.
1408 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
1409 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
1411 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
1413 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
1414 * testsuite/libgomp.c/scan-23.c: New test.
1415 * testsuite/libgomp.fortran/scan-2.f90: New test.
1417 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1419 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
1420 weak_undefined options.
1422 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
1424 * libgomp.texi (Offload-Target Specifics): Grammar fix.
1426 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
1429 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
1432 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1435 * target.c (gomp_map_vars_internal): Allow for
1436 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
1437 * oacc-parallel.c (GOACC_parallel_keyed): Pass
1438 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
1439 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
1440 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1442 (gomp_offload_free): Remove.
1443 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1444 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1445 (cuda_free_argmem): Remove.
1446 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1449 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1451 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1452 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1455 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1457 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1458 'GOMP_MAP_IF_PRESENT'.
1459 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1460 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1461 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1462 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1463 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1465 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1467 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1469 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1472 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1474 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1475 another aspect of OpenACC 'async' semantics.
1477 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1479 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1481 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1482 Verify 'acc_ev_alloc', 'acc_ev_free'.
1484 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
1487 * env.c (wait_policy): Initialize to -1.
1488 (initialize_icvs): Initialize icvs->wait_policy to -1.
1489 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1491 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
1493 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1495 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1496 Paul-Antoine Arras <pa@codesourcery.com>
1498 * testsuite/libgomp.c/simd-math-1.c: New testcase.
1500 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
1502 PR middle-end/108546
1503 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1504 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1506 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
1508 * testsuite/libgomp.fortran/alloc-10.f90: Use
1509 '-Wno-complain-wrong-lang'.
1510 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1511 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1512 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1513 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1514 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1515 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1516 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1517 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1518 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1519 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1521 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1523 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1524 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1525 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1526 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1529 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1531 * libgomp.texi: Fix typos - theads -> threads.
1533 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1535 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1536 comment typo and improve its wording.
1538 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1540 * target.c (gomp_target_rev): Dereference ptr
1541 to get device address.
1542 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1543 for unallocated allocatable.
1545 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1547 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1549 (GOMP_target_enter_exit_data): If the next map item is
1550 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1551 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1553 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
1556 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1557 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1558 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1559 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1560 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1561 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1563 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
1565 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1566 offloading compilation.
1568 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1570 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1571 freeing not allocated memory.
1572 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1574 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1576 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1578 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1579 reverse-offload requirement.
1581 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
1583 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1584 (DEFAULT_TEAM_ARENA_SIZE): New define.
1585 (struct heap): Move to this file.
1586 (struct kernargs_abi): Likewise.
1587 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1589 * libgomp.h: Include libgomp-gcn.h.
1590 (TEAM_ARENA_SIZE): Remove.
1591 (team_malloc): Update the error message.
1592 * plugin/plugin-gcn.c (struct kernargs): Move common content to
1593 struct kernargs_abi.
1594 (struct agent_info): Rename team arenas to ephemeral memories.
1595 (struct team_arena_list): Rename ....
1596 (struct ephemeral_memories_list): to this.
1597 (struct heap): Delete.
1598 (team_arena_size): New variable.
1599 (stack_size): New variable.
1600 (print_kernel_dispatch): Update debug messages.
1601 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1602 Read GCN_STACK_SIZE.
1603 (get_team_arena): Rename ...
1604 (configure_ephemeral_memories): ... to this, and set up stacks.
1605 (release_team_arena): Rename ...
1606 (release_ephemeral_memories): ... to this.
1607 (destroy_team_arenas): Rename ...
1608 (destroy_ephemeral_memories): ... to this.
1609 (create_kernel_dispatch): Add num_threads parameter.
1610 Adjust for kernargs_abi refactor and ephemeral memories.
1611 (release_kernel_dispatch): Adjust for ephemeral memories.
1612 (run_kernel): Pass thread-count to create_kernel_dispatch.
1613 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1614 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1616 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
1618 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1620 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1622 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1623 usage, remove unused -fdump-tree-original.
1624 * testsuite/libgomp.fortran/allocate-4.f90: New.
1626 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1628 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1629 (GCN): Add item about 'omp requires'.
1630 (nvptx): Likewise; add item about reverse offload.
1632 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
1635 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1637 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
1639 * libgomp.texi (OpenMP 5.0): Set non-rectangular
1640 loop nest back to 'P' as Fortran support is incomplete.
1642 2023-01-19 Jakub Jelinek <jakub@redhat.com>
1644 PR middle-end/108459
1645 * testsuite/libgomp.c/pr108459.c: New test.
1647 2023-01-17 Martin Liska <mliska@suse.cz>
1649 * Makefile.in: Regenerate.
1650 * configure: Regenerate.
1652 2023-01-07 LIU Hao <lh_mouse@126.com>
1654 PR middle-end/108300
1655 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1658 2023-01-05 Jakub Jelinek <jakub@redhat.com>
1661 * testsuite/libgomp.c++/pr108286.C: New test.
1663 2023-01-02 Jakub Jelinek <jakub@redhat.com>
1665 * libgomp.texi: Bump @copying's copyright year.
1667 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
1670 * config/nvptx/bar.c (generation_to_barrier): Remove.
1671 (futex_wait,futex_wake,do_spin,do_wait): Remove.
1672 (GOMP_WAIT_H): Remove.
1673 (#include "../linux/bar.c"): Remove.
1674 (gomp_barrier_wait_end): New function.
1675 (gomp_barrier_wait): Likewise.
1676 (gomp_barrier_wait_last): Likewise.
1677 (gomp_team_barrier_wait_end): Likewise.
1678 (gomp_team_barrier_wait): Likewise.
1679 (gomp_team_barrier_wait_final): Likewise.
1680 (gomp_team_barrier_wait_cancel_end): Likewise.
1681 (gomp_team_barrier_wait_cancel): Likewise.
1682 (gomp_team_barrier_cancel): Likewise.
1683 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1684 (gomp_barrier_init): Remove init of waiters, lock fields.
1685 (gomp_team_barrier_wake): Remove prototype, add new static inline
1688 2022-12-21 Jakub Jelinek <jakub@redhat.com>
1691 * testsuite/libgomp.c++/pr108180.C: New test.
1693 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
1695 PR libfortran/108056
1696 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1697 accidentally added file.
1699 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
1701 PR libfortran/108056
1702 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1704 2022-12-14 Julian Brown <julian@codesourcery.com>
1706 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1709 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
1711 * libgomp.h (struct target_mem_desc): Predeclare; move
1712 below after 'reverse_splay_tree_node' and add rev_array
1714 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1715 (reverse_splay_tree_node, reverse_splay_tree,
1716 reverse_splay_tree_key): New typedef.
1717 (struct gomp_device_descr): Add mem_map_rev member.
1718 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1719 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1720 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1721 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1722 splay_tree_callback but returning int not void.
1723 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1724 taking splay_tree_callback_stop as argument.
1725 * splay-tree.c (splay_tree_foreach_internal_lazy,
1726 splay_tree_foreach_lazy): New; but early exit if callback returns
1728 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1729 (gomp_map_lookup_rev): New.
1730 (gomp_load_image_to_device): Handle reverse-offload function
1732 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1733 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1734 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1735 gomp_map_cdata_lookup): New auxiliary structs and functions for
1737 (gomp_target_rev): Implement reverse offloading and its mapping.
1738 (gomp_target_init): Init current_device.mem_map_rev.root.
1739 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1740 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1741 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1742 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1743 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1744 mapping of on-device allocated variables.
1746 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
1748 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1749 item about 'align'; mark clause as 'Y' and directive as 'N'.
1750 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1751 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1753 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1755 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1756 allow processing of device-specific values.
1757 (omp_set_teams_thread_limit): Likewise.
1759 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1760 (omp_set_teams_thread_limit): Likewise.
1762 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1764 (omp_set_teams_thread_limit): Likewise.
1765 * icv.c (omp_set_teams_thread_limit): Removed.
1766 (omp_get_teams_thread_limit): Likewise.
1768 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1769 to the limitation of the number of teams.
1770 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1771 the number of teams by twice the number of compute units.
1772 (parse_target_attributes): Limit the number of teams on gcn offload
1774 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1776 (gomp_load_image_to_device): Added a size check for the ICVs struct
1778 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1779 copy back the ICV values from device to host.
1780 (GOMP_target_ext): Update the number of teams and threads in the kernel
1781 args also considering device-specific values.
1782 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1783 of OMP_TEAMS_THREAD_LIMIT from the environment.
1784 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1785 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1786 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1787 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1788 * testsuite/libgomp.fortran/icv-5.f90: New test.
1789 * testsuite/libgomp.fortran/icv-6.f90: New test.
1791 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
1793 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1794 (TR11): Add missing '@tab N @tab'.
1796 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
1798 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1800 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1802 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1803 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1804 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1805 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1806 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1807 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1808 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1810 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
1812 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1814 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1816 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1817 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1818 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1819 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1821 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1823 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1824 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1825 as valid and the code having no reverse-offload code.
1826 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1828 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1830 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1831 and status for Technical Report (TR) 11.
1833 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
1835 * config/gcn/libgomp-gcn.h (struct output):
1836 Remove 'msg_u64' from the union, change
1837 value_u64[2] to value_u64[6].
1838 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1839 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1842 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
1844 * config/gcn/libgomp-gcn.h: New file; contains
1845 struct output, declared previously in plugin-gcn.c.
1846 * config/gcn/target.c: Include it.
1847 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1848 (GOMP_target_ext): Handle reverse offload.
1849 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1850 (struct kernargs): Replace struct def by the one
1851 from libgomp-gcn.h for output_data.
1852 (process_reverse_offload): New.
1853 (console_output): Call it.
1855 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
1856 Andrew Stubbs <ams@codesourcery.com>
1858 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1859 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1861 2022-11-14 Martin Liska <mliska@suse.cz>
1864 2022-11-14 Martin Liska <mliska@suse.cz>
1866 * doc/amd-radeon-gcn.rst: New file.
1867 * doc/conf.py: New file.
1868 * doc/copyright.rst: New file.
1869 * doc/cuda-streams-usage.rst: New file.
1870 * doc/enabling-openacc.rst: New file.
1871 * doc/enabling-openmp.rst: New file.
1872 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1873 * doc/first-invocation-openacc-library-api.rst: New file.
1874 * doc/funding.rst: New file.
1875 * doc/general-public-license-3.rst: New file.
1876 * doc/gnu-free-documentation-license.rst: New file.
1877 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1878 * doc/index.rst: New file.
1879 * doc/indices-and-tables.rst: New file.
1880 * doc/introduction.rst: New file.
1881 * doc/memory-allocation-with-libmemkind.rst: New file.
1882 * doc/nvptx.rst: New file.
1883 * doc/offload-target-specifics.rst: New file.
1884 * doc/openacc-environment-variables.rst: New file.
1885 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1886 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1887 * doc/openacc-environment-variables/accproflib.rst: New file.
1888 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1889 * doc/openacc-introduction.rst: New file.
1890 * doc/openacc-library-and-environment-variables.rst: New file.
1891 * doc/openacc-library-interoperability.rst: New file.
1892 * doc/openacc-profiling-interface.rst: New file.
1893 * doc/openacc-runtime-library-routines.rst: New file.
1894 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1895 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1896 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1897 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1898 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1899 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1900 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1901 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1902 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1903 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1904 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1905 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1906 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1907 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1908 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1909 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1910 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1911 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1912 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1913 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1914 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1915 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1916 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1917 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1918 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1919 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1920 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1921 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1922 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1923 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1924 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1925 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1926 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1927 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1928 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1929 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1930 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1931 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1932 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1933 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1934 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1935 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1936 * doc/openmp-context-selectors.rst: New file.
1937 * doc/openmp-environment-variables.rst: New file.
1938 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1939 * doc/openmp-environment-variables/gompdebug.rst: New file.
1940 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1941 * doc/openmp-environment-variables/gompspincount.rst: New file.
1942 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1943 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1944 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1945 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1946 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1947 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1948 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1949 * doc/openmp-environment-variables/ompnested.rst: New file.
1950 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1951 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1952 * doc/openmp-environment-variables/ompplaces.rst: New file.
1953 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1954 * doc/openmp-environment-variables/ompschedule.rst: New file.
1955 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1956 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1957 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1958 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1959 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1960 * doc/openmp-implementation-specifics.rst: New file.
1961 * doc/openmp-implementation-status.rst: New file.
1962 * doc/openmp-implementation-status/openmp-45.rst: New file.
1963 * doc/openmp-implementation-status/openmp-50.rst: New file.
1964 * doc/openmp-implementation-status/openmp-51.rst: New file.
1965 * doc/openmp-implementation-status/openmp-52.rst: New file.
1966 * doc/openmp-runtime-library-routines.rst: New file.
1967 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1968 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1969 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1970 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1971 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1972 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1973 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1974 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1975 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1976 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1977 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1978 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1979 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1980 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1981 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1982 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1983 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1984 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1985 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1986 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1987 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1988 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1989 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1990 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1991 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1992 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1993 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1994 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1995 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1996 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1997 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1998 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1999 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2000 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2001 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2002 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2003 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2004 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2005 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2006 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2007 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2008 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2009 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2010 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2011 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2012 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2013 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2014 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2015 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2016 * doc/reporting-bugs.rst: New file.
2017 * doc/the-libgomp-abi.rst: New file.
2018 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2019 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2020 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2021 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2023 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2024 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2025 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2026 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2027 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2028 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2029 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2030 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2031 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2032 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2033 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2035 2022-11-14 Martin Liska <mliska@suse.cz>
2038 2022-11-14 Martin Liska <mliska@suse.cz>
2040 * Makefile.in: Support Sphinx based documentation.
2042 2022-11-14 Martin Liska <mliska@suse.cz>
2045 2022-11-14 Martin Liska <mliska@suse.cz>
2047 * libgomp.texi: Removed.
2049 2022-11-14 Martin Liska <mliska@suse.cz>
2052 2022-11-14 Martin Liska <mliska@suse.cz>
2054 * Makefile.in: Support --with-sphinx-build.
2055 * configure.ac: Likewise..
2056 * configure: Regenerate.
2058 2022-11-14 Martin Liska <mliska@suse.cz>
2061 2022-11-09 Martin Liska <mliska@suse.cz>
2063 * Makefile.in: Build info pages conditionally.
2065 2022-11-14 Martin Liska <mliska@suse.cz>
2068 2022-11-14 Martin Liska <mliska@suse.cz>
2070 * doc/amd-radeon-gcn.rst:
2071 Add trailing newline.
2072 * doc/copyright.rst:
2073 Add trailing newline.
2074 * doc/cuda-streams-usage.rst:
2075 Add trailing newline.
2076 * doc/enabling-openacc.rst:
2077 Add trailing newline.
2078 * doc/enabling-openmp.rst:
2079 Add trailing newline.
2080 * doc/first-invocation-nvidia-cublas-library-api.rst:
2081 Add trailing newline.
2082 * doc/first-invocation-openacc-library-api.rst:
2083 Add trailing newline.
2085 Add trailing newline.
2086 * doc/general-public-license-3.rst:
2087 Add trailing newline.
2088 * doc/gnu-free-documentation-license.rst:
2089 Add trailing newline.
2090 * doc/implementation-status-and-implementation-defined-behavior.rst:
2091 Add trailing newline.
2093 Add trailing newline.
2094 * doc/indices-and-tables.rst:
2095 Add trailing newline.
2096 * doc/introduction.rst:
2097 Add trailing newline.
2098 * doc/memory-allocation-with-libmemkind.rst:
2099 Add trailing newline.
2101 Add trailing newline.
2102 * doc/offload-target-specifics.rst:
2103 Add trailing newline.
2104 * doc/openacc-environment-variables.rst:
2105 Add trailing newline.
2106 * doc/openacc-environment-variables/accdevicenum.rst:
2107 Add trailing newline.
2108 * doc/openacc-environment-variables/accdevicetype.rst:
2109 Add trailing newline.
2110 * doc/openacc-environment-variables/accproflib.rst:
2111 Add trailing newline.
2112 * doc/openacc-environment-variables/gccaccnotify.rst:
2113 Add trailing newline.
2114 * doc/openacc-introduction.rst:
2115 Add trailing newline.
2116 * doc/openacc-library-and-environment-variables.rst:
2117 Add trailing newline.
2118 * doc/openacc-library-interoperability.rst:
2119 Add trailing newline.
2120 * doc/openacc-profiling-interface.rst:
2121 Add trailing newline.
2122 * doc/openacc-runtime-library-routines.rst:
2123 Add trailing newline.
2124 * doc/openacc-runtime-library-routines/accasynctest.rst:
2125 Add trailing newline.
2126 * doc/openacc-runtime-library-routines/accasynctestall.rst:
2127 Add trailing newline.
2128 * doc/openacc-runtime-library-routines/accattach.rst:
2129 Add trailing newline.
2130 * doc/openacc-runtime-library-routines/acccopyin.rst:
2131 Add trailing newline.
2132 * doc/openacc-runtime-library-routines/acccopyout.rst:
2133 Add trailing newline.
2134 * doc/openacc-runtime-library-routines/acccreate.rst:
2135 Add trailing newline.
2136 * doc/openacc-runtime-library-routines/accdelete.rst:
2137 Add trailing newline.
2138 * doc/openacc-runtime-library-routines/accdetach.rst:
2139 Add trailing newline.
2140 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2141 Add trailing newline.
2142 * doc/openacc-runtime-library-routines/accfree.rst:
2143 Add trailing newline.
2144 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2145 Add trailing newline.
2146 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2147 Add trailing newline.
2148 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2149 Add trailing newline.
2150 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2151 Add trailing newline.
2152 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2153 Add trailing newline.
2154 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2155 Add trailing newline.
2156 * doc/openacc-runtime-library-routines/accgetproperty.rst:
2157 Add trailing newline.
2158 * doc/openacc-runtime-library-routines/acchostptr.rst:
2159 Add trailing newline.
2160 * doc/openacc-runtime-library-routines/accinit.rst:
2161 Add trailing newline.
2162 * doc/openacc-runtime-library-routines/accispresent.rst:
2163 Add trailing newline.
2164 * doc/openacc-runtime-library-routines/accmalloc.rst:
2165 Add trailing newline.
2166 * doc/openacc-runtime-library-routines/accmapdata.rst:
2167 Add trailing newline.
2168 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2169 Add trailing newline.
2170 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2171 Add trailing newline.
2172 * doc/openacc-runtime-library-routines/accondevice.rst:
2173 Add trailing newline.
2174 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2175 Add trailing newline.
2176 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2177 Add trailing newline.
2178 * doc/openacc-runtime-library-routines/accproflookup.rst:
2179 Add trailing newline.
2180 * doc/openacc-runtime-library-routines/accprofregister.rst:
2181 Add trailing newline.
2182 * doc/openacc-runtime-library-routines/accprofunregister.rst:
2183 Add trailing newline.
2184 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2185 Add trailing newline.
2186 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2187 Add trailing newline.
2188 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2189 Add trailing newline.
2190 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2191 Add trailing newline.
2192 * doc/openacc-runtime-library-routines/accshutdown.rst:
2193 Add trailing newline.
2194 * doc/openacc-runtime-library-routines/accunmapdata.rst:
2195 Add trailing newline.
2196 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2197 Add trailing newline.
2198 * doc/openacc-runtime-library-routines/accupdateself.rst:
2199 Add trailing newline.
2200 * doc/openacc-runtime-library-routines/accwait.rst:
2201 Add trailing newline.
2202 * doc/openacc-runtime-library-routines/accwaitall.rst:
2203 Add trailing newline.
2204 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2205 Add trailing newline.
2206 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2207 Add trailing newline.
2208 * doc/openmp-context-selectors.rst:
2209 Add trailing newline.
2210 * doc/openmp-environment-variables.rst:
2211 Add trailing newline.
2212 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2213 Add trailing newline.
2214 * doc/openmp-environment-variables/gompdebug.rst:
2215 Add trailing newline.
2216 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2217 Add trailing newline.
2218 * doc/openmp-environment-variables/gompspincount.rst:
2219 Add trailing newline.
2220 * doc/openmp-environment-variables/gompstacksize.rst:
2221 Add trailing newline.
2222 * doc/openmp-environment-variables/ompcancellation.rst:
2223 Add trailing newline.
2224 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2225 Add trailing newline.
2226 * doc/openmp-environment-variables/ompdisplayenv.rst:
2227 Add trailing newline.
2228 * doc/openmp-environment-variables/ompdynamic.rst:
2229 Add trailing newline.
2230 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2231 Add trailing newline.
2232 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2233 Add trailing newline.
2234 * doc/openmp-environment-variables/ompnested.rst:
2235 Add trailing newline.
2236 * doc/openmp-environment-variables/ompnumteams.rst:
2237 Add trailing newline.
2238 * doc/openmp-environment-variables/ompnumthreads.rst:
2239 Add trailing newline.
2240 * doc/openmp-environment-variables/ompplaces.rst:
2241 Add trailing newline.
2242 * doc/openmp-environment-variables/ompprocbind.rst:
2243 Add trailing newline.
2244 * doc/openmp-environment-variables/ompschedule.rst:
2245 Add trailing newline.
2246 * doc/openmp-environment-variables/ompstacksize.rst:
2247 Add trailing newline.
2248 * doc/openmp-environment-variables/omptargetoffload.rst:
2249 Add trailing newline.
2250 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2251 Add trailing newline.
2252 * doc/openmp-environment-variables/ompthreadlimit.rst:
2253 Add trailing newline.
2254 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2255 Add trailing newline.
2256 * doc/openmp-implementation-specifics.rst:
2257 Add trailing newline.
2258 * doc/openmp-implementation-status.rst:
2259 Add trailing newline.
2260 * doc/openmp-implementation-status/openmp-45.rst:
2261 Add trailing newline.
2262 * doc/openmp-implementation-status/openmp-50.rst:
2263 Add trailing newline.
2264 * doc/openmp-implementation-status/openmp-51.rst:
2265 Add trailing newline.
2266 * doc/openmp-implementation-status/openmp-52.rst:
2267 Add trailing newline.
2268 * doc/openmp-runtime-library-routines.rst:
2269 Add trailing newline.
2270 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2271 Add trailing newline.
2272 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2273 Add trailing newline.
2274 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2275 Add trailing newline.
2276 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2277 Add trailing newline.
2278 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2279 Add trailing newline.
2280 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2281 Add trailing newline.
2282 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2283 Add trailing newline.
2284 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2285 Add trailing newline.
2286 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2287 Add trailing newline.
2288 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2289 Add trailing newline.
2290 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2291 Add trailing newline.
2292 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2293 Add trailing newline.
2294 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2295 Add trailing newline.
2296 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2297 Add trailing newline.
2298 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2299 Add trailing newline.
2300 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2301 Add trailing newline.
2302 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2303 Add trailing newline.
2304 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2305 Add trailing newline.
2306 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2307 Add trailing newline.
2308 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2309 Add trailing newline.
2310 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2311 Add trailing newline.
2312 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2313 Add trailing newline.
2314 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2315 Add trailing newline.
2316 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2317 Add trailing newline.
2318 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2319 Add trailing newline.
2320 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2321 Add trailing newline.
2322 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2323 Add trailing newline.
2324 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2325 Add trailing newline.
2326 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2327 Add trailing newline.
2328 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2329 Add trailing newline.
2330 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2331 Add trailing newline.
2332 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2333 Add trailing newline.
2334 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2335 Add trailing newline.
2336 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2337 Add trailing newline.
2338 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2339 Add trailing newline.
2340 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2341 Add trailing newline.
2342 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2343 Add trailing newline.
2344 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2345 Add trailing newline.
2346 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2347 Add trailing newline.
2348 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2349 Add trailing newline.
2350 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2351 Add trailing newline.
2352 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2353 Add trailing newline.
2354 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2355 Add trailing newline.
2356 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2357 Add trailing newline.
2358 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2359 Add trailing newline.
2360 * doc/openmp-runtime-library-routines/omptestlock.rst:
2361 Add trailing newline.
2362 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2363 Add trailing newline.
2364 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2365 Add trailing newline.
2366 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2367 Add trailing newline.
2368 * doc/reporting-bugs.rst:
2369 Add trailing newline.
2370 * doc/the-libgomp-abi.rst:
2371 Add trailing newline.
2372 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2373 Add trailing newline.
2374 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2375 Add trailing newline.
2376 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2377 Add trailing newline.
2378 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2379 Add trailing newline.
2380 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2381 Add trailing newline.
2382 * doc/the-libgomp-abi/implementing-for-construct.rst:
2383 Add trailing newline.
2384 * doc/the-libgomp-abi/implementing-master-construct.rst:
2385 Add trailing newline.
2386 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2387 Add trailing newline.
2388 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2389 Add trailing newline.
2390 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2391 Add trailing newline.
2392 * doc/the-libgomp-abi/implementing-private-clause.rst:
2393 Add trailing newline.
2394 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2395 Add trailing newline.
2396 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2397 Add trailing newline.
2398 * doc/the-libgomp-abi/implementing-single-construct.rst:
2399 Add trailing newline.
2400 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2401 Add trailing newline.
2403 2022-11-14 Martin Liska <mliska@suse.cz>
2406 2022-11-09 Martin Liska <mliska@suse.cz>
2408 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2410 2022-11-14 Martin Liska <mliska@suse.cz>
2413 2022-11-14 Martin Liska <mliska@suse.cz>
2415 * doc/conf.py: Add newline at last line.
2417 2022-11-14 Martin Liska <mliska@suse.cz>
2420 2022-11-14 Martin Liska <mliska@suse.cz>
2423 * configure: Regenerate.
2424 * configure.ac: Always set sphinx-build.
2426 2022-11-13 Martin Liska <mliska@suse.cz>
2429 * configure: Regenerate.
2430 * configure.ac: Always set sphinx-build.
2432 2022-11-12 Jakub Jelinek <jakub@redhat.com>
2435 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
2436 unsigned long. Change type of upper from unsigned to unsigned long.
2438 2022-11-10 Martin Liska <mliska@suse.cz>
2440 * doc/conf.py: Add newline at last line.
2442 2022-11-09 Martin Liska <mliska@suse.cz>
2444 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2446 2022-11-09 Martin Liska <mliska@suse.cz>
2448 * doc/amd-radeon-gcn.rst:
2449 Add trailing newline.
2450 * doc/copyright.rst:
2451 Add trailing newline.
2452 * doc/cuda-streams-usage.rst:
2453 Add trailing newline.
2454 * doc/enabling-openacc.rst:
2455 Add trailing newline.
2456 * doc/enabling-openmp.rst:
2457 Add trailing newline.
2458 * doc/first-invocation-nvidia-cublas-library-api.rst:
2459 Add trailing newline.
2460 * doc/first-invocation-openacc-library-api.rst:
2461 Add trailing newline.
2463 Add trailing newline.
2464 * doc/general-public-license-3.rst:
2465 Add trailing newline.
2466 * doc/gnu-free-documentation-license.rst:
2467 Add trailing newline.
2468 * doc/implementation-status-and-implementation-defined-behavior.rst:
2469 Add trailing newline.
2471 Add trailing newline.
2472 * doc/indices-and-tables.rst:
2473 Add trailing newline.
2474 * doc/introduction.rst:
2475 Add trailing newline.
2476 * doc/memory-allocation-with-libmemkind.rst:
2477 Add trailing newline.
2479 Add trailing newline.
2480 * doc/offload-target-specifics.rst:
2481 Add trailing newline.
2482 * doc/openacc-environment-variables.rst:
2483 Add trailing newline.
2484 * doc/openacc-environment-variables/accdevicenum.rst:
2485 Add trailing newline.
2486 * doc/openacc-environment-variables/accdevicetype.rst:
2487 Add trailing newline.
2488 * doc/openacc-environment-variables/accproflib.rst:
2489 Add trailing newline.
2490 * doc/openacc-environment-variables/gccaccnotify.rst:
2491 Add trailing newline.
2492 * doc/openacc-introduction.rst:
2493 Add trailing newline.
2494 * doc/openacc-library-and-environment-variables.rst:
2495 Add trailing newline.
2496 * doc/openacc-library-interoperability.rst:
2497 Add trailing newline.
2498 * doc/openacc-profiling-interface.rst:
2499 Add trailing newline.
2500 * doc/openacc-runtime-library-routines.rst:
2501 Add trailing newline.
2502 * doc/openacc-runtime-library-routines/accasynctest.rst:
2503 Add trailing newline.
2504 * doc/openacc-runtime-library-routines/accasynctestall.rst:
2505 Add trailing newline.
2506 * doc/openacc-runtime-library-routines/accattach.rst:
2507 Add trailing newline.
2508 * doc/openacc-runtime-library-routines/acccopyin.rst:
2509 Add trailing newline.
2510 * doc/openacc-runtime-library-routines/acccopyout.rst:
2511 Add trailing newline.
2512 * doc/openacc-runtime-library-routines/acccreate.rst:
2513 Add trailing newline.
2514 * doc/openacc-runtime-library-routines/accdelete.rst:
2515 Add trailing newline.
2516 * doc/openacc-runtime-library-routines/accdetach.rst:
2517 Add trailing newline.
2518 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2519 Add trailing newline.
2520 * doc/openacc-runtime-library-routines/accfree.rst:
2521 Add trailing newline.
2522 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2523 Add trailing newline.
2524 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2525 Add trailing newline.
2526 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2527 Add trailing newline.
2528 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2529 Add trailing newline.
2530 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2531 Add trailing newline.
2532 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2533 Add trailing newline.
2534 * doc/openacc-runtime-library-routines/accgetproperty.rst:
2535 Add trailing newline.
2536 * doc/openacc-runtime-library-routines/acchostptr.rst:
2537 Add trailing newline.
2538 * doc/openacc-runtime-library-routines/accinit.rst:
2539 Add trailing newline.
2540 * doc/openacc-runtime-library-routines/accispresent.rst:
2541 Add trailing newline.
2542 * doc/openacc-runtime-library-routines/accmalloc.rst:
2543 Add trailing newline.
2544 * doc/openacc-runtime-library-routines/accmapdata.rst:
2545 Add trailing newline.
2546 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2547 Add trailing newline.
2548 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2549 Add trailing newline.
2550 * doc/openacc-runtime-library-routines/accondevice.rst:
2551 Add trailing newline.
2552 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2553 Add trailing newline.
2554 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2555 Add trailing newline.
2556 * doc/openacc-runtime-library-routines/accproflookup.rst:
2557 Add trailing newline.
2558 * doc/openacc-runtime-library-routines/accprofregister.rst:
2559 Add trailing newline.
2560 * doc/openacc-runtime-library-routines/accprofunregister.rst:
2561 Add trailing newline.
2562 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2563 Add trailing newline.
2564 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2565 Add trailing newline.
2566 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2567 Add trailing newline.
2568 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2569 Add trailing newline.
2570 * doc/openacc-runtime-library-routines/accshutdown.rst:
2571 Add trailing newline.
2572 * doc/openacc-runtime-library-routines/accunmapdata.rst:
2573 Add trailing newline.
2574 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2575 Add trailing newline.
2576 * doc/openacc-runtime-library-routines/accupdateself.rst:
2577 Add trailing newline.
2578 * doc/openacc-runtime-library-routines/accwait.rst:
2579 Add trailing newline.
2580 * doc/openacc-runtime-library-routines/accwaitall.rst:
2581 Add trailing newline.
2582 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2583 Add trailing newline.
2584 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2585 Add trailing newline.
2586 * doc/openmp-context-selectors.rst:
2587 Add trailing newline.
2588 * doc/openmp-environment-variables.rst:
2589 Add trailing newline.
2590 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2591 Add trailing newline.
2592 * doc/openmp-environment-variables/gompdebug.rst:
2593 Add trailing newline.
2594 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2595 Add trailing newline.
2596 * doc/openmp-environment-variables/gompspincount.rst:
2597 Add trailing newline.
2598 * doc/openmp-environment-variables/gompstacksize.rst:
2599 Add trailing newline.
2600 * doc/openmp-environment-variables/ompcancellation.rst:
2601 Add trailing newline.
2602 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2603 Add trailing newline.
2604 * doc/openmp-environment-variables/ompdisplayenv.rst:
2605 Add trailing newline.
2606 * doc/openmp-environment-variables/ompdynamic.rst:
2607 Add trailing newline.
2608 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2609 Add trailing newline.
2610 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2611 Add trailing newline.
2612 * doc/openmp-environment-variables/ompnested.rst:
2613 Add trailing newline.
2614 * doc/openmp-environment-variables/ompnumteams.rst:
2615 Add trailing newline.
2616 * doc/openmp-environment-variables/ompnumthreads.rst:
2617 Add trailing newline.
2618 * doc/openmp-environment-variables/ompplaces.rst:
2619 Add trailing newline.
2620 * doc/openmp-environment-variables/ompprocbind.rst:
2621 Add trailing newline.
2622 * doc/openmp-environment-variables/ompschedule.rst:
2623 Add trailing newline.
2624 * doc/openmp-environment-variables/ompstacksize.rst:
2625 Add trailing newline.
2626 * doc/openmp-environment-variables/omptargetoffload.rst:
2627 Add trailing newline.
2628 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2629 Add trailing newline.
2630 * doc/openmp-environment-variables/ompthreadlimit.rst:
2631 Add trailing newline.
2632 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2633 Add trailing newline.
2634 * doc/openmp-implementation-specifics.rst:
2635 Add trailing newline.
2636 * doc/openmp-implementation-status.rst:
2637 Add trailing newline.
2638 * doc/openmp-implementation-status/openmp-45.rst:
2639 Add trailing newline.
2640 * doc/openmp-implementation-status/openmp-50.rst:
2641 Add trailing newline.
2642 * doc/openmp-implementation-status/openmp-51.rst:
2643 Add trailing newline.
2644 * doc/openmp-implementation-status/openmp-52.rst:
2645 Add trailing newline.
2646 * doc/openmp-runtime-library-routines.rst:
2647 Add trailing newline.
2648 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2649 Add trailing newline.
2650 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2651 Add trailing newline.
2652 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2653 Add trailing newline.
2654 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2655 Add trailing newline.
2656 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2657 Add trailing newline.
2658 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2659 Add trailing newline.
2660 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2661 Add trailing newline.
2662 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2663 Add trailing newline.
2664 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2665 Add trailing newline.
2666 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2667 Add trailing newline.
2668 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2669 Add trailing newline.
2670 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2671 Add trailing newline.
2672 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2673 Add trailing newline.
2674 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2675 Add trailing newline.
2676 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2677 Add trailing newline.
2678 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2679 Add trailing newline.
2680 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2681 Add trailing newline.
2682 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2683 Add trailing newline.
2684 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2685 Add trailing newline.
2686 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2687 Add trailing newline.
2688 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2689 Add trailing newline.
2690 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2691 Add trailing newline.
2692 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2693 Add trailing newline.
2694 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2695 Add trailing newline.
2696 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2697 Add trailing newline.
2698 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2699 Add trailing newline.
2700 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2701 Add trailing newline.
2702 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2703 Add trailing newline.
2704 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2705 Add trailing newline.
2706 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2707 Add trailing newline.
2708 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2709 Add trailing newline.
2710 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2711 Add trailing newline.
2712 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2713 Add trailing newline.
2714 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2715 Add trailing newline.
2716 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2717 Add trailing newline.
2718 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2719 Add trailing newline.
2720 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2721 Add trailing newline.
2722 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2723 Add trailing newline.
2724 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2725 Add trailing newline.
2726 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2727 Add trailing newline.
2728 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2729 Add trailing newline.
2730 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2731 Add trailing newline.
2732 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2733 Add trailing newline.
2734 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2735 Add trailing newline.
2736 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2737 Add trailing newline.
2738 * doc/openmp-runtime-library-routines/omptestlock.rst:
2739 Add trailing newline.
2740 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2741 Add trailing newline.
2742 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2743 Add trailing newline.
2744 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2745 Add trailing newline.
2746 * doc/reporting-bugs.rst:
2747 Add trailing newline.
2748 * doc/the-libgomp-abi.rst:
2749 Add trailing newline.
2750 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2751 Add trailing newline.
2752 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2753 Add trailing newline.
2754 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2755 Add trailing newline.
2756 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2757 Add trailing newline.
2758 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2759 Add trailing newline.
2760 * doc/the-libgomp-abi/implementing-for-construct.rst:
2761 Add trailing newline.
2762 * doc/the-libgomp-abi/implementing-master-construct.rst:
2763 Add trailing newline.
2764 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2765 Add trailing newline.
2766 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2767 Add trailing newline.
2768 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2769 Add trailing newline.
2770 * doc/the-libgomp-abi/implementing-private-clause.rst:
2771 Add trailing newline.
2772 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2773 Add trailing newline.
2774 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2775 Add trailing newline.
2776 * doc/the-libgomp-abi/implementing-single-construct.rst:
2777 Add trailing newline.
2778 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2779 Add trailing newline.
2781 2022-11-09 Martin Liska <mliska@suse.cz>
2783 * Makefile.in: Build info pages conditionally.
2785 2022-11-09 Martin Liska <mliska@suse.cz>
2787 * Makefile.in: Support --with-sphinx-build.
2788 * configure.ac: Likewise..
2789 * configure: Regenerate.
2791 2022-11-09 Martin Liska <mliska@suse.cz>
2793 * libgomp.texi: Removed.
2795 2022-11-09 Martin Liska <mliska@suse.cz>
2797 * Makefile.in: Support Sphinx based documentation.
2799 2022-11-09 Martin Liska <mliska@suse.cz>
2801 * doc/amd-radeon-gcn.rst: New file.
2802 * doc/conf.py: New file.
2803 * doc/copyright.rst: New file.
2804 * doc/cuda-streams-usage.rst: New file.
2805 * doc/enabling-openacc.rst: New file.
2806 * doc/enabling-openmp.rst: New file.
2807 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2808 * doc/first-invocation-openacc-library-api.rst: New file.
2809 * doc/funding.rst: New file.
2810 * doc/general-public-license-3.rst: New file.
2811 * doc/gnu-free-documentation-license.rst: New file.
2812 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2813 * doc/index.rst: New file.
2814 * doc/indices-and-tables.rst: New file.
2815 * doc/introduction.rst: New file.
2816 * doc/memory-allocation-with-libmemkind.rst: New file.
2817 * doc/nvptx.rst: New file.
2818 * doc/offload-target-specifics.rst: New file.
2819 * doc/openacc-environment-variables.rst: New file.
2820 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2821 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2822 * doc/openacc-environment-variables/accproflib.rst: New file.
2823 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2824 * doc/openacc-introduction.rst: New file.
2825 * doc/openacc-library-and-environment-variables.rst: New file.
2826 * doc/openacc-library-interoperability.rst: New file.
2827 * doc/openacc-profiling-interface.rst: New file.
2828 * doc/openacc-runtime-library-routines.rst: New file.
2829 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2830 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2831 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2832 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2833 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2834 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2835 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2836 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2837 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2838 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2839 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2840 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2841 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2842 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2843 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2844 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2845 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2846 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2847 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2848 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2849 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2850 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2851 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2852 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2853 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2854 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2855 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2856 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2857 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2858 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2859 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2860 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2861 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2862 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2863 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2864 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2865 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2866 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2867 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2868 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2869 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2870 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2871 * doc/openmp-context-selectors.rst: New file.
2872 * doc/openmp-environment-variables.rst: New file.
2873 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2874 * doc/openmp-environment-variables/gompdebug.rst: New file.
2875 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2876 * doc/openmp-environment-variables/gompspincount.rst: New file.
2877 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2878 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2879 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2880 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2881 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2882 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2883 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2884 * doc/openmp-environment-variables/ompnested.rst: New file.
2885 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2886 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2887 * doc/openmp-environment-variables/ompplaces.rst: New file.
2888 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2889 * doc/openmp-environment-variables/ompschedule.rst: New file.
2890 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2891 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2892 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2893 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2894 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2895 * doc/openmp-implementation-specifics.rst: New file.
2896 * doc/openmp-implementation-status.rst: New file.
2897 * doc/openmp-implementation-status/openmp-45.rst: New file.
2898 * doc/openmp-implementation-status/openmp-50.rst: New file.
2899 * doc/openmp-implementation-status/openmp-51.rst: New file.
2900 * doc/openmp-implementation-status/openmp-52.rst: New file.
2901 * doc/openmp-runtime-library-routines.rst: New file.
2902 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2903 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2904 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2905 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2906 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2907 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2908 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2909 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2910 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2911 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2912 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2913 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2914 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2915 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2916 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2917 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2918 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2919 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2920 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2921 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2922 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2923 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2924 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2925 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2926 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2927 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2928 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2929 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2930 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2931 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2932 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2933 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2934 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2935 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2936 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2937 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2938 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2939 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2940 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2941 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2942 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2943 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2944 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2945 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2946 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2947 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2948 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2949 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2950 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2951 * doc/reporting-bugs.rst: New file.
2952 * doc/the-libgomp-abi.rst: New file.
2953 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2954 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2955 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2956 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2958 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2959 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2960 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2961 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2962 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2963 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2964 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2965 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2966 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2967 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2968 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2970 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2972 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2973 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2975 * plugin/configfrag.ac <enable_offload_targets>
2976 [*-intelmic-* | *-intelmicemul-*]: Remove.
2977 * configure: Regenerate.
2978 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2980 (offload_target_to_openacc_device_type)
2981 [$offload_target = *-intelmic*]: Remove.
2982 (check_effective_target_offload_device_intel_mic)
2983 (check_effective_target_offload_device_any_intel_mic): Remove.
2984 * testsuite/libgomp.c-c++-common/on_device_arch.h
2985 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2986 (any_device_arch_intel_mic): Remove.
2987 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2988 'offload_device_any_intel_mic' XFAIL.
2989 * testsuite/libgomp.fortran/target10.f90: Likewise.
2991 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
2993 * testsuite/libgomp.fortran/target-11.f90: New test.
2994 * testsuite/libgomp.fortran/target-13.f90: New test.
2996 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
3000 * oacc-mem.c (goacc_enter_data_internal): Support
3001 OpenACC 'declare create' with Fortran allocatable arrays, part II.
3002 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
3004 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
3006 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
3009 * oacc-mem.c (goacc_enter_data_internal): Support
3010 OpenACC 'declare create' with Fortran allocatable arrays, part I.
3011 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
3013 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
3016 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
3018 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
3021 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
3023 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
3026 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
3027 Thomas Schwinge <thomas@codesourcery.com>
3029 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
3031 2022-10-28 Julian Brown <julian@codesourcery.com>
3032 Thomas Schwinge <thomas@codesourcery.com>
3035 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
3036 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
3037 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3038 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
3039 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3041 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
3043 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
3044 'ptx_dev->rev_data'.
3046 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
3048 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
3049 'static' for this variable.
3050 * config/nvptx/libgomp-nvptx.h: New file.
3051 * config/nvptx/target.c: Include it.
3052 (GOMP_ADDITIONAL_ICVS): Declare extern var.
3053 (GOMP_REV_OFFLOAD_VAR): Declare var.
3054 (GOMP_target_ext): Handle reverse offload.
3055 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
3056 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
3057 * target.c (gomp_target_rev): ... this new stub function.
3058 * libgomp.h (gomp_target_rev): Declare.
3059 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
3060 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
3061 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
3062 (struct ptx_device): Add rev_data member.
3063 (nvptx_open_device): Remove async_engines query, last used in
3064 r10-304-g1f4c5b9b; add unified-address assert check.
3065 (GOMP_OFFLOAD_get_num_devices): Claim unified address
3067 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
3068 offload functions exist. Make offload var available
3070 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
3071 (GOMP_OFFLOAD_run): Handle reverse offload.
3073 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
3075 PR tree-optimization/107195
3077 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
3080 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
3082 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
3084 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
3085 on_device_arch_gcn): New.
3086 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
3087 requires-4.c but using heap-allocated memory.
3089 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
3092 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
3094 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
3096 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
3097 '-foffload-options' syntax.
3099 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
3101 * testsuite/libgomp.fortran/task-7.f90: New test.
3102 * testsuite/libgomp.fortran/task-8.f90: New test.
3103 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
3104 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
3105 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
3106 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
3107 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
3109 2022-10-12 Jakub Jelinek <jakub@redhat.com>
3111 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
3112 in deprecation bullet.
3114 2022-10-12 Jakub Jelinek <jakub@redhat.com>
3116 * omp.h.in (omp_in_explicit_task): Declare.
3117 * omp_lib.h.in (omp_in_explicit_task): Likewise.
3118 * omp_lib.f90.in (omp_in_explicit_task): New interface.
3119 * libgomp.map (OMP_5.2): New symbol version, export
3120 omp_in_explicit_task and omp_in_explicit_task_.
3121 * task.c (omp_in_explicit_task): New function.
3122 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
3123 (omp_in_explicit_task_): New function.
3124 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
3125 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
3126 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
3127 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
3129 2022-10-12 Jakub Jelinek <jakub@redhat.com>
3131 * task.c (gomp_create_artificial_team): Fix up handling of invocations
3132 from within explicit task.
3133 * target.c (GOMP_target_ext): Likewise.
3134 * testsuite/libgomp.c/task-7.c: New test.
3135 * testsuite/libgomp.c/task-8.c: New test.
3136 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
3137 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
3139 2022-10-12 Martin Liska <mliska@suse.cz>
3141 * configure: Regenerate.
3143 2022-10-11 Olivier Hainque <hainque@adacore.com>
3144 Olivier Hainque <hainque@adacore.com>
3146 * configure: Regenerate.
3148 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
3150 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
3152 2022-10-04 Jakub Jelinek <jakub@redhat.com>
3154 * libgomp.texi (Support begin/end declare target syntax in C/C++):
3155 Mark as implemented.
3157 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
3160 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
3162 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
3164 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
3165 for C/C++. Remove duplicated 'begin declare target' entry.
3167 2022-09-24 Jakub Jelinek <jakub@redhat.com>
3170 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
3172 2022-09-14 Julian Brown <julian@codesourcery.com>
3174 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
3175 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
3176 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
3177 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
3178 test to here, make "run" test.
3180 2022-09-13 Jakub Jelinek <jakub@redhat.com>
3183 * env.c (get_icv_member_addr): Cast false to void * before assigning
3184 it to icv_addr[1], and comment the whole assignment out.
3186 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
3188 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
3191 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
3193 * libgomp.texi (Offload-Target Specifics: nvptx): Document
3194 that reverse offload requires >= -march=sm_35.
3195 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
3197 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3198 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
3199 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
3200 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
3201 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
3203 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
3205 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
3206 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
3208 2022-09-12 Jakub Jelinek <jakub@redhat.com>
3211 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
3212 (main): Avoid tests for which corresponding non-_ALL suffixed variable
3213 is in the environment, or for OMP_NUM_TEAMS on the device
3214 OMP_NUM_TEAMS_DEV_?.
3216 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
3218 * env.c (initialize_env): Include libiberty environ.h.
3220 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3222 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
3223 function address table '$offload_func_table' if rev_fn_table
3226 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3228 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
3229 .offload_func_table to populate rev_fn_table when requested.
3231 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3233 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
3234 'uint64_t **rev_fn_table' argument.
3235 * oacc-host.c (host_load_image): Likewise.
3236 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
3238 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3239 * target.c (gomp_load_image_to_device): Update call but pass
3242 2022-09-09 Jakub Jelinek <jakub@redhat.com>
3245 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
3246 char * for dest[1] initialization from params[1]. Formatting fixes.
3248 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
3251 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
3253 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
3255 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
3256 section; move OpenMP Context Selectors from ...
3257 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
3260 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
3262 * config/gcn/icv-device.c (omp_get_default_device): Return device-
3264 (omp_get_max_teams): Added for GCN devices.
3265 (omp_set_num_teams): Likewise.
3267 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
3269 (omp_get_max_teams): Added for NVPTX devices.
3270 (omp_set_num_teams): Likewise.
3272 * env.c (struct gomp_icv_list): New struct to store entries of initial
3274 (struct gomp_offload_icv_list): New struct to store entries of device-
3275 specific ICV values that are copied to the device and back.
3276 (struct gomp_default_icv_values): New struct to store default values of
3277 ICVs according to the OpenMP standard.
3278 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
3279 (print_env_var_error): Function that prints an error for invalid values
3281 (parse_unsigned_long_1): Removed getenv. Generalized.
3282 (parse_unsigned_long): Likewise.
3283 (parse_int_1): Likewise.
3284 (parse_int): Likewise.
3285 (parse_int_secure): Likewise.
3286 (parse_unsigned_long_list): Likewise.
3287 (parse_target_offload): Likewise.
3288 (parse_bind_var): Likewise.
3289 (parse_stacksize): Likewise.
3290 (parse_boolean): Likewise.
3291 (parse_wait_policy): Likewise.
3292 (parse_allocator): Likewise.
3293 (omp_display_env): Extended to output different variants of environment
3295 (print_schedule): New helper function for omp_display_env which prints
3296 the values of run_sched_var.
3297 (print_proc_bind): New helper function for omp_display_env which prints
3298 the values of proc_bind_var.
3299 (enum gomp_parse_type): Collection of types used for parsing environment
3301 (ENTRY): Preprocess string lengths of environment variables.
3302 (OMP_VAR_CNT): Preprocess table size.
3303 (OMP_HOST_VAR_CNT): Likewise.
3304 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
3306 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3307 (gomp_set_icv_flag): Sets a flag for a particular ICV.
3308 (print_device_specific_icvs): New helper function for omp_display_env to
3309 print device specific ICV values.
3310 (get_device_num): New helper function for parse_device_specific.
3311 Extracts the device number from an environment variable name.
3312 (get_icv_member_addr): Gets the memory address for a particular member
3314 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3315 (initialize_icvs): New function to initialize a gomp_initial_icvs
3317 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
3318 (startswith): Checks if a string starts with a given prefix.
3319 (initialize_env): Extended to parse the new syntax of environment
3321 * icv-device.c (omp_get_max_teams): Added.
3323 (omp_set_num_teams): Likewise.
3324 * icv.c (omp_set_num_teams): Moved to icv-device.c.
3325 (omp_get_max_teams): Likewise.
3327 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
3328 (GOMP_ADDITIONAL_ICVS): New target-side struct that
3329 holds the designated ICVs of the target device.
3330 * libgomp.h (enum gomp_icvs): Collection of ICVs.
3331 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
3333 (enum gomp_env_suffix): Collection of possible suffixes of environment
3335 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
3337 (struct gomp_default_icv):New struct to hold ICVs for which we need
3338 to store initial values.
3339 (struct gomp_icv_list): Definition of a linked list that is used for
3340 storing ICVs for the devices and also for _DEV, _ALL, and without
3342 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
3344 (struct gomp_offload_icv_list): Definition of a linked list that holds
3345 device-specific ICVs that are copied to devices.
3346 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3347 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3348 * libgomp.texi: Updated.
3349 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
3350 further ICVs from the offload image.
3351 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3352 * target.c (gomp_get_offload_icv_item): Get a list item of
3353 gomp_offload_icv_list.
3354 (get_gomp_offload_icvs): New. Returns the ICV values
3355 depending on the device num and the variable hierarchy.
3356 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
3357 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
3358 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
3359 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
3360 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
3361 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
3362 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
3364 2022-09-08 Jakub Jelinek <jakub@redhat.com>
3366 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
3368 * testsuite/libgomp.c/doacross-4.c: New test.
3369 * testsuite/libgomp.c/doacross-5.c: New test.
3370 * testsuite/libgomp.c/doacross-6.c: New test.
3371 * testsuite/libgomp.c/doacross-7.c: New test.
3373 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
3375 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
3377 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
3379 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
3380 refer to 'requires'.
3381 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
3382 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
3383 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
3384 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
3386 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
3388 PR middle-end/106548
3389 * testsuite/libgomp.c/linear-2.c: New test.
3391 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
3393 * splay-tree.h: Fix splay_* macro unsetting if
3394 splay_tree_prefix is defined.
3396 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
3398 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
3400 2022-07-29 Jakub Jelinek <jakub@redhat.com>
3402 PR middle-end/106449
3403 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
3405 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
3407 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
3409 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
3411 PR middle-end/101551
3412 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
3413 'offloading_enabled' diagnostics issue.
3415 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
3417 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
3418 '_Pragma' diagnostics verification.
3420 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
3422 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
3423 improved warning locations.
3424 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
3426 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
3428 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
3429 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
3430 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3431 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3432 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3434 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3436 * target.c (GOMP_offload_register, GOMP_offload_unregister):
3437 Denote as legacy entry points.
3438 * testsuite/lib/libgomp.exp
3439 (check_effective_target_offload_target_any): New proc.
3440 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
3441 'offload_target_any'.
3442 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3443 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3444 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3446 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3448 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3449 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3451 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3453 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3455 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
3457 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3459 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
3461 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3462 Jakub Jelinek <jakub@redhat.com>
3464 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3466 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3467 Chung-Lin Tang <cltang@codesourcery.com>
3468 Thomas Schwinge <thomas@codesourcery.com>
3470 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3471 omp_requires_mask arg.
3472 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3473 return -1 when device available but omp_requires_mask != 0.
3474 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3475 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3477 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3478 goacc_attach_host_thread_to_device, acc_get_num_devices,
3479 acc_set_device_num, get_property_any): Likewise.
3480 * target.c (omp_requires_mask): New global var.
3481 (gomp_requires_to_name): New.
3482 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3483 (gomp_target_init): Handle omp_requires_mask.
3484 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3485 (OpenMP 5.1): Add a missed item.
3486 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3487 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3488 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3489 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3490 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3491 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3492 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3493 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3494 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3495 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3496 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3497 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3498 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3499 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3500 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3501 * testsuite/libgomp.fortran/requires-1.f90: New test.
3503 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
3505 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3506 with fromto as implemented.
3508 2022-06-28 Martin Liska <mliska@suse.cz>
3510 * acinclude.m4: Fix typo in mold linker detection.
3511 * Makefile.in: Regenerate.
3512 * configure: Regenerate.
3514 2022-06-21 Jakub Jelinek <jakub@redhat.com>
3515 Paul Iannetta <piannetta@kalrayinc.com>
3518 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3520 2022-06-17 Martin Liska <mliska@suse.cz>
3522 * libgomp.texi: Add table header for new features of
3525 2022-06-15 Jakub Jelinek <jakub@redhat.com>
3527 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3528 q to ddress of an automatic variable. Use -5 instead of -1 in
3529 omp_get_mapped_ptr call. Add test with omp_initial_device.
3530 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3531 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
3532 Renumber stop arguments afterwards.
3534 2022-06-13 Jakub Jelinek <jakub@redhat.com>
3536 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3537 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3539 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3540 * target.c (resolve_device): Add remapped argument, handle
3541 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3542 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3543 if remapped, otherwise treat omp_initial_device that way. For
3544 omp_invalid_device, always emit gomp_fatal, even when
3545 OMP_TARGET_OFFLOAD isn't mandatory.
3546 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3547 GOMP_target_update, GOMP_target_update_ext,
3548 GOMP_target_enter_exit_data): Pass true as remapped argument to
3550 (omp_target_alloc, omp_target_free, omp_target_is_present,
3551 omp_target_memcpy_check, omp_target_associate_ptr,
3552 omp_target_disassociate_ptr, omp_get_mapped_ptr,
3553 omp_target_is_accessible): Pass false as remapped argument to
3554 resolve_device. Treat omp_initial_device the same as
3555 gomp_get_num_devices (). Don't bypass resolve_device calls if
3556 device_num is negative.
3557 (omp_pause_resource): Treat omp_initial_device the same as
3558 gomp_get_num_devices (). Call resolve_device.
3559 * icv-device.c (omp_set_default_device): Always set to device_num
3560 even when it is negative.
3561 * libgomp.texi: Document that Conforming device numbers,
3562 omp_initial_device and omp_invalid_device is implemented.
3563 * testsuite/libgomp.c/target-41.c (main): Add test with
3565 * testsuite/libgomp.c/target-45.c: New test.
3566 * testsuite/libgomp.c/target-46.c: New test.
3567 * testsuite/libgomp.c/target-47.c: New test.
3568 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3569 test with omp_initial_device. Use -5 instead of -1 for negative value
3571 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3572 Likewise. Reorder stop numbers.
3574 2022-06-10 Jakub Jelinek <jakub@redhat.com>
3576 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3577 rather than "libmemkind.so".
3579 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
3581 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3582 * plugin/configfrag.ac (--with-cuda-driver)
3583 (--with-cuda-driver-include, --with-cuda-driver-lib)
3584 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3585 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3587 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3588 (cuda_driver_lib): Remove.
3589 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3590 * Makefile.in: Regenerate.
3591 * configure: Likewise.
3592 * testsuite/Makefile.in: Likewise.
3594 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3596 * config/linux/allocator.c: Fix up #include directive.
3598 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3600 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3601 (enum gomp_memkind_kind): New type.
3602 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3604 (struct gomp_memkind_data): New type.
3605 (memkind_data, memkind_data_once): New variables.
3606 (gomp_init_memkind, gomp_get_memkind): New functions.
3607 (omp_init_allocator): Initialize data.memkind, don't fail for
3608 omp_high_bw_mem_space if libmemkind supports it.
3609 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3610 memkind support of LIBGOMP_USE_MEMKIND is defined.
3611 * config/linux/allocator.c: New file.
3613 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
3615 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3616 * testsuite/libgomp.fortran/scope-2.f90: New test.
3618 2022-06-02 David Malcolm <dmalcolm@redhat.com>
3620 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3622 2022-05-31 Jakub Jelinek <jakub@redhat.com>
3624 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3625 scope construct with allocate clause.
3626 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3627 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3629 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
3631 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3632 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3633 explicit 'to' and 'enter' clause.
3634 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3636 2022-05-28 Jakub Jelinek <jakub@redhat.com>
3639 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3640 defined(HAVE__ALIGNED_MALLOC) case.
3641 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3642 handling as last option before fallback instead of first.
3643 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3646 2022-05-27 Jakub Jelinek <jakub@redhat.com>
3648 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3650 * testsuite/libgomp.c/target-41.c: Likewise.
3652 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
3654 * libgomp.texi (Other new OpenMP 5.1 features): Add
3655 'begin declare target'.
3656 (Other new OpenMP 5.2 features): New.
3658 2022-05-25 Jakub Jelinek <jakub@redhat.com>
3660 * task.c (gomp_task_run_post_handle_dependers): If empty_task
3661 is the last task taskwait depend depends on, wake it up.
3662 Similarly if it is the last child of a taskgroup, use atomic
3663 store instead of decrement and awak taskgroup wait if any.
3664 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3666 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
3668 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3669 EF_AMDGPU_MACH_AMDGCN_GFX90a.
3670 (gcn_gfx90a_s): New.
3671 (isa_hsa_name): Support gfx90a.
3672 (isa_code): Likewise.
3674 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
3677 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3678 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3680 2022-05-24 Jakub Jelinek <jakub@redhat.com>
3683 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3684 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3685 * task.c (empty_task): New function.
3686 (gomp_task_run_post_handle_depend_hash): Declare earlier.
3687 (gomp_task_run_post_handle_depend): Declare.
3688 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3690 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3691 (GOMP_taskwait_depend_nowait): New function.
3692 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3694 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
3697 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3698 Support attach for GOMP_MAP_FIRSTPRIVATE.
3699 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3700 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3701 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3703 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3705 * libgomp.map: Added omp_target_memcpy_async and
3706 omp_target_memcpy_rect_async.
3707 * libgomp.texi: Both functions are now supported.
3708 * omp.h.in: Added omp_target_memcpy_async and
3709 omp_target_memcpy_rect_async.
3710 * omp_lib.f90.in: Added interfaces for both new functions.
3711 * omp_lib.h.in: Likewise.
3712 * target.c (ialias_redirect): Added for GOMP_task.
3713 (omp_target_memcpy): Restructured into check and copy part.
3714 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3715 omp_target_memcpy_async that checks requirements.
3716 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3717 omp_target_memcpy_async that performs the memcpy.
3718 (omp_target_memcpy_async_helper): New helper function that is used in
3719 omp_target_memcpy_async for the asynchronous task.
3720 (omp_target_memcpy_async): Added.
3721 (omp_target_memcpy_rect): Restructured into check and copy part.
3722 (omp_target_memcpy_rect_check): New helper function for
3723 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3725 (omp_target_memcpy_rect_copy): New helper function for
3726 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3728 (omp_target_memcpy_rect_async_helper): New helper function that is used
3729 in omp_target_memcpy_rect_async for the asynchronous task.
3730 (omp_target_memcpy_rect_async): Added.
3731 * task.c (ialias): Added for GOMP_task.
3732 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3733 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3734 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3735 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3736 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3737 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3738 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3739 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3741 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
3743 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3744 (OpenMP Context Selectors): Add missing comma.
3745 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3746 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3747 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3748 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3750 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3752 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3753 comment for omp_display_env feature.
3755 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3757 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3758 to document OpenMP context selectors.
3760 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3762 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3763 from bool to unsigned char.
3764 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3765 Ignore dependencies where
3766 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3767 rather than just task->depend[i].is_in && ent->is_in. Remember
3768 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3770 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3771 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3772 rather than just elem.is_in && ent->is_in.
3773 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3774 inoutset depend-kind.
3775 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3776 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3777 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3779 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3781 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3783 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3785 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3786 * testsuite/libgomp.fortran/depend-5.f90: New test.
3787 * testsuite/libgomp.fortran/depend-6.f90: New test.
3788 * testsuite/libgomp.fortran/depend-7.f90: New test.
3790 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3792 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3793 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3794 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3796 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3798 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3800 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3802 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3804 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3806 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3807 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3808 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3809 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3810 * Makefile.in: Regenerate.
3812 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3814 * Makefile.am (libgomp_la_LIBADD): Initialize.
3815 * plugin/configfrag.ac (DL_LIBS): New.
3816 (PLUGIN_GCN_LIBS): Remove.
3817 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3818 * plugin/Makefrag.am (libgomp_la_LIBADD)
3819 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3820 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3821 * Makefile.in: Regenerate.
3822 * config.h.in: Likewise.
3823 * configure: Likewise.
3824 * testsuite/Makefile.in: Likewise.
3826 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3828 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3829 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3830 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3831 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3832 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3833 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3834 * Makefile.in: Regenerate.
3835 * config.h.in: Likewise.
3836 * configure: Likewise.
3838 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3840 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3841 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3842 * Makefile.in: Regenerate.
3843 * config.h.in: Likewise.
3844 * configure: Likewise.
3845 * testsuite/Makefile.in: Likewise.
3847 2022-05-12 Jakub Jelinek <jakub@redhat.com>
3849 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3850 * task.c (gomp_init_task): Initialize depend_all_memory.
3851 (gomp_task_handle_depend): Handle omp_all_memory.
3852 (gomp_task_run_post_handle_depend_hash): Clear
3853 parent->depend_all_memory if equal to current task.
3854 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3855 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3856 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3857 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3859 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3861 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3862 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3863 * Makefile.in: Regenerate.
3864 * configure: Likewise.
3865 * testsuite/Makefile.in: Likewise.
3867 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3869 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3870 consider 'PLUGIN_GCN_CPPFLAGS'.
3871 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3872 'PLUGIN_GCN_LDFLAGS'.
3873 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3875 * Makefile.in: Regenerate.
3876 * configure: Likewise.
3877 * testsuite/Makefile.in: Likewise.
3879 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3881 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3882 (HSA_RUNTIME_LDFLAGS): Remove.
3883 * configure: Regenerate.
3885 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3887 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3888 'append always_ld_library_path ":$hsa_runtime_lib"'.
3889 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3891 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3893 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3894 multi-device testing.
3896 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3898 * libgomp.map: Added omp_target_is_accessible.
3899 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3900 * omp.h.in: Added omp_target_is_accessible.
3901 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3902 * omp_lib.h.in: Likewise.
3903 * target.c (omp_target_is_accessible): Added implementation of
3904 omp_target_is_accessible.
3905 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3906 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3908 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3910 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3912 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3914 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3916 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3918 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3920 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3922 * libgomp.map: Added omp_get_mapped_ptr.
3923 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3924 * omp.h.in: Added omp_get_mapped_ptr.
3925 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3926 * omp_lib.h.in: Likewise.
3927 * target.c (omp_get_mapped_ptr): Added implementation of
3929 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3930 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3931 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3932 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3933 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3934 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3935 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3936 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3938 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3941 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3942 privatization scanning. For GCN offloading compilation, raise
3943 '-mgang-private-size'.
3945 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3948 * work.c (gomp_init_work_share): Don't mask of adjustment for
3949 dynamic long long realignment if struct gomp_work_share has smaller
3950 alignof than long long.
3951 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3952 struct gomp_work_share has smaller alignof than long long or if
3953 sizeof (struct gomp_work_share) is smaller than
3954 INLINE_ORDERED_TEAM_IDS_OFF.
3955 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3956 * sections.c (GOMP_sections2_start): Likewise.
3958 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3959 Thomas Schwinge <thomas@codesourcery.com>
3962 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3964 2022-04-13 Jakub Jelinek <jakub@redhat.com>
3966 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3968 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3970 * plugin/cuda/cuda.h: Remove file.
3971 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3972 "cuda/cuda.h" instead of <cuda.h>.
3973 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3974 'PLUGIN_NVPTX_CPPFLAGS'.
3975 * configure: Regenerate.
3977 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3979 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3981 2022-04-04 Tom de Vries <tdevries@suse.de>
3983 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3984 on_device_arch_nvptx instead of offload_target_nvptx.
3985 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3987 2022-04-01 Tom de Vries <tdevries@suse.de>
3989 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3991 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3993 2022-04-01 Tom de Vries <tdevries@suse.de>
3995 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3998 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3999 Lulu Cheng <chenglulu@loongson.cn>
4001 * configure.tgt: Add LoongArch triplet.
4003 2022-03-28 Tom de Vries <tdevries@suse.de>
4005 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
4006 instead of /libexec/.
4007 * configure: Regenerate.
4009 2022-03-25 Tom de Vries <tdevries@suse.de>
4012 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
4014 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
4015 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
4017 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
4019 PR middle-end/104285
4020 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
4021 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
4022 * testsuite/libgomp.c++/target-same-name-2.C: New test.
4023 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
4024 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
4025 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
4027 2022-03-22 Tom de Vries <tdevries@suse.de>
4031 * testsuite/libgomp.c/pr104783-2.c: New test.
4033 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
4036 * testsuite/libgomp.fortran/associate4.f90: New test.
4038 2022-03-18 Tom de Vries <tdevries@suse.de>
4041 * testsuite/libgomp.c/pr104952-1.c: New test.
4042 * testsuite/libgomp.c/pr104952-2.c: New test.
4044 2022-03-18 Jakub Jelinek <jakub@redhat.com>
4046 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
4047 variable next to pl variable.
4049 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
4051 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4053 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4054 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4056 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
4059 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
4060 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4062 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
4064 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
4065 omp_set_max_active_levels.
4066 * testsuite/libgomp.fortran/icv-8.f90: New test.
4068 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
4071 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
4073 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
4075 * libgomp.texi: Fix typo.
4077 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4079 PR middle-end/100280
4080 PR middle-end/104892
4081 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
4082 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
4083 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4085 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4087 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4088 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4089 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4092 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4094 PR middle-end/104892
4095 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
4097 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
4098 enable '--param=openacc-kernels=decompose' and adjust.
4099 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4101 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4102 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4105 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4108 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
4109 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
4110 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4111 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
4113 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4115 PR middle-end/100280
4116 PR middle-end/104086
4117 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4119 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4121 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
4123 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4126 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
4128 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
4129 trait. Test last index in w and v array. Remove redundant
4130 assignment to V(1). Move alignment checks at the end of
4133 2022-03-10 Tom de Vries <tdevries@suse.de>
4135 * testsuite/libgomp.c/pr104783.c: New test.
4137 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
4140 PR middle-end/102330
4141 PR middle-end/104774
4142 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4144 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4146 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4148 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4150 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4152 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4154 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4156 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4158 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4160 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4162 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4164 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4166 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4168 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4170 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4171 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4172 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4174 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
4177 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
4178 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4179 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4180 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4182 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4185 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
4186 expected diagnostics.
4188 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4190 PR middle-end/104784
4191 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4192 Test with '--param=openacc-kernels=decompose'.
4193 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4195 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4197 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4199 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4201 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4203 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4205 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4207 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4209 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4211 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4213 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4215 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4217 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4219 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4221 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4223 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4225 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4227 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4229 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4231 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4233 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4235 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4237 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4239 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4241 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4243 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4245 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4247 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4249 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4251 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4253 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4255 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4258 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4260 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4261 Test '-fopt-info-omp-all'.
4262 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4264 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4266 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4268 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4270 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4272 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4274 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4276 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4278 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4280 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4282 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4284 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4286 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4288 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4290 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4292 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4294 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4296 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4298 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4300 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4302 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4304 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4306 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4308 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4310 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4312 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4314 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4316 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4318 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4320 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4322 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4324 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4327 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4329 PR middle-end/100280
4330 PR middle-end/104132
4331 PR middle-end/104133
4332 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4335 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4337 PR middle-end/100280
4338 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4339 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4342 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4344 PR middle-end/100280
4345 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4346 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4349 2022-02-28 Tom de Vries <tdevries@suse.de>
4351 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
4352 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
4353 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
4354 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
4355 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
4356 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
4358 2022-02-24 Tom de Vries <tdevries@suse.de>
4360 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
4361 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
4362 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
4363 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
4364 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
4365 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
4366 * testsuite/libgomp.c/declare-variant-3.h: New header file.
4368 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
4370 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
4371 gang-redundant execution.
4373 2022-02-22 Tom de Vries <tdevries@suse.de>
4376 * config/nvptx/bar.c (generation_to_barrier): New function, copied
4377 from config/rtems/bar.c.
4378 (futex_wait, futex_wake): New function.
4379 (do_spin, do_wait): New function, copied from config/linux/wait.h.
4380 (gomp_barrier_wait_end, gomp_barrier_wait_last)
4381 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
4382 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
4383 and replace with include of config/linux/bar.c.
4384 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
4385 (gomp_barrier_init): Init new fields.
4386 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
4388 * testsuite/libgomp.c/pr99555-1.c: Same.
4389 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
4391 2022-02-22 Tom de Vries <tdevries@suse.de>
4394 * testsuite/libgomp.c++/pr96390.C: Add additional-option
4395 -foffload=-Wa,--verify for nvptx.
4396 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
4398 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
4400 * testsuite/libgomp.fortran/depend-4.f90: New test.
4402 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
4405 * testsuite/libgomp.c++/target-virtual-1.C: New test.
4407 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
4409 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
4410 * target.c (copy_firstprivate_data): Copy only if host address is not
4412 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
4413 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
4414 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
4415 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
4416 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
4417 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
4418 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
4419 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
4420 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
4421 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
4423 2022-02-08 Jakub Jelinek <jakub@redhat.com>
4426 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
4428 * testsuite/libgomp.c/pr104385.c: New test.
4430 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4432 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
4433 STOP of previous commit.
4435 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4437 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
4438 from is_64bit_aligned_.
4439 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
4440 and use it, more implicit none, remove unused argument.
4442 2022-02-03 David Seifert <soap@gentoo.org>
4443 Jakub Jelinek <jakub@redhat.com>
4445 * configure.ac: Support --disable-werror.
4446 * configure: Regenerate.
4448 2022-02-01 Tom de Vries <tdevries@suse.de>
4450 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4452 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4453 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4455 2022-02-01 Tom de Vries <tdevries@suse.de>
4457 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4458 num_workers for nvidia accelerator to fix libgomp error 'insufficient
4460 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4462 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4464 2022-02-01 Tom de Vries <tdevries@suse.de>
4466 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4468 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4470 2022-01-31 Martin Liska <mliska@suse.cz>
4472 * acinclude.m4: Detect *_ld_is_mold and use it.
4473 * configure: Regenerate.
4475 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
4477 * libgomp.texi (OpenMP 5.0): Update implementation status.
4479 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
4481 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4482 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4483 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4484 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4485 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4486 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4487 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4488 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4489 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4490 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4491 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4492 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4493 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4494 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4495 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4497 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
4499 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4500 "static") to make the device num available in the offload image.
4502 2022-01-19 Martin Liska <mliska@suse.cz>
4503 Thomas Schwinge <thomas@codesourcery.com>
4505 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4507 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4508 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4510 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4511 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4512 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4513 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4514 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4516 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4518 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4520 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4522 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4524 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4526 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4527 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4528 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4530 2022-01-18 Martin Liska <mliska@suse.cz>
4532 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4534 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4535 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4536 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4537 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4538 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4539 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4540 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4541 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4542 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4543 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4544 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4545 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4546 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4547 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4548 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4550 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
4552 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4553 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4554 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4556 2022-01-17 Julian Brown <julian@codesourcery.com>
4557 Thomas Schwinge <thomas@codesourcery.com>
4559 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4560 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4561 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4563 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4564 Andrew Stubbs <ams@codesourcery.com>
4566 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4567 the number of teams and threads if necessary.
4568 (gcn_exec): Automatically set the number of gangs and workers if
4571 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
4573 * testsuite/libgomp.fortran/allocate-1.c: New test.
4574 * testsuite/libgomp.fortran/allocate-1.f90: New test.
4575 * libgomp.texi: Remove string that says that allocate clause
4576 support is for C/C++ only.
4578 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4580 * testsuite/libgomp.c-c++-common/on_device_arch.h
4581 (any_device_arch, any_device_arch_intel_mic): New.
4582 * testsuite/lib/libgomp.exp
4583 (check_effective_target_offload_device_any_intel_mic): New.
4584 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4585 * testsuite/libgomp.fortran/target10.f90: Likewise.
4587 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4589 PR tree-optimization/102192
4590 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4591 '-Wuninitialized' diagnostics.
4593 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4595 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4596 current '-Wuninitialized' diagnostics.
4597 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4598 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4599 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4600 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4601 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4602 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4603 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4604 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4605 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4606 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4607 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4610 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4612 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4613 for 'offload_device_intel_mic'.
4615 2022-01-13 Julian Brown <julian@codesourcery.com>
4616 Thomas Schwinge <thomas@codesourcery.com>
4618 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4619 offloading execution XFAIL.
4621 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4623 PR middle-end/100280
4624 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4626 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4627 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4630 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4632 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4634 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4636 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4637 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4638 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4639 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4640 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4642 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4643 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4644 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4645 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4647 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
4649 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4650 * testsuite/libgomp.fortran/target10.f90: Likewise.
4652 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
4654 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4655 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4656 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4658 2022-01-03 Jakub Jelinek <jakub@redhat.com>
4660 * libgomp.texi: Bump @copying's copyright year.
4662 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
4664 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4665 * testsuite/libgomp.fortran/atomic-19.f90: New test.
4667 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
4669 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4670 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4671 table, not individual symbols.
4673 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
4675 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4676 "target offload_device_nonshared_as"
4677 * testsuite/libgomp.c++/target-this-3.C: Likewise.
4678 * testsuite/libgomp.c++/target-this-4.C: Likewise.
4680 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4682 * target.c (gomp_map_vars_existing): Make sure attached pointer is
4683 not overwritten during cross-host/device copying.
4684 (gomp_update): Likewise.
4685 (gomp_exit_data): Likewise.
4686 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4687 * testsuite/libgomp.c++/target-12.C: Likewise.
4688 * testsuite/libgomp.c++/target-15.C: Likewise.
4689 * testsuite/libgomp.c++/target-16.C: Likewise.
4690 * testsuite/libgomp.c++/target-17.C: Likewise.
4691 * testsuite/libgomp.c++/target-21.C: Likewise.
4692 * testsuite/libgomp.c++/target-23.C: Likewise.
4693 * testsuite/libgomp.c/target-23.c: Likewise.
4694 * testsuite/libgomp.c/target-29.c: Likewise.
4695 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4697 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4700 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4701 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4702 (goacc_enter_data_internal): Likewise.
4703 * target.c (gomp_map_vars_existing): Update assert condition to
4704 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4705 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4706 parameter, add support for mapping a pointer with NULL target.
4707 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4708 parameter, add support for attaching a pointer with NULL target.
4709 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4710 gomp_attach_pointer, add handling for
4711 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4712 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4713 * testsuite/libgomp.c++/target-23.C: New testcase.
4714 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4715 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4716 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4717 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4718 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4719 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4720 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4722 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4724 * libgomp.texi (OpenMP 5.1): Update status.
4726 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4728 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4730 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4733 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4734 * testsuite/libgomp.fortran/pr90030.f90: New test.
4736 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4737 Thomas Schwinge <thomas@codesourcery.com>
4739 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4742 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4743 Thomas Schwinge <thomas@codesourcery.com>
4745 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4748 2021-11-29 Richard Biener <rguenther@suse.de>
4750 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4753 2021-11-24 Jakub Jelinek <jakub@redhat.com>
4755 PR middle-end/103384
4756 * testsuite/libgomp.c/declare-variant-2.c: New test.
4758 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
4760 * alloc.c (gomp_aligned_alloc): Fix typo.
4762 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4765 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4766 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4767 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4768 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4769 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4770 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4771 gomp_aligned_alloc instead of team_malloc.
4773 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4776 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4777 memalign over posix_memalign over aligned_alloc over fallback
4778 with malloc instead of aligned_alloc over _aligned_alloc over
4779 posix_memalign over memalign over fallback with malloc. For
4780 aligned_alloc, round up size up to multiple of al.
4782 2021-11-16 Jakub Jelinek <jakub@redhat.com>
4784 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4785 construct as implemented.
4787 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
4789 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4791 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4793 * task.c (gomp_create_target_task): Copy args array as well.
4794 * target.c (gomp_target_fallback): Add args argument.
4795 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4796 (GOMP_target): Adjust gomp_target_fallback caller.
4797 (GOMP_target_ext): Likewise.
4798 (gomp_target_task_fn): Likewise.
4799 * config/nvptx/team.c (gomp_nvptx_main): Set
4800 gomp_global_icv.thread_limit_var.
4801 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4803 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4805 * config/nvptx/team.c (__gomp_team_num): Define as
4806 __attribute__((shared)) var.
4807 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4808 * config/nvptx/target.c (__gomp_team_num): Declare as
4809 extern __attribute__((shared)) var.
4810 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4811 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4812 is bigger than num_blocks, use num_teams_lower teams and arrange for
4813 bumping of __gomp_team_num if !first and returning false once we run
4815 * config/nvptx/teams.c (__gomp_team_num): Declare as
4816 extern __attribute__((shared)) var.
4817 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4819 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4821 * testsuite/libgomp.c/teams-5.c: New test.
4823 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4826 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4828 * config/gcn/teams.c: ... here. New file.
4830 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4832 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4833 implicit map handling to allow a "superset" existing map as valid case.
4834 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4835 (get_implicit): New function to extract implicit status.
4836 (gomp_map_fields_existing): Adjust arguments in calls to
4837 gomp_map_vars_existing, and add uses of get_implicit.
4838 (gomp_map_vars_internal): Likewise.
4839 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4841 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4843 * libgomp_g.h (GOMP_teams4): Declare.
4844 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4845 * target.c (GOMP_teams4): New function.
4846 * config/nvptx/target.c (GOMP_teams): Remove.
4847 (GOMP_teams4): New function.
4848 * config/gcn/target.c (GOMP_teams): Remove.
4849 (GOMP_teams4): New function.
4850 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4851 teams instead of <= 2.
4852 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4854 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
4856 * testsuite/libgomp.fortran/teams-1.f90: New test.
4858 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4860 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4861 * team.c (struct gomp_thread_start_data): Likewise.
4862 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4863 (gomp_team_start): Initialize start_data->num_teams and
4864 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4865 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4866 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4867 instead of gomp_num_teams and gomp_team_num.
4868 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4869 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4870 * testsuite/libgomp.c/teams-4.c: New test.
4872 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4874 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4876 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4878 * env.c (parse_gomp_openacc_dim): Restore parsing.
4880 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4882 PR middle-end/102972
4883 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4885 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4886 * testsuite/libgomp.c/target-3.c: Likewise.
4887 * testsuite/libgomp.c/target-5.c: Likewise.
4888 * testsuite/libgomp.c/target-6.c: Likewise.
4889 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4890 * testsuite/libgomp.c/teams-1.c: Likewise.
4891 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4892 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4893 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4894 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4895 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4896 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4897 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4899 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
4901 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4902 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4904 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4906 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4907 aren't implemented for Fortran yet.
4909 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4911 * testsuite/libgomp.c/loop-26.c: New test.
4912 * testsuite/libgomp.c/loop-27.c: New test.
4914 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4917 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4918 instead of #include <alloca.h> + alloca.
4920 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4922 * libgomp.texi (Support of strictly structured blocks in Fortran):
4924 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4926 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4928 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4929 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4931 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4934 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4935 (struct gomp_work_share): Only use aligned(64) attribute if
4936 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4937 add padding before lock to ensure lock is at offset 64 bytes
4939 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4940 New poor man's static assertions.
4941 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4942 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4944 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4945 Richard Biener <rguenther@suse.de>
4947 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4949 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4951 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4952 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4954 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4963 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4965 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4967 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4968 type from char [50] to const char *.
4969 (places_array): Add a testcase for simplified syntax place followed
4970 by length or length and stride.
4972 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4974 * env.c (parse_one_place): Handle non-negative-number the same
4975 as { non-negative-number }. Reject even !number:1 and
4976 !number:1:stride or !place:1 or !place:1:stride instead of just
4977 length other than 1.
4978 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4979 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4980 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4982 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4985 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4987 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4988 clearly reject return value 0 as invalid handle the case where end
4989 pointer is the same as first argument as invalid.
4990 (parse_unsigned_long_1): Likewise.
4991 (parse_one_place): Likewise.
4992 (parse_places_var): Likewise.
4993 (parse_stacksize): Likewise.
4994 (parse_spincount): Likewise.
4995 (parse_affinity): Likewise.
4996 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4997 Make code valid C89.
4998 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4999 For strtoul calls which don't clearly reject return value 0 as
5000 invalid handle the case where end pointer is the same as first
5001 argument as invalid.
5002 (gomp_affinity_init_level_1): Likewise.
5003 (gomp_affinity_init_numa_domains): Likewise.
5004 * config/rtems/proc.c (parse_thread_pools): Likewise.
5006 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5008 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
5009 after creating count places clean up and return immediately.
5010 * testsuite/libgomp.c/places-6.c: New test.
5011 * testsuite/libgomp.c/places-7.c: New test.
5012 * testsuite/libgomp.c/places-8.c: New test.
5013 * testsuite/libgomp.c/places-9.c: New test.
5014 * testsuite/libgomp.c/places-10.c: New test.
5016 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5018 * env.c (parse_places_var): Handle numa_domains as level 5.
5019 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
5021 (gomp_affinity_init_level): Use it instead of
5022 gomp_affinity_init_level_1 for level == 5.
5023 * testsuite/libgomp.c/places-5.c: New test.
5025 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5027 * env.c (parse_places_var): Handle ll_caches as level 4.
5028 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
5030 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
5032 (gomp_affinity_init_level): Likewise.
5033 * testsuite/libgomp.c/places-1.c: New test.
5034 * testsuite/libgomp.c/places-2.c: New test.
5035 * testsuite/libgomp.c/places-3.c: New test.
5036 * testsuite/libgomp.c/places-4.c: New test.
5038 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
5040 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
5043 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
5045 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
5047 2021-10-12 Julian Brown <julian@codesourcery.com>
5049 * target.c (gomp_copy_host2dev): Release device lock on cbuf
5052 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
5054 * testsuite/libgomp.fortran/icv-3.f90: New.
5055 * testsuite/libgomp.fortran/icv-4.f90: New.
5057 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5059 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
5060 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
5061 OMP_TEAMS_THREAD_LIMIT): Document.
5063 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5065 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
5066 to avoid makeinfo warnings.
5068 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5070 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
5071 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
5073 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5077 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
5078 allocation sizes from 420 to 320 and from 768 to 568.
5079 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
5080 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
5081 for cr from 16 to 4.
5083 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5085 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
5086 * testsuite/libgomp.c/scan-12.c: Likewise.
5087 * testsuite/libgomp.c/scan-13.c: Likewise.
5088 * testsuite/libgomp.c/scan-14.c: Likewise.
5089 * testsuite/libgomp.c/scan-15.c: Likewise.
5090 * testsuite/libgomp.c/scan-16.c: Likewise.
5091 * testsuite/libgomp.c/scan-17.c: Likewise.
5092 * testsuite/libgomp.c/scan-18.c: Likewise.
5093 * testsuite/libgomp.c/scan-19.c: Likewise.
5094 * testsuite/libgomp.c/scan-20.c: Likewise.
5095 * testsuite/libgomp.c/scan-21.c: Likewise.
5096 * testsuite/libgomp.c/scan-22.c: Likewise.
5097 * testsuite/libgomp.c++/scan-9.C: Likewise.
5098 * testsuite/libgomp.c++/scan-10.C: Likewise.
5099 * testsuite/libgomp.c++/scan-11.C: Likewise.
5100 * testsuite/libgomp.c++/scan-12.C: Likewise.
5101 * testsuite/libgomp.c++/scan-13.C: Likewise.
5102 * testsuite/libgomp.c++/scan-14.C: Likewise.
5103 * testsuite/libgomp.c++/scan-15.C: Likewise.
5104 * testsuite/libgomp.c++/scan-16.C: Likewise.
5106 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
5108 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
5110 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
5112 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
5114 * omp.h.in: Add deprecated flag for omp_atv_sequential.
5115 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
5116 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
5117 * testsuite/libgomp.fortran/alloc-12.f90: New test.
5119 2021-10-11 Jakub Jelinek <jakub@redhat.com>
5121 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
5122 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5123 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
5124 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5125 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
5126 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5127 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
5128 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
5129 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
5130 omp_set_teams_thread_limit{,_,_8_}.
5131 * icv.c (omp_set_num_teams, omp_get_max_teams,
5132 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
5134 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
5135 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
5136 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
5138 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
5139 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
5140 is not specified, use gomp_nteams_var.
5141 * fortran.c (omp_set_num_teams, omp_get_max_teams,
5142 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
5144 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
5145 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
5146 omp_get_teams_thread_limit_): New functions.
5148 2021-10-09 liuhongt <hongtao.liu@intel.com>
5150 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
5151 * testsuite/libgomp.c++/scan-11.C: Ditto.
5152 * testsuite/libgomp.c++/scan-12.C: Ditto.
5153 * testsuite/libgomp.c++/scan-13.C: Ditto.
5154 * testsuite/libgomp.c++/scan-14.C: Ditto.
5155 * testsuite/libgomp.c++/scan-15.C: Ditto.
5156 * testsuite/libgomp.c++/scan-16.C: Ditto.
5157 * testsuite/libgomp.c++/scan-9.C: Ditto.
5158 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
5159 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
5160 * testsuite/libgomp.c/scan-11.c: Ditto.
5161 * testsuite/libgomp.c/scan-12.c: Ditto.
5162 * testsuite/libgomp.c/scan-13.c: Ditto.
5163 * testsuite/libgomp.c/scan-14.c: Ditto.
5164 * testsuite/libgomp.c/scan-15.c: Ditto.
5165 * testsuite/libgomp.c/scan-16.c: Ditto.
5166 * testsuite/libgomp.c/scan-17.c: Ditto.
5167 * testsuite/libgomp.c/scan-18.c: Ditto.
5168 * testsuite/libgomp.c/scan-19.c: Ditto.
5169 * testsuite/libgomp.c/scan-20.c: Ditto.
5170 * testsuite/libgomp.c/scan-21.c: Ditto.
5171 * testsuite/libgomp.c/scan-22.c: Ditto.
5173 2021-10-09 Jakub Jelinek <jakub@redhat.com>
5175 * libgomp.texi (OpenMP 5.1): Mention implemented support for
5176 structured block sequences in C/C++. Mention support for
5177 unconstrained/reproducible modifiers on order clause.
5178 Mention partial (C/C++ only) support of extentensions to atomics
5179 construct. Mention partial (C/C++ on clause only) support of
5180 align/allocator modifiers on allocate clause.
5182 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
5184 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
5185 based on libgomp.c-c++-common/order-reproducible-1.c.
5186 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
5187 * testsuite/libgomp.fortran/my-usleep.c: New test.
5189 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
5191 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
5192 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
5193 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
5194 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
5195 based on libgomp.c-c++-common/alloc-9.c.
5197 2021-10-01 Jakub Jelinek <jakub@redhat.com>
5199 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
5200 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
5202 2021-10-01 Jakub Jelinek <jakub@redhat.com>
5204 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
5206 * env.c (handle_omp_display_env): Use ialias_call.
5207 * icv-device.c: Move ialias right below each function.
5208 (omp_get_device_num): Use ialias_call.
5209 * fortran.c (omp_fulfill_event): Add ialias_redirect.
5210 * icv.c (omp_get_active_level): Add ialias_redirect.
5212 2021-10-01 Jakub Jelinek <jakub@redhat.com>
5214 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
5215 __alloc_align__ (1) attribute.
5216 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
5218 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
5220 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
5221 for -fintrinsic-modules-path= warning of the C compiler.
5222 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
5223 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
5225 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
5227 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
5228 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
5229 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5231 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5233 * testsuite/libgomp.fortran/alloc-10.f90: New test.
5234 * testsuite/libgomp.fortran/alloc-6.f90: New test.
5235 * testsuite/libgomp.fortran/alloc-7.c: New test.
5236 * testsuite/libgomp.fortran/alloc-7.f90: New test.
5237 * testsuite/libgomp.fortran/alloc-8.f90: New test.
5238 * testsuite/libgomp.fortran/alloc-9.f90: New test.
5240 2021-09-30 Jakub Jelinek <jakub@redhat.com>
5242 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
5243 omp_realloc): New prototypes.
5244 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
5246 * allocator.c: Include string.h.
5247 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
5248 variable and use it instead of alignment so that when retrying the old
5249 alignment is used again. Don't retry if new alignment is the same
5250 as old alignment, unless allocator had pool size.
5251 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
5252 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
5253 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
5254 omp_aligned_calloc and omp_realloc.
5255 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
5256 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
5257 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
5258 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
5259 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
5260 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
5262 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
5265 * configure.ac: Only check for int-type = 2*size_t support when
5266 building with Fortran support.
5267 * configure: Regenerate.
5269 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
5271 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
5272 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5274 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
5276 * team.c: Initialize start_data.
5277 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5278 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
5280 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
5282 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
5283 dg-message back to dg-note.
5285 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
5288 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
5289 expected dg-note output.
5291 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
5294 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
5295 r12-3722 by removing -Wno-missing-include-dirs.
5296 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5298 2021-09-22 Jakub Jelinek <jakub@redhat.com>
5300 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
5301 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
5303 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
5306 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
5308 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5310 2021-09-18 Jakub Jelinek <jakub@redhat.com>
5312 * testsuite/libgomp.c++/default-1.C: New test.
5313 * testsuite/libgomp.c-c++-common/default-1.c: New test.
5314 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
5315 to default clause in C and C++" as implemented.
5317 2021-09-17 Julian Brown <julian@codesourcery.com>
5319 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
5321 2021-09-17 Julian Brown <julian@codesourcery.com>
5323 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
5325 2021-09-17 Jakub Jelinek <jakub@redhat.com>
5327 * libgomp.texi (OpenMP 5.1): Spelling fix,
5328 declare variante -> declare variant.
5330 2021-09-17 Jakub Jelinek <jakub@redhat.com>
5332 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
5333 Use /* */ comments instead of //.
5334 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
5335 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
5336 * testsuite/libgomp.c++/atomic-16.C: New test.
5337 * testsuite/libgomp.c++/atomic-17.C: New test.
5339 2021-09-10 Jakub Jelinek <jakub@redhat.com>
5341 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
5342 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
5343 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
5345 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
5347 * libgomp.texi (OpenMP Implementation Status): Extend
5349 (OpenACC Profiling Interface): Fix typo.
5351 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
5353 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
5354 not to 4.5; link to new section.
5355 (OpenMP Implementation Status): New.
5357 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
5359 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
5361 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
5363 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
5365 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5367 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5368 Jakub Jelinek <jakub@redhat.com>
5370 * testsuite/libgomp.c/address-space-1.c: New file.
5372 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5374 * testsuite/lib/libgomp.exp
5375 (check_effective_target_offload_target_intelmic): Remove 'proc'.
5376 (check_effective_target_offload_device_intel_mic): New 'proc'.
5377 * testsuite/libgomp.c-c++-common/on_device_arch.h
5378 (device_arch_intel_mic, on_device_arch_intel_mic): New.
5379 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
5381 * testsuite/libgomp.fortran/target10.f90: Likewise.
5383 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
5385 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
5386 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
5387 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
5388 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
5390 2021-08-23 Jakub Jelinek <jakub@redhat.com>
5392 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
5393 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
5394 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
5396 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
5398 * config/nvptx/error.c (fwrite, exit): Override, too.
5399 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
5400 of offloading testing.
5401 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5403 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
5405 * testsuite/libgomp.fortran/error-1.f90: New test.
5407 2021-08-20 Jakub Jelinek <jakub@redhat.com>
5409 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
5410 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
5411 * error.c (GOMP_warning, GOMP_error): New functions.
5412 * testsuite/libgomp.c-c++-common/error-1.c: New test.
5414 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
5416 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
5417 omp_target_free. omp_target_is_present, omp_target_memcpy,
5418 omp_target_memcpy_rect, omp_target_associate_ptr,
5419 omp_target_disassociate_ptr): Add interface.
5420 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
5421 omp_target_free. omp_target_is_present, omp_target_memcpy,
5422 omp_target_memcpy_rect, omp_target_associate_ptr,
5423 omp_target_disassociate_ptr): Add interface.
5424 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
5425 interface block for omp_alloc + omp_free.
5426 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
5427 * testsuite/libgomp.fortran/refcount-1.f90: New test.
5428 * testsuite/libgomp.fortran/target-12.f90: New test.
5430 2021-08-18 Jakub Jelinek <jakub@redhat.com>
5432 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
5434 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
5436 * testsuite/libgomp.fortran/scope-1.f90: New test.
5437 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
5439 2021-08-17 Jakub Jelinek <jakub@redhat.com>
5441 * Makefile.am (libgomp_la_SOURCES): Add scope.c
5442 * Makefile.in: Regenerated.
5443 * libgomp_g.h (GOMP_scope_start): Declare.
5444 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5445 * scope.c: New file.
5446 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5447 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5449 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
5451 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5454 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
5456 * testsuite/libgomp.fortran/masked-1.f90: New test.
5458 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
5460 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5462 2021-08-12 Jakub Jelinek <jakub@redhat.com>
5464 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5466 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
5468 * env.c (parse_bind_var): Accept 'primary' as alias for
5470 (omp_display_env): Add TODO comment to
5471 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5472 * libgomp.texi: Change 'master thread' to 'primary thread'
5473 in line with OpenMP 5.1.
5474 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5475 omp_proc_bind_master is an alias of it.
5476 (OMP_PROC_BIND): Mention 'PRIMARY'.
5477 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5478 (omp_proc_bind_primary): Add.
5479 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5480 * omp_lib.f90.in (omp_proc_bind_primary): Add.
5481 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5482 * omp_lib.h.in (omp_proc_bind_primary): Add.
5483 * testsuite/libgomp.c/affinity-1.c: Check that
5484 'primary' works and is identical to 'master'.
5486 2021-08-09 Julian Brown <julian@codesourcery.com>
5487 Kwok Cheung Yeung <kcy@codesourcery.com>
5488 Thomas Schwinge <thomas@codesourcery.com>
5490 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5492 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5493 [acc_device_radeon]: Update.
5494 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5495 [ACC_DEVICE_TYPE_radeon]: Likewise.
5496 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5497 [acc_device_radeon]: Likewise.
5498 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5499 [ACC_DEVICE_TYPE_radeon]: Likewise.
5500 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5501 'openacc_radeon_accel_selected' and '-O0'.
5502 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5504 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
5506 * icv-device.c (omp_get_device_num): New API function, host side.
5507 * fortran.c (omp_get_device_num_): New interface function.
5508 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5509 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5510 omp_get_device_num_.
5511 * libgomp.texi (omp_get_device_num): Add documentation for new API
5513 * omp.h.in (omp_get_device_num): Add declaration.
5514 * omp_lib.f90.in (omp_get_device_num): Likewise.
5515 * omp_lib.h.in (omp_get_device_num): Likewise.
5516 * target.c (gomp_load_image_to_device): If additional entry for device
5517 number exists at end of returned entries from 'load_image_func' hook,
5518 copy the assigned device number over to the device variable.
5519 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5520 (omp_get_device_num): New API function, device side.
5521 * plugin/plugin-gcn.c ("symcat.h"): Add include.
5522 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5523 at end of returned 'target_table' entries.
5524 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5525 (omp_get_device_num): New API function, device side.
5526 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5527 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5528 at end of returned 'target_table' entries.
5529 * testsuite/lib/libgomp.exp
5530 (check_effective_target_offload_target_intelmic): New function for
5531 testing for intelmic offloading.
5532 * testsuite/libgomp.c-c++-common/target-45.c: New test.
5533 * testsuite/libgomp.fortran/target10.f90: New test.
5535 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
5536 Ulrich Drepper <drepper@redhat.com>
5538 * fortran.c (omp_display_env_, omp_display_env_8_): Only
5539 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5541 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
5542 Julian Brown <julian@codesourcery.com>
5543 Kwok Cheung Yeung <kcy@codesourcery.com>
5545 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5546 's%oaccdevlow%oaccloops%g'.
5547 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5548 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5549 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5551 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5553 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5555 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5557 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5559 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5561 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5563 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5565 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5567 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
5569 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5571 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5573 2021-07-27 Ulrich Drepper <drepper@gmail.com>
5575 * env.c (wait_policy, stacksize): New static variables,
5576 move out of handle_omp_display_env.
5577 (omp_display_env): New function. The meat of the old
5578 handle_omp_display_env function.
5579 (handle_omp_display_env): Change to not take parameters
5580 and instead use the global variables. Only perform
5581 parsing, defer to omp_display_env for the implementation.
5582 (initialize_env): Remove local variables wait_policy and
5583 stacksize. Don't pass parameters to handle_omp_display_env.
5584 * fortran.c: Add ialias_redirect for omp_display_env.
5585 (omp_display_env_, omp_display_env_8_): New functions.
5586 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
5587 omp_display_env_, and omp_display_env_8_.
5588 * omp.h.in: Declare omp_display_env.
5589 * omp_lib.f90.in: Likewise.
5590 * omp_lib.h.in: Likewise.
5592 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5593 Julian Brown <julian@codesourcery.com>
5595 * target.c (gomp_coalesce_buf_add): Update comment.
5596 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5598 (gomp_map_vars_internal): Only 'if (!aq)', do
5599 'gomp_coalesce_buf_add'.
5600 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5603 2021-07-27 Julian Brown <julian@codesourcery.com>
5604 Thomas Schwinge <thomas@codesourcery.com>
5606 * libgomp.h (gomp_copy_host2dev): Update prototype.
5607 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5608 argument to gomp_copy_host2dev (false).
5609 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5610 (copy_data): Don't free src.
5611 (queue_push_copy): Remove free_src handling.
5612 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5613 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5615 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5617 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5618 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
5619 data when true, and set up deferred freeing of temporary buffer.
5620 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5621 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5622 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5623 calls to gomp_copy_host2dev with appropriate ephemeral argument.
5624 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5627 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5628 Tom de Vries <tom@codesourcery.com>
5630 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5631 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5633 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5635 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5636 sequencing of 'async' data copying vs. profiling events.
5637 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5640 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5641 Julian Brown <julian@codesourcery.com>
5643 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5644 'async'/'wait' issue.
5645 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5646 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5647 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5649 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
5650 Joseph Myers <joseph@codesourcery.com>
5651 Cesar Philippidis <cesar@codesourcery.com>
5653 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5655 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5657 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5659 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5661 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
5664 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5665 '-Wno-error=array-bounds'.
5666 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5667 * libgomp.h [__AMDGCN__]: Likewise.
5669 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
5672 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5673 * libgomp.h [__AMDGCN__]: Likewise.
5675 2021-07-13 Jakub Jelinek <jakub@redhat.com>
5676 Florian Weimer <fweimer@redhat.com>
5678 * config/linux/sem.h: Don't include limits.h.
5679 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5680 * config/linux/affinity.c: Include limits.h.
5682 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5685 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5687 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5690 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5691 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5692 avoid disabling other offload targets.
5693 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5694 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5695 * testsuite/libgomp.c/target-44.c: Likewise.
5697 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5699 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5700 target has shared memory and disable some scalar pointer/allocatable
5701 checks if not as firstprivate does not work.
5703 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5706 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5707 Add "target offload_device_nonshared_as" condition for enabling test.
5709 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5711 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5712 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5713 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5714 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5716 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5718 PR middle-end/101167
5719 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5721 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5723 * hashtab.h (htab_clear): New function with initialization code
5724 factored out from...
5725 (htab_create): ...here, adjust to use htab_clear function.
5726 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5727 special refcount values, add comments.
5728 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5729 (REFCOUNT_LINK): Likewise.
5730 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5732 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5734 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5735 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5736 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5737 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5738 (struct splay_tree_key_s): Add structelem_refcount and
5739 structelem_refcount_ptr fields into a union with dynamic_refcount.
5741 (gomp_map_vars): Delete declaration.
5742 (gomp_map_vars_async): Likewise.
5743 (gomp_unmap_vars): Likewise.
5744 (gomp_unmap_vars_async): Likewise.
5745 (goacc_map_vars): New declaration.
5746 (goacc_unmap_vars): Likewise.
5747 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5748 (goacc_enter_datum): Likewise.
5749 (goacc_enter_data_internal): Likewise.
5750 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5751 and goacc_unmap_vars.
5752 (GOACC_data_start): Adjust to use goacc_map_vars.
5753 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5754 * target.c (hash_entry_type): New typedef.
5755 (htab_alloc): New function hook for hashtab.h.
5756 (htab_free): Likewise.
5757 (htab_hash): Likewise.
5758 (htab_eq): Likewise.
5759 (hashtab.h): Add file include.
5760 (gomp_increment_refcount): New function.
5761 (gomp_decrement_refcount): Likewise.
5762 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5763 gomp_increment_refcount.
5764 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5765 to gomp_map_vars_existing.
5766 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5767 variable to guard OpenMP specific paths, adjust calls to
5768 gomp_map_vars_existing, add structure element sibling splay_tree_key
5769 sequence creation code, adjust Fortran map case to avoid increment
5771 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5772 local refcount_set if caller passed in NULL, adjust call to
5773 gomp_map_vars_internal.
5774 (gomp_map_vars_async): Adjust and rename into...
5775 (goacc_map_vars): ...this new function, adjust call to
5776 gomp_map_vars_internal.
5777 (gomp_remove_splay_tree_key): New function with code factored out from
5778 gomp_remove_var_internal.
5779 (gomp_remove_var_internal): Add code to handle removing multiple
5780 splay_tree_key sequence for structure elements, adjust code to use
5781 gomp_remove_splay_tree_key for splay-tree key removal.
5782 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5783 gomp_decrement_refcount.
5784 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5785 local refcount_set if caller passed in NULL, adjust call to
5786 gomp_unmap_vars_internal.
5787 (gomp_unmap_vars_async): Adjust and rename into...
5788 (goacc_unmap_vars): ...this new function, adjust call to
5789 gomp_unmap_vars_internal.
5790 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5792 (GOMP_target_ext): Likewise.
5793 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5794 (GOMP_target_data): Likewise.
5795 (GOMP_target_data_ext): Likewise.
5796 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5797 (gomp_exit_data): Add refcount_set parameter, adjust to use
5798 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5800 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5801 gomp_map_vars and gomp_exit_data.
5802 (gomp_target_task_fn): Likewise.
5803 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5804 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5805 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5806 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5807 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5808 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5810 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5813 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5815 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5816 Thomas Schwinge <thomas@codesourcery.com>
5818 * libgomp.map (GOACC_2.0.2): New symbol version.
5819 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5820 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5822 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5823 Andrew Stubbs <ams@codesourcery.com>
5825 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5827 (GOACC_enter_exit_data): ... here.
5828 (GOACC_declare): Use it.
5830 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5832 * oacc-parallel.c (GOACC_declare): Move...
5833 * oacc-mem.c: ... here.
5834 * libgomp_g.h: Adjust.
5836 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5837 Thomas Schwinge <thomas@codesourcery.com>
5839 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5842 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5844 PR tree-optimization/100981
5845 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5846 dsdotr and dsdoti to 0.
5848 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5850 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5851 if atomic compare-and-swap is supported on 'int'.
5853 2021-06-09 Richard Biener <rguenther@suse.de>
5855 PR tree-optimization/100981
5856 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5858 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5860 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5862 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5864 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5865 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5867 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5869 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5870 '-DACC_MEM_SHARED=0'.
5871 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5872 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5873 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5874 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5875 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5876 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5877 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5878 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5879 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5880 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5881 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5882 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5883 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5884 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5885 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5886 'acc_device_radeon' testing.
5887 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5888 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5889 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5890 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5891 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5892 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5893 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5894 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5895 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5896 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5897 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5898 for non-'openacc_nvidia_accel_selected'.
5899 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5900 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5901 all implement this checking".
5902 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5903 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5904 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5905 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5906 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5908 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5910 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5911 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5913 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5915 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5916 for 'acc_device_radeon'.
5918 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5920 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5921 for non-'acc_device_nvidia'.
5923 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5925 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5926 'acc_device_radeon' testing.
5927 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5928 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5929 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5931 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5933 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5934 require 'openacc_nvidia_accel_selected'. Fix up for
5935 'ACC_DEVICE_TYPE_radeon'.
5937 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5939 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5940 'openacc_nvidia_accel_selected'.
5941 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5943 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5945 * testsuite/lib/libgomp.exp
5946 (check_effective_target_openacc_radeon_accel_selected):
5949 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5951 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5954 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5956 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5957 <acc_device_nvidia>: Update comment.
5959 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5961 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5963 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5965 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5966 check_effective_target_openacc_cublas,
5967 check_effective_target_openacc_cudart): New.
5968 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5969 target openacc_cublas.
5970 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5971 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5972 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5973 target openacc_cuda.
5974 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5975 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5976 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5977 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5978 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5979 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5980 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5981 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5982 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5983 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5984 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5985 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5986 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5987 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5988 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5989 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5990 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5991 targets openacc_cublas and openacc_cudart.
5992 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5993 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5994 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5995 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5996 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5997 Require effective target openacc_cudart.
5998 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5999 for effective target openacc_cuda and add && defined USE_CUDA_H to
6000 preprocessor conditionals. Guard -lcuda also on openacc_cuda
6003 2021-05-26 Jakub Jelinek <jakub@redhat.com>
6006 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
6007 GOMP_target_end_data, GOMP_target_update_ext,
6008 GOMP_target_enter_exit_data): New dummy entrypoints.
6009 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
6010 GOMP_target_end_data, GOMP_target_update_ext,
6011 GOMP_target_enter_exit_data): Likewise.
6012 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
6013 OMPFROM, OMPTO): Define.
6014 (main): Remove #pragma omp target teams around all the tests.
6015 * testsuite/libgomp.c-c++-common/target-41.c: New test.
6016 * testsuite/libgomp.c-c++-common/target-42.c: New test.
6018 2021-05-25 Jakub Jelinek <jakub@redhat.com>
6021 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
6023 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
6026 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
6027 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
6028 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
6030 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
6033 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
6034 uninteresting/varying diagnostics.
6036 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6039 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
6040 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6042 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6045 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
6047 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
6048 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
6049 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6051 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6053 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6055 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6057 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6059 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6061 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6063 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6065 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6067 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6069 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6071 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6073 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6075 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6077 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6079 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6081 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6083 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6085 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6087 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6089 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6091 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6092 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6093 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6094 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
6095 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6096 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6097 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6098 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6099 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6100 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6101 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6102 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6103 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6104 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6105 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6107 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
6109 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
6111 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6113 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
6114 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6116 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6117 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6118 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6119 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6120 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
6121 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6122 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6124 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6126 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6128 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6130 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6132 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6134 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6136 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6138 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6140 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6142 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6144 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6146 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6148 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6149 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6150 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6152 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6154 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6155 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6156 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6158 2021-05-21 Julian Brown <julian@codesourcery.com>
6159 Chung-Lin Tang <cltang@codesourcery.com>
6160 Thomas Schwinge <thomas@codesourcery.com>
6163 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
6165 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6167 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6170 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6172 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
6173 for nvptx offloading.
6175 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
6177 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
6179 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
6182 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
6184 2021-05-19 Julian Brown <julian@codesourcery.com>
6186 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
6188 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6190 * testsuite/lib/libgomp.exp
6191 (check_effective_target_offload_target_nvptx): Don't shadow global
6192 'offload_targets' variable.
6194 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6196 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
6197 '-latomic' to nvptx offloading compilation.
6198 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6200 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6202 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
6203 offloading compilation.
6205 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
6207 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
6208 if new tasks generated.
6209 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
6211 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
6213 * testsuite/libgomp.fortran/parallel-master.f90: New test.
6215 2021-05-13 Martin Liska <mliska@suse.cz>
6218 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
6219 * testsuite/libgomp.c/pr46032-2.c: Likewise.
6220 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
6221 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
6223 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
6225 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
6226 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
6228 2021-05-11 Jakub Jelinek <jakub@redhat.com>
6230 PR middle-end/100471
6231 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
6232 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
6234 * testsuite/libgomp.c/task-reduction-4.c: New test.
6236 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
6237 Tom de Vries <tdevries@suse.de>
6239 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
6240 complex/floating-point || + && reduction with 'omp target'.
6241 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6243 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
6245 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
6246 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
6247 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
6248 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
6250 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
6253 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
6254 declaration to scope of non-'depend'-guarded assignment to avoid races.
6256 2021-05-03 Tom de Vries <tdevries@suse.de>
6259 * testsuite/libgomp.c/target-44.c: New test.
6261 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
6263 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
6265 2021-04-29 Tom de Vries <tdevries@suse.de>
6267 * testsuite/libgomp.c/pr81778.c: New test.
6269 2021-04-29 Tom de Vries <tdevries@suse.de>
6272 * testsuite/libgomp.c/target-43.c: New file.
6274 2021-04-28 Jakub Jelinek <jakub@redhat.com>
6275 Tobias Burnus <tobias@codesourcery.com>
6277 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
6278 * target.c (gomp_load_plugin_for_device): If set and if a plugin
6279 can't be dlopened, silently assume it has no devices.
6280 * Makefile.in: Regenerate.
6281 * config.h.in: Regenerate.
6282 * configure: Regenerate.
6284 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
6286 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6287 Use [Ww]arning in dg-bogus as FE diagnostic and default
6288 diagnostic differ and the result depends on ENABLE_OFFLOAD.
6289 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6290 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6291 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6293 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
6295 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6296 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
6297 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6298 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6299 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6301 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6302 Nathan Sidwell <nathan@codesourcery.com>
6303 Tom de Vries <vries@codesourcery.com>
6304 Julian Brown <julian@codesourcery.com>
6305 Kwok Cheung Yeung <kcy@codesourcery.com>
6307 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
6308 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
6309 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6310 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6311 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6312 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6313 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
6315 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6316 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6317 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6318 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6320 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6321 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6323 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6324 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6325 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6326 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6327 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6328 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6330 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6331 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
6332 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6333 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6334 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6335 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
6336 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6337 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6338 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6339 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6340 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6342 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6344 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
6346 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6347 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6349 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6350 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
6351 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6352 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6353 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6354 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6355 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6357 2021-04-22 Richard Biener <rguenther@suse.de>
6359 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
6362 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6364 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
6365 omp_depend_kind instead of defining it as 16.
6367 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6369 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6370 New, based on check_effective_target_offload_target_nvptx.
6371 (check_effective_target_offload_target_nvptx): Call it.
6372 (check_effective_target_offload_target_amdgcn): New.
6373 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
6374 Require target offload_target_nvptx || offload_target_amdgcn.
6375 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
6376 * testsuite/libgomp.c/pr86416-1.c: Likewise.
6377 * testsuite/libgomp.c/pr86416-2.c: Likewise.
6379 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6381 * testsuite/libgomp.fortran/depobj-1.f90: New test.
6383 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
6385 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6386 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
6387 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6389 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6391 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6393 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
6396 * testsuite/lib/libgomp.exp
6397 (check_effective_target_offload_device_nvptx): New.
6398 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
6399 resolved, make sure that we exit quickly, with error status,
6401 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
6402 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6404 2021-04-14 Jakub Jelinek <jakub@redhat.com>
6407 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
6408 cp = omp_alloc with cp, p arguments instead of cq, q and call
6409 c_f_pointer after last cq = omp_alloc with cq, q.
6411 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
6414 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
6415 for loop with GT/GE condition.
6416 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6418 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
6423 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
6425 2021-04-09 Jakub Jelinek <jakub@redhat.com>
6428 * team.c (gomp_thread_start): Call pthread_setspecific for
6429 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
6430 has been initialized to avoid false positive warning.
6432 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
6435 * testsuite/lib/on_device_arch.c: Move to ...
6436 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
6437 * testsuite/libgomp.fortran/on_device_arch.c: New file;
6438 #include on_device_arch.h.
6439 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
6440 on_device_arch.h instead of using dg-additional-source.
6441 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6442 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
6443 on_device_arch.c without relative paths.
6445 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6447 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6448 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6449 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6450 * config.h.in: Regenerate.
6451 * configure: Likewise.
6453 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6456 * testsuite/lib/on_device_arch.c: New file.
6457 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6458 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6459 skip for nvptx offloading, with error status.
6460 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6462 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6464 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6465 OpenACC 'serial' construct diagnostic for nvptx offloading.
6467 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
6470 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6472 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
6475 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6477 2021-03-04 Jakub Jelinek <jakub@redhat.com>
6479 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6480 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6481 checking of -m32 or -mx32 options on the command line.
6482 * config.h.in: Regenerated.
6483 * configure: Regenerated.
6485 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
6487 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6488 support from the target.
6490 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6491 Jakub Jelinek <jakub@redhat.com>
6494 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6495 (struct gomp_task): Replace detach and completion_sem fields with
6496 union containing completion_sem and detach_team. Add deferred_p
6498 (struct gomp_team): Remove task_detach_queue.
6499 * task.c: Include assert.h.
6500 (gomp_init_task): Initialize deferred_p and completion_sem fields.
6501 Rearrange initialization order of fields.
6502 (task_fulfilled_p): Delete.
6503 (GOMP_task): Use address of task as the event handle. Remove
6504 initialization of detach field. Initialize deferred_p field.
6505 Use automatic local for completion_sem. Initialize detach_team field
6507 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6508 Set kind of suspended detach task to GOMP_TASK_DETACHED and
6509 decrement task_running_count. Move finish_cancelled block out of
6510 else branch. Relocate call to gomp_team_barrier_done.
6511 (GOMP_taskwait): Handle tasks with completion events that have not
6513 (GOMP_taskgroup_end): Likewise.
6514 (omp_fulfill_event): Use address of task as event handle. Post to
6515 completion_sem for undeferred tasks. Clear detach_team if task
6516 has not finished. For finished tasks, handle post-execution tasks,
6517 call gomp_team_barrier_wake if necessary, and free task.
6518 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6519 (free_team): Remove free of task_detach_queue.
6520 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6521 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6522 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6523 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6524 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6525 Change data-sharing of detach events on enclosing parallel to private.
6526 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
6528 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6529 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6530 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6531 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6532 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6533 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6534 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6535 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6536 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6537 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6538 Change data-sharing of detach events on enclosing parallel to private.
6539 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
6541 * testsuite/libgomp.fortran/task-detach-7.f90: New.
6542 * testsuite/libgomp.fortran/task-detach-8.f90: New.
6543 * testsuite/libgomp.fortran/task-detach-9.f90: New.
6544 * testsuite/libgomp.fortran/task-detach-10.f90: New.
6545 * testsuite/libgomp.fortran/task-detach-11.f90: New.
6547 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
6550 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6552 2021-02-17 Julian Brown <julian@codesourcery.com>
6554 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6557 2021-02-17 Julian Brown <julian@codesourcery.com>
6559 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6560 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6562 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6564 * config/linux/x86/futex.h (__futex_wait):
6565 Revert output type back to long.
6566 (__futex_wake): Ditto.
6567 (futex_wait): Update for revert.
6568 (futex_wake): Ditto.
6570 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6572 * config/linux/x86/futex.h (__futex_wait): New static inline
6573 wrapper function. Correct output type to int and
6574 timeout type to void *.
6575 (__futex_wake): New static inline wrapper function.
6576 Correct output type to int.
6577 (futex_wait): Use __futex_wait.
6578 (futex_wake): Use __futex_wake.
6580 2021-02-10 Julian Brown <julian@codesourcery.com>
6583 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6586 2021-02-04 Julian Brown <julian@codesourcery.com>
6588 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6590 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
6592 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6593 EF_AMDGPU_MACH_AMDGCN_GFX908.
6594 (gcn_gfx908_s): New constant string.
6595 (isa_hsa_name): Add gfx908.
6596 (isa_code): Add gfx908.
6598 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6600 * libgomp.texi (omp_fulfill_event): New entry.
6602 2021-01-20 Jakub Jelinek <jakub@redhat.com>
6604 * task.c (GOMP_task): Rename priority argument to priority_arg,
6605 add priority automatic variable and modify that variable. Instead of
6606 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6607 check flags for that bit.
6609 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
6612 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6614 2021-01-18 Andreas Schwab <schwab@suse.de>
6616 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6618 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6620 * config/rtems/sem.h (gomp_sem_getcount): New function.
6622 2021-01-18 Jakub Jelinek <jakub@redhat.com>
6624 * config/linux/sem.h (gomp_sem_getcount): New function.
6625 * config/posix/sem.h (gomp_sem_getcount): New function.
6626 * config/posix/sem.c (gomp_sem_getcount): New function.
6627 * config/accel/sem.h (gomp_sem_getcount): New function.
6628 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6629 (omp_fulfill_event): Likewise.
6631 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
6633 * fortran.c (omp_fulfill_event_): New.
6634 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6635 (struct gomp_team): Add task_detach_queue and task_detach_count
6637 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6638 * libgomp_g.h (GOMP_task): Add extra argument.
6639 * omp.h.in (enum omp_event_handle_t): New.
6640 (omp_fulfill_event): New.
6641 * omp_lib.f90.in (omp_event_handle_kind): New.
6642 (omp_fulfill_event): New.
6643 * omp_lib.h.in (omp_event_handle_kind): New.
6644 (omp_fulfill_event): Declare.
6645 * priority_queue.c (priority_tree_find): New.
6646 (priority_list_find): New.
6647 (priority_queue_find): New.
6648 * priority_queue.h (priority_queue_predicate): New.
6649 (priority_queue_find): New.
6650 * task.c (gomp_init_task): Initialize detach field.
6651 (task_fulfilled_p): New.
6652 (GOMP_task): Add detach argument. Ignore detach argument if
6653 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
6654 field. Copy address of completion_sem into detach argument and
6655 into the start of the data record. Wait for detach event if task
6657 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6658 Remove completed tasks and requeue dependent tasks.
6659 (omp_fulfill_event): New.
6660 * team.c (gomp_new_team): Initialize task_detach_queue and
6661 task_detach_count fields.
6662 (free_team): Free task_detach_queue field.
6663 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6664 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6665 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6666 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6667 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6668 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6669 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6670 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6671 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6672 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6673 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6674 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6676 2021-01-15 Jakub Jelinek <jakub@redhat.com>
6679 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6680 be added through preprocessor check on
6681 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6683 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
6686 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6688 * configure: Regenerate.
6689 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6692 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6694 * configure: Re-generate.
6696 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6698 * configure: Re-generate.
6700 2021-01-05 Julian Brown <julian@codesourcery.com>
6702 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6703 (struct ptx_device): Add omp_stacks struct.
6704 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6705 (nvptx_close_device): Free cached stacks block and mutex.
6706 (nvptx_stacks_free): New function.
6707 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6708 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6709 (nvptx_stacks_alloc): Rename to...
6710 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6711 size or smaller is required.
6712 (nvptx_stacks_free): Remove.
6713 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6714 during kernel execution.
6716 2021-01-01 Jakub Jelinek <jakub@redhat.com>
6718 * libgomp.texi: Bump @copying's copyright year.
6720 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6722 * libgomp.texi (Top): Avoid bad "up" link.
6724 2020-12-18 Jakub Jelinek <jakub@redhat.com>
6726 * testsuite/libgomp.c/task-6.c: New test.
6728 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
6730 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6731 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6733 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
6735 * testsuite/libgomp.fortran/scan-1.f90: New test.
6737 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6740 * configure: Regenerate.
6742 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
6744 * configure: Regenerate.
6746 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6748 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6749 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6751 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
6753 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6756 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
6758 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6759 (reserved): Delete unused define.
6761 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6763 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6764 Tcl 8.5-specific behavior.
6765 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6767 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6769 * env.c (gomp_global_icv): Remove nest_var field. Add
6770 max_active_levels_var field.
6771 (gomp_max_active_levels_var): Remove.
6772 (parse_boolean): Return true on success.
6773 (handle_omp_display_env): Express OMP_NESTED in terms of
6774 max_active_levels_var. Change format specifier for
6775 max_active_levels_var.
6776 (initialize_env): Set max_active_levels_var from
6777 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6779 * icv.c (omp_set_nested): Express in terms of
6780 max_active_levels_var.
6781 (omp_get_nested): Likewise.
6782 (omp_set_max_active_levels): Use max_active_levels_var field instead
6783 of gomp_max_active_levels_var.
6784 (omp_get_max_active_levels): Likewise.
6785 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6786 max_active_levels_var field.
6787 (gomp_supported_active_levels): Set to UCHAR_MAX.
6788 (gomp_max_active_levels_var): Delete.
6789 * libgomp.texi (omp_get_nested): Update documentation.
6790 (omp_set_nested): Likewise.
6791 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6792 (OMP_NESTED): Likewise.
6793 (OMP_NUM_THREADS): Likewise.
6794 (OMP_PROC_BIND): Likewise.
6795 * parallel.c (gomp_resolve_num_threads): Replace reference
6796 to nest_var with max_active_levels_var. Use max_active_levels_var
6797 field instead of gomp_max_active_levels_var.
6799 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
6801 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6802 nvptx_usleep; use also for device={arch(gcn)}.
6804 2020-11-14 Jakub Jelinek <jakub@redhat.com>
6806 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6807 (foo): Add tests for non-VLA private and firstprivate clauses on
6809 (bar): Likewise. Remove taking of address from private/firstprivate
6811 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6812 (foo): Add p, q, px and s arguments. Add tests for array reductions
6813 and for non-VLA private and firstprivate clauses on omp task.
6815 (main): Adjust foo caller. Don't call bar.
6817 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6818 Thomas Schwinge <thomas@codesourcery.com>
6820 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6822 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6824 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6826 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6827 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6829 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6830 Thomas Schwinge <thomas@codesourcery.com>
6833 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6835 2020-11-13 Jakub Jelinek <jakub@redhat.com>
6837 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6838 for array reductions.
6839 (main): Adjust foo callers.
6841 2020-11-12 Jakub Jelinek <jakub@redhat.com>
6843 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6844 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6845 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6846 * allocator.c (omp_aligned_alloc): New for now static function,
6847 add alignment argument and handle it.
6848 (omp_alloc): Reimplement using omp_aligned_alloc.
6849 (GOMP_alloc, GOMP_free): New functions.
6850 (omp_free): Add ialias.
6851 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6852 * testsuite/libgomp.c++/allocate-1.C: New test.
6854 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6857 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6859 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6861 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6863 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6864 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6865 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6866 (goacc_enter_data_internal): Likewise.
6867 * target.c (gomp_map_vars_internal):
6868 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6869 of gomp_attach_pointer for OpenMP cases.
6870 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6871 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6872 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6874 2020-11-05 Ulrich Drepper <drepper@redhat.com>
6875 Kwok Cheung Yeung <kcy@codesourcery.com>
6877 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6878 * Makefile.in: Regenerate.
6879 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6880 pragmas to ignore -Wdeprecated-declarations warnings.
6882 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6883 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6884 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6885 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6887 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6889 * testsuite/libgomp.c/affinity-1.c: Likewise.
6890 * testsuite/libgomp.c/affinity-2.c: Likewise.
6891 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6892 * testsuite/libgomp.c/lib-1.c: Likewise.
6893 * testsuite/libgomp.c/nested-1.c: Likewise.
6894 * testsuite/libgomp.c/nested-2.c: Likewise.
6895 * testsuite/libgomp.c/nested-3.c: Likewise.
6896 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6897 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6898 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6899 * testsuite/libgomp.c/pr35549.c: Likewise.
6900 * testsuite/libgomp.c/pr42942.c: Likewise.
6901 * testsuite/libgomp.c/pr61200.c: Likewise.
6902 * testsuite/libgomp.c/sort-1.c: Likewise.
6903 * testsuite/libgomp.c/target-5.c: Likewise.
6904 * testsuite/libgomp.c/target-6.c: Likewise.
6905 * testsuite/libgomp.c/teams-1.c: Likewise.
6906 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6907 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6908 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6909 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6910 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6911 * testsuite/libgomp.fortran/lib2.f: Likewise.
6912 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6913 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6915 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6918 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6919 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6920 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6922 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6926 * testsuite/lib/libgomp.exp (libgomp_init): Set
6927 'gcc_warning_prefix', 'gcc_error_prefix'.
6929 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6931 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6932 even in field_tgt_clear initializer.
6934 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6936 * testsuite/libgomp.c/target-42.c: New test.
6938 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6939 Tom de Vries <tdevries@suse.de>
6942 * testsuite/libgomp.c/usleep.h: New file.
6943 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6944 (main): Use tgt_usleep instead of usleep.
6945 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6946 (main): Use tgt_usleep instead of usleep.
6948 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6951 * testsuite/libgomp.c/declare-variant-1.c: New test.
6953 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6955 * testsuite/libgomp.c/target-41.c: New test.
6957 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6959 * icv.c (omp_get_initial_device): Remove including corresponding
6961 * icv-device.c (omp_get_initial_device): New function. Return
6962 gomp_get_num_devices (). Add ialias.
6963 * target.c (resolve_device): Don't fail with
6964 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6965 gomp_get_num_devices ().
6966 (omp_target_alloc, omp_target_free, omp_target_is_present,
6967 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6968 omp_target_disassociate_ptr, omp_pause_resource): Use
6969 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6970 first use in the functions, in uses dominated by the
6971 gomp_get_num_devices call use num_devices_openmp instead.
6972 * libgomp.texi (omp_get_initial_device): Document.
6973 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6975 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6976 * testsuite/libgomp.c/target-40.c: New test.
6978 2020-10-21 Jakub Jelinek <jakub@redhat.com>
6980 * env.c (parse_target_offload): Change new_offload var type to int,
6981 preinitialize to -1, remove found var and test new_offload != -1
6984 2020-10-20 Jakub Jelinek <jakub@redhat.com>
6986 * target.c (gomp_target_init): Inside of the function, use automatic
6987 variables corresponding to num_devices, num_devices_openmp and devices
6988 global variables and update the globals only at the end of the
6991 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6993 * env.c (gomp_target_offload_var): New.
6994 (parse_target_offload): New.
6995 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6996 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6997 * libgomp.h (gomp_target_offload_t): New.
6998 (gomp_target_offload_var): New.
6999 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
7000 * target.c (resolve_device): Generate error if device not found and
7001 offloading is mandatory.
7002 (gomp_target_fallback): Generate error if offloading is mandatory.
7003 (GOMP_target): Add argument in call to gomp_target_fallback.
7004 (GOMP_target_ext): Likewise.
7005 (gomp_target_data_fallback): Generate error if offloading is mandatory.
7006 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
7007 (GOMP_target_data_ext): Likewise.
7008 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
7009 (gomp_target_init): Return early if offloading is disabled.
7011 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
7013 * libgomp.texi (omp_get_max_active_levels): Modify description.
7014 (omp_get_supported_active_levels): Make descriptions consistent.
7016 2020-10-14 Jakub Jelinek <jakub@redhat.com>
7018 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
7020 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
7022 * env.c (gomp_max_active_levels_var): Initialize to
7023 gomp_supported_active_levels.
7024 (initialize_env): Limit gomp_max_active_levels_var to be at most
7025 equal to gomp_supported_active_levels.
7026 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
7027 (omp_get_supported_active_levels_): New.
7028 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
7029 to at most equal to gomp_supported_active_levels.
7030 (omp_get_supported_active_levels): New.
7031 * libgomp.h (gomp_supported_active_levels): New.
7032 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
7033 omp_get_supported_active_levels_.
7034 * libgomp.texi (omp_get_supported_active_levels): New.
7035 (omp_set_max_active_levels): Update. Add reference to
7036 omp_get_supported_active_levels.
7037 * omp.h.in (omp_get_supported_active_levels): New.
7038 * omp_lib.f90.in (omp_get_supported_active_levels): New.
7039 * omp_lib.h.in (omp_get_supported_active_levels): New.
7040 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
7041 against omp_get_supported_active_levels.
7042 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
7044 2020-10-11 Clement Chigot <clement.chigot@atos.net>
7046 * config/t-aix: Delete and recreate libgomp before creating
7049 2020-10-08 Tom de Vries <tdevries@suse.de>
7052 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
7055 2020-10-06 Tom de Vries <tdevries@suse.de>
7057 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
7059 2020-10-06 Tom de Vries <tdevries@suse.de>
7062 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
7064 2020-10-05 Tom de Vries <tdevries@suse.de>
7067 * testsuite/libgomp.fortran/pr95654.f90: New test.
7069 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
7071 * Makefile.in: Regenerate with automake 1.15.1.
7072 * aclocal.m4: Likewise.
7073 * configure: Likewise.
7074 * testsuite/Makefile.in: Likewise.
7076 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
7078 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
7081 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
7083 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
7085 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
7087 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
7088 total number of threads is one.
7089 (gomp_team_barrier_wake): Likewise.
7090 (gomp_team_barrier_wait_end): Likewise.
7091 (gomp_team_barrier_wait_cancel_end): Likewise.
7092 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
7093 (gomp_team_barrier_wake): Likewise.
7094 (gomp_team_barrier_wait_end): Likewise.
7095 (gomp_team_barrier_wait_cancel_end): Likewise.
7096 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
7098 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
7101 * testsuite/libgomp.c++/pr96390.C: New test.
7102 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
7104 2020-09-27 Clement Chigot <clement.chigot@atos.net>
7106 * config/t-aix: Use $(AR) without -X32_64.
7108 2020-09-25 Jakub Jelinek <jakub@redhat.com>
7110 * testsuite/libgomp.c/loop-25.c: New test.
7112 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
7115 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
7117 2020-09-22 Tom de Vries <tdevries@suse.de>
7119 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
7122 2020-09-16 Nathan Sidwell <nathan@acm.org>
7124 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
7126 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
7129 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
7131 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
7134 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
7135 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
7136 (gomp_map_vars_existing): Update call to it.
7137 (gomp_map_fields_existing): Likewise
7138 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
7139 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
7141 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
7143 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
7144 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
7146 2020-09-14 Tom de Vries <tdevries@suse.de>
7148 * config/nvptx/atomic.c: New file. Add
7149 __sync_val_compare_and_swap_16.
7150 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
7151 target offload_target_nvptx.
7153 2020-09-08 Julian Brown <julian@codesourcery.com>
7155 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
7156 iteration-ordering assumptions.
7158 2020-09-08 Julian Brown <julian@codesourcery.com>
7160 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
7161 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7163 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
7165 * plugin/plugin-nvptx.c (nvptx_free):
7166 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
7167 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
7170 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
7172 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
7174 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
7176 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
7178 2020-08-13 Jakub Jelinek <jakub@redhat.com>
7180 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
7181 * testsuite/libgomp.c/loop-23.c (main): Likewise.
7182 * testsuite/libgomp.c/loop-24.c: New test.
7184 2020-08-08 Jakub Jelinek <jakub@redhat.com>
7185 Tobias Burnus <tobias@codesourcery.com>
7188 * testsuite/libgomp.fortran/pr93553.f90: New test.
7190 2020-08-05 Jakub Jelinek <jakub@redhat.com>
7192 * testsuite/libgomp.c/loop-22.c: New test.
7193 * testsuite/libgomp.c/loop-23.c: New test.
7195 2020-08-05 Jakub Jelinek <jakub@redhat.com>
7198 * testsuite/libgomp.c/teams-3.c: New test.
7199 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
7201 (N(test)): Use it before all N(f*) calls.
7202 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
7203 (main): Don't call all test_* functions from within
7204 #pragma omp teams reduction(|:err), call them directly.
7206 2020-08-04 Tom de Vries <tdevries@suse.de>
7209 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
7210 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
7212 2020-08-03 Julian Brown <julian@codesourcery.com>
7213 Thomas Schwinge <thomas@codesourcery.com>
7215 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
7216 shared-memory devices. Extend with further checking.
7218 2020-08-03 Martin Jambor <mjambor@suse.cz>
7220 * plugin/Makefrag.am: Remove configuration of HSA plugin.
7221 * aclocal.m4: Regenerated.
7222 * Makefile.in: Regenerated.
7223 * config.h.in: Regenerated.
7224 * configure: Regenerated.
7225 * plugin/configfrag.ac: Likewise.
7226 * plugin/hsa_ext_finalize.h: Removed.
7227 * plugin/plugin-hsa.c: Likewise.
7228 * testsuite/Makefile.in: Regenerated.
7229 * testsuite/lib/libgomp.exp
7230 (offload_target_to_openacc_device_type): Remove hsa case.
7231 (check_effective_target_hsa_offloading_selected_nocache): Removed
7232 (check_effective_target_hsa_offloading_selected): Likewise.
7233 (libgomp_init): Do not add -Wno-hsa to additional_flags.
7234 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
7235 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7236 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
7237 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7238 * testsuite/libgomp.hsa.c/c.exp: Likewise.
7239 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7240 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
7241 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7242 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7243 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7244 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7245 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7246 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7247 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7248 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7249 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7250 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
7251 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7252 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
7253 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7254 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7255 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
7256 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7257 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7259 2020-07-27 Julian Brown <julian@codesourcery.com>
7260 Thomas Schwinge <thomas@codesourcery.com>
7262 * libgomp.h (struct target_var_desc): Rename do_detach field to
7264 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
7265 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
7266 (goacc_enter_data_internal): Don't affect reference counts
7267 for attach mappings.
7268 (goacc_exit_data_internal): Don't affect reference counts for detach
7270 * target.c (gomp_map_vars_existing): Don't affect reference counts for
7272 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
7273 mark attach mappings.
7274 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
7275 reference count for attach mappings.
7276 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
7277 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7278 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7279 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
7281 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
7282 gracefully in no-finalize mode.
7283 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
7285 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
7287 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
7289 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7290 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7292 2020-07-23 Julian Brown <julian@codesourcery.com>
7293 Thomas Schwinge <thomas@codesourcery.com>
7295 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
7296 finalization for detach operation.
7297 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
7300 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
7302 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
7303 * libgomp_f.h.in (omp_check_defines): Check whether
7304 sizeof of determined Fortran kind and C typedef match.
7305 * omp_lib.f90.in: Add omp_depened_kind.
7306 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
7307 * configure: Regenerate.
7308 * Makefile.in: Regenerate.
7309 * testsuite/Makefile.in: Regenerate.
7311 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
7313 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
7314 gcc/testsuite/c-c++-common/gomp/.
7315 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
7316 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
7317 from gcc/testsuite/gfortran.dg/gomp/.
7318 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
7320 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
7322 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
7323 * omp_lib.h.in: Likewise.
7325 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
7328 * testsuite/libgomp.c/pr95620.c: New test.
7330 2020-07-16 Julian Brown <julian@codesourcery.com>
7331 Thomas Schwinge <thomas@codesourcery.com>
7333 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
7334 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
7336 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7338 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
7339 avoid conversion on 32bit systems from 32bit to 64bit due
7340 to -fdefault-integer-8.
7342 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7344 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
7345 variables; add character(kind=4) tests; update TODO comment.
7347 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7349 * allocator.c: Add ialias for omp_init_allocator and
7350 omp_destroy_allocator.
7351 * configure.ac: Set INTPTR_T_KIND.
7352 * configure: Regenerate.
7353 * Makefile.in: Regenerate.
7354 * testsuite/Makefile.in: Regenerate.
7355 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
7356 omp_set_default_allocator_, omp_get_default_allocator_): New
7357 functions and ialias_redirect.
7358 * icv.c: Add ialias for omp_set_default_allocator and
7359 omp_get_default_allocator.
7360 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
7361 omp_destroy_allocator_, omp_set_default_allocator_ and
7362 omp_get_default_allocator_.
7363 * omp_lib.f90.in: Add allocator traits parameters, declare
7364 allocator routines and add related kind parameters.
7365 * omp_lib.h.in: Likewise.
7366 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
7367 * testsuite/libgomp.fortran/alloc-1.F90: New test.
7368 * testsuite/libgomp.fortran/alloc-2.F90: New test.
7369 * testsuite/libgomp.fortran/alloc-3.F: New test.
7370 * testsuite/libgomp.fortran/alloc-4.f90: New test.
7371 * testsuite/libgomp.fortran/alloc-5.f90: New test.
7373 2020-07-14 Tom de Vries <tom@codesourcery.com>
7374 Cesar Philippidis <cesar@codesourcery.com>
7375 Thomas Schwinge <thomas@codesourcery.com>
7376 Kwok Cheung Yeung <kcy@codesourcery.com>
7378 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
7380 (acc_init_1): Set acc_init_thread to pthread_self (). Set
7381 acc_init_state to initializing at the start, and to initialized at the
7383 (self_initializing_p): New function.
7384 (acc_get_device_type): Return acc_device_none if called by thread that
7385 is currently executing acc_init_1.
7386 * libgomp.texi (acc_get_device_type): Update documentation.
7387 (Implementation Status and Implementation-Defined Behavior): Likewise.
7388 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
7390 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
7392 * config/t-aix: Set BITS from compiler cpp macro.
7394 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
7396 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
7398 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
7401 * testsuite/libgomp.fortran/target-map-1.f90: New test.
7403 2020-07-14 Jakub Jelinek <jakub@redhat.com>
7405 * testsuite/libgomp.c/loop-21.c: New test.
7407 2020-07-13 Julian Brown <julian@codesourcery.com>
7408 Thomas Schwinge <thomas@codesourcery.com>
7410 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
7412 2020-07-10 Julian Brown <julian@codesourcery.com>
7413 Thomas Schwinge <thomas@codesourcery.com>
7415 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
7417 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7418 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
7420 (acc_unmap_data): Update comment.
7421 (goacc_map_var_existing, goacc_enter_datum): Adjust for
7422 dynamic_refcount semantics.
7423 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
7424 Adjust for dynamic_refcount semantics.
7425 (goacc_enter_data_internal): Implement "present" case of dynamic
7426 memory-map handling here. Update "non-present" case for
7427 dynamic_refcount semantics.
7428 (goacc_exit_data_internal): Use goacc_exit_datum_1.
7429 * target.c (gomp_map_vars_internal): Remove
7430 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
7432 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
7433 (gomp_load_image_to_device): Substitute dynamic_refcount for
7435 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
7436 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
7437 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
7438 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
7439 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
7441 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
7443 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7445 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7446 Remove stale comment.
7447 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7448 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7449 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7450 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7451 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7452 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7454 2020-07-10 Julian Brown <julian@codesourcery.com>
7455 Thomas Schwinge <thomas@codesourcery.com>
7457 * oacc-mem.c (goacc_map_var_existing): New function.
7458 (goacc_enter_datum): Use above function.
7459 (goacc_exit_datum_1): New function.
7460 (goacc_exit_datum): Use above function.
7462 2020-07-09 Julian Brown <julian@codesourcery.com>
7463 Thomas Schwinge <thomas@codesourcery.com>
7466 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7467 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7469 2020-07-09 Julian Brown <julian@codesourcery.com>
7471 * oacc-mem.c (find_group_last): Group data-movement clauses
7472 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7473 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
7475 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7477 * testsuite/libgomp.c/loop-19.c: New test.
7478 * testsuite/libgomp.c/loop-20.c: New test.
7480 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7482 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7483 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
7484 it. Remove __omp_alloctrait_value_max__.
7485 * allocator.c (omp_init_allocator): Handle omp_atv_default for
7486 omp_atk_alignment and omp_atk_pool_size.
7488 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7490 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7491 behavior for 'GOMP_MAP_FORCE_FROM'.
7492 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7494 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7496 * oacc-mem.c (goacc_exit_data_internal): Remove
7497 'GOMP_MAP_ALWAYS_FROM' handling.
7499 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7501 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7502 'scan-assembler' with 'scan-offload-rtl'.
7503 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7504 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7505 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7506 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7508 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7510 * target.c (gomp_map_vars_existing): Assert 'kind !=
7512 (gomp_map_vars_internal): Clean up.
7514 2020-06-27 Jakub Jelinek <jakub@redhat.com>
7516 * testsuite/libgomp.c/loop-17.c: New test.
7517 * testsuite/libgomp.c/loop-18.c: New test.
7519 2020-06-26 Marek Polacek <polacek@redhat.com>
7521 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7523 2020-06-23 Alexandre Oliva <oliva@adacore.com>
7525 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7526 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7528 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
7530 * Makefile.am: Use -include.
7531 * Makefile.in: Regenerate.
7533 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
7535 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7536 * Makefile.in: Regenerate
7537 * configure.ac (tmake_file): Substitute.
7538 * configure: Regenerate.
7539 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7540 * config/t-aix: New file.
7542 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
7545 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7548 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
7550 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7551 variant for HSA_RUNTIME_LIB name.
7552 (find_executable_symbol_1): Delete.
7553 (find_executable_symbol): Delete.
7554 (init_kernel_properties): Add ".kd" suffix to symbol names.
7555 (find_load_offset): Delete.
7556 (create_and_finalize_hsa_program): Remove relocation handling.
7558 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
7560 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7562 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
7566 * testsuite/libgomp.fortran/target-var.f90: New test.
7568 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7569 Julian Brown <julian@codesourcery.com>
7571 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7574 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7575 Julian Brown <julian@codesourcery.com>
7577 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7580 2020-06-05 Julian Brown <julian@codesourcery.com>
7582 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7583 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7585 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7587 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7588 Evaluate 'copyfrom' individually for each entry.
7589 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7591 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7593 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7594 Evaluate 'finalize' individually for each entry.
7595 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7596 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7599 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7601 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7603 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7605 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7606 Julian Brown <julian@codesourcery.com>
7608 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7610 (acc_unmap_data, goacc_exit_data_internal): Restore
7611 'is_tgt_unmapped' checking.
7612 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7614 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7615 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7616 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7617 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7618 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7619 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7621 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7622 Julian Brown <julian@codesourcery.com>
7624 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7626 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7629 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7631 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7634 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7637 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7638 Julian Brown <julian@codesourcery.com>
7640 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7642 (acc_map_data): Clean up accordingly.
7644 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7646 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7647 of over-eager 'finalize' clause.
7648 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7650 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7651 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7652 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7653 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7654 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7655 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7656 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7657 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7659 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7661 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7663 2020-06-04 Julian Brown <julian@codesourcery.com>
7665 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7667 (goacc_detach_internal): Likewise.
7669 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7671 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7673 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7674 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7675 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7676 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7677 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7679 2020-06-02 Jakub Jelinek <jakub@redhat.com>
7681 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7684 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7686 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7688 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7690 * allocator.c (omp_alloc): For size == 0, return NULL early.
7692 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
7695 * configure: Regenerated.
7697 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7700 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7702 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7704 * omp.h.in (omp_uintptr_t): New typedef.
7705 (__GOMP_UINTPTR_T_ENUM): Define.
7706 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7707 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7708 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7709 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7710 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7711 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7712 (gomp_def_allocator): Declare.
7713 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7714 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7715 omp_alloc and omp_free.
7716 * team.c (gomp_team_start): Copy over ts.def_allocator.
7717 * env.c (gomp_def_allocator): New variable.
7718 (parse_wait_policy): Adjust function comment.
7719 (parse_allocator): New function.
7720 (handle_omp_display_env): Print OMP_ALLOCATOR.
7721 (initialize_env): Call parse_allocator.
7722 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7723 * allocator.c: New file.
7724 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7726 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7727 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7728 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7729 * Makefile.in: Regenerated.
7731 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7734 * configure: Regenerated.
7736 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7739 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7741 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7743 * configure: Regenerated.
7745 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7747 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7749 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
7752 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7753 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7754 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7755 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7756 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7757 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7758 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7760 2020-05-12 Jakub Jelinek <jakub@redhat.com>
7762 * testsuite/libgomp.c/target-39.c: New test.
7764 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7766 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7767 * openacc.f90 (acc_device_current): Likewise.
7768 * openacc.h (acc_device_current): Likewise.
7769 * openacc_lib.h (acc_device_current): Likewise.
7772 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7773 'dg-allow-blank-lines-in-output'.
7775 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7776 * testsuite/lib/libgomp.exp
7777 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7778 'radeon'. Adjust all users.
7779 (check_effective_target_openacc_amdgcn_accel_present): Rename
7781 (check_effective_target_openacc_radeon_accel_present): ... this.
7783 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7784 (check_effective_target_openacc_radeon_accel_selected): ... this.
7787 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7790 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
7794 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7796 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7797 hsa_agent_iterate_regions.
7799 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7802 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7805 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
7808 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7811 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
7814 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7816 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7819 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7821 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7823 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7825 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7827 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7829 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7831 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7833 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7835 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7837 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7839 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7841 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7843 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7845 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7847 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7849 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7851 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7853 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7855 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7857 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7859 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7861 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7863 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7865 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7867 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7869 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7871 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7873 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7875 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7877 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7879 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7881 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7884 2020-04-10 Julian Brown <julian@codesourcery.com>
7885 Thomas Schwinge <thomas@codesourcery.com>
7888 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7890 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7892 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7894 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7896 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7898 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7900 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7902 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7904 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7906 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7908 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7910 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7912 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7914 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7916 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7918 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7921 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7923 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7926 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7929 * libgomp.oacc-c++/declare-pr94120.C: New.
7931 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7933 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7935 * configure: Regenerate.
7936 * testsuite/libgomp-site-extra.exp.in: New file.
7937 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7939 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7941 * testsuite/Makefile.in: Regenerate.
7943 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7945 PR tree-optimization/89713
7947 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7949 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7951 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7953 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7954 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7956 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7959 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7961 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7964 * target.c (gomp_load_image_to_device): Fix link
7967 2020-03-19 Jakub Jelinek <jakub@redhat.com>
7970 * testsuite/libgomp.c++/pr93931.C: New test.
7972 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
7974 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7975 dg-allow-blank-lines-in-output.
7977 2020-03-18 Julian Brown <julian@codesourcery.com>
7978 Tobias Burnus <tobias@codesourcery.com>
7980 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7981 it work concurrently.
7983 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
7985 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7986 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7987 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7989 2020-03-14 Jakub Jelinek <jakub@redhat.com>
7992 * testsuite/libgomp.c/pr93566.c: New test.
7994 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
7996 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7997 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7998 integer(acc_device_property) for the type of the return value of
8001 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
8003 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
8004 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
8005 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
8006 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
8007 (acc_set_device_num): Fix Fortran argument name, use same name for C.
8008 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
8009 corrections; add note about the previous interface and named constant.
8010 (OpenACC library and environment variables): Fix two typos.
8011 * openacc.f90: Use for all procedures the argument names from the spec
8012 as for …_h they are user visible.
8013 (openacc_kinds): Rename acc_device_property to
8014 acc_device_property_kinds and change value to int32 ; and update users.
8015 Re-add acc_device_property for for backward compatibility.
8016 (acc_get_property_string_h): Clean up as acc_device_property_kind
8018 (acc_get_property_h): Likewise and return c_size_t instead of
8019 acc_device_property.
8020 (openacc): Also export acc_device_property_kinds.
8021 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
8022 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
8023 handling; check against /= 0 instead of == 1 to match C.
8024 * openacc_lib.h: Use for all procedures the argument names from the spec
8025 as for …_h they are user visible. Place !GCC$ into the first column to
8026 be active also for fixed-form souce form.
8027 (acc_device_current, acc_device_property_kind, acc_device_property,
8028 acc_property_memory, acc_property_free_memory, acc_property_name,
8029 acc_property_vendor, acc_property_driver): New named constants.
8030 (acc_get_property, acc_get_property_string): New generic interface.
8032 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
8035 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
8036 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
8038 (gomp_target_task_fn): Assert "devicep->async_run_func".
8039 (clear_unsupported_flags): New function to remove unsupported flags
8040 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
8041 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
8042 * testsuite/libgomp.c/target-33.c:
8043 Remove xfail for offload_target_nvptx.
8044 * testsuite/libgomp.c/target-34.c: Likewise.
8046 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
8048 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
8049 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
8050 * testsuite/libgomp.c/target-34.c: Likewise.
8051 * testsuite/libgomp.c/target-link-1.c: Add xfail for
8052 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
8054 2020-02-09 Jakub Jelinek <jakub@redhat.com>
8056 * testsuite/libgomp.c/target-38.c: New test.
8058 2020-02-06 Jakub Jelinek <jakub@redhat.com>
8061 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
8063 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
8065 * testsuite/lib/libgomp.exp
8066 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
8067 and not as 'source' argument to libgomp_target_compile.
8069 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
8071 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
8072 (gcn_gfx801_s): Remove.
8073 (isa_hsa_name): Remove gfx801.
8074 (isa_gcc_name): Remove gfx801/carizzo.
8075 (isa_code): Remove gfx801.
8077 2020-02-03 Julian Brown <julian@codesourcery.com>
8078 Tobias Burnus <tobias@codesourcery.com>
8080 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
8081 and *_finalize variants; document acc_attach and acc_detach; update
8082 references from OpenACC 2.0 to 2.6.
8083 * openacc.f90 (openacc_version): Update to 201711.
8084 * openacc_lib.h (openacc_version): Update to 201711.
8085 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
8086 openacc_version to 201711.
8087 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8089 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
8091 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
8092 and vgpr_count fields.
8093 (struct kernel_info): Add a field for a hsa_kernel_description.
8094 (run_kernel): Reduce the number of threads/workers if the requested
8095 number would require too many VGPRs.
8096 (init_basic_kernel_info): Initialize description field with
8097 the hsa_kernel_description entry for the kernel.
8099 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
8102 * plugin/configfrag.ac (enable_offload_targets): Skip
8103 HSA and GCN plugin besides -m32 also for -mx32.
8104 * configure: Regenerate.
8106 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
8108 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
8110 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
8112 * plugin-gcn.c (struct agent_info): Add fields "name" and
8114 (GOMP_OFFLOAD_init_device): ... and init from here.
8115 (struct hsa_context_info): Add field "driver_version_s" ...
8116 (init_hsa_contest): ... and init from here.
8117 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
8119 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8120 Enable test execution for amdgcn and host offloading targets.
8121 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
8122 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8123 (expect_device_properties): Split function into ...
8124 (expect_device_string_properties): ... this new function ...
8125 (expect_device_memory): ... and this new function.
8126 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
8129 2020-01-28 Julian Brown <julian@codesourcery.com>
8131 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
8132 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
8133 component/non-component variable refs in a single directive.
8134 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
8136 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
8138 * configure.ac: Handle `--with-toolexeclibdir='.
8139 * Makefile.in: Regenerate.
8140 * aclocal.m4: Regenerate.
8141 * configure: Regenerate.
8142 * testsuite/Makefile.in: Regenerate.
8144 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
8146 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8147 (expect_device_properties): Remove "expected_free_mem" argument,
8148 change "expected_total_mem" argument type to size_t;
8149 change types of acc_get_property results to size_t,
8150 adapt format strings.
8151 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8152 Use %zu instead of %zd to print size_t values.
8153 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
8155 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
8156 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
8158 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
8160 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
8162 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
8165 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
8167 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
8168 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
8169 Adjust test dimensions for amdgcn.
8170 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
8171 gang/worker/vector expectations dynamically.
8172 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
8174 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
8175 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
8176 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
8177 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
8178 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
8179 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
8180 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
8181 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
8182 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
8183 (acc_gang): Recognise acc_device_radeon.
8184 (acc_worker): Likewise.
8185 (acc_vector): Likewise.
8186 (main): Set expectations for amdgcn.
8187 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
8188 (main): Adjust gang/worker/vector expectations dynamically.
8189 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
8190 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
8191 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
8192 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
8195 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
8197 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
8199 (openacc): Likewise.
8200 * openacc.f90 (openacc_kinds): Likewise.
8201 (openacc): Likewise.
8202 * openacc.h (acc_device_t): Likewise.
8203 * openacc_lib.h: Likewise.
8204 * testsuite/lib/libgomp.exp
8205 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
8206 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
8207 (cb_compute_construct_end): Likewise.
8208 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
8209 (cb_enqueue_launch_start): Likewise.
8210 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
8211 (cb_enter_data_end): Likewise.
8212 (cb_exit_data_start): Likewise.
8213 (cb_exit_data_end): Likewise.
8214 (cb_compute_construct_end): Likewise.
8215 (cb_enqueue_launch_start): Likewise.
8216 (cb_enqueue_launch_end): Likewise.
8217 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
8220 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
8222 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
8223 to use this instead of 'enum gomp_device_property'.
8224 (GOMP_OFFLOAD_get_property): Rename to...
8225 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
8226 * libgomp.h (struct gomp_device_descr): Move
8227 'GOMP_OFFLOAD_openacc_get_property'...
8228 (struct acc_dispatch_t): ... here. Adjust all users.
8229 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
8231 * target.c (gomp_map_vars_internal)
8232 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
8235 2020-01-10 Jakub Jelinek <jakub@redhat.com>
8238 * libgomp.h (gomp_print_string): Change return type from void to int.
8239 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
8240 not all characters have been written.
8242 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
8244 * libgomp.texi: Fix typos, use https.
8246 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
8248 * testsuite/libgomp.fortran/optional-map.f90: Add test for
8249 unallocated/disassociated actual arguments to nonallocatable/nonpointer
8250 dummy arguments; those are/shall be regarded as absent arguments.
8251 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8252 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
8254 2020-01-01 Jakub Jelinek <jakub@redhat.com>
8256 Update copyright years.
8258 * libgomp.texi: Bump @copying's copyright year.
8260 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
8263 * oacc-init.c (goacc_runtime_deinitialize): New function.
8265 2019-12-28 Jakub Jelinek <jakub@redhat.com>
8268 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
8269 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
8271 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
8272 Frederik Harwath <frederik@codesourcery.com>
8273 Thomas Schwinge <tschwinge@codesourcery.com>
8275 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
8276 * libgomp-plugin.h (gomp_device_property_value): New union.
8277 (gomp_device_property_value): New prototype.
8278 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
8280 (acc_device_property_t): New enum.
8281 (acc_get_property, acc_get_property_string): New prototypes.
8282 * oacc-init.c (acc_get_device_type): Also assert that result
8283 is not `acc_device_current'.
8284 (get_property_any, acc_get_property, acc_get_property_string):
8286 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
8287 `acc_property_memory', `acc_property_free_memory',
8288 `acc_property_name', `acc_property_vendor' and
8289 `acc_property_driver' constants. Add `acc_device_property' data
8291 (openacc_internal): Add `acc_get_property' and
8292 `acc_get_property_string' interfaces. Add `acc_get_property_h',
8293 `acc_get_property_string_h', `acc_get_property_l' and
8294 `acc_get_property_string_l'.
8295 * oacc-host.c (host_get_property): New function.
8296 (host_dispatch): Wire it.
8297 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
8298 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
8299 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
8300 * libgomp.texi (OpenACC Runtime Library Routines): Add
8302 (acc_get_property): New node.
8303 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
8305 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
8306 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
8307 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
8309 (GOMP_OFFLOAD_get_property): New function.
8310 (struct ptx_device): Add new field "name".
8311 (cuda_driver_version_s): Add new static variable ...
8312 (nvptx_init): ... and init from here.
8314 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
8315 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
8316 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
8317 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
8318 with test helper functions.
8320 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
8322 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
8324 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
8327 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
8329 * target.c (gomp_map_vars_internal): Restore 'omp declare target
8332 2019-12-19 Julian Brown <julian@codesourcery.com>
8334 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
8335 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
8336 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
8338 2019-12-19 Julian Brown <julian@codesourcery.com>
8339 Cesar Philippidis <cesar@codesourcery.com>
8341 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
8342 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
8343 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
8344 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
8345 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
8346 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
8347 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
8348 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
8349 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
8350 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
8351 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
8352 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
8353 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
8355 2019-12-19 Julian Brown <julian@codesourcery.com>
8357 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
8358 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
8359 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
8360 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
8361 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
8362 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
8363 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
8364 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
8365 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
8366 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
8367 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
8368 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
8370 2019-12-19 Julian Brown <julian@codesourcery.com>
8372 * libgomp.h (struct target_var_desc): Add do_detach flag.
8373 * oacc-init.c (acc_shutdown_1): Free aux block if present.
8374 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
8375 struct components. Tidy up and add some new checks.
8376 (goacc_enter_data_internal): Update call to find_group_last.
8377 (goacc_exit_data_internal): Support detach operations and
8379 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
8380 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
8381 attach/detach in enter/exit data detection code.
8382 * target.c (gomp_map_vars_existing): Initialise do_detach field of
8384 (gomp_map_vars_internal): Support attach.
8385 (gomp_unmap_vars_internal): Support detach.
8387 2019-12-19 Julian Brown <julian@codesourcery.com>
8388 Thomas Schwinge <thomas@codesourcery.com>
8390 * libgomp.h (struct splay_tree_aux): Add attach_count field.
8391 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
8392 * libgomp.map (OACC_2.6): New section. Add acc_attach,
8393 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
8394 acc_detach_finalize_async.
8395 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
8396 acc_detach, acc_detach_async, acc_detach_finalize,
8397 acc_detach_finalize_async): New functions.
8398 * openacc.h (acc_attach, acc_attach_async, acc_detach,
8399 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
8401 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
8402 (gomp_remove_var_internal): Free attachment counts if present.
8403 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
8404 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
8406 2019-12-19 Julian Brown <julian@codesourcery.com>
8407 Cesar Philippidis <cesar@codesourcery.com>
8409 * libgomp.h (gomp_map_val): Add prototype.
8410 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
8411 open-coding device-address calculation.
8412 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
8415 2019-12-19 Julian Brown <julian@codesourcery.com>
8417 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
8418 field for virtual_refcount.
8419 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8420 (gomp_free_memmap): Remove prototype.
8421 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
8422 instead of calling gomp_free_memmap.
8423 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
8425 (acc_unmap_data): Open code instead of forcing target_mem_desc's
8426 to_free field to NULL then calling gomp_unmap_vars. Handle
8427 REFCOUNT_INFINITY on target blocks.
8428 (goacc_enter_data): Rename to...
8429 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
8430 handling for mapping groups. Use virtual_refcount instead of
8431 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
8432 map_map_vars_async call. Re-do lookup for target pointer return value.
8433 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
8434 renamed goacc_enter_datum function.
8435 (goacc_exit_data): Rename to...
8436 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
8437 (acc_delete, acc_delete_async, acc_delete_finalize,
8438 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
8439 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
8440 goacc_exit_datum function.
8441 (gomp_acc_remove_pointer, find_pointer): Remove functions.
8442 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
8444 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8445 goacc_exit_data_internal helper functions.
8446 * target.c (gomp_map_vars_internal): Handle
8447 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
8449 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8450 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8451 virtual_refcount field instead of dynamic_refcount.
8452 (gomp_free_memmap): Remove function.
8453 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8454 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8455 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8457 2019-12-19 Julian Brown <julian@codesourcery.com>
8458 Thomas Schwinge <thomas@codesourcery.com>
8460 * libgomp.h (struct splay_tree_aux): New.
8461 (struct splay_tree_key_s): Replace link_key field with aux pointer.
8462 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8464 (gomp_remove_var_internal): Free aux block if present.
8465 (gomp_load_image_to_device): Zero-initialise aux field instead of
8467 (omp_target_associate_pointer): Zero-initialise aux field.
8469 2019-12-18 Jakub Jelinek <jakub@redhat.com>
8472 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8474 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8477 2019-12-19 Julian Brown <julian@codesourcery.com>
8478 Maciej W. Rozycki <macro@codesourcery.com>
8479 Tobias Burnus <tobias@codesourcery.com>
8480 Thomas Schwinge <thomas@codesourcery.com>
8482 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8483 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8484 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8485 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8486 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8487 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8488 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8489 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8490 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8492 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
8494 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8496 (goacc_insert_pointer): ... from here, "present" case.
8497 (goacc_insert_pointer): Inline function into...
8498 (GOACC_enter_exit_data): ... here, and simplify.
8500 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8502 (goacc_insert_pointer): ... from here, "not present" case.
8504 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
8507 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8508 'goacc_enter_data', 'goacc_exit_data'.
8510 * oacc-mem.c (delete_copyout): Refactor into...
8511 (goacc_exit_data): ... this. Adjust all users.
8513 * oacc-mem.c (present_create_copy): Refactor into...
8514 (goacc_enter_data): ... this. Adjust all users.
8516 * target.c (gomp_unmap_vars_internal): Add a safeguard to
8519 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8520 like 'GOMP_MAP_FROM'.
8525 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8527 (GOACC_enter_exit_data): Simplify accordingly.
8528 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8530 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8531 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8533 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8535 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8536 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8538 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8540 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8542 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8543 'finalize' handling.
8546 * oacc-mem.c (acc_map_data, present_create_copy)
8547 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8548 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8549 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8550 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8551 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8552 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8553 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8554 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8557 * target.c (gomp_unmap_tgt): Make it 'static'.
8558 * libgomp.h (gomp_unmap_tgt): Remove.
8560 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
8563 * testsuite/libgomp.c/pr86416-1.c: New.
8564 * testsuite/libgomp.c/pr86416-2.c: New.
8566 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
8568 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8569 all symbols as public except for the 'use …, only' imported symbol,
8571 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8572 all symbols from module openacc_kinds as PUBLIC
8573 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8575 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8577 2019-12-13 Julian Brown <julian@codesourcery.com>
8581 * libgomp.h (gomp_remove_var_async): Add prototype.
8582 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8584 * target.c (gomp_unref_tgt): Change return type to bool, indicating
8585 whether target_mem_desc was unmapped.
8586 (gomp_unref_tgt_void): New.
8587 (gomp_remove_var): Reimplement in terms of...
8588 (gomp_remove_var_internal): ...this new helper function.
8589 (gomp_remove_var_async): New, implemented using above helper function.
8590 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8593 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
8595 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8596 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8597 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8598 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8599 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8601 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8602 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8604 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
8606 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8607 as public except for the 'use …, only' imported symbol, which is
8609 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8610 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8611 attributes for acc_copyout_finalize and acc_delete_finalize.
8613 2019-12-11 Jakub Jelinek <jakub@redhat.com>
8616 * testsuite/libgomp.fortran/atomic1.f90: New test.
8618 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8621 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8622 reference counting for structured 'REFCOUNT_INFINITY'. Add some
8624 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8625 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8626 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8627 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8628 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8630 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8631 * oacc-mem.c: ... here.
8632 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8633 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8634 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8636 * libgomp_g.h: Update.
8638 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8639 * oacc-async.c: ... here.
8640 * oacc-int.h (goacc_wait): Declare.
8641 * libgomp_g.h: Update
8644 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8646 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8648 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8650 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8652 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8654 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8657 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8658 Julian Brown <julian@codesourcery.com>
8660 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8661 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8663 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8665 * omp_lib.h.in: Fix spelling of function declaration
8666 omp_get_cancell(l)ation.
8667 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8669 * env.c: Fix comment typos.
8670 * oacc-host.c: Likewise.
8671 * ordered.c: Likewise.
8674 * config/gcn/task.c: Likewise.
8675 * config/gcn/team.c: Likewise.
8676 * config/nvptx/task.c: Likewise.
8677 * config/nvptx/team.c: Likewise.
8678 * plugin/plugin-gcn.c: Likewise.
8679 * testsuite/libgomp.fortran/jacobi.f: Likewise.
8680 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8681 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8683 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8685 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8686 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8687 unnecessary 'dg-additional-options "-w"'.
8689 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8690 Julian Brown <julian@codesourcery.com>
8695 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8696 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8698 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8700 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8702 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8704 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8707 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8708 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8710 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8712 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8714 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8716 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8718 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8720 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8721 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8722 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8723 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8724 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8725 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8726 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8727 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8728 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8729 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8732 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8733 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8734 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8736 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8738 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8740 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8741 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8744 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8746 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8748 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8750 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8752 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8753 ... with their content moved into, and extended in this new file.
8754 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8756 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8758 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8760 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8763 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8766 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8768 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8770 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8772 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
8774 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8776 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8777 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8778 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8779 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8781 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8782 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8784 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8786 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8788 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
8789 Kwok Cheung Yeung <kcy@codesourcery.com>
8791 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8792 if input it a NULL pointer.
8793 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8794 diagnostic of NULL pointer.
8795 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8796 * testsuite/libgomp.fortran/optional-map.f90: New.
8797 * testsuite/libgomp.fortran/use_device_addr-1.f90
8798 (test_dummy_opt_callee_1_absent): New.
8799 (test_dummy_opt_call_1): Call it.
8800 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8801 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8802 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8803 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8804 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8805 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8806 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8807 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8808 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8809 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8810 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8811 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8812 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8813 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8814 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8815 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8817 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
8819 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8820 expect dg-output of 'Error termination.' for GCN.
8821 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8822 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8824 2019-12-04 Jakub Jelinek <jakub@redhat.com>
8827 * testsuite/libgomp.fortran/teams1.f90: New test.
8828 * testsuite/libgomp.fortran/teams2.f90: New test.
8830 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
8832 * oacc-init.c (acc_known_device_type): Add function.
8833 (unknown_device_type_error): Add function.
8834 (name_of_acc_device_t): Change to call unknown_device_type_error
8836 (resolve_device): Use acc_known_device_type.
8837 (acc_init): Fail if acc_device_t argument is not valid.
8838 (acc_shutdown): Likewise.
8839 (acc_get_num_devices): Likewise.
8840 (acc_set_device_type): Likewise.
8841 (acc_get_device_num): Likewise.
8842 (acc_set_device_num): Likewise.
8843 (acc_on_device): Add comment that argument validity is not checked.
8845 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
8847 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8849 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8850 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8851 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8852 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8853 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8855 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8858 * configure.tgt: Avoid IE tls on *-*-musl*.
8860 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
8862 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8863 adding a common-block test case.
8865 2019-11-29 Jakub Jelinek <jakub@redhat.com>
8868 * testsuite/libgomp.c++/udr-20.C: New test.
8869 * testsuite/libgomp.c++/udr-21.C: New test.
8871 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8873 * testsuite/lib/libgomp.exp
8874 (check_effective_target_offload_target_nvptx): New proc.
8875 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8877 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8878 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8879 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8881 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8883 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8884 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8885 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8886 * testsuite/libgomp.c/private-1.c: Likewise.
8887 * testsuite/libgomp.c/task-1.c: Likewise.
8888 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8890 2019-11-20 Julian Brown <julian@codesourcery.com>
8892 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8894 (queue_push_launch): Lock aq->mutex before calling
8895 wait_for_queue_nonfull.
8896 (queue_push_callback): Likewise.
8897 (queue_push_asyncwait): Likewise.
8898 (queue_push_placeholder): Likewise.
8900 2019-11-20 Julian Brown <julian@codesourcery.com>
8902 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8903 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8904 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8907 2019-11-20 Julian Brown <julian@codesourcery.com>
8911 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8912 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8913 in non-present/create case.
8914 (delete_copyout): Change error condition to fail only on copies outside
8915 of mapped block. Adjust error message accordingly.
8916 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8917 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8918 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8920 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8921 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8922 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8924 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8926 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8927 libatomic in build-tree testing.
8929 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8931 * testsuite/Makefile.in: Regenerate.
8933 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8935 * testsuite/libgomp.c/target-print-1.c: New file.
8936 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8937 * testsuite/libgomp.oacc-c/print-1.c: New file.
8938 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8940 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8941 Kwok Cheung Yeung <kcy@codesourcery.com>
8942 Julian Brown <julian@codesourcery.com>
8943 Tom de Vries <tom@codesourcery.com>
8945 * plugin/Makefrag.am: Add amdgcn plugin support.
8946 * plugin/configfrag.ac: Likewise.
8947 * plugin/plugin-gcn.c: New file.
8948 * configure: Regenerate.
8949 * Makefile.in: Regenerate.
8950 * testsuite/Makefile.in: Regenerate.
8952 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8954 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8955 and use team_malloc variants.
8956 (gomp_gcn_exit_kernel): Use team_free.
8957 * libgomp.h (TEAM_ARENA_SIZE): Define.
8958 (TEAM_ARENA_START): Define.
8959 (TEAM_ARENA_FREE): Define.
8960 (TEAM_ARENA_END): Define.
8961 (team_malloc): New function.
8962 (team_malloc_cleared): New function.
8963 (team_free): New function.
8964 * team.c (gomp_new_team): Initialize and use team_malloc.
8965 (free_team): Use team_free.
8966 (gomp_free_thread): Use team_free.
8967 (gomp_pause_host): Use team_free.
8968 * work.c (gomp_init_work_share): Use team_malloc.
8969 (gomp_fini_work_share): Use team_free.
8971 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8972 Kwok Cheung Yeung <kcy@codesourcery.com>
8973 Julian Brown <julian@codesourcery.com>
8974 Tom de Vries <tom@codesourcery.com>
8976 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8977 * Makefile.in: Regenerate.
8978 * config.h.in (PLUGIN_GCN): Add new undef.
8979 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8980 * config/gcn/affinity-fmt.c: New file.
8981 * config/gcn/bar.c: New file.
8982 * config/gcn/bar.h: New file.
8983 * config/gcn/doacross.h: New file.
8984 * config/gcn/icv-device.c: New file.
8985 * config/gcn/oacc-target.c: New file.
8986 * config/gcn/simple-bar.h: New file.
8987 * config/gcn/target.c: New file.
8988 * config/gcn/task.c: New file.
8989 * config/gcn/team.c: New file.
8990 * config/gcn/time.c: New file.
8991 * configure.ac: Add amdgcn*-*-*.
8992 * configure: Regenerate.
8993 * configure.tgt: Add amdgcn*-*-*.
8994 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8995 * libgomp.h (gcn_thrs): Add amdgcn variant.
8996 (set_gcn_thrs): Likewise.
8997 (gomp_thread): Likewise.
8998 * oacc-int.h (goacc_thread): Likewise.
8999 * oacc-target.c: New file.
9000 * openacc.f90 (acc_device_gcn): New parameter.
9001 * openacc.h (acc_device_t): Add acc_device_gcn.
9002 * team.c (gomp_free_pool_helper): Add amdgcn support.
9004 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
9005 Julian Brown <julian@codesourcery.com>
9007 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
9009 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
9011 * oacc-host.c (host_openacc_async_construct): Add device parameter.
9012 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
9015 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
9017 * configure.tgt (nvptx*-*-*): Add "accel" directory.
9018 * config/nvptx/libgomp-plugin.c: Move ...
9019 * config/accel/libgomp-plugin.c: ... to here.
9020 * config/nvptx/lock.c: Move ...
9021 * config/accel/lock.c: ... to here.
9022 * config/nvptx/mutex.c: Move ...
9023 * config/accel/mutex.c: ... to here.
9024 * config/nvptx/mutex.h: Move ...
9025 * config/accel/mutex.h: ... to here.
9026 * config/nvptx/oacc-async.c: Move ...
9027 * config/accel/oacc-async.c: ... to here.
9028 * config/nvptx/oacc-cuda.c: Move ...
9029 * config/accel/oacc-cuda.c: ... to here.
9030 * config/nvptx/oacc-host.c: Move ...
9031 * config/accel/oacc-host.c: ... to here.
9032 * config/nvptx/oacc-init.c: Move ...
9033 * config/accel/oacc-init.c: ... to here.
9034 * config/nvptx/oacc-mem.c: Move ...
9035 * config/accel/oacc-mem.c: ... to here.
9036 * config/nvptx/oacc-plugin.c: Move ...
9037 * config/accel/oacc-plugin.c: ... to here.
9038 * config/nvptx/omp-lock.h: Move ...
9039 * config/accel/omp-lock.h: ... to here.
9040 * config/nvptx/openacc.f90: Move ...
9041 * config/accel/openacc.f90: ... to here.
9042 * config/nvptx/pool.h: Move ...
9043 * config/accel/pool.h: ... to here.
9044 * config/nvptx/proc.c: Move ...
9045 * config/accel/proc.c: ... to here.
9046 * config/nvptx/ptrlock.c: Move ...
9047 * config/accel/ptrlock.c: ... to here.
9048 * config/nvptx/ptrlock.h: Move ...
9049 * config/accel/ptrlock.h: ... to here.
9050 * config/nvptx/sem.c: Move ...
9051 * config/accel/sem.c: ... to here.
9052 * config/nvptx/sem.h: Move ...
9053 * config/accel/sem.h: ... to here.
9054 * config/nvptx/thread-stacksize.h: Move ...
9055 * config/accel/thread-stacksize.h: ... to here.
9057 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
9058 Tobias Burnus <tobias@codesourcery.com>
9059 Frederik Harwath <frederik@codesourcery.com>
9060 Thomas Schwinge <thomas@codesourcery.com>
9063 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
9064 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
9065 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
9067 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
9068 Kwok Cheung Yeung <kcy@codesourcery.com>
9070 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
9071 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
9073 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
9075 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
9077 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
9079 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
9080 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
9082 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
9084 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
9085 Add expected warnings about missing reduction clauses.
9086 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
9088 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
9090 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
9093 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
9095 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
9096 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
9097 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
9098 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9099 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9100 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9102 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
9105 * testsuite/libgomp.fortran/allocatable2.f90: Use
9106 unique numbers with 'stop'.
9107 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9108 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9109 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
9110 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
9111 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
9113 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
9115 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
9116 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
9117 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
9118 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
9119 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
9120 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
9122 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9124 * testsuite/libgomp.fortran/target9.f90: New.
9126 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9128 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
9129 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
9130 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
9131 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
9132 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
9133 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
9134 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
9135 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
9136 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
9137 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
9138 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
9139 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
9140 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
9141 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
9142 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
9143 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
9144 * testsuite/libgomp.fortran/associate1.f90: Ditto.
9145 * testsuite/libgomp.fortran/associate2.f90: Ditto.
9146 * testsuite/libgomp.fortran/associate3.f90: Ditto.
9147 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
9148 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
9149 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
9150 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
9151 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
9152 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
9153 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
9154 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
9155 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
9156 * testsuite/libgomp.fortran/character1.f90: Ditto.
9157 * testsuite/libgomp.fortran/character2.f90: Ditto.
9158 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
9159 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
9160 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
9161 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
9162 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
9163 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
9164 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
9165 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
9166 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
9167 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
9168 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
9169 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
9170 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
9171 * testsuite/libgomp.fortran/do1.f90: Ditto.
9172 * testsuite/libgomp.fortran/do2.f90: Ditto.
9173 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
9174 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
9175 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
9176 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
9177 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
9178 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
9179 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
9180 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
9181 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
9182 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
9183 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
9184 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
9185 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
9186 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
9187 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
9188 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
9189 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
9190 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
9191 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
9192 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
9193 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
9194 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
9195 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
9196 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
9197 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
9198 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
9199 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
9200 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
9201 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
9202 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
9203 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
9204 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
9205 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
9206 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
9207 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
9208 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
9209 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
9210 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
9211 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
9212 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
9213 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
9214 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
9215 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
9216 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
9217 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
9218 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
9219 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
9220 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
9221 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
9222 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9223 * testsuite/libgomp.fortran/lib1.f90: Ditto.
9224 * testsuite/libgomp.fortran/lib4.f90: Ditto.
9225 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
9226 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
9227 * testsuite/libgomp.fortran/nested1.f90: Ditto.
9228 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
9229 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
9230 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
9231 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9232 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
9233 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
9234 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9235 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
9236 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
9237 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
9238 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
9239 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
9240 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
9241 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
9242 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9243 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
9244 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9245 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
9246 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
9247 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
9248 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
9249 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
9250 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
9251 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
9252 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9253 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
9254 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
9255 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
9256 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
9257 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
9258 * testsuite/libgomp.fortran/pr28390.f: Ditto.
9259 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
9260 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9261 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
9262 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
9263 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9264 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
9265 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
9266 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
9267 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
9268 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
9269 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
9270 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
9271 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
9272 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
9273 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
9274 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
9275 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
9276 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
9277 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
9278 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
9279 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
9280 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
9281 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
9282 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
9283 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
9284 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9285 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
9286 * testsuite/libgomp.fortran/reference1.f90: Ditto.
9287 * testsuite/libgomp.fortran/reference2.f90: Ditto.
9288 * testsuite/libgomp.fortran/retval1.f90: Ditto.
9289 * testsuite/libgomp.fortran/retval2.f90: Ditto.
9290 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
9291 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
9292 * testsuite/libgomp.fortran/simd1.f90: Ditto.
9293 * testsuite/libgomp.fortran/simd2.f90: Ditto.
9294 * testsuite/libgomp.fortran/simd3.f90: Ditto.
9295 * testsuite/libgomp.fortran/simd4.f90: Ditto.
9296 * testsuite/libgomp.fortran/simd5.f90: Ditto.
9297 * testsuite/libgomp.fortran/simd6.f90: Ditto.
9298 * testsuite/libgomp.fortran/simd7.f90: Ditto.
9299 * testsuite/libgomp.fortran/stack.f90: Ditto.
9300 * testsuite/libgomp.fortran/strassen.f90: Ditto.
9301 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
9302 * testsuite/libgomp.fortran/tabs2.f: Ditto.
9303 * testsuite/libgomp.fortran/target1.f90: Ditto.
9304 * testsuite/libgomp.fortran/target2.f90: Ditto.
9305 * testsuite/libgomp.fortran/target3.f90: Ditto.
9306 * testsuite/libgomp.fortran/target4.f90: Ditto.
9307 * testsuite/libgomp.fortran/target5.f90: Ditto.
9308 * testsuite/libgomp.fortran/target6.f90: Ditto.
9309 * testsuite/libgomp.fortran/target7.f90: Ditto.
9310 * testsuite/libgomp.fortran/target8.f90: Ditto.
9311 * testsuite/libgomp.fortran/task1.f90: Ditto.
9312 * testsuite/libgomp.fortran/task2.f90: Ditto.
9313 * testsuite/libgomp.fortran/task3.f90: Ditto.
9314 * testsuite/libgomp.fortran/task4.f90: Ditto.
9315 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9316 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9317 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9318 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9319 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9320 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
9321 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
9322 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
9323 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
9324 * testsuite/libgomp.fortran/udr1.f90: Ditto.
9325 * testsuite/libgomp.fortran/udr10.f90: Ditto.
9326 * testsuite/libgomp.fortran/udr11.f90: Ditto.
9327 * testsuite/libgomp.fortran/udr12.f90: Ditto.
9328 * testsuite/libgomp.fortran/udr13.f90: Ditto.
9329 * testsuite/libgomp.fortran/udr14.f90: Ditto.
9330 * testsuite/libgomp.fortran/udr15.f90: Ditto.
9331 * testsuite/libgomp.fortran/udr2.f90: Ditto.
9332 * testsuite/libgomp.fortran/udr3.f90: Ditto.
9333 * testsuite/libgomp.fortran/udr4.f90: Ditto.
9334 * testsuite/libgomp.fortran/udr5.f90: Ditto.
9335 * testsuite/libgomp.fortran/udr6.f90: Ditto.
9336 * testsuite/libgomp.fortran/udr7.f90: Ditto.
9337 * testsuite/libgomp.fortran/udr8.f90: Ditto.
9338 * testsuite/libgomp.fortran/udr9.f90: Ditto.
9339 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9340 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9341 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9342 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9343 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9344 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9345 * testsuite/libgomp.fortran/vla7.f90: Ditto.
9346 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9347 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9348 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9350 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9352 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
9353 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
9354 Ditto; add 'dg-do run' for torture testing.
9355 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
9356 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9357 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9358 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9359 * testsuite/libgomp.fortran/pr28390.f: Ditto.
9360 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9361 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
9362 * testsuite/libgomp.fortran/task2.f90: Ditto.
9363 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9364 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9365 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9366 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9367 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9368 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9370 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
9372 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
9373 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
9374 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
9375 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
9376 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
9377 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
9378 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
9379 Use 'stop' not abort().
9380 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
9381 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
9382 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
9383 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
9384 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
9385 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
9386 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
9387 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
9388 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
9389 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
9390 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
9391 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
9392 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
9393 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
9394 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
9395 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
9396 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9398 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9400 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9402 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9404 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9406 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
9408 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
9410 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
9412 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
9414 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
9416 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
9418 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
9420 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
9422 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
9424 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
9425 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
9426 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
9427 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
9428 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9429 Likewise and also add 'dg-do run'.
9430 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9433 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
9434 Tobias Burnus <tobias@codesourcery.com>
9436 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
9437 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
9438 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
9440 2019-10-14 Jakub Jelinek <jakub@redhat.com>
9443 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9446 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9448 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9449 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9451 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
9454 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9457 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
9460 * testsuite/libgomp.fortran/fortran.exp: Conditionally
9462 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9464 2019-10-09 Jakub Jelinek <jakub@redhat.com>
9467 * target.c (gomp_map_vars_internal): Readd the previous
9468 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9469 though do that just in the !not_found_cnt case.
9471 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
9473 * gfortran.dg/gomp/target-simd.f90: New.
9475 2019-10-02 Julian Brown <julian@codesourcery.com>
9476 Cesar Philippidis <cesar@codesourcery.com>
9478 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9479 * target.c (FIELD_TGT_EMPTY): Define.
9480 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
9481 as switch instead of list of ifs.
9482 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9484 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
9486 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9487 include. Replace alloca () with __builtin_alloca ().
9488 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9490 2019-10-01 Jakub Jelinek <jakub@redhat.com>
9492 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9493 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9494 * oacc-parallel.c: Don't include "libgomp_g.h".
9495 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9496 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9497 * aclocal.m4: Regenerated.
9498 * config.h.in: Regenerated.
9499 * configure: Regenerated.
9500 * Makefile.in: Regenerated.
9502 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
9504 * libgomp_g.h: Include stdint.h instead of gstdint.h.
9506 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
9508 * configure: Regenerate.
9510 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
9512 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9513 string is initialized.
9515 2019-09-06 Florian Weimer <fweimer@redhat.com>
9517 * configure: Regenerate.
9519 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
9522 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9523 scanning to conform to the GNU Coding Standards.
9524 * configure: Regenerate.
9526 2019-08-28 Jakub Jelinek <jakub@redhat.com>
9529 * testsuite/libgomp.c/scan-21.c: New test.
9530 * testsuite/libgomp.c/scan-22.c: New test.
9532 2019-08-27 Jakub Jelinek <jakub@redhat.com>
9535 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9537 * testsuite/libgomp.c/scan-12.c: Likewise.
9538 * testsuite/libgomp.c/scan-13.c: Likewise.
9539 * testsuite/libgomp.c/scan-14.c: Likewise.
9540 * testsuite/libgomp.c/scan-15.c: Likewise.
9541 * testsuite/libgomp.c/scan-16.c: Likewise.
9542 * testsuite/libgomp.c/scan-17.c: Likewise.
9543 * testsuite/libgomp.c/scan-18.c: Likewise.
9544 * testsuite/libgomp.c/scan-19.c: Likewise.
9545 * testsuite/libgomp.c/scan-20.c: Likewise.
9546 * testsuite/libgomp.c++/scan-9.C: Likewise.
9547 * testsuite/libgomp.c++/scan-10.C: Likewise.
9548 * testsuite/libgomp.c++/scan-11.C: Likewise.
9549 * testsuite/libgomp.c++/scan-12.C: Likewise.
9550 * testsuite/libgomp.c++/scan-14.C: Likewise.
9551 * testsuite/libgomp.c++/scan-15.C: Likewise.
9552 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
9553 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9554 * testsuite/libgomp.c++/scan-16.C: Likewise.
9556 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
9559 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9560 -std=legacy so invalid code in the test case is accepted.
9562 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9565 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9568 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9570 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9571 perform the lookup in the first loop only if !not_found_cnt, otherwise
9572 perform lookups for it in the second loop guarded with
9573 if (not_found_cnt || has_firstprivate).
9574 * testsuite/libgomp.c/target-37.c: New test.
9575 * testsuite/libgomp.c++/target-22.C: New test.
9577 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9579 * testsuite/libgomp.c/target-18.c (struct S): New type.
9580 (foo): Use use_device_addr clause instead of use_device_ptr clause
9581 where required by OpenMP 5.0, add further tests for both use_device_ptr
9582 and use_device_addr clauses.
9583 * testsuite/libgomp.c++/target-9.C (struct S): New type.
9584 (foo): Use use_device_addr clause instead of use_device_ptr clause
9585 where required by OpenMP 5.0, add further tests for both use_device_ptr
9586 and use_device_addr clauses. Add t and u arguments.
9587 (main): Adjust caller.
9589 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9591 * testsuite/libgomp.c++/loop-13.C: New test.
9592 * testsuite/libgomp.c++/loop-14.C: New test.
9593 * testsuite/libgomp.c++/loop-15.C: New test.
9595 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9598 * testsuite/libgomp.c++/for-27.C: New test.
9600 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
9602 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9603 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9605 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9607 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9609 2019-07-08 Jakub Jelinek <jakub@redhat.com>
9611 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9612 * testsuite/libgomp.c++/scan-16.C: Likewise.
9614 2019-07-06 Jakub Jelinek <jakub@redhat.com>
9616 * testsuite/libgomp.c/scan-19.c: New test.
9617 * testsuite/libgomp.c/scan-20.c: New test.
9619 * testsuite/libgomp.c/scan-11.c: New test.
9620 * testsuite/libgomp.c/scan-12.c: New test.
9621 * testsuite/libgomp.c/scan-13.c: New test.
9622 * testsuite/libgomp.c/scan-14.c: New test.
9623 * testsuite/libgomp.c/scan-15.c: New test.
9624 * testsuite/libgomp.c/scan-16.c: New test.
9625 * testsuite/libgomp.c/scan-17.c: New test.
9626 * testsuite/libgomp.c/scan-18.c: New test.
9627 * testsuite/libgomp.c++/scan-9.C: New test.
9628 * testsuite/libgomp.c++/scan-10.C: New test.
9629 * testsuite/libgomp.c++/scan-11.C: New test.
9630 * testsuite/libgomp.c++/scan-12.C: New test.
9631 * testsuite/libgomp.c++/scan-13.C: New test.
9632 * testsuite/libgomp.c++/scan-14.C: New test.
9633 * testsuite/libgomp.c++/scan-15.C: New test.
9634 * testsuite/libgomp.c++/scan-16.C: New test.
9636 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9638 * testsuite/libgomp.c/scan-9.c: New test.
9639 * testsuite/libgomp.c/scan-10.c: New test.
9641 2019-07-03 Jakub Jelinek <jakub@redhat.com>
9643 * testsuite/libgomp.c++/scan-1.C: New test.
9644 * testsuite/libgomp.c++/scan-2.C: New test.
9645 * testsuite/libgomp.c++/scan-3.C: New test.
9646 * testsuite/libgomp.c++/scan-4.C: New test.
9647 * testsuite/libgomp.c++/scan-5.C: New test.
9648 * testsuite/libgomp.c++/scan-6.C: New test.
9649 * testsuite/libgomp.c++/scan-7.C: New test.
9650 * testsuite/libgomp.c++/scan-8.C: New test.
9651 * testsuite/libgomp.c/scan-1.c: New test.
9652 * testsuite/libgomp.c/scan-2.c: New test.
9653 * testsuite/libgomp.c/scan-3.c: New test.
9654 * testsuite/libgomp.c/scan-4.c: New test.
9655 * testsuite/libgomp.c/scan-5.c: New test.
9656 * testsuite/libgomp.c/scan-6.c: New test.
9657 * testsuite/libgomp.c/scan-7.c: New test.
9658 * testsuite/libgomp.c/scan-8.c: New test.
9660 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9662 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9663 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9666 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9669 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
9671 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9674 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9677 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9679 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9680 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9681 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9682 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9685 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9688 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9690 2019-06-16 Tom de Vries <tdevries@suse.de>
9692 PR tree-optimization/89376
9693 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9695 2019-06-15 Tom de Vries <tdevries@suse.de>
9697 PR tree-optimization/89713
9698 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9699 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9701 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9704 * testsuite/libgomp.c/pr90779.c: New test.
9705 * testsuite/libgomp.fortran/pr90779.f90: New test.
9707 2019-06-15 Tom de Vries <tdevries@suse.de>
9709 PR tree-optimization/90009
9710 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9712 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9714 PR tree-optimization/89713
9715 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9717 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9720 * testsuite/libgomp.c/pr90811.c: New test.
9722 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9724 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9725 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9727 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9729 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9730 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9731 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9732 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9734 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9736 * configure.ac: Call AX_COUNT_CPUS.
9737 Substitute CPU_COUNT.
9738 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9740 * aclocal.m4: Regenerate.
9741 * configure: Regenerate.
9742 * Makefile.in, testsuite/Makefile.in: Regenerate.
9744 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9746 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9748 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9749 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9750 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9752 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9754 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9756 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9759 * work.c (gomp_init_work_share): Instead of aligning final ordered
9760 value to multiples of long long alignment, align to that the
9761 first part (ordered team ids) and if inline_ordered_team_ids
9762 is not on a long long alignment boundary within the structure,
9763 use __alignof__ (long long) - 1 pad size always.
9764 * loop.c (GOMP_loop_start): Fix *mem computation if
9765 inline_ordered_team_ids is not aligned on long long alignment boundary
9766 within the structure.
9767 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9768 * sections.c (GOMP_sections2_start): Likewise.
9770 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9772 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9773 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9776 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9777 HAVE_INTTYPES_H is defined.
9778 (print_uint64_t): New typedef.
9779 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9780 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9781 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9782 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9783 before casting to void *.
9784 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9785 * oacc-mem.c: Don't include config.h nor stdint.h.
9786 * target.c: Don't include config.h.
9787 * oacc-cuda.c: Likewise.
9788 * oacc-host.c: Don't include stdint.h.
9790 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9793 * alloc.c (_GNU_SOURCE): Define.
9795 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9797 * acc_prof.h: New file.
9798 * oacc-profiling.c: Likewise.
9799 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9800 Add these, respectively.
9801 * Makefile.in: Regenerate.
9802 * env.c (initialize_env): Call goacc_profiling_initialize.
9803 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9804 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9805 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9806 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9807 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9808 acc_prof_register, acc_prof_unregister, and acc_register_library.
9809 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9810 GOMP_PLUGIN_goacc_thread.
9811 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9812 prof_callbacks_enabled members.
9813 (goacc_prof_enabled, goacc_profiling_initialize)
9814 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9815 (goacc_profiling_dispatch): Declare.
9816 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9817 (GOACC_PROFILING_SETUP_P): Define.
9818 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9819 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9820 OpenACC Profiling Interface.
9821 * oacc-cuda.c (acc_get_current_cuda_device)
9822 (acc_get_current_cuda_context, acc_get_cuda_stream)
9823 (acc_set_cuda_stream): Likewise.
9824 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9825 (acc_init, acc_set_device_type, acc_get_device_type)
9826 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9827 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9828 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9829 (acc_unmap_data, present_create_copy, delete_copyout)
9830 (update_dev_host): Likewise.
9831 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9832 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9834 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9835 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9837 * libgomp.texi: Update.
9838 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9840 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9841 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9843 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9845 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9847 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9850 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9852 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9853 (struct goacc_asyncqueue_list): Likewise.
9854 (goacc_aq): Likewise.
9855 (goacc_aq_list): Likewise.
9856 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9857 (GOMP_OFFLOAD_openacc_async_test): Remove.
9858 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9859 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9860 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9861 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9862 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9863 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9864 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9865 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9866 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9867 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9868 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9869 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9870 (GOMP_OFFLOAD_openacc_async_test): Declare.
9871 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9872 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9873 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9874 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9875 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9877 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9878 (gomp_acc_insert_pointer): Adjust declaration.
9879 (gomp_copy_host2dev): New declaration.
9880 (gomp_copy_dev2host): Likewise.
9881 (gomp_map_vars_async): Likewise.
9882 (gomp_unmap_tgt): Likewise.
9883 (gomp_unmap_vars_async): Likewise.
9884 (gomp_fini_device): Likewise.
9886 * oacc-async.c (get_goacc_thread): New function.
9887 (get_goacc_thread_device): New function.
9888 (lookup_goacc_asyncqueue): New function.
9889 (get_goacc_asyncqueue): New function.
9890 (acc_async_test): Adjust code to use new async design.
9891 (acc_async_test_all): Likewise.
9892 (acc_wait): Likewise.
9893 (acc_wait_async): Likewise.
9894 (acc_wait_all): Likewise.
9895 (acc_wait_all_async): Likewise.
9896 (goacc_async_free): New function.
9897 (goacc_init_asyncqueues): Likewise.
9898 (goacc_fini_asyncqueues): Likewise.
9899 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9901 (acc_set_cuda_stream): Likewise.
9902 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9903 (host_openacc_register_async_cleanup): Remove.
9904 (host_openacc_async_exec): New function.
9905 (host_openacc_async_test): Adjust parameters.
9906 (host_openacc_async_test_all): Remove.
9907 (host_openacc_async_wait): Remove.
9908 (host_openacc_async_wait_async): Remove.
9909 (host_openacc_async_wait_all): Remove.
9910 (host_openacc_async_wait_all_async): Remove.
9911 (host_openacc_async_set_async): Remove.
9912 (host_openacc_async_synchronize): New function.
9913 (host_openacc_async_serialize): New function.
9914 (host_openacc_async_host2dev): New function.
9915 (host_openacc_async_dev2host): New function.
9916 (host_openacc_async_queue_callback): New function.
9917 (host_openacc_async_construct): New function.
9918 (host_openacc_async_destruct): New function.
9919 (struct gomp_device_descr host_dispatch): Remove initialization of old
9920 interface, add initialization of new async sub-struct.
9921 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9922 (goacc_attach_host_thread_to_device): Remove old async code usage.
9923 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9924 (goacc_fini_asyncqueues): Likewise.
9925 (goacc_async_copyout_unmap_vars): Likewise.
9926 (goacc_async_free): Likewise.
9927 (get_goacc_asyncqueue): Likewise.
9928 (lookup_goacc_asyncqueue): Likewise.
9929 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9931 (present_create_copy): Adjust code to use new async design.
9932 (delete_copyout): Likewise.
9933 (update_dev_host): Likewise.
9934 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9936 (gomp_acc_remove_pointer): Adjust code to use new async design.
9937 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9939 (GOACC_enter_exit_data): Likewise.
9940 (goacc_wait): Likewise.
9941 (GOACC_update): Likewise.
9942 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9943 when called, warn as obsolete in comment.
9944 * target.c (goacc_device_copy_async): New function.
9945 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9946 add goacc_device_copy_async case.
9947 (gomp_copy_dev2host): Likewise.
9948 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9949 (gomp_map_pointer): Likewise.
9950 (gomp_map_fields_existing): Likewise.
9951 (gomp_map_vars_internal): New always_inline function, renamed from
9953 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9954 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9955 passing goacc_asyncqueue argument.
9956 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9957 (gomp_unref_tgt): New function.
9958 (gomp_unmap_vars_internal): New always_inline function, renamed from
9960 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9961 (gomp_unmap_vars_async): Implement by calling
9962 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9963 (gomp_fini_device): New function.
9964 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9965 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9966 new async interface.
9967 (gomp_target_fini): Adjust code to call gomp_fini_device.
9969 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9970 (struct ptx_stream): Remove.
9971 (struct nvptx_thread): Remove current_stream field.
9972 (cuda_map_create): Remove.
9973 (cuda_map_destroy): Remove.
9978 (struct goacc_asyncqueue): Define.
9979 (struct nvptx_callback): Define.
9980 (struct ptx_free_block): Define.
9981 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9982 stream_lock, and next fields.
9983 (enum ptx_event_type): Remove.
9984 (struct ptx_event): Remove.
9985 (ptx_event_lock): Remove.
9986 (ptx_events): Remove.
9987 (init_streams_for_device): Remove.
9988 (fini_streams_for_device): Remove.
9989 (select_stream_for_async): Remove.
9990 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9991 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9993 (nvptx_open_device): Add free_blocks initialization, remove
9994 init_streams_for_device call.
9995 (nvptx_close_device): Remove fini_streams_for_device call, add
9996 free_blocks destruct code.
9998 (event_add): Remove.
9999 (nvptx_exec): Adjust parameters and code.
10000 (nvptx_free): Likewise.
10001 (nvptx_host2dev): Remove.
10002 (nvptx_dev2host): Remove.
10003 (nvptx_set_async): Remove.
10004 (nvptx_async_test): Remove.
10005 (nvptx_async_test_all): Remove.
10006 (nvptx_wait): Remove.
10007 (nvptx_wait_async): Remove.
10008 (nvptx_wait_all): Remove.
10009 (nvptx_wait_all_async): Remove.
10010 (nvptx_get_cuda_stream): Remove.
10011 (nvptx_set_cuda_stream): Remove.
10012 (GOMP_OFFLOAD_alloc): Adjust code.
10013 (GOMP_OFFLOAD_free): Likewise.
10014 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
10015 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
10016 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
10017 (GOMP_OFFLOAD_openacc_async_wait): Remove.
10018 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
10019 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
10020 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
10021 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
10022 (cuda_free_argmem): New function.
10023 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
10024 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
10025 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
10026 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
10027 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
10028 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
10029 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
10030 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
10031 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
10032 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
10033 (cuda_callback_wrapper): New function.
10034 (cuda_memcpy_sanity_check): New function.
10035 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
10036 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
10037 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
10038 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
10040 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
10043 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
10045 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
10047 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
10049 2019-03-27 Kevin Buettner <kevinb@redhat.com>
10051 * team.c (gomp_team_start): Initialize pool->threads[0].
10053 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
10055 * testsuite/libgomp.oacc-c++/c++.exp: Specify
10056 "-foffload=$offload_target".
10057 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10058 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10059 * testsuite/lib/libgomp.exp
10060 (check_effective_target_openacc_nvidia_accel_configured): Remove,
10061 as (conceptually) merged into
10062 check_effective_target_openacc_nvidia_accel_selected. Adjust all
10065 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
10066 * testsuite/libgomp-test-support.exp.in: Adjust.
10067 * testsuite/lib/libgomp.exp: Likewise. Don't populate
10068 openacc_device_types_s.
10069 (offload_target_to_openacc_device_type): New proc.
10070 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
10071 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10072 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10073 * Makefile.in: Regenerate.
10074 * configure: Likewise.
10075 * testsuite/Makefile.in: Likewise.
10077 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
10078 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
10079 instead of OFFLOAD_TARGETS.
10080 * target.c (gomp_target_init): Adjust.
10081 * testsuite/libgomp-test-support.exp.in: Likewise.
10082 * testsuite/lib/libgomp.exp: Likewise. Populate
10083 openacc_device_types_s instead of offload_targets_s_openacc.
10084 (check_effective_target_openacc_nvidia_accel_selected)
10085 (check_effective_target_openacc_host_selected): Adjust.
10086 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
10087 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10088 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10089 * Makefile.in: Regenerate.
10090 * config.h.in: Likewise.
10091 * configure: Likewise.
10092 * testsuite/Makefile.in: Likewise.
10094 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
10095 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
10096 "offloading: supported, but hardware not accessible".
10097 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10098 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10100 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
10103 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
10105 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
10106 and related adjustment.
10108 2019-01-30 Jakub Jelinek <jakub@redhat.com>
10111 * testsuite/libgomp.c++/pr88988.C: New test.
10113 2019-01-28 Jakub Jelinek <jakub@redhat.com>
10115 PR middle-end/89002
10116 * testsuite/libgomp.c/pr89002.c: New test.
10118 2019-01-28 Richard Biener <rguenther@suse.de>
10121 PR tree-optimization/86865
10122 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
10124 2019-01-24 Tom de Vries <tdevries@suse.de>
10126 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
10127 once instantiated_devices drops to 0.
10129 2019-01-23 Tom de Vries <tdevries@suse.de>
10132 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
10134 (nvptx_exec): Don't call map_push if mapnum == 0.
10135 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
10137 2019-01-23 Tom de Vries <tdevries@suse.de>
10141 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
10142 (map_fini): Remove "assert (!s->map->active)".
10143 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
10145 2019-01-23 Tom de Vries <tdevries@suse.de>
10148 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
10149 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
10151 2019-01-15 Tom de Vries <tdevries@suse.de>
10154 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
10157 2019-01-12 Tom de Vries <tdevries@suse.de>
10159 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
10160 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
10161 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
10162 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
10164 2019-01-12 Tom de Vries <tdevries@suse.de>
10166 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
10168 2019-01-12 Tom de Vries <tdevries@suse.de>
10170 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
10171 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
10172 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
10174 2019-01-12 Tom de Vries <tdevries@suse.de>
10177 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
10178 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
10180 2019-01-12 Tom de Vries <tdevries@suse.de>
10183 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
10184 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
10186 2019-01-12 Tom de Vries <tdevries@suse.de>
10188 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
10189 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
10190 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
10192 2019-01-12 Tom de Vries <tdevries@suse.de>
10194 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
10195 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
10196 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
10198 2019-01-12 Tom de Vries <tdevries@suse.de>
10200 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
10201 resources diagnostic.
10203 2019-01-12 Tom de Vries <tdevries@suse.de>
10205 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
10206 vector length to be 128.
10207 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
10208 length 2097152 to be reduced to 1024 instead of 32.
10210 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
10211 James Norris <jnorris@codesourcery.com>
10213 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
10214 Library Routines", and "Environment Variables".
10216 2019-01-11 Tom de Vries <tdevries@suse.de>
10218 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
10221 2019-01-11 Tom de Vries <tdevries@suse.de>
10223 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
10225 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
10226 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
10227 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
10228 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
10230 2019-01-11 Tom de Vries <tdevries@suse.de>
10232 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
10235 2019-01-10 Nathan Sidwell <nathan@acm.org>
10236 Julian Brown <julian@codesourcery.com>
10239 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
10240 * testsuite/libgomp.oacc-c++/pr71959.C: New.
10242 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
10244 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
10247 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
10249 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
10250 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10253 2019-01-09 Tom de Vries <tdevries@suse.de>
10256 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
10257 #define instead of "const int".
10258 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
10259 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
10260 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
10261 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
10263 2019-01-09 Tom de Vries <tdevries@suse.de>
10265 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
10268 2019-01-07 Tom de Vries <tdevries@suse.de>
10270 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
10271 GOMP_OPENACC_DIM argument.
10273 2019-01-03 Tom de Vries <tdevries@suse.de>
10275 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
10276 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
10278 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10280 Update copyright years.
10282 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10284 * libgomp.texi: Bump @copying's copyright year.
10286 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10288 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
10289 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
10290 (GOACC_declare): Redefine the "device" argument to "flags".
10292 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10293 Cesar Philippidis <cesar@codesourcery.com>
10295 * target.c (struct gomp_coalesce_chunk): New structure.
10296 (struct gomp_coalesce_buf): Update the chunks member to use that
10297 type. Adjust all users.
10299 2018-12-19 Tom de Vries <tdevries@suse.de>
10301 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
10302 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
10303 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
10305 2018-12-19 Tom de Vries <tdevries@suse.de>
10307 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
10308 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
10309 gcc/testsuite/gcc.dg/goacc.
10310 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
10312 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10313 Chung-Lin Tang <cltang@codesourcery.com>
10315 * oacc-mem.c (acc_present_or_create): Remove definition and change
10316 to alias of acc_create.
10317 (acc_present_or_copyin): Remove definition and change to alias of
10319 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
10320 of acc_present_or_create.
10321 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
10322 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10323 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10324 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10325 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10326 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10327 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10328 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10329 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10330 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10331 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10332 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10333 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10334 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10335 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10336 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10338 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10341 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
10342 "identical parameters".
10343 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
10344 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
10347 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
10348 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
10351 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
10352 (nvptx_wait_async): Unseen async-argument is a no-op.
10353 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
10354 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
10355 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10356 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10357 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10358 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
10359 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
10360 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
10361 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
10363 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
10364 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10366 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
10368 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
10369 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10370 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10372 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10375 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
10376 (acc_set_cuda_stream): Clarify.
10377 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10379 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
10381 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
10382 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
10383 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
10384 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10386 2018-12-14 Tom de Vries <tdevries@suse.de>
10388 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
10389 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
10390 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
10391 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
10392 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
10394 2018-12-13 Tom de Vries <tdevries@suse.de>
10396 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
10397 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
10398 * fortran.c (omp_display_affinity_): ... here.
10399 * libgomp.h (gomp_print_string): Declare.
10400 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
10401 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10404 2018-12-13 Jakub Jelinek <jakub@redhat.com>
10407 * testsuite/libgomp.c++/for-24.C (results): Include it in
10408 omp declare target region.
10409 (main): Use map (always, tofrom: results) instead of
10410 map (tofrom: results).
10412 2018-12-12 Jakub Jelinek <jakub@redhat.com>
10415 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
10416 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
10418 * testsuite/libgomp.c-c++-common/for-16.c: New test.
10420 2018-12-12 Andreas Schwab <schwab@suse.de>
10422 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
10425 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
10428 * testsuite/libgomp.fortran/async_io_8.f90: New test.
10430 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
10431 Jakub Jelinek <jakub@redhat.com>
10433 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
10434 devicep->host2dev_func.
10436 2018-12-08 Jakub Jelinek <jakub@redhat.com>
10439 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
10440 tls_runtime effective target.
10441 (t): New threadprivate variable.
10442 (main): Set t in threads which execute iterations of the worksharing
10443 loop. Propagate that to the task after the loop and don't abort
10444 if the current taskgroup hasn't been cancelled.
10446 2018-12-02 Jakub Jelinek <jakub@redhat.com>
10448 * testsuite/libgomp.c/task-reduction-3.c: New test.
10450 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10452 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
10455 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10456 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10458 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
10460 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10462 2018-10-19 Richard Biener <rguenther@suse.de>
10464 PR tree-optimization/88182
10465 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10467 2018-11-26 Jakub Jelinek <jakub@redhat.com>
10469 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10470 (RUNTEST): Don't define.
10471 (RUNTESTDEFAULTFLAGS): Add.
10472 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10473 (distclean-am): Depend on distclean-DEJAGNU.
10474 (check-am): If -j% option is present in MFLAGS and if
10475 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10476 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10477 * testsuite/Makefile.in: Regenerated.
10479 2018-11-26 Richard Biener <rguenther@suse.de>
10481 PR tree-optimization/88182
10482 * testsuite/libgomp.c++/pr88182.C: New testcase.
10484 2018-11-20 Jakub Jelinek <jakub@redhat.com>
10487 * config/mingw32/affinity-fmt.c: New file.
10489 2018-11-09 Jakub Jelinek <jakub@redhat.com>
10491 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10492 (gomp_display_affinity): Use __builtin_choose_expr to handle
10493 properly handle argument having integral, or pointer or some other
10494 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
10495 with uint64_t type instead of %llx and unsigned long long.
10497 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10498 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10500 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10502 * affinity.c: Include <string.h>, <stdio.h>.
10503 (gomp_display_affinity_place): Remove cpusetp.
10504 * teams.c: Include <limits.h>.
10506 2018-11-08 Jakub Jelinek <jakub@redhat.com>
10508 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10509 in_reduction clause for s[0].
10511 * affinity.c (gomp_display_affinity_place): New function.
10512 * affinity-fmt.c: New file.
10513 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10514 * config/linux/affinity.c (gomp_display_affinity_place): New function.
10515 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10516 Move these functions to ...
10517 * config/nvptx/teams.c: ... here. New file.
10518 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10520 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10522 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10523 and _aligned_malloc.
10524 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10525 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10526 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10527 gomp_affinity_format_len): New variables.
10528 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10529 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
10530 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10531 modifiers. Display (non-default) chunk sizes. Print
10532 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10533 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
10534 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10535 * fortran.c: Include stdio.h and string.h.
10536 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10537 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10538 (omp_set_affinity_format_, omp_get_affinity_format_,
10539 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10540 omp_pause_resource_all_): New functions.
10541 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10543 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10545 * teams.c: ... here. New file.
10546 * libgomp_g.h: Include gstdint.h.
10547 (GOMP_loop_nonmonotonic_runtime_start,
10548 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10549 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10550 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10551 GOMP_parallel_loop_nonmonotonic_runtime,
10552 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10553 GOMP_loop_ull_nonmonotonic_runtime_start,
10554 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10555 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10556 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10557 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10558 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10559 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10560 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10561 GOMP_teams_reg): Declare.
10562 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10563 gomp_aligned_alloc uses fallback implementation.
10564 (gomp_aligned_alloc, gomp_aligned_free): Declare.
10565 (enum gomp_schedule_type): Add GFS_MONOTONIC.
10566 (struct gomp_doacross_work_share): Add extra field.
10567 (struct gomp_work_share): Add task_reductions field.
10568 (struct gomp_taskgroup): Add workshare and reductions fields.
10569 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10570 (gomp_thread_handle): New typedef.
10571 (gomp_display_affinity_place, gomp_set_affinity_format,
10572 gomp_display_string, gomp_display_affinity,
10573 gomp_display_affinity_thread): Declare.
10574 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10575 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10576 gomp_workshare_task_reduction_register): Declare.
10577 (gomp_team_start): Add taskgroup argument.
10578 (gomp_pause_host): Declare.
10579 (gomp_init_work_share, gomp_work_share_start): Change bool argument
10581 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10582 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10583 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10584 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10585 GOMP_loop_ull_doacross_start,
10586 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10587 GOMP_loop_maybe_nonmonotonic_runtime_next,
10588 GOMP_loop_maybe_nonmonotonic_runtime_start,
10589 GOMP_loop_nonmonotonic_runtime_next,
10590 GOMP_loop_nonmonotonic_runtime_start,
10591 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10592 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10593 GOMP_loop_ull_nonmonotonic_runtime_next,
10594 GOMP_loop_ull_nonmonotonic_runtime_start,
10595 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10596 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10597 GOMP_taskgroup_reduction_register,
10598 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10599 GOMP_teams_reg and GOMP_taskwait_depend.
10600 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10601 omp_{capture,display}_affinity{,_}, and
10602 omp_[gs]et_affinity_format{,_}.
10603 * loop.c: Include string.h.
10604 (GOMP_loop_runtime_next): Add ialias.
10605 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10606 (gomp_loop_static_start, gomp_loop_dynamic_start,
10607 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10608 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10609 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10610 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10611 or gomp_doacross_init callers.
10612 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10613 GOMP_loop_doacross_start): New functions.
10614 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10615 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10616 Mask off GFS_MONOTONIC bit.
10617 (GOMP_loop_maybe_nonmonotonic_runtime_next,
10618 GOMP_loop_maybe_nonmonotonic_runtime_start,
10619 GOMP_loop_nonmonotonic_runtime_next,
10620 GOMP_loop_nonmonotonic_runtime_start,
10621 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10622 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10624 (gomp_parallel_loop_start): Pass NULL as taskgroup to
10626 * loop_ull.c: Include string.h.
10627 (GOMP_loop_ull_runtime_next): Add ialias.
10628 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10629 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10630 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10631 gomp_loop_ull_ordered_dynamic_start,
10632 gomp_loop_ull_ordered_guided_start,
10633 gomp_loop_ull_doacross_static_start,
10634 gomp_loop_ull_doacross_dynamic_start,
10635 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10636 and gomp_doacross_ull_init callers.
10637 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10638 GOMP_loop_ull_doacross_start): New functions.
10639 (GOMP_loop_ull_runtime_start,
10640 GOMP_loop_ull_ordered_runtime_start,
10641 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10642 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10643 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10644 GOMP_loop_ull_nonmonotonic_runtime_next,
10645 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10646 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10647 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10648 (omp_pause_resource_t, omp_depend_t): New typedefs.
10649 (enum omp_lock_hint_t): Renamed to ...
10650 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
10651 enumerators using numbers and omp_lock_hint_* as their aliases.
10652 (omp_lock_hint_t): New typedef. Rename to ...
10653 (omp_sync_hint_t): ... this.
10654 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10655 omp_sync_hint_t instead of omp_lock_hint_t.
10656 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10657 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10659 (omp_target_is_present, omp_target_disassociate_ptr):
10660 Change first argument from void * to const void *.
10661 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10662 from void * to const void *.
10663 (omp_target_associate_ptr): Change first and second arguments from
10664 void * to const void *.
10665 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10666 omp_pause_hard): New parameters.
10667 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10668 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10670 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10671 omp_pause_hard): New parameters.
10672 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10673 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10675 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10676 EXTRA argument. If not needed to prepare array, if extra is 0,
10677 clear ws->doacross, otherwise allocate just doacross structure and
10678 extra payload. If array is needed, allocate also extra payload.
10679 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10680 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10682 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10684 (GOMP_parallel): Likewise. Formatting fix.
10685 (GOMP_parallel_reductions): New function.
10686 (GOMP_cancellation_point): If taskgroup has workshare
10687 flag set, check cancelled of prev taskgroup if any.
10688 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10689 on prev taskgroup if any.
10690 * sections.c: Include string.h.
10691 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10692 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10693 (GOMP_sections2_start): New function.
10694 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10695 Pass NULL as taskgroup to gomp_team_start.
10696 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10697 gomp_work_share_start callers.
10698 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10699 If taskgroup has workshare flag set, check cancelled on prev
10700 taskgroup if any. Guard all cancellation tests with
10701 gomp_cancel_var test.
10702 (omp_target_is_present, omp_target_disassociate_ptr):
10703 Change ptr argument from void * to const void *.
10704 (omp_target_memcpy): Change src argument from void * to const void *.
10705 (omp_target_memcpy_rect): Likewise.
10706 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10707 instead of char * where needed.
10708 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10709 from void * to const void *.
10710 (omp_pause_resource, omp_pause_resource_all): New functions.
10711 * task.c (gomp_task_handle_depend): Handle new depend array format
10712 in addition to the old. Handle mutexinoutset kinds the same as
10713 inout for now, handle unspecified kinds.
10714 (gomp_create_target_task): If taskgroup has workshare flag set, check
10715 cancelled on prev taskgroup if any. Guard all cancellation tests with
10716 gomp_cancel_var test. Handle new depend array format count in
10717 addition to the old.
10718 (GOMP_task): Likewise. Adjust function comment.
10719 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10720 cancelled on prev taskgroup if any. Guard all cancellation tests with
10721 gomp_cancel_var test.
10722 (GOMP_taskwait_depend): New function.
10723 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10724 format in addition to the old. Handle mutexinoutset kinds the same as
10725 inout for now, handle unspecified kinds. Fix a function comment typo.
10726 (gomp_taskgroup_init): New function.
10727 (GOMP_taskgroup_start): Use it.
10728 (gomp_reduction_register, gomp_create_artificial_team,
10729 GOMP_taskgroup_reduction_register,
10730 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10731 gomp_parallel_reduction_register,
10732 gomp_workshare_task_reduction_register,
10733 gomp_workshare_taskgroup_start,
10734 GOMP_workshare_task_reduction_unregister): New functions.
10735 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10736 check cancelled on prev taskgroup if any. Guard all cancellation
10737 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10738 by calling GOMP_taskgroup_reduction_register.
10739 * team.c (gomp_thread_attr): Remove comment.
10740 (struct gomp_thread_start_data): Add handle field.
10741 (gomp_thread_start): Call pthread_detach.
10742 (gomp_new_team): Adjust gomp_init_work_share caller.
10743 (gomp_free_pool_helper): Call pthread_detach.
10744 (gomp_team_start): Add taskgroup argument, initialize implicit
10745 tasks' taskgroup field to that. Don't call
10746 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10747 (gomp_team_end): Determine nesting by thr->ts.level != 0
10748 rather than thr->ts.team != NULL.
10749 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10750 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10751 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10752 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10753 if more than 1 allocate also extra payload at the end of array. Never
10754 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10755 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10756 return true instead of ws.
10757 * Makefile.in: Regenerated.
10758 * configure: Regenerated.
10759 * config.h.in: Regenerated.
10760 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10762 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10763 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10764 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10765 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10766 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10767 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10768 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10769 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10770 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10771 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10772 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10773 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10774 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10775 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10776 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10777 define a different N(test), don't define N(f0) to N(f14), but instead
10778 define N(f20) to N(f34) using != comparisons.
10779 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10780 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10781 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10782 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10783 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10784 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10785 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10786 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10787 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10788 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10789 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10790 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10791 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10792 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10793 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10794 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10795 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10796 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10797 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10798 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10799 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10800 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10801 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10802 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10803 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10804 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10805 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10806 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10807 * testsuite/libgomp.c++/depend-1.C: New test.
10808 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10809 * testsuite/libgomp.c++/depobj-1.C: New test.
10810 * testsuite/libgomp.c++/for-16.C: New test.
10811 * testsuite/libgomp.c++/for-21.C: New test.
10812 * testsuite/libgomp.c++/for-22.C: New test.
10813 * testsuite/libgomp.c++/for-23.C: New test.
10814 * testsuite/libgomp.c++/for-24.C: New test.
10815 * testsuite/libgomp.c++/for-25.C: New test.
10816 * testsuite/libgomp.c++/for-26.C: New test.
10817 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10818 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10819 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10820 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10821 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10822 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10823 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10824 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10825 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10826 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10827 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10828 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10829 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10830 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10831 * testsuite/libgomp.c/task-reduction-1.c: New test.
10832 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10833 * testsuite/libgomp.c/task-reduction-2.c: New test.
10834 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10835 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10836 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10837 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10838 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10839 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10840 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10841 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10842 * testsuite/libgomp.c/teams-1.c: New test.
10843 * testsuite/libgomp.c/teams-2.c: New test.
10844 * testsuite/libgomp.c/thread-limit-4.c: New test.
10845 * testsuite/libgomp.c/thread-limit-5.c: New test.
10846 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10848 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10850 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10851 acc_memcpy_to/from_device functions, now with async parameter.
10852 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10853 (acc_memcpy_from_device): Likewise.
10854 (acc_memcpy_to_device_async): New API function.
10855 (acc_memcpy_from_device_async): Likewise.
10856 (present_create_copy): Add async parameter and async setting/unsetting.
10857 (acc_create): Adjust present_create_copy call.
10858 (acc_copyin): Likewise.
10859 (acc_present_or_create): Likewise.
10860 (acc_present_or_copyin): Likewise.
10861 (acc_create_async): New API function.
10862 (acc_copyin_async): New API function.
10863 (delete_copyout): Add async parameter and async setting/unsetting.
10864 (acc_delete): Adjust delete_copyout call.
10865 (acc_copyout): Likewise.
10866 (acc_delete_async): New API function.
10867 (acc_copyout_async): Likewise.
10868 (update_dev_host): Add async parameter and async setting/unsetting.
10869 (acc_update_device): Adjust update_dev_host call.
10870 (acc_update_self): Likewise.
10871 (acc_update_device_async): New API function.
10872 (acc_update_self_async): Likewise.
10873 * openacc.h (acc_copyin_async): Declare new API function.
10874 (acc_create_async): Likewise.
10875 (acc_copyout_async): Likewise.
10876 (acc_delete_async): Likewise.
10877 (acc_update_device_async): Likewise.
10878 (acc_update_self_async): Likewise.
10879 (acc_memcpy_to_device_async): Likewise.
10880 (acc_memcpy_from_device_async): Likewise.
10881 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10882 (acc_copyin_async_64_h): New subroutine.
10883 (acc_copyin_async_array_h): New subroutine.
10884 (acc_create_async_32_h): New subroutine.
10885 (acc_create_async_64_h): New subroutine.
10886 (acc_create_async_array_h): New subroutine.
10887 (acc_copyout_async_32_h): New subroutine.
10888 (acc_copyout_async_64_h): New subroutine.
10889 (acc_copyout_async_array_h): New subroutine.
10890 (acc_delete_async_32_h): New subroutine.
10891 (acc_delete_async_64_h): New subroutine.
10892 (acc_delete_async_array_h): New subroutine.
10893 (acc_update_device_async_32_h): New subroutine.
10894 (acc_update_device_async_64_h): New subroutine.
10895 (acc_update_device_async_array_h): New subroutine.
10896 (acc_update_self_async_32_h): New subroutine.
10897 (acc_update_self_async_64_h): New subroutine.
10898 (acc_update_self_async_array_h): New subroutine.
10899 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10900 (acc_copyin_async_64_h): New subroutine.
10901 (acc_copyin_async_array_h): New subroutine.
10902 (acc_create_async_32_h): New subroutine.
10903 (acc_create_async_64_h): New subroutine.
10904 (acc_create_async_array_h): New subroutine.
10905 (acc_copyout_async_32_h): New subroutine.
10906 (acc_copyout_async_64_h): New subroutine.
10907 (acc_copyout_async_array_h): New subroutine.
10908 (acc_delete_async_32_h): New subroutine.
10909 (acc_delete_async_64_h): New subroutine.
10910 (acc_delete_async_array_h): New subroutine.
10911 (acc_update_device_async_32_h): New subroutine.
10912 (acc_update_device_async_64_h): New subroutine.
10913 (acc_update_device_async_array_h): New subroutine.
10914 (acc_update_self_async_32_h): New subroutine.
10915 (acc_update_self_async_64_h): New subroutine.
10916 (acc_update_self_async_array_h): New subroutine.
10917 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10918 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10919 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10920 acc_memcpy_to_device_async*, acc_update_device_async*, and
10921 acc_update_self_async* entries.
10922 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10923 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10924 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10926 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10929 * Makefile.am: Include multilib.am
10930 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10931 (CLEANFILES): Remove libgomp.info.
10932 * configure.ac: Remove AC_PREREQ.
10933 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10934 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10937 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10938 Julian Brown <julian@codesourcery.com>
10940 * testsuite/libgomp.oacc-c++/this.C: New.
10942 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10944 * plugin/plugin-nvptx.c (struct cuda_map): New.
10945 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10946 h_tail with (cuda_map *) map.
10947 (cuda_map_create): New function.
10948 (cuda_map_destroy): New function.
10949 (map_init): Update to use a linked list of cuda_map objects.
10950 (map_fini): Likewise.
10951 (map_pop): Likewise.
10952 (map_push): Likewise. Return CUdeviceptr instead of void.
10953 (init_streams_for_device): Remove stales references to ptx_stream
10955 (select_stream_for_async): Likewise.
10956 (nvptx_exec): Update call to map_init.
10958 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10959 Julian Brown <julian@codesourcery.com>
10961 PR middle-end/86336
10962 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10964 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10965 Thomas Koenig <tkoenig@gcc.gnu.org>
10968 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10969 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10970 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10971 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10972 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10973 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10974 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10976 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10977 Tom de Vries <tdevries@suse.de>
10980 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10981 (cuOccupancyMaxPotentialBlockSize): Declare.
10982 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10983 CUDA_ONE_CALL_MAYBE_NULL.
10984 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10985 CUoccupancyB2DSize and declare
10986 cuOccupancyMaxPotentialBlockSize.
10987 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10988 default num_gangs and num_workers when the driver supports it.
10990 2018-08-08 Tom de Vries <tdevries@suse.de>
10992 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10993 CUDA_ONE_CALL_MAYBE_NULL.
10994 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10995 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10996 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10999 2018-08-08 Tom de Vries <tdevries@suse.de>
11001 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
11002 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
11005 2018-08-08 Tom de Vries <tdevries@suse.de>
11007 * plugin/plugin-nvptx.c
11008 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
11009 (nvptx_open_device): Use
11010 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
11012 2018-08-08 Tom de Vries <tdevries@suse.de>
11014 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
11015 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
11017 2018-08-07 Tom de Vries <tdevries@suse.de>
11019 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
11020 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
11021 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
11022 corresponding call in CUDA_ONE_CALL. Add def/undef of
11023 CUDA_ONE_CALL_MAYBE_NULL.
11024 (CUDA_CALL_EXISTS): Define.
11026 2018-08-07 Tom de Vries <tdevries@suse.de>
11028 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
11029 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
11030 corresponding undefs right after.
11032 2018-08-04 Tom de Vries <tdevries@suse.de>
11034 * plugin/configfrag.ac: For --without-cuda-driver, set
11035 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
11036 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
11037 * configure: Regenerate.
11039 2018-08-02 Tom de Vries <tdevries@suse.de>
11042 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
11043 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
11044 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11046 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
11047 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
11048 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
11050 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
11051 Thomas Schwinge <thomas@codesourcery.com>
11053 * config/nvptx/oacc-parallel.c: Truncate.
11055 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
11056 James Norris <jnorris@codesourcery.com>
11058 * plugin/plugin-nvptx.c (struct map): Removed.
11059 (map_init, map_pop): Remove use of struct map.
11060 (map_push): Likewise and change argument list.
11061 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
11063 2018-08-01 Tom de Vries <tdevries@suse.de>
11065 * plugin/cuda-lib.def: New file. Factor out of ...
11066 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
11067 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
11070 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
11072 Revert 'AsyncI/O patch committed'.
11073 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
11074 Thomas Koenig <tkoenig@gcc.gnu.org>
11077 * testsuite/libgomp.fortran/async_io_1.f90: New test.
11078 * testsuite/libgomp.fortran/async_io_2.f90: New test.
11079 * testsuite/libgomp.fortran/async_io_3.f90: New test.
11080 * testsuite/libgomp.fortran/async_io_4.f90: New test.
11081 * testsuite/libgomp.fortran/async_io_5.f90: New test.
11082 * testsuite/libgomp.fortran/async_io_6.f90: New test.
11083 * testsuite/libgomp.fortran/async_io_7.f90: New test.
11085 2018-07-30 Tom de Vries <tdevries@suse.de>
11087 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
11088 (nvptx_exec): Ensure worker and vector default dims don't exceed
11089 targ_fn->max_threads_per_block.
11091 2018-07-30 Tom de Vries <tdevries@suse.de>
11093 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
11094 (nvptx_open_device): Init default_dims for device.
11095 (nvptx_exec): Use default_dims from device.
11097 2018-07-26 Jakub Jelinek <jakub@redhat.com>
11100 * testsuite/libgomp.c++/for-15.C (results): Include it in
11101 omp declare target region.
11102 (main): Use map (always, tofrom: results) instead of
11103 map (tofrom: results).
11105 PR middle-end/86660
11106 * testsuite/libgomp.c/pr86660.c: New test.
11108 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
11109 Tom de Vries <tdevries@suse.de>
11111 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
11112 sufficient resources to launch a kernel, and give a hint on how to fix
11115 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
11116 Tom de Vries <tdevries@suse.de>
11118 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
11119 max_threads_per_block and max_threads_per_multiprocessor fields.
11120 (nvptx_open_device): Initialize new fields.
11121 (nvptx_exec): Use num_sms, and new fields.
11123 2018-07-26 Tom de Vries <tdevries@suse.de>
11125 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
11126 to correct locations. Remove xfail.
11128 2018-07-26 Tom de Vries <tdevries@suse.de>
11130 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
11131 acc_wait. Move acc_async_test calls to correct locations. Remove
11134 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
11135 Thomas Koenig <tkoenig@gcc.gnu.org>
11138 * testsuite/libgomp.fortran/async_io_1.f90: New test.
11139 * testsuite/libgomp.fortran/async_io_2.f90: New test.
11140 * testsuite/libgomp.fortran/async_io_3.f90: New test.
11141 * testsuite/libgomp.fortran/async_io_4.f90: New test.
11142 * testsuite/libgomp.fortran/async_io_5.f90: New test.
11143 * testsuite/libgomp.fortran/async_io_6.f90: New test.
11144 * testsuite/libgomp.fortran/async_io_7.f90: New test.
11146 2018-07-17 Jakub Jelinek <jakub@redhat.com>
11148 PR middle-end/86542
11149 * testsuite/libgomp.c++/pr86542.C: New test.
11151 PR middle-end/86539
11152 * testsuite/libgomp.c++/pr86539.C: New test.
11154 2018-07-11 Jakub Jelinek <jakub@redhat.com>
11157 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
11158 (results): Make sure the variable is not inside declare target region.
11159 (qux): Remove unused function.
11161 2018-07-10 Jakub Jelinek <jakub@redhat.com>
11164 * testsuite/libgomp.c++/for-15.C: New test.
11166 2018-06-26 Jakub Jelinek <jakub@redhat.com>
11169 * testsuite/libgomp.c++/pr86291.C: New test.
11171 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
11173 * libgomp.texi (Top): Move www.openmp.org to https.
11174 (Enabling OpenMP): Ditto.
11175 (omp_get_active_level): Ditto.
11176 (omp_get_ancestor_thread_num): Ditto.
11177 (omp_get_cancellation): Ditto.
11178 (omp_get_default_device): Ditto.
11179 (omp_get_dynamic): Ditto.
11180 (omp_get_level): Ditto.
11181 (omp_get_max_active_levels): Ditto.
11182 (omp_get_max_task_priority): Ditto.
11183 (omp_get_max_threads): Ditto.
11184 (omp_get_nested): Ditto.
11185 (omp_get_num_devices): Ditto.
11186 (omp_get_num_procs): Ditto.
11187 (omp_get_num_teams): Ditto.
11188 (omp_get_num_threads): Ditto.
11189 (omp_get_proc_bind): Ditto.
11190 (omp_get_schedule): Ditto.
11191 (omp_get_team_num): Ditto.
11192 (omp_get_team_size): Ditto.
11193 (omp_get_thread_limit): Ditto.
11194 (omp_get_thread_num): Ditto.
11195 (omp_in_parallel): Ditto.
11196 (omp_in_final): Ditto.
11197 (omp_is_initial_device): Ditto.
11198 (omp_set_default_device): Ditto.
11199 (omp_set_dynamic): Ditto.
11200 (omp_set_max_active_levels): Ditto.
11201 (omp_set_nested): Ditto.
11202 (omp_set_num_threads): Ditto.
11203 (omp_set_schedule): Ditto.
11204 (omp_init_lock): Ditto.
11205 (omp_set_lock): Ditto.
11206 (omp_test_lock): Ditto.
11207 (omp_unset_lock): Ditto.
11208 (omp_destroy_lock): Ditto.
11209 (omp_init_nest_lock): Ditto.
11210 (omp_set_nest_lock): Ditto.
11211 (omp_test_nest_lock): Ditto.
11212 (omp_unset_nest_lock): Ditto.
11213 (omp_destroy_nest_lock): Ditto.
11214 (omp_get_wtick): Ditto.
11215 (omp_get_wtime): Ditto.
11216 (OMP_CANCELLATION): Ditto.
11217 (OMP_DISPLAY_ENV): Ditto.
11218 (OMP_DEFAULT_DEVICE): Ditto.
11219 (OMP_DYNAMIC): Ditto.
11220 (OMP_MAX_ACTIVE_LEVELS): Ditto.
11221 (OMP_MAX_TASK_PRIORITY): Ditto.
11222 (OMP_NESTED): Ditto.
11223 (OMP_NUM_THREADS): Ditto.
11224 (OMP_PROC_BIND): Ditto.
11225 (OMP_PLACES): Ditto.
11226 (OMP_STACKSIZE): Ditto.
11227 (OMP_SCHEDULE): Ditto.
11228 (OMP_THREAD_LIMIT): Ditto.
11229 (OMP_WAIT_POLICY): Ditto.
11231 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
11232 James Norris <jnorris@codesourcery.com>
11233 Julian Brown <julian@codesourcery.com>
11234 Thomas Schwinge <thomas@codesourcery.com>
11235 Tom de Vries <tom@codesourcery.com>
11237 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
11238 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
11239 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
11240 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
11241 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11242 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11243 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
11244 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
11245 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
11246 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
11248 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11250 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11252 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
11254 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
11256 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11258 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
11260 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
11262 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
11264 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
11266 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
11268 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
11270 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
11272 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
11274 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
11276 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
11278 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
11280 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
11282 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
11284 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
11286 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
11288 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
11290 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
11292 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
11294 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
11296 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
11298 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
11300 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
11301 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
11302 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
11303 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
11304 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
11305 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
11306 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
11307 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
11308 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
11310 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
11312 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
11313 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
11314 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
11316 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
11317 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
11318 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
11320 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
11322 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
11324 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
11326 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
11328 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
11330 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
11332 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
11334 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
11336 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
11338 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
11340 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
11342 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
11344 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
11346 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
11348 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11349 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
11350 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
11351 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
11352 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
11353 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
11354 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
11356 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
11357 Thomas Schwinge <thomas@codesourcery.com>
11358 Cesar Philippidis <cesar@codesourcery.com>
11360 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
11361 (gomp_acc_remove_pointer): Update declaration.
11362 (gomp_acc_declare_allocate): Declare.
11363 (gomp_remove_var): Declare.
11364 * libgomp.map (OACC_2.5): Define.
11365 * oacc-mem.c (acc_map_data): Update refcount.
11366 (acc_unmap_data): Likewise.
11367 (present_create_copy): Likewise.
11368 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
11369 (acc_copyin): Likewise.
11370 (FLAG_FINALIZE): Define.
11371 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
11372 (acc_delete_finalize): New function.
11373 (acc_delete_finalize_async): New function.
11374 (acc_copyout_finalize): New function.
11375 (acc_copyout_finalize_async): New function.
11376 (gomp_acc_insert_pointer): Update refcounts.
11377 (gomp_acc_remove_pointer): Return if data is not present on the
11379 * oacc-parallel.c (find_pset): Rename to find_pointer.
11380 (find_pointer): Add support for GOMP_MAP_POINTER.
11381 (handle_ftn_pointers): New function.
11382 (GOACC_parallel_keyed): Update refcounts of variables.
11383 (GOACC_enter_exit_data): Add support for finalized data mappings.
11384 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
11386 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
11387 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
11388 for GOMP_MAP_FORCE_FROM.
11389 * openacc.f90 (module openacc_internal): Add
11390 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
11391 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
11392 acc_copyout_finalize and acc_delete_finalize.
11393 (acc_copyout_finalize_32_h): New subroutine.
11394 (acc_copyout_finalize_64_h): New subroutine.
11395 (acc_copyout_finalize_array_h): New subroutine.
11396 (acc_delete_finalize_32_h): New subroutine.
11397 (acc_delete_finalize_64_h): New subroutine.
11398 (acc_delete_finalize_array_h): New subroutine.
11399 * openacc.h (acc_copyout_finalize): Declare.
11400 (acc_copyout_finalize_async): Declare.
11401 (acc_delete_finalize): Declare.
11402 (acc_delete_finalize_async): Declare.
11403 * openacc_lib.h (acc_copyout_finalize): New interface.
11404 (acc_delete_finalize): New interface.
11405 * target.c (gomp_map_vars): Update dynamic_refcount.
11406 (gomp_remove_var): New function.
11407 (gomp_unmap_vars): Use it.
11408 (gomp_unload_image_from_device): Likewise.
11409 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
11410 case to utilize OpenACC 2.5 data clause semantics.
11411 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11412 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11413 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11414 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11415 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11416 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11417 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11418 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11419 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11420 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11421 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11422 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
11423 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
11424 utilize OpenACC 2.5 data clause semantics.
11425 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11426 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11427 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11428 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11429 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11430 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11431 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11432 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11433 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11435 2018-05-21 Janus Weil <janus@gcc.gnu.org>
11439 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
11440 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
11441 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
11442 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
11443 * testsuite/libgomp.fortran/task2.f90: Ditto.
11444 * testsuite/libgomp.fortran/vla1.f90: Ditto.
11445 * testsuite/libgomp.fortran/vla2.f90: Ditto.
11446 * testsuite/libgomp.fortran/vla3.f90: Ditto.
11447 * testsuite/libgomp.fortran/vla4.f90: Ditto.
11448 * testsuite/libgomp.fortran/vla5.f90: Ditto.
11449 * testsuite/libgomp.fortran/vla6.f90: Ditto.
11450 * testsuite/libgomp.fortran/vla8.f90: Ditto.
11451 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11452 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11454 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
11457 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11459 2018-05-09 Tom de Vries <tom@codesourcery.com>
11462 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11463 to GOACC_enter_exit_data.
11465 2018-05-09 Tom de Vries <tom@codesourcery.com>
11468 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11469 (async_synchronous_p): New function.
11470 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11472 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11473 async_valid_stream_id_p.
11474 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11475 * oacc-parallel.c (GOACC_parallel_keyed): Same.
11477 2018-05-07 Tom de Vries <tom@codesourcery.com>
11480 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11481 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11483 2018-05-03 Tom de Vries <tom@codesourcery.com>
11486 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11487 extra_tool_flags if it contains an -foffload=-fdump-* flag.
11488 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11489 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11491 2018-05-02 Tom de Vries <tom@codesourcery.com>
11494 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11495 GOMP_OPENACC_DIM ...
11496 * env.c (parse_gomp_openacc_dim): ... here. New function.
11497 (initialize_env): Call parse_gomp_openacc_dim.
11498 (goacc_default_dims): Define.
11499 * libgomp.h (goacc_default_dims): Declare.
11500 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11501 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11502 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11503 GOMP_PLUGIN_acc_default_dim.
11504 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11505 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11507 2018-05-02 Tom de Vries <tom@codesourcery.com>
11510 * testsuite/libgomp.c++/udr-9.C: Update.
11511 * testsuite/libgomp.c++/atomic-16.C: Remove.
11512 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11513 * testsuite/libgomp.c++/loop-13.C: Remove.
11514 * testsuite/libgomp.c++/loop-14.C: Remove.
11515 * testsuite/libgomp.c++/loop-15.C: Remove.
11516 * testsuite/libgomp.c++/monotonic-1.C: Remove.
11517 * testsuite/libgomp.c++/monotonic-2.C: Remove.
11518 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11519 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11520 * testsuite/libgomp.c++/ordered-1.C: Remove.
11521 * testsuite/libgomp.c++/pr45784.C: Remove.
11522 * testsuite/libgomp.c++/pr64824.C: Remove.
11523 * testsuite/libgomp.c++/pr64868.C: Remove.
11524 * testsuite/libgomp.c++/pr66199-1.C: Remove.
11525 * testsuite/libgomp.c++/pr66199-2.C: Remove.
11526 * testsuite/libgomp.c++/pr66199-3.C: Remove.
11527 * testsuite/libgomp.c++/pr66199-4.C: Remove.
11528 * testsuite/libgomp.c++/pr66199-5.C: Remove.
11529 * testsuite/libgomp.c++/pr66199-6.C: Remove.
11530 * testsuite/libgomp.c++/pr66199-7.C: Remove.
11531 * testsuite/libgomp.c++/pr66199-8.C: Remove.
11532 * testsuite/libgomp.c++/pr66199-9.C: Remove.
11533 * testsuite/libgomp.c++/pr69389.C: Remove.
11534 * testsuite/libgomp.c++/simd10.C: Remove.
11535 * testsuite/libgomp.c++/simd11.C: Remove.
11536 * testsuite/libgomp.c++/simd12.C: Remove.
11537 * testsuite/libgomp.c++/simd13.C: Remove.
11538 * testsuite/libgomp.c++/target-1.C: Remove.
11539 * testsuite/libgomp.c++/target-3.C: Remove.
11540 * testsuite/libgomp.c++/target-4.C: Remove.
11541 * testsuite/libgomp.c++/target-5.C: Remove.
11542 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11543 * testsuite/libgomp.c++/taskloop-1.C: Remove.
11544 * testsuite/libgomp.c++/taskloop-2.C: Remove.
11545 * testsuite/libgomp.c++/taskloop-3.C: Remove.
11546 * testsuite/libgomp.c++/taskloop-4.C: Remove.
11547 * testsuite/libgomp.c++/udr-9.C: Remove.
11548 * testsuite/libgomp.c++/for-10.C: Remove.
11549 * testsuite/libgomp.c++/for-11.C: Remove.
11550 * testsuite/libgomp.c++/for-12.C: Remove.
11551 * testsuite/libgomp.c++/for-13.C: Remove.
11552 * testsuite/libgomp.c++/for-14.C: Remove.
11553 * testsuite/libgomp.c++/for-9.C: Remove.
11554 * testsuite/libgomp.c/atomic-18.c: Move ...
11555 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11556 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11557 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11558 * testsuite/libgomp.c/loop-13.c: Move ...
11559 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11560 * testsuite/libgomp.c/loop-14.c: Move ...
11561 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11562 * testsuite/libgomp.c/loop-15.c: Remove.
11563 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11564 * testsuite/libgomp.c/monotonic-1.c: Move ...
11565 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11566 * testsuite/libgomp.c/monotonic-2.c: Move ...
11567 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11568 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11569 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11570 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11571 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11572 * testsuite/libgomp.c/ordered-4.c: Move ...
11573 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11574 * testsuite/libgomp.c/pr45784.c: Move ...
11575 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11576 * testsuite/libgomp.c/pr64824.c: Move ...
11577 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11578 * testsuite/libgomp.c/pr64868.c: Move ...
11579 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11580 * testsuite/libgomp.c/pr66199-1.c: Move ...
11581 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11582 * testsuite/libgomp.c/pr66199-2.c: Move ...
11583 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11584 * testsuite/libgomp.c/pr66199-3.c: Move ...
11585 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11586 * testsuite/libgomp.c/pr66199-4.c: Move ...
11587 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11588 * testsuite/libgomp.c/pr66199-5.c: Move ...
11589 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11590 * testsuite/libgomp.c/pr66199-6.c: Move ...
11591 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11592 * testsuite/libgomp.c/pr66199-7.c: Move ...
11593 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11594 * testsuite/libgomp.c/pr66199-8.c: Move ...
11595 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11596 * testsuite/libgomp.c/pr66199-9.c: Move ...
11597 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11598 * testsuite/libgomp.c/pr69389.c: Move ...
11599 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11600 * testsuite/libgomp.c/simd-14.c: Move ...
11601 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11602 * testsuite/libgomp.c/simd-15.c: Move ...
11603 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11604 * testsuite/libgomp.c/simd-16.c: Move ...
11605 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11606 * testsuite/libgomp.c/simd-17.c: Move ...
11607 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11608 * testsuite/libgomp.c/target-1.c: Move ...
11609 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11610 * testsuite/libgomp.c/target-10.c: Move ...
11611 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11612 * testsuite/libgomp.c/target-13.c: Move ...
11613 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11614 * testsuite/libgomp.c/target-2.c: Move ...
11615 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11616 * testsuite/libgomp.c/taskgroup-1.c: Move ...
11617 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11618 * testsuite/libgomp.c/taskloop-1.c: Move ...
11619 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11620 * testsuite/libgomp.c/taskloop-2.c: Move ...
11621 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11622 * testsuite/libgomp.c/taskloop-3.c: Move ...
11623 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11624 * testsuite/libgomp.c/taskloop-4.c: Move ...
11625 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11626 * testsuite/libgomp.c/udr-1.c: Move ...
11627 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11628 * testsuite/libgomp.c/for-1.c: Move ...
11629 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11630 * testsuite/libgomp.c/for-1.h: Move ...
11631 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11632 * testsuite/libgomp.c/for-2.c: Move ...
11633 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11634 * testsuite/libgomp.c/for-2.h: Move ...
11635 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11636 * testsuite/libgomp.c/for-3.c: Move ...
11637 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11638 * testsuite/libgomp.c/for-4.c: Move ...
11639 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11640 * testsuite/libgomp.c/for-5.c: Move ...
11641 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11642 * testsuite/libgomp.c/for-6.c: Move ...
11643 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11645 2018-05-02 Tom de Vries <tom@codesourcery.com>
11648 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11649 __builtin_goacc_parlevel_{id,size}.
11650 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11651 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11652 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11653 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11654 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11655 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11656 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11657 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11658 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11659 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11660 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11661 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11662 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11663 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11664 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11665 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11666 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11667 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11668 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11669 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11670 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11671 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11672 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11674 2018-05-02 Tom de Vries <tom@codesourcery.com>
11677 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11679 2018-05-02 Tom de Vries <tom@codesourcery.com>
11682 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11684 2018-04-29 Julian Brown <julian@codesourcery.com>
11685 Tom de Vries <tom@codesourcery.com>
11688 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11689 arbitrary order for iterations of atomic subtract check.
11691 2018-04-28 Tom de Vries <tom@codesourcery.com>
11694 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11695 atomic capture results obtained in parallel loop to an array, instead of
11698 2018-04-26 Tom de Vries <tom@codesourcery.com>
11701 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11702 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11703 (process_GOMP_NVPTX_JIT): New function.
11704 (link_ptx): Use process_GOMP_NVPTX_JIT.
11706 2018-04-26 Richard Biener <rguenther@suse.de>
11707 Tom de Vries <tom@codesourcery.com>
11710 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11712 2018-04-26 Tom de Vries <tom@codesourcery.com>
11715 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11716 recursion depth from 25 to 23.
11717 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11719 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11721 * configure: Regenerated.
11723 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11724 Tom de Vries <tom@codesourcery.com>
11727 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11729 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11732 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11733 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11734 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11735 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11736 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11737 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11739 PR libfortran/85166
11740 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11742 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11744 2018-04-19 Jakub Jelinek <jakub@redhat.com>
11746 * configure: Regenerated.
11748 2018-04-18 David Malcolm <dmalcolm@redhat.com>
11751 * configure: Regenerate.
11753 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11754 Tom de Vries <tom@codesourcery.com>
11756 PR middle-end/84955
11757 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11758 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11760 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11764 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11765 test from gfortran.dg to here.
11767 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11769 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11770 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11772 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11774 PR middle-end/84955
11775 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11776 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11778 2018-04-05 Tom de Vries <tom@codesourcery.com>
11781 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11783 2018-03-26 Tom de Vries <tom@codesourcery.com>
11785 PR tree-optimization/85063
11786 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11787 * testsuite/libgomp.c/switch-conversion.c: New test.
11788 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11789 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11791 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11794 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11795 call abort by STOP n.
11796 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11797 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11798 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11799 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11800 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11801 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11802 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11803 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11804 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11805 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11806 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11807 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11808 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11809 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11810 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11811 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11812 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11813 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11814 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11815 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11816 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11817 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11818 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11819 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11820 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11821 * testsuite/libgomp.fortran/character1.f90: Likewise.
11822 * testsuite/libgomp.fortran/character2.f90: Likewise.
11823 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11824 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11825 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11826 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11827 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11828 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11829 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11830 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11831 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11832 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11833 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11834 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11835 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11836 * testsuite/libgomp.fortran/do1.f90: Likewise.
11837 * testsuite/libgomp.fortran/do2.f90: Likewise.
11838 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11839 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11840 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11841 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11842 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11843 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11844 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11845 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11846 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11847 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11848 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11849 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11850 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11851 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11852 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11853 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11854 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11855 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11856 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11857 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11858 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11859 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11860 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11861 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11862 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11863 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11864 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11865 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11866 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11867 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11868 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11869 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11870 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11871 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11872 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11873 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11874 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11875 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11876 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11877 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11878 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11879 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11880 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11881 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11882 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11883 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11884 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11885 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11886 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11887 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11888 * testsuite/libgomp.fortran/lib2.f: Likewise.
11889 * testsuite/libgomp.fortran/lib3.f: Likewise.
11890 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11891 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11892 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11893 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11894 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11895 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11896 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11897 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11898 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11899 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11900 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11901 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11902 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11903 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11904 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11905 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11906 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11907 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11908 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11909 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11910 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11911 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11912 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11913 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11914 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11915 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11916 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11917 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11918 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11919 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11920 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11921 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11922 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11923 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11924 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11925 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11926 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11927 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11928 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11929 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11930 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11931 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11932 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11933 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11934 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11935 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11936 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11937 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11938 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11939 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11940 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11941 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11942 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11943 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11944 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11945 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11946 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11947 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11948 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11949 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11950 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11951 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11952 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11953 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11954 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11955 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11956 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11957 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11958 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11959 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11960 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11961 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11962 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11963 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11964 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11965 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11966 * testsuite/libgomp.fortran/stack.f90: Likewise.
11967 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11968 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11969 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11970 * testsuite/libgomp.fortran/target1.f90: Likewise.
11971 * testsuite/libgomp.fortran/target2.f90: Likewise.
11972 * testsuite/libgomp.fortran/target3.f90: Likewise.
11973 * testsuite/libgomp.fortran/target4.f90: Likewise.
11974 * testsuite/libgomp.fortran/target5.f90: Likewise.
11975 * testsuite/libgomp.fortran/target6.f90: Likewise.
11976 * testsuite/libgomp.fortran/target7.f90: Likewise.
11977 * testsuite/libgomp.fortran/target8.f90: Likewise.
11978 * testsuite/libgomp.fortran/task1.f90: Likewise.
11979 * testsuite/libgomp.fortran/task2.f90: Likewise.
11980 * testsuite/libgomp.fortran/task3.f90: Likewise.
11981 * testsuite/libgomp.fortran/task4.f90: Likewise.
11982 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11983 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11984 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11985 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11986 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11987 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11988 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11989 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11990 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11991 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11992 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11993 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11994 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11995 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11996 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11997 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11998 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11999 * testsuite/libgomp.fortran/udr3.f90: Likewise.
12000 * testsuite/libgomp.fortran/udr4.f90: Likewise.
12001 * testsuite/libgomp.fortran/udr5.f90: Likewise.
12002 * testsuite/libgomp.fortran/udr6.f90: Likewise.
12003 * testsuite/libgomp.fortran/udr7.f90: Likewise.
12004 * testsuite/libgomp.fortran/udr8.f90: Likewise.
12005 * testsuite/libgomp.fortran/udr9.f90: Likewise.
12006 * testsuite/libgomp.fortran/vla1.f90: Likewise.
12007 * testsuite/libgomp.fortran/vla2.f90: Likewise.
12008 * testsuite/libgomp.fortran/vla3.f90: Likewise.
12009 * testsuite/libgomp.fortran/vla4.f90: Likewise.
12010 * testsuite/libgomp.fortran/vla5.f90: Likewise.
12011 * testsuite/libgomp.fortran/vla6.f90: Likewise.
12012 * testsuite/libgomp.fortran/vla7.f90: Likewise.
12013 * testsuite/libgomp.fortran/vla8.f90: Likewise.
12014 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
12015 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
12016 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
12017 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
12018 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12019 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12020 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12021 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12022 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12023 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12024 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12025 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
12026 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12027 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
12028 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12029 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
12030 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
12031 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
12032 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
12033 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
12034 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
12035 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
12036 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
12037 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
12038 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
12039 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
12040 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
12041 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
12042 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12043 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
12044 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12045 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12046 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12047 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12048 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12049 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12050 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12051 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12052 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
12053 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12054 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
12055 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12056 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
12057 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
12058 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
12059 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
12060 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12061 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12062 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
12063 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
12064 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
12065 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
12066 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
12067 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12068 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
12069 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
12070 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
12071 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
12072 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
12073 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
12074 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12075 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12076 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12077 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12078 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
12079 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
12080 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
12081 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12082 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
12083 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
12084 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
12085 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
12086 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
12087 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
12088 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12089 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
12090 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
12091 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12092 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12093 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12094 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12095 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12096 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
12097 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
12098 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
12099 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
12100 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
12101 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
12102 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
12103 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
12104 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
12105 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
12106 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
12107 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
12109 2018-03-20 Richard Biener <rguenther@suse.de>
12111 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
12112 parallelizable loop.
12114 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12117 * configure: Regenerate.
12119 2018-02-16 Jakub Jelinek <jakub@redhat.com>
12122 * libgomp.fortran/pr84418-1.f90: New test.
12123 * libgomp.fortran/pr84418-2.f90: New test.
12125 2018-02-14 Jakub Jelinek <jakub@redhat.com>
12128 * testsuite/libgomp.fortran/threadprivate4.f90: Add
12129 -std=f2003 -fall-intrinsics into dg-additional-options.
12131 2018-02-08 Martin Jambor <mjambor@suse.cz>
12133 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
12136 2018-02-08 Martin Jambor <mjambor@suse.cz>
12138 * testsuite/libgomp.hsa.c/staticvar.c: New test.
12140 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12142 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
12143 [__cplusplus]: Declare extern "C".
12145 2018-02-07 Tom de Vries <tom@codesourcery.com>
12148 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
12150 2018-01-29 Christoph Spiel <cspiel@freenet.de>
12151 Jakub Jelinek <jakub@redhat.com>
12154 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
12155 instead of omp_lock_t.
12157 2018-01-25 Tom de Vries <tom@codesourcery.com>
12160 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
12162 2018-01-24 Tom de Vries <tom@codesourcery.com>
12165 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
12167 2018-01-24 Tom de Vries <tom@codesourcery.com>
12170 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
12172 2018-01-19 Tom de Vries <tom@codesourcery.com>
12173 Cesar Philippidis <cesar@codesourcery.com>
12176 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
12177 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
12179 2018-01-03 Jakub Jelinek <jakub@redhat.com>
12181 Update copyright years.
12183 * libgomp.texi: Bump @copying's copyright year.
12185 2017-12-30 Tom de Vries <tom@codesourcery.com>
12188 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
12189 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
12191 2017-12-27 Tom de Vries <tom@codesourcery.com>
12194 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
12195 (test_nonstatic): Fix return type to workaround PR83046.
12197 2017-12-05 Jakub Jelinek <jakub@redhat.com>
12200 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
12201 j suffix instead of i.
12202 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
12205 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
12207 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
12208 call to acc_wait (1).
12210 2017-11-24 Jakub Jelinek <jakub@redhat.com>
12213 * testsuite/libgomp.fortran/pr81304.f90: New test.
12215 2017-11-23 Jakub Jelinek <jakub@redhat.com>
12218 * libgomp.fortran/pr81841.f90: New test.
12220 2017-11-22 Jakub Jelinek <jakub@redhat.com>
12223 * target.c (gomp_target_init): Compute lengths just once and
12224 use them in both malloc size and subsequent copying.
12226 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12228 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
12229 * acinclude.m4: Add cet.m4.
12230 * configure: Regenerate.
12231 * Makefile.in: Likewise.
12232 * testsuite/Makefile.in: Likewise.
12234 2017-11-15 Tom de Vries <tom@codesourcery.com>
12236 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
12237 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
12238 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
12239 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
12240 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
12241 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
12243 2017-11-14 Tom de Vries <tom@codesourcery.com>
12245 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
12246 non-nvidia devices.
12248 2017-11-07 Jakub Jelinek <jakub@redhat.com>
12251 * testsuite/libgomp.c++/pr82835.C: New test.
12253 2017-11-06 Martin Liska <mliska@suse.cz>
12255 * testsuite/libgomp.c++/loop-2.C: Return a value
12256 for functions with non-void return type, or change type to void,
12257 or add -Wno-return-type for test.
12258 * testsuite/libgomp.c++/loop-4.C: Likewise.
12259 * testsuite/libgomp.c++/parallel-1.C: Likewise.
12260 * testsuite/libgomp.c++/shared-1.C: Likewise.
12261 * testsuite/libgomp.c++/single-1.C: Likewise.
12262 * testsuite/libgomp.c++/single-2.C: Likewise.
12264 2017-10-31 Tom de Vries <tom@codesourcery.com>
12266 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
12267 "do {} while (false)".
12268 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
12269 after HSA_DEBUG call.
12271 2017-10-28 Jakub Jelinek <jakub@redhat.com>
12273 * target.c (struct gomp_coalesce_buf): New type.
12274 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
12275 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
12276 (gomp_copy_host2dev): Add CBUF argument, if copying into
12277 the cached ranges, memcpy into buffer instead of copying
12279 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
12280 Add CBUF argument, pass it through to other calls.
12281 (gomp_map_vars): Aggregate copies from host to device if small enough
12282 and with small enough gaps in between into memcpy into a buffer and
12283 fewer host to device copies from the buffer.
12284 (gomp_update): Adjust gomp_copy_host2dev caller.
12286 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
12288 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
12290 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12291 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12292 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12293 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12295 2017-10-16 Tom de Vries <tom@codesourcery.com>
12297 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
12298 openacc_nvidia_accel_selected.
12299 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
12300 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
12301 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
12302 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
12303 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
12304 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
12305 openacc_nvidia_accel_selected. Skip for shared memory device.
12306 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
12307 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
12309 2017-10-09 Martin Jambor <mjambor@suse.cz>
12312 * testsuite/libgomp.hsa.c/pr82416.c: New test.
12314 2017-10-07 Tom de Vries <tom@codesourcery.com>
12316 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
12317 Remove acc_device_nvidia references.
12318 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
12321 2017-10-05 Tom de Vries <tom@codesourcery.com>
12323 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
12324 vector_length(32) clause from acc parallel directive.
12325 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
12327 2017-10-04 Tom de Vries <tom@codesourcery.com>
12329 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
12330 (main): Reduce sum of arr elements. Assert that hres is exactly
12331 representable in 32-bit floating point.
12332 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
12333 (main): Reduce sum of arr elements. Assert that hres and hmres are
12334 exactly representable in 32-bit floating point.
12335 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
12337 2017-09-28 Tom de Vries <tom@codesourcery.com>
12339 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
12341 * testsuite/libgomp.c++/pr69393.C: Same.
12342 * testsuite/libgomp.c++/taskloop-1.C: Same.
12343 * testsuite/libgomp.c++/taskloop-3.C: Same.
12344 * testsuite/libgomp.c++/taskloop-4.C: Same.
12345 * testsuite/libgomp.c/for-4.c: Same.
12346 * testsuite/libgomp.c/pr66199-3.c: Same.
12347 * testsuite/libgomp.c/pr66199-4.c: Same.
12348 * testsuite/libgomp.c/pr66199-6.c: Same.
12349 * testsuite/libgomp.c/taskloop-1.c: Same.
12350 * testsuite/libgomp.c/taskloop-3.c: Same.
12351 * testsuite/libgomp.c/taskloop-4.c: Same.
12352 * testsuite/libgomp.fortran/aligned1.f03: Same.
12353 * testsuite/libgomp.fortran/condinc1.f: Same.
12354 * testsuite/libgomp.fortran/condinc3.f90: Same.
12355 * testsuite/libgomp.fortran/crayptr1.f90: Same.
12356 * testsuite/libgomp.fortran/crayptr2.f90: Same.
12357 * testsuite/libgomp.fortran/crayptr3.f90: Same.
12358 * testsuite/libgomp.fortran/omp_cond1.f: Same.
12359 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
12360 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
12361 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
12362 * testsuite/libgomp.fortran/recursion1.f90: Same.
12363 * testsuite/libgomp.fortran/target2.f90: Same.
12364 * testsuite/libgomp.fortran/target5.f90: Same.
12365 * testsuite/libgomp.fortran/task3.f90: Same.
12367 2017-09-28 Tom de Vries <tom@codesourcery.com>
12369 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
12370 vector_length(32) clause from acc parallel directive.
12371 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
12373 2017-09-27 Tom de Vries <tom@codesourcery.com>
12375 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
12376 Remove acc_device_nvidia references.
12378 2017-09-16 Tom de Vries <tom@codesourcery.com>
12381 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
12383 2017-09-14 Tom de Vries <tom@codesourcery.com>
12385 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
12386 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
12387 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
12388 * testsuite/libgomp.c/c.exp: Include test-cases from
12389 libgomp.c-c++-common.
12390 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
12393 2017-09-14 Jakub Jelinek <jakub@redhat.com>
12396 * testsuite/libgomp.c++/pr81314.C: New test.
12398 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
12400 * libgomp.texi (Top): www.openacc.org now uses https.
12401 (Enabling OpenACC): Ditto.
12402 (acc_get_num_devices): Ditto.
12403 (acc_set_device_type): Ditto.
12404 (acc_get_device_type): Ditto.
12405 (acc_set_device_num): Ditto.
12406 (acc_get_device_num): Ditto.
12407 (acc_async_test): Ditto.
12408 (acc_async_test_all): Ditto.
12410 (acc_wait_all): Ditto.
12411 (acc_wait_all_async): Ditto.
12412 (acc_wait_async): Ditto.
12414 (acc_shutdown): Ditto.
12415 (acc_on_device): Ditto.
12416 (acc_malloc): Ditto.
12418 (acc_copyin): Ditto.
12419 (acc_present_or_copyin): Ditto.
12420 (acc_create): Ditto.
12421 (acc_present_or_create): Ditto.
12422 (acc_copyout): Ditto.
12423 (acc_delete): Ditto.
12424 (acc_update_device): Ditto.
12425 (acc_update_self): Ditto.
12426 (acc_map_data): Ditto.
12427 (acc_unmap_data): Ditto.
12428 (acc_deviceptr): Ditto.
12429 (acc_hostptr): Ditto.
12430 (acc_is_present): Ditto.
12431 (acc_memcpy_to_device): Ditto.
12432 (acc_memcpy_from_device): Ditto.
12433 (acc_get_current_cuda_device): Ditto.
12434 (acc_get_current_cuda_context): Ditto.
12435 (acc_get_cuda_stream): Ditto.
12436 (acc_set_cuda_stream): Ditto.
12437 (ACC_DEVICE_TYPE): Ditto.
12438 (ACC_DEVICE_NUM): Ditto.
12439 (OpenACC Library Interoperability): Ditto.
12441 2017-08-09 Jakub Jelinek <jakub@redhat.com>
12444 * testsuite/libgomp.c/pr81687-1.c: New test.
12445 * testsuite/libgomp.c/pr81687-2.c: New test.
12447 2017-08-07 Jakub Jelinek <jakub@redhat.com>
12450 * testsuite/libgomp.c/pr69389.c: New test.
12451 * testsuite/libgomp.c++/pr69389.C: New test.
12453 2017-08-07 Tom de Vries <tom@codesourcery.com>
12455 PR middle-end/78266
12456 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12457 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12459 2017-07-27 Jakub Jelinek <jakub@redhat.com>
12462 * testsuite/libgomp.c/pr45784.c: New test.
12463 * testsuite/libgomp.c++/pr45784.C: New test.
12465 2017-07-19 Tom de Vries <tom@codesourcery.com>
12467 * testsuite/libgomp.oacc-c/vec.c: New test.
12469 2017-07-03 Tom de Vries <tom@codesourcery.com>
12471 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12473 2017-06-27 Tom de Vries <tom@codesourcery.com>
12475 * plugin/plugin-nvptx.c (notify_var): New function.
12476 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12478 2017-06-27 Tom de Vries <tom@codesourcery.com>
12480 * env.c (parse_unsigned_long_1): Factor out of ...
12481 (parse_unsigned_long): ... here.
12482 (parse_int_1): Factor out of ...
12483 (parse_int): ... here.
12484 (parse_int_secure): New function.
12485 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12486 * secure_getenv.h: Factor out of ...
12487 * plugin/plugin-hsa.c: ... here.
12488 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12490 2017-06-21 Jakub Jelinek <jakub@redhat.com>
12493 * testsuite/libgomp.c++/pr81130.C: New test.
12495 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12497 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12499 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12500 dg-xfail-run-if default args.
12502 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12504 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12505 * testsuite/libgomp.c/pr39591-3.c: Likewise.
12507 2017-05-30 Jakub Jelinek <jakub@redhat.com>
12510 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12511 (gomp_affinity_init_level): Use it. Always analyze the core and thread
12512 sibling lists, depending on level just pick up what CPUs to put
12513 together into a place vs. whether add multiple ordered places.
12515 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
12517 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12518 * libgomp.map (OACC_2.0.1): Add these.
12519 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12520 for "acc_wait", and "acc_wait_all", respectively.
12521 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12522 for "acc_wait", and "acc_wait_all", respectively.
12523 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12524 * libgomp.texi (acc_wait, acc_wait_all): Update.
12525 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12526 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12527 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12529 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12530 acc_present_or_copyin and acc_present_or_create procedures,
12532 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12533 generally different variants of OpenACC Runtime Library functions.
12534 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12536 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12537 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12539 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12540 of preprocessor definitions.
12541 * libgomp.h (strong_alias): Guard by "#ifdef
12542 HAVE_ATTRIBUTE_ALIAS".
12543 * oacc-mem.c: Provide "acc_pcreate" as alias for
12544 "acc_present_or_create", and "acc_pcopyin" as alias for
12545 "acc_present_or_copyin".
12546 * libgomp.map: New version "OACC_2.0.1".
12547 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12548 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12549 its content into...
12550 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12553 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12554 when disabling nvptx offloading.
12556 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
12558 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12559 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12560 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12562 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12563 * testsuite/lib/libgomp.exp
12564 (check_effective_target_openacc_nvidia_accel_configured): New
12566 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12567 (check_effective_target_c++): New procs.
12568 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12569 (check_effective_target_c++): Likewise.
12571 2017-05-22 Jakub Jelinek <jakub@redhat.com>
12573 PR middle-end/80809
12574 * testsuite/libgomp.c/pr80809-2.c: New test.
12575 * testsuite/libgomp.c/pr80809-3.c: New test.
12577 PR middle-end/80809
12578 * testsuite/libgomp.c/pr80809-1.c: New test.
12580 PR middle-end/80853
12581 * testsuite/libgomp.c/pr80853.c: New test.
12583 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
12585 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12586 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12587 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12588 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12589 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12591 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12592 Debug output for failure.
12594 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12596 * testsuite/lib/libgomp.exp: Load scanlang.exp.
12598 2017-04-27 Jakub Jelinek <jakub@redhat.com>
12601 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12602 bootstrap compare failures.
12604 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
12606 * testsuite/libgomp.c/target-36.c: New testcase.
12608 2017-04-13 Jakub Jelinek <jakub@redhat.com>
12610 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12613 2017-04-11 Jakub Jelinek <jakub@redhat.com>
12616 * testsuite/libgomp.c/pr80394.c: New test.
12618 2017-04-04 Jakub Jelinek <jakub@redhat.com>
12621 * config/posix/thread-stacksize.h: New file.
12622 * config/darwin/thread-stacksize.h: New file.
12623 * config/nvptx/thread-stacksize.h: New file.
12624 * env.c: Include thread-stacksize.h.
12625 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12626 instead of 0. Call pthread_attr_setstacksize even if
12627 GOMP_DEFAULT_STACKSIZE is non-zero.
12629 2017-03-30 Jakub Jelinek <jakub@redhat.com>
12631 * env.c (initialize_env): Initialize stacksize to 0.
12633 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
12636 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12638 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12641 * testsuite/libgomp.c/pr79940.c: New test.
12643 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12645 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12647 Add __float128 options.
12649 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
12651 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12652 hppa*-*-* dg-skip-if directive.
12654 2017-02-09 Jakub Jelinek <jakub@redhat.com>
12656 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12657 dg-skip-if directive into a comment.
12659 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12660 Chung-Lin Tang <cltang@codesourcery.com>
12662 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12663 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12664 add additional case.
12665 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12666 "openacc_nvidia_accel_selected".
12667 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12668 Add num_workers(8) clause.
12670 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
12672 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12674 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12675 include complex.h on hppa*-*-hpux*.
12676 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12678 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
12680 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12682 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12683 GOMP_OFFLOAD_openacc_exec. Adjust all users.
12684 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12685 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
12686 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12687 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
12688 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12689 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
12690 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12691 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
12693 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12695 * libgomp-plugin.h: #include <stdbool.h>.
12696 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12697 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12698 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12699 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12700 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12701 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12702 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12703 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12704 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12705 (GOMP_OFFLOAD_openacc_async_test)
12706 (GOMP_OFFLOAD_openacc_async_test_all)
12707 (GOMP_OFFLOAD_openacc_async_wait)
12708 (GOMP_OFFLOAD_openacc_async_wait_async)
12709 (GOMP_OFFLOAD_openacc_async_wait_all)
12710 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12711 (GOMP_OFFLOAD_openacc_async_set_async)
12712 (GOMP_OFFLOAD_openacc_create_thread_data)
12713 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12714 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12715 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12716 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12717 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12718 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12720 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12721 (GOMP_OFFLOAD_unload_image): Fix argument types.
12723 2017-01-26 Jakub Jelinek <jakub@redhat.com>
12725 * testsuite/lib/libgomp.exp
12726 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12727 check_compile invocation. Fix up removal of executable. Drop
12728 bogus "2>&1" argument.
12730 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12733 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
12734 Martin Jambor <mjambor@suse.cz>
12736 * plugin/hsa.h: Moved to top level include.
12737 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12739 2017-01-21 Jakub Jelinek <jakub@redhat.com>
12742 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12743 of cat to get version from BASE-VER file.
12744 * testsuite/Makefile.in: Regenerated.
12746 2017-01-19 Jakub Jelinek <jakub@redhat.com>
12748 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12751 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12753 * plugin/hsa.h: Add GCC runtime library exception.
12754 * plugin/hsa_ext_finalize.h: Likewise.
12756 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12757 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12758 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12759 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12760 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12761 library to link ptx plugin against.
12762 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12763 (CUDA_CALLS): Define.
12764 (cuda_lib, cuda_lib_inited): New variables.
12765 (init_cuda_lib): New function.
12766 (CUDA_CALL_PREFIX): Define.
12767 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12768 (CUDA_CALL): Use FN instead of (FN).
12769 (CUDA_CALL_NOCHECK): Define.
12770 (cuda_error, fini_streams_for_device, select_stream_for_async,
12771 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12772 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12773 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12774 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12776 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12778 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12779 Use CUDA_CALL_NOCHECK.
12780 * plugin/cuda/cuda.h: New file.
12781 * config.h.in: Regenerated.
12782 * configure: Regenerated.
12785 * configure.ac: Add GCC_BASE_VER.
12786 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12787 get version from BASE-VER file.
12788 * testsuite/Makefile.in: Regenerated.
12789 * configure: Regenerated.
12790 * Makefile.in: Regenerated.
12792 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12795 * Makefile.am: Make fincludedir multilib-aware.
12796 * Makefile.in: Regenerate.
12798 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12800 Update copyright years.
12802 * libgomp.texi: Bump @copying's copyright year.
12804 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12806 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12807 pthread_spinlock_t instead of gomp_mutex_t lock.
12808 (gomp_get_thread_pool): Likewise.
12809 (gomp_release_thread_pool): Likewise.
12810 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12813 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12815 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12816 thread pool in case nthreads == 1.
12818 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12820 * config/nvptx/env.c: Delete.
12821 * icv.c: Move definitions of ICV variables back ...
12822 * env.c: ...here. Do not compile environment-related functionality if
12823 LIBGOMP_OFFLOADED_ONLY is set.
12825 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12827 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12828 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12829 * configure: Regenerate.
12830 * config.h.in: Likewise.
12832 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12834 * Makefile.in: Regenerate with automake-1.11.6.
12835 * aclocal.m4: Likewise.
12836 * configure: Likewise.
12837 * testsuite/Makefile.in: Likewise.
12839 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
12841 * config/nvptx/critical.c: Delete to use generic implementation.
12843 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12845 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12846 ../../affinity.c as fallback.
12847 * config/nvptx/affinity.c: Delete to use fallback implementation.
12849 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
12850 Jakub Jelinek <jakub@redhat.com>
12851 Dmitry Melnik <dm@ispras.ru>
12853 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12854 * Makefile.in. Regenerate.
12855 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12856 (LIBGOMP_USE_PTHREADS): ...here; new define.
12857 * configure: Regenerate.
12858 * config.h.in: Likewise.
12859 * config/posix/affinity.c: Move to...
12860 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12861 interface by LIBGOMP_USE_PTHREADS.
12862 * critical.c: Split out GOMP_atomic_{start,end} into...
12863 * atomic.c: ...here (new file).
12864 * env.c: Split out ICV definitions into...
12865 * icv.c: ...here (new file) and...
12866 * icv-device.c: ...here. New file.
12867 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12868 (gomp_destroy_lock_30): Ditto.
12869 (gomp_set_lock_30): Ditto.
12870 (gomp_unset_lock_30): Ditto.
12871 (gomp_test_lock_30): Ditto.
12872 (gomp_init_nest_lock_30): Ditto.
12873 (gomp_destroy_nest_lock_30): Ditto.
12874 (gomp_set_nest_lock_30): Ditto.
12875 (gomp_unset_nest_lock_30): Ditto.
12876 (gomp_test_nest_lock_30): Ditto.
12878 * config/nvptx/lock.c: New.
12879 * config/nvptx/bar.c: New.
12880 * config/nvptx/bar.h: New.
12881 * config/nvptx/doacross.h: New.
12882 * config/nvptx/error.c: New.
12883 * config/nvptx/icv-device.c: New.
12884 * config/nvptx/mutex.h: New.
12885 * config/nvptx/pool.h: New.
12886 * config/nvptx/proc.c: New.
12887 * config/nvptx/ptrlock.h: New.
12888 * config/nvptx/sem.h: New.
12889 * config/nvptx/simple-bar.h: New.
12890 * config/nvptx/target.c: New.
12891 * config/nvptx/task.c: New.
12892 * config/nvptx/team.c: New.
12893 * config/nvptx/time.c: New.
12894 * config/posix/simple-bar.h: New.
12895 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12896 (gomp_num_teams_var): Declare.
12897 (struct gomp_thread_pool): Change threads_dock member to
12898 gomp_simple_barrier_t.
12899 [__nvptx__] (gomp_thread): New implementation.
12900 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12901 (gomp_thread_destructor): Ditto.
12902 (gomp_init_thread_affinity): Ditto.
12903 * team.c: Guard uses of Pthreads-specific interfaces by
12904 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12905 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12906 * config/nvptx/alloc.c: Delete.
12907 * config/nvptx/barrier.c: Ditto.
12908 * config/nvptx/fortran.c: Ditto.
12909 * config/nvptx/iter.c: Ditto.
12910 * config/nvptx/iter_ull.c: Ditto.
12911 * config/nvptx/loop.c: Ditto.
12912 * config/nvptx/loop_ull.c: Ditto.
12913 * config/nvptx/ordered.c: Ditto.
12914 * config/nvptx/parallel.c: Ditto.
12915 * config/nvptx/priority_queue.c: Ditto.
12916 * config/nvptx/sections.c: Ditto.
12917 * config/nvptx/single.c: Ditto.
12918 * config/nvptx/splay-tree.c: Ditto.
12919 * config/nvptx/work.c: Ditto.
12920 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12921 -foffload=-lgfortran in addition to -lgfortran.
12922 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12923 * plugin/plugin-nvptx.c: Include <limits.h>.
12924 (struct targ_fn_descriptor): Add new fields.
12925 (struct ptx_device): Ditto. Set them...
12926 (nvptx_open_device): ...here.
12927 (nvptx_adjust_launch_bounds): New.
12928 (nvptx_host2dev): Allow NULL 'nvthd'.
12929 (nvptx_dev2host): Ditto.
12930 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12931 (link_ptx): Adjust log sizes.
12932 (nvptx_host2dev): Allow NULL 'nvthd'.
12933 (nvptx_dev2host): Ditto.
12934 (nvptx_set_clocktick): New. Use it...
12935 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12937 (GOMP_OFFLOAD_dev2dev): New.
12938 (nvptx_adjust_launch_bounds): New.
12939 (nvptx_stacks_size): New.
12940 (nvptx_stacks_alloc): New.
12941 (nvptx_stacks_free): New.
12942 (GOMP_OFFLOAD_run): New.
12943 (GOMP_OFFLOAD_async_run): New (stub).
12945 2016-11-23 Martin Jambor <mjambor@suse.cz>
12947 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12948 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12949 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12951 2016-11-23 Martin Liska <mliska@suse.cz>
12952 Martin Jambor <mjambor@suse.cz>
12954 * plugin/hsa.h: New file.
12955 * plugin/hsa_ext_finalize.h: New file.
12956 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12957 header file unistd.h, and functions secure_getenv, __secure_getenv,
12958 getuid, geteuid, getgid and getegid.
12959 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12961 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12962 Handle various cases of secure_getenv presence, add an implementation
12963 when we can test effective UID and GID.
12964 (struct hsa_runtime_fn_info): New structure.
12965 (hsa_runtime_fn_info hsa_fns): New variable.
12966 (hsa_runtime_lib): Likewise.
12967 (support_cpu_devices): Likewise.
12968 (init_enviroment_variables): Load newly introduced ENV
12970 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12971 (hsa_fatal): Likewise.
12972 (DLSYM_FN): New macro.
12973 (init_hsa_runtime_functions): New function.
12974 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12975 structure. Depending on environment, also allow CPU devices.
12976 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12977 (get_kernarg_memory_region): Likewise.
12978 (GOMP_OFFLOAD_init_device): Likewise.
12979 (destroy_hsa_program): Likewise.
12980 (init_basic_kernel_info): New function.
12981 (GOMP_OFFLOAD_load_image): Use it.
12982 (create_and_finalize_hsa_program): Call hsa run-time functions via
12984 (create_single_kernel_dispatch): Likewise.
12985 (release_kernel_dispatch): Likewise.
12986 (init_single_kernel): Likewise.
12987 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12988 (get_group_size): New function.
12989 (run_kernel): Likewise.
12990 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12991 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12993 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12994 * testsuite/libgomp-test-support.exp.in: Likewise.
12995 * Makefile.in: Regenerated.
12996 * aclocal.m4: Likewise.
12997 * config.h.in: Likewise.
12998 * configure: Likewise.
12999 * testsuite/Makefile.in: Likewise.
13001 2016-11-15 Martin Jambor <mjambor@suse.cz>
13002 Alexander Monakov <amonakov@ispras.ru>
13004 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
13005 mapping clauses to target constructs.
13006 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
13008 2016-11-15 Matthias Klose <doko@ubuntu.com>
13010 * configure: Regenerate.
13012 2016-11-10 Jakub Jelinek <jakub@redhat.com>
13014 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
13015 * omp_lib.h.in (openmp_version): Likewise.
13016 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
13018 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
13020 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
13021 (fib_wrapper): Add map(from: x) clause.
13022 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
13023 (e_53_2): Likewise.
13024 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
13025 (accum): Add map(tmp) clause.
13026 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
13027 (accum): Add map(tofrom: tmp) clause.
13028 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
13029 (gramSchmidt): Likewise.
13030 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
13031 map(tofrom: sum) clause.
13032 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
13033 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
13034 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
13035 only allowed on the loop iterator.
13036 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
13037 * testsuite/libgomp.fortran/taskloop2.f90: New test.
13038 * testsuite/libgomp.fortran/taskloop4.f90: New test.
13039 * testsuite/libgomp.fortran/doacross1.f90: New test.
13040 * testsuite/libgomp.fortran/doacross3.f90: New test.
13041 * testsuite/libgomp.fortran/taskloop1.f90: New test.
13042 * testsuite/libgomp.fortran/taskloop3.f90: New test.
13043 * testsuite/libgomp.fortran/doacross2.f90: New test.
13044 * testsuite/libgomp.c/doacross-1.c (main): Add missing
13045 #pragma omp atomic read.
13046 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13047 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
13049 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
13050 Nathan Sidwell <nathan@acm.org>
13052 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
13053 to determine default geometry.
13054 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
13057 2016-11-01 Jakub Jelinek <jakub@redhat.com>
13059 * hashtab.h: Use standard GPLv3 with runtime exception
13062 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
13064 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
13065 size when allocating new thread.
13067 2016-09-14 Marek Polacek <polacek@redhat.com>
13069 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
13071 2016-08-19 Jakub Jelinek <jakub@redhat.com>
13074 * testsuite/libgomp.fortran/pr71014.f90: New test.
13076 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
13078 PR middle-end/70895
13079 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
13080 firstprivate clauses.
13081 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
13083 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13084 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
13085 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
13086 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13087 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13088 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
13089 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13090 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13091 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13092 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13093 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13094 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
13096 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
13099 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
13101 2016-08-08 Jakub Jelinek <jakub@redhat.com>
13104 * testsuite/libgomp.c++/pr58706.C: New test.
13106 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
13108 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
13109 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
13110 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
13112 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
13113 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
13115 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
13117 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
13118 test, and don't hardcode -O0.
13120 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
13122 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
13124 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
13126 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
13129 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
13131 PR middle-end/71734
13132 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
13133 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
13135 2016-07-01 Jakub Jelinek <jakub@redhat.com>
13138 * testsuite/libgomp.fortran/associate3.f90: New test.
13140 2016-06-17 Jakub Jelinek <jakub@redhat.com>
13142 * testsuite/libgomp.c++/target-21.C: New test.
13144 2016-06-16 Jakub Jelinek <jakub@redhat.com>
13146 * testsuite/libgomp.c++/target-20.C: New test.
13148 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
13149 Cesar Philippidis <cesar@codesourcery.com>
13151 PR middle-end/71373
13152 * libgomp.oacc-c/nested-function-1.c: New file.
13153 * libgomp.oacc-c/nested-function-2.c: Likewise.
13154 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
13155 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
13156 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
13158 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
13161 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
13162 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
13163 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
13165 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
13167 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
13168 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
13170 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
13173 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
13175 2016-05-26 Jakub Jelinek <jakub@redhat.com>
13177 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
13178 instead of invalid schedule(static, 0).
13179 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13181 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
13183 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
13184 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
13185 parameter, use to set async stream around call to gomp_unmap_vars,
13186 call gomp_unmap_vars() with 'do_copyfrom' set to true.
13187 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
13188 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
13189 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
13190 (event_add): Add int parameter, initialize 'val' field when
13191 adding new ptx_event struct.
13192 (nvptx_evec): Adjust event_add() call arguments.
13193 (nvptx_host2dev): Likewise.
13194 (nvptx_dev2host): Likewise.
13195 (nvptx_wait_async): Likewise.
13196 (nvptx_wait_all_async): Likewise.
13197 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
13198 pass to event_add() call.
13199 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
13201 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
13202 call openacc.register_async_cleanup_func() hook.
13203 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
13204 * target.c (gomp_copy_from_async): Delete function.
13205 (gomp_map_vars): Remove async_refcount.
13206 (gomp_unmap_vars): Likewise.
13207 (gomp_load_image_to_device): Likewise.
13208 (omp_target_associate_ptr): Likewise.
13209 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
13210 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
13211 (gomp_copy_from_async): Remove.
13213 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
13215 * target.c (gomp_device_copy): New function.
13216 (gomp_copy_host2dev): Likewise.
13217 (gomp_copy_dev2host): Likewise.
13218 (gomp_free_device_memory): Likewise.
13219 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
13220 (gomp_map_pointer): Likewise.
13221 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
13222 NULL value from alloc_func plugin hook.
13223 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
13224 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
13225 (gomp_unmap_vars): Likewise.
13226 (gomp_update): Adjust to call gomp_copy_dev2host and
13227 gomp_copy_host2dev functions.
13228 (gomp_unload_image_from_device): Handle false value from
13229 unload_image_func plugin hook.
13230 (gomp_init_device): Handle false value from init_device_func
13232 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
13233 (omp_target_free): Adjust to call gomp_free_device_memory.
13234 (omp_target_memcpy): Handle return values from host2dev_func,
13235 dev2host_func, and dev2dev_func plugin hooks.
13236 (omp_target_memcpy_rect_worker): Likewise.
13237 (gomp_target_fini): Handle false value from fini_device_func
13239 * libgomp.h (struct gomp_device_descr): Adjust return type of
13240 init_device_func, fini_device_func, unload_image_func, free_func,
13241 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
13242 * oacc-init.c (acc_shutdown_1): Handle false value from
13243 fini_device_func plugin hook.
13244 * oacc-host.c (host_init_device): Change return type to bool.
13245 (host_fini_device): Likewise.
13246 (host_unload_image): Likewise.
13247 (host_free): Likewise.
13248 (host_dev2host): Likewise.
13249 (host_host2dev): Likewise.
13250 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
13251 (acc_memcpy_to_device): Likewise.
13252 (acc_memcpy_from_device): Likewise.
13253 (delete_copyout): Add libfnname parameter, handle free_func
13254 hook fatal error case.
13255 (acc_delete): Adjust delete_copyout call.
13256 (acc_copyout): Likewise.
13257 (update_dev_host): Move gomp_mutex_unlock to after
13258 host2dev/dev2host hook calls.
13260 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
13261 to 'hsa_error_msg', for clarity.
13262 (hsa_fatal): Likewise.
13263 (hsa_error): New function.
13264 (init_hsa_context): Change return type to bool, adjust to return
13266 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
13268 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
13269 return false on error.
13270 (get_agent_info): Adjust to return NULL on error.
13271 (destroy_hsa_program): Change return type to bool, adjust to
13272 return false on error.
13273 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
13274 (destroy_module): Change return type to bool, adjust to
13275 return false on error.
13276 (GOMP_OFFLOAD_unload_image): Likewise.
13277 (GOMP_OFFLOAD_fini_device): Likewise.
13278 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
13279 (GOMP_OFFLOAD_free): Change to return false when called.
13280 (GOMP_OFFLOAD_dev2host): Likewise.
13281 (GOMP_OFFLOAD_host2dev): Likewise.
13282 (GOMP_OFFLOAD_dev2dev): Likewise.
13284 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
13285 (CUDA_CALL): Likewise.
13286 (CUDA_CALL_ASSERT): Likewise.
13287 (map_init): Change return type to bool, use CUDA_CALL* macros.
13288 (map_fini): Likewise.
13289 (init_streams_for_device): Change return type to bool, adjust
13291 (fini_streams_for_device): Change return type to bool, adjust
13293 (select_stream_for_async): Release stream_lock before calls to
13294 GOMP_PLUGIN_fatal, adjust call to map_init.
13295 (nvptx_init): Use CUDA_CALL* macros.
13296 (nvptx_attach_host_thread_to_device): Change return type to bool,
13297 use CUDA_CALL* macros.
13298 (nvptx_open_device): Use CUDA_CALL* macros.
13299 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
13301 (nvptx_get_num_devices): Use CUDA_CALL* macros.
13302 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
13303 (nvptx_exec): Use CUDA_CALL* macros.
13304 (nvptx_alloc): Use CUDA_CALL* macros.
13305 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
13306 (nvptx_host2dev): Likewise.
13307 (nvptx_dev2host): Likewise.
13308 (nvptx_wait): Use CUDA_CALL* macros.
13309 (nvptx_wait_async): Likewise.
13310 (nvptx_wait_all): Likewise.
13311 (nvptx_wait_all_async): Likewise.
13312 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
13313 use CUDA_CALL* macros, adjust call to map_fini.
13314 (GOMP_OFFLOAD_init_device): Change return type to bool,
13315 adjust code accordingly.
13316 (GOMP_OFFLOAD_fini_device): Likewise.
13317 (GOMP_OFFLOAD_load_image): Adjust calls to
13318 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
13319 use CUDA_CALL* macros.
13320 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
13322 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
13323 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
13324 handle error return.
13325 (GOMP_OFFLOAD_dev2host): Likewise.
13326 (GOMP_OFFLOAD_host2dev): Likewise.
13327 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
13328 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
13330 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
13332 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
13333 (acc_free): Likewise.
13334 (acc_memcpy_to_device): Likewise.
13335 (acc_memcpy_from_device): Likewise.
13336 (acc_deviceptr): Likewise.
13337 (acc_hostptr): Likewise.
13338 (acc_is_present): Likewise.
13339 (acc_map_data): Likewise.
13340 (acc_unmap_data): Likewise.
13341 (present_create_copy): Likewise.
13342 (delete_copyout): Likewise.
13343 (update_dev_host): Likewise.
13344 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
13345 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
13346 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
13347 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13348 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
13349 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
13350 it only runs on nvptx targets.
13351 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13352 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13353 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13354 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13355 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13356 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13357 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13358 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13359 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13360 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13361 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13362 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13363 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13364 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13365 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13366 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13367 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13368 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13369 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13370 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13371 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13372 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13373 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13375 2016-05-23 Martin Jambor <mjambor@suse.cz>
13377 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
13379 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
13381 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
13382 to gomp_init_targets_once.
13383 (acc_set_device_type): Remove !cached_base_dev condition on call to
13384 gomp_init_targets_once, move call to before acc_device_lock acquire,
13386 (acc_get_device_num): Remove !cached_base_dev condition on call to
13387 gomp_init_targets_once.
13388 (acc_set_device_num): Likewise.
13390 2016-05-16 Martin Jambor <mjambor@suse.cz>
13392 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
13394 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
13396 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
13397 expected partitioning.
13399 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
13401 PR middle-end/70626
13402 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
13403 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
13404 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
13406 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
13408 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
13411 2016-04-19 Jakub Jelinek <jakub@redhat.com>
13413 PR middle-end/70680
13414 * testsuite/libgomp.c/pr70680-1.c: New test.
13415 * testsuite/libgomp.c/pr70680-2.c: New test.
13417 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13419 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13420 pass parameter variables to subroutines.
13422 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13424 PR middle-end/70643
13425 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
13427 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
13430 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
13431 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13433 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
13435 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
13436 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
13437 GOACC_declare prototype.
13439 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
13440 Merge this file, and...
13441 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
13442 ... this file, and...
13443 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
13444 ... this file, and...
13445 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13446 ... this file, and...
13447 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13448 ... this file, and...
13449 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13450 ... this file, and...
13451 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13452 ... this file, and...
13453 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13454 ... this file, and...
13455 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13456 ... this file, and...
13457 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13458 ... this file, and...
13459 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13460 ... this file, and...
13461 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13462 ... this file, and...
13463 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13464 ... this file into...
13465 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13468 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13469 Make failure observable.
13471 2016-04-12 Jakub Jelinek <jakub@redhat.com>
13473 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13475 * target.c (gomp_target_fallback_firstprivate,
13476 gomp_target_unshare_firstprivate): Removed.
13477 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13478 before waiting for dependencies.
13479 (gomp_target_task_fn): Don't copy firstprivate vars here.
13480 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13481 firstprivate_copies here.
13482 (gomp_create_target_task): Don't initialize firstprivate_copies field.
13483 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13484 explicit/implicit firstprivate.
13486 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
13490 PR tree-optimization/70373
13491 PR middle-end/70533
13492 PR middle-end/70534
13493 PR middle-end/70535
13494 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13496 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13498 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13500 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13502 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13504 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13506 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13508 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13510 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13512 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13513 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13514 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13515 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13517 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13519 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13521 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13523 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13525 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13526 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13527 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13528 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13529 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13530 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13532 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13533 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13534 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13535 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13536 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13537 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13538 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13539 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13540 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13541 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13542 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13543 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13544 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13545 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13546 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13548 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
13549 James Norris <jnorris@codesourcery.com>
13550 Nathan Sidwell <nathan@codesourcery.com>
13551 Julian Brown <julian@codesourcery.com>
13552 Cesar Philippidis <cesar@codesourcery.com>
13553 Chung-Lin Tang <cltang@codesourcery.com>
13554 Tom de Vries <tom@codesourcery.com>
13556 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13557 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13558 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13559 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13560 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13561 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13562 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13563 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13564 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13566 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13568 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13570 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13571 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13572 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13573 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13575 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13577 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13578 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13579 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13580 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13581 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13582 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13583 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13584 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13585 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13586 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13588 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13589 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13590 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13592 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13594 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13596 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13598 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13600 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13601 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13602 ... this new file. Update.
13603 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13604 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13605 ... this new file. Update.
13606 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13607 file. Incorporate...
13608 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13610 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13612 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13614 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13616 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
13618 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13619 set-torture-options.
13621 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
13623 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13625 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13626 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13627 -fno-builtin-acc_on_device instead of -O0.
13628 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13630 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13631 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13633 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13634 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13635 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13636 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13637 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13638 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13639 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13640 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13641 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13642 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13643 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13644 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13645 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13646 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13647 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13648 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13649 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13650 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13652 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13654 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13657 2016-03-24 Martin Liska <mliska@suse.cz>
13659 * plugin/plugin-hsa.c (packet_store_release): New function
13660 that is taken from the HSA runtime manual.
13661 (GOMP_OFFLOAD_run): Use the function.
13663 2016-03-23 Jakub Jelinek <jakub@redhat.com>
13666 * testsuite/libgomp.c++/pr70376.C: New test.
13668 2016-03-23 Tom de Vries <tom@codesourcery.com>
13670 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13671 initialization of lresult and lvresult.
13672 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13674 2016-03-23 James Norris <jnorris@codesourcery.com>
13675 Daichi Fukuoka <dc-fukuoka@sgi.com>
13678 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13679 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13680 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13681 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13683 2016-03-23 Martin Liska <mliska@suse.cz>
13686 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13687 argument just in case a dispatched kernel uses that argument.
13689 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
13691 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13692 -ftree-parallelize-loops/-fopenacc changes.
13693 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13695 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13697 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13699 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13701 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13702 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13704 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13706 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13707 always_ld_library_path the path to libgcc_s.
13709 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13712 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13714 2016-03-09 Tom de Vries <tom@codesourcery.com>
13716 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13717 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13718 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13720 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13721 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13722 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13723 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13725 2016-03-07 Martin Jambor <mjambor@suse.cz>
13727 * testsuite/lib/libgomp.exp
13728 (check_effective_target_hsa_offloading_selected_nocache): New.
13729 (check_effective_target_hsa_offloading_selected): Likewise.
13730 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13731 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13732 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13733 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13734 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13735 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13736 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13737 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13738 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13739 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13740 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13741 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13742 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13743 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13744 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13745 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13746 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13748 2016-03-07 Martin Jambor <mjambor@suse.cz>
13750 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13751 non-shared memory accelerators.
13752 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13753 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13754 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13755 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13756 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13757 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13758 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13759 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13760 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13762 2016-03-07 Martin Jambor <mjambor@suse.cz>
13764 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13767 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13770 * testsuite/libgomp.c++/pr69555-1.C: New test.
13771 * testsuite/libgomp.c++/pr69555-2.C: New test.
13773 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13774 Martin Jambor <mjambor@suse.cz>
13776 * testsuite/lib/libgomp.exp
13777 (check_effective_target_offload_device_shared_as): New proc.
13778 * testsuite/libgomp.c++/declare_target-1.C: New test.
13780 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13783 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13785 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13787 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13788 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13790 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13791 -ftree-parallelize-loops/-fopenacc changes.
13792 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13793 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13795 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13797 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13799 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13801 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13803 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13805 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13807 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13808 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13810 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13811 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13813 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13814 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13817 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13819 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13821 2016-02-19 Jakub Jelinek <jakub@redhat.com>
13824 * testsuite/libgomp.c/pr69805.c: New test.
13826 2016-02-16 Tom de Vries <tom@codesourcery.com>
13829 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13831 2016-02-09 Tom de Vries <tom@codesourcery.com>
13833 PR tree-optimization/69599
13834 * testsuite/libgomp.c/omp-nested-3.c: New test.
13835 * testsuite/libgomp.c/pr46032-2.c: New test.
13836 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13837 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13839 2016-02-09 Tom de Vries <tom@codesourcery.com>
13842 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13844 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13846 * testsuite/libgomp.c/target-31.c: Fix testcase.
13848 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13850 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13852 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13853 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13854 reduction and map clauses.
13855 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13857 2016-02-02 James Norris <jnorris@codesourcery.com>
13859 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13861 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13863 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13864 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13866 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13869 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13871 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13872 (hsa_kmt_lib): Set variables.
13873 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13874 always_ld_library_path.
13875 * Makefile.in: Regenerate.
13876 * configure: Likewise.
13877 * testsuite/Makefile.in: Likewise.
13879 * plugin/configfrag.ac (offload_additional_options)
13880 (offload_additional_lib_paths): Don't amend for hsa offloading.
13881 * configure: Regenerate.
13883 * plugin/configfrag.ac: Don't configure for offloading target if
13884 we don't build the corresponding plugin.
13885 * configure: Regenerate.
13887 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13889 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13890 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13892 2016-01-26 Tom de Vries <tom@codesourcery.com>
13894 PR tree-optimization/69110
13895 * testsuite/libgomp.c/pr69110.c: New test.
13897 2016-01-25 Richard Biener <rguenther@suse.de>
13900 * testsuite/libgomp.c++/pr69393.C: New testcase.
13902 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13904 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13905 function wasn't mapped to the device with non-shared memory.
13907 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13909 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13911 2016-01-19 Martin Jambor <mjambor@suse.cz>
13912 Martin Liska <mliska@suse.cz>
13914 * plugin/Makefrag.am: Add HSA plugin requirements.
13915 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13916 (HSA_RUNTIME_LIB): Likewise.
13917 (HSA_RUNTIME_CPPFLAGS): Likewise.
13918 (HSA_RUNTIME_INCLUDE): New substitution.
13919 (HSA_RUNTIME_LIB): Likewise.
13920 (HSA_RUNTIME_LDFLAGS): Likewise.
13921 (hsa-runtime): New configure option.
13922 (hsa-runtime-include): Likewise.
13923 (hsa-runtime-lib): Likewise.
13924 (PLUGIN_HSA): New substitution variable.
13925 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13927 (PLUGIN_HSA_CPPFLAGS): Likewise.
13928 (PLUGIN_HSA_LDFLAGS): Likewise.
13929 (PLUGIN_HSA_LIBS): Likewise.
13930 Check that we have access to HSA run-time.
13931 * libgomp-plugin.h (offload_target_type): New element
13932 OFFLOAD_TARGET_TYPE_HSA.
13933 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13935 (bool gomp_create_target_task): Updated.
13936 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13937 new field can_run_func.
13938 * libgomp_g.h (GOMP_target_ext): Update prototype.
13939 * oacc-host.c (host_run): Added a new parameter args.
13940 * target.c (calculate_firstprivate_requirements): New function.
13941 (copy_firstprivate_data): Likewise.
13942 (gomp_target_fallback_firstprivate): Use them.
13943 (gomp_target_unshare_firstprivate): New function.
13944 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13946 (GOMP_target): Do host fallback for all shared memory devices. Do not
13947 pass any args to plugins.
13948 (GOMP_target_ext): Introduce device-specific argument parameter args.
13949 Allow host fallback if device shares memory. Do not remap data if
13950 device has shared memory.
13951 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13952 like host fallback for mappings.
13953 (GOMP_target_data): Treat shared memory devices like host fallback.
13954 (GOMP_target_data_ext): Likewise.
13955 (GOMP_target_update): Likewise.
13956 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13957 gomp_create_target_task.
13958 (GOMP_target_enter_exit_data): Likewise.
13959 (omp_target_alloc): Treat shared memory devices like host fallback.
13960 (omp_target_free): Likewise.
13961 (omp_target_is_present): Likewise.
13962 (omp_target_memcpy): Likewise.
13963 (omp_target_memcpy_rect): Likewise.
13964 (omp_target_associate_ptr): Likewise.
13965 (gomp_load_plugin_for_device): Also load can_run.
13966 * task.c (GOMP_PLUGIN_target_task_completion): Free
13967 firstprivate_copies.
13968 (gomp_create_target_task): Accept new argument args and store it to
13970 * plugin/plugin-hsa.c: New file.
13972 2016-01-18 Tom de Vries <tom@codesourcery.com>
13974 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13975 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13976 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13977 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13978 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13979 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13980 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13981 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13982 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13983 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13984 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13986 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13988 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13989 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13990 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13991 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13992 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13993 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13994 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13995 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13997 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13999 2016-01-15 Jakub Jelinek <jakub@redhat.com>
14001 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
14003 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
14005 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
14007 2016-01-12 James Norris <jnorris@codesourcery.com>
14009 * libgomp.texi: Updates for OpenACC.
14011 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
14013 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
14015 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
14018 * testsuite/libgomp.fortran/pr66680.f90: New test.
14020 2016-01-07 Jakub Jelinek <jakub@redhat.com>
14022 PR middle-end/68960
14023 * testsuite/libgomp.c/pr68960.c: New test.
14025 2016-01-06 Nathan Sidwell <nathan@acm.org>
14027 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
14028 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
14030 2016-01-04 Jakub Jelinek <jakub@redhat.com>
14032 Update copyright years.
14034 * libgomp.texi: Bump @copying's copyright year.
14036 2015-12-31 Nathan Sidwell <nathan@acm.org>
14038 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
14039 dg-additional-options syntax.
14040 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
14041 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
14042 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
14043 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
14044 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
14045 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
14046 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
14047 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
14048 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
14049 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
14050 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
14051 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
14052 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
14053 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
14054 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
14055 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
14056 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
14057 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
14059 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
14061 * libgomp.h (REFCOUNT_LINK): Define.
14062 (struct splay_tree_key_s): Add link_key.
14063 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
14064 Replace target address of the pointer with target address of newly
14065 mapped object in the splay tree. Set link pointer on target to the
14066 device address of the mapped object.
14067 (gomp_unmap_vars): Restore target address of the pointer in the splay
14068 tree for REFCOUNT_LINK objects after unmapping.
14069 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
14070 declare target link" objects.
14071 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
14072 "omp declare target link" objects, which were mapped for the image.
14073 (gomp_exit_data): Restore target address of the pointer in the splay
14074 tree for REFCOUNT_LINK objects after unmapping.
14075 * testsuite/libgomp.c/target-link-1.c: New file.
14077 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
14079 * libgomp.h (gomp_device_state): New enum.
14080 (struct gomp_device_descr): Replace is_initialized with state.
14081 (gomp_fini_device): Remove declaration.
14082 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
14083 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
14084 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
14085 (acc_set_device_type): Use state instead of is_initialized.
14086 (acc_set_device_num): Likewise.
14087 * target.c (resolve_device): Use state instead of is_initialized.
14088 Do not initialize finalized device.
14089 (gomp_map_vars): Do nothing if device is finalized.
14090 (gomp_unmap_vars): Likewise.
14091 (gomp_update): Likewise.
14092 (GOMP_offload_register_ver): Use state instead of is_initialized.
14093 (GOMP_offload_unregister_ver): Likewise.
14094 (gomp_init_device): Likewise.
14095 (gomp_unload_device): Likewise.
14096 (gomp_fini_device): Remove.
14097 (gomp_get_target_fn_addr): Do nothing if device is finalized.
14098 (GOMP_target): Go to host fallback if device is finalized.
14099 (GOMP_target_ext): Likewise.
14100 (gomp_exit_data): Do nothing if device is finalized.
14101 (gomp_target_task_fn): Go to host fallback if device is finalized.
14102 (gomp_target_fini): New static function.
14103 (gomp_target_init): Use state instead of is_initialized.
14104 Call gomp_target_fini at exit.
14106 2015-12-09 Tom de Vries <tom@codesourcery.com>
14108 PR tree-optimization/68716
14109 * testsuite/libgomp.c/omp-nested-2.c: New test.
14111 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
14113 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
14114 target openacc_nvidia_accel_selected.
14115 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
14116 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
14117 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
14118 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
14120 2015-12-01 Julian Brown <julian@codesourcery.com>
14121 James Norris <James_Norris@mentor.com>
14123 * oacc-parallel.c (GOACC_host_data): New function.
14124 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
14125 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
14126 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
14127 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
14128 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
14129 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
14130 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
14132 2015-11-30 James Norris <jnorris@codesourcery.com>
14133 Cesar Philippidis <cesar@codesourcery.com>
14136 * libgomp.oacc-fortran/routine-5.f90: New test.
14137 * libgomp.oacc-fortran/routine-7.f90: New test.
14138 * libgomp.oacc-fortran/routine-9.f90: New test.
14140 2015-11-30 Tom de Vries <tom@codesourcery.com>
14142 PR tree-optimization/46032
14143 * testsuite/libgomp.c/pr46032.c: New test.
14145 2015-11-27 Jakub Jelinek <jakub@redhat.com>
14148 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
14149 (gomp_create_target_task): Call it before freeing
14150 GOMP_TARGET_TASK_DATA tasks.
14153 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
14154 in between case label and OpenMP standalone directives.
14155 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
14157 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
14159 * configure: Regenerate.
14161 2015-11-26 Jakub Jelinek <jakub@redhat.com>
14163 * testsuite/libgomp.c/target-35.c: New test.
14165 2015-11-22 James Norris <jnorris@codesourcery.com>
14166 Cesar Philippidis <cesar@codesourcery.com>
14168 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
14169 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
14170 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
14171 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
14172 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
14174 2015-11-20 Jakub Jelinek <jakub@redhat.com>
14176 PR middle-end/68221
14177 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
14178 * testsuite/libgomp.c/reduction-12.c: Likewise.
14179 * testsuite/libgomp.c++/reduction-11.C: Likewise.
14180 * testsuite/libgomp.c++/reduction-12.C: Likewise.
14182 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
14184 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
14185 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
14186 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
14187 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
14188 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
14190 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14191 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14193 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
14195 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
14196 worker & gang cases.
14197 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
14199 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
14201 * config/nvptx/priority_queue.c: New file.
14203 2015-11-14 Jakub Jelinek <jakub@redhat.com>
14205 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
14208 2015-11-14 Jakub Jelinek <jakub@redhat.com>
14209 Aldy Hernandez <aldyh@redhat.com>
14210 Ilya Verbin <ilya.verbin@intel.com>
14212 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
14213 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
14214 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
14215 iterators or IV by chunk size.
14216 * parallel.c (gomp_resolve_num_threads): Don't assume that
14217 if thr->ts.team is non-NULL, then pool must be non-NULL.
14218 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
14219 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
14220 GOMP_PLUGIN_target_task_completion.
14221 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
14222 * Makefile.in: Regenerate.
14223 * libgomp.h: Shuffle prototypes and forward definitions around so
14224 priority queues can be defined.
14225 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
14226 (enum gomp_target_task_state): New enum.
14227 (struct gomp_target_task): Add state, tgt, task and team fields.
14228 (gomp_create_target_task): Change return type to bool, add
14230 (gomp_target_task_fn): Change return type to bool.
14231 (struct gomp_device_descr): Add async_run_func.
14232 (struct gomp_task): Remove children, next_child, prev_child,
14233 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
14235 (struct gomp_taskgroup): Remove children.
14236 Add taskgroup_queue.
14237 (struct gomp_team): Change task_queue type to a priority queue.
14238 (splay_compare): Define inline.
14239 (priority_queue_offset): New.
14240 (priority_node_to_task): New.
14241 (task_to_priority_node): New.
14242 * oacc-mem.c: Do not include splay-tree.h.
14243 * priority_queue.c: New file.
14244 * priority_queue.h: New file.
14245 * splay-tree.c: Do not include splay-tree.h.
14246 (splay_tree_foreach_internal): New.
14247 (splay_tree_foreach): New.
14248 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
14249 (splay_tree_callback): Define typedef.
14250 * target.c (splay_compare): Move to libgomp.h.
14251 (GOMP_target): Don't adjust *thr in any way around running offloaded
14253 (GOMP_target_ext): Likewise. Handle target nowait.
14254 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
14255 return value from gomp_create_target_task, if false, fallthrough
14256 as if no dependencies exist.
14257 (gomp_target_task_fn): Change return type to bool, return true
14258 if the task should have another part scheduled later. Handle
14260 (gomp_load_plugin_for_device): Initialize async_run.
14261 * task.c (gomp_init_task): Initialize children_queue.
14262 (gomp_clear_parent_in_list): New.
14263 (gomp_clear_parent_in_tree): New.
14264 (gomp_clear_parent): Handle priorities.
14265 (GOMP_task): Likewise.
14266 (priority_queue_move_task_first,
14267 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
14269 (gomp_create_target_task): Use priority queues. Change return type
14270 to bool, add state argument, return false if for async
14271 {{enter,exit} data,update} constructs no dependencies need to be
14272 waited for, handle target nowait. Set task->fn to NULL instead of
14273 gomp_target_task_fn.
14274 (verify_children_queue): Remove.
14275 (priority_list_upgrade_task): New.
14276 (priority_queue_upgrade_task): New.
14277 (verify_task_queue): Remove.
14278 (priority_list_downgrade_task): New.
14279 (priority_queue_downgrade_task): New.
14280 (gomp_task_run_pre): Use priority queues.
14281 Abstract code out to priority_queue_downgrade_task.
14282 (gomp_task_run_post_handle_dependers): Use priority queues.
14283 (gomp_task_run_post_remove_parent): Likewise.
14284 (gomp_task_run_post_remove_taskgroup): Likewise.
14285 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
14287 (GOMP_taskwait): Likewise.
14288 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
14289 priority-queue_upgrade_task.
14290 (GOMP_taskgroup_start): Use priority queues.
14291 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
14292 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
14294 * taskloop.c (GOMP_taskloop): Handle priorities.
14295 * team.c (gomp_new_team): Call priority_queue_init.
14296 (free_team): Call priority_queue_free.
14297 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
14298 team created for target nowait in implicit parallel region.
14299 (gomp_team_start): For nested check, test thr->ts.level instead of
14300 thr->ts.team != NULL.
14301 * testsuite/libgomp.c/doacross-3.c: New test.
14302 * testsuite/libgomp.c/ordered-5.c: New test.
14303 * testsuite/libgomp.c/priority.c: New test.
14304 * testsuite/libgomp.c/target-31.c: New test.
14305 * testsuite/libgomp.c/target-32.c: New test.
14306 * testsuite/libgomp.c/target-33.c: New test.
14307 * testsuite/libgomp.c/target-34.c: New test.
14309 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14311 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
14313 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
14314 loop is sequential.
14316 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14318 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
14319 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
14321 2015-11-12 James Norris <jnorris@codesourcery.com>
14322 Joseph Myers <joseph@codesourcery.com>
14324 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
14325 * oacc-parallel.c (GOACC_declare): New function.
14326 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
14327 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
14328 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
14329 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
14330 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
14332 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
14334 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
14336 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
14338 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
14339 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
14341 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14343 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
14344 inadvertent commit.
14346 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14348 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
14349 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
14350 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
14351 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
14352 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
14354 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
14356 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
14357 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
14359 2015-11-05 Jakub Jelinek <jakub@redhat.com>
14360 Ilya Verbin <ilya.verbin@intel.com>
14362 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
14363 GOMP_loop_nonmonotonic_dynamic_start,
14364 GOMP_loop_nonmonotonic_guided_next,
14365 GOMP_loop_nonmonotonic_guided_start,
14366 GOMP_loop_ull_nonmonotonic_dynamic_next,
14367 GOMP_loop_ull_nonmonotonic_dynamic_start,
14368 GOMP_loop_ull_nonmonotonic_guided_next,
14369 GOMP_loop_ull_nonmonotonic_guided_start,
14370 GOMP_parallel_loop_nonmonotonic_dynamic,
14371 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
14372 (GOMP_target_41): Renamed to ...
14373 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14375 (GOMP_target_data_41): Renamed to ...
14376 (GOMP_target_data_ext): ... this.
14377 (GOMP_target_update_41): Renamed to ...
14378 (GOMP_target_update_ext): ... this.
14379 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
14380 GOMP_target_data_ext and GOMP_target_update_ext instead of
14381 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
14382 Export GOMP_loop_nonmonotonic_dynamic_next,
14383 GOMP_loop_nonmonotonic_dynamic_start,
14384 GOMP_loop_nonmonotonic_guided_next,
14385 GOMP_loop_nonmonotonic_guided_start,
14386 GOMP_loop_ull_nonmonotonic_dynamic_next,
14387 GOMP_loop_ull_nonmonotonic_dynamic_start,
14388 GOMP_loop_ull_nonmonotonic_guided_next,
14389 GOMP_loop_ull_nonmonotonic_guided_start,
14390 GOMP_parallel_loop_nonmonotonic_dynamic and
14391 GOMP_parallel_loop_nonmonotonic_guided.
14392 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
14393 GOMP_parallel_loop_nonmonotonic_guided,
14394 GOMP_loop_nonmonotonic_dynamic_start,
14395 GOMP_loop_nonmonotonic_guided_start,
14396 GOMP_loop_nonmonotonic_dynamic_next,
14397 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
14398 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
14399 GOMP_loop_ull_nonmonotonic_guided_start,
14400 GOMP_loop_ull_nonmonotonic_dynamic_next,
14401 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
14402 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
14404 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
14405 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
14406 Use gomp_map_val function.
14407 (gomp_target_fallback_firstprivate): New static function.
14408 (GOMP_target_41): Renamed to ...
14409 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14410 arguments. Move firstprivate fallback handling into a new
14412 (GOMP_target_data_41): Renamed to ...
14413 (GOMP_target_data_ext): ... this.
14414 (GOMP_target_update_41): Renamed to ...
14415 (GOMP_target_update_ext): ... this.
14416 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
14417 gomp_map_0len_lookup instead of gomp_map_lookup.
14418 (omp_target_is_present): Use gomp_map_0len_lookup instead of
14420 * testsuite/libgomp.c/target-28.c: Likewise.
14421 * testsuite/libgomp.c/monotonic-1.c: New test.
14422 * testsuite/libgomp.c/monotonic-2.c: New test.
14423 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
14424 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
14425 * testsuite/libgomp.c/pr66199-5.c: New test.
14426 * testsuite/libgomp.c/pr66199-6.c: New test.
14427 * testsuite/libgomp.c/pr66199-7.c: New test.
14428 * testsuite/libgomp.c/pr66199-8.c: New test.
14429 * testsuite/libgomp.c/pr66199-9.c: New test.
14430 * testsuite/libgomp.c/reduction-11.c: New test.
14431 * testsuite/libgomp.c/reduction-12.c: New test.
14432 * testsuite/libgomp.c/reduction-13.c: New test.
14433 * testsuite/libgomp.c/reduction-14.c: New test.
14434 * testsuite/libgomp.c/reduction-15.c: New test.
14435 * testsuite/libgomp.c/target-12.c (main): Adjust for
14436 omp_target_is_present change for one-past-last element.
14437 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
14438 the same var is both mapped and privatized.
14439 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
14440 handling of zero-length array sections.
14441 * testsuite/libgomp.c/target-28.c: New test.
14442 * testsuite/libgomp.c/target-29.c: New test.
14443 * testsuite/libgomp.c/target-30.c: New test.
14444 * testsuite/libgomp.c/target-teams-1.c: New test.
14445 * testsuite/libgomp.c++/member-6.C: New test.
14446 * testsuite/libgomp.c++/member-7.C: New test.
14447 * testsuite/libgomp.c++/monotonic-1.C: New test.
14448 * testsuite/libgomp.c++/monotonic-2.C: New test.
14449 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
14450 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
14451 * testsuite/libgomp.c++/pr66199-3.C: New test.
14452 * testsuite/libgomp.c++/pr66199-4.C: New test.
14453 * testsuite/libgomp.c++/pr66199-5.C: New test.
14454 * testsuite/libgomp.c++/pr66199-6.C: New test.
14455 * testsuite/libgomp.c++/pr66199-7.C: New test.
14456 * testsuite/libgomp.c++/pr66199-8.C: New test.
14457 * testsuite/libgomp.c++/pr66199-9.C: New test.
14458 * testsuite/libgomp.c++/reduction-11.C: New test.
14459 * testsuite/libgomp.c++/reduction-12.C: New test.
14460 * testsuite/libgomp.c++/target-13.C: New test.
14461 * testsuite/libgomp.c++/target-14.C: New test.
14462 * testsuite/libgomp.c++/target-15.C: New test.
14463 * testsuite/libgomp.c++/target-16.C: New test.
14464 * testsuite/libgomp.c++/target-17.C: New test.
14465 * testsuite/libgomp.c++/target-18.C: New test.
14466 * testsuite/libgomp.c++/target-19.C: New test.
14468 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14470 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14471 and reduction copy.
14472 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14473 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14474 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14475 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14476 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14477 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14478 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14479 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14480 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14481 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14482 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14483 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14484 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14485 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14487 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14489 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14490 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14491 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14492 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14493 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14494 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14495 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14496 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14498 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
14500 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14501 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14502 (GOMP_OFFLOAD_openacc_parallel): Likewise.
14503 * oacc-host.c (host_openacc_exec): Likewise.
14504 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14506 2015-11-03 Julian Brown <julian@codesourcery.com>
14507 Thomas Schwinge <thomas@codesourcery.com>
14509 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14510 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14511 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14513 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14514 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14516 2015-11-03 James Norris <jnorris@codesourcery.com>
14518 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14520 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14522 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14523 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14524 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14525 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14526 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14528 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
14530 * openacc.h (enum acc_device_t): Reformat. Ensure layout
14532 (enum acc_async_t): Reformat.
14533 (acc_on_device): Declare compatible with builtin and provide C++
14535 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14537 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
14538 Cesar Philippidis <cesar@codesourcery.com>
14540 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14541 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14542 ... this. Add a description of the test at the top of the file.
14543 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14544 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14545 ... this. Add a description of the test at the top of the file.
14547 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
14549 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14550 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14551 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14552 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14553 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14554 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14556 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
14558 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14561 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
14564 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14566 2015-10-27 James Norris <jnorris@codesourcery.com>
14568 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14569 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14571 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
14573 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14574 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14576 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14577 acc_device_nvidia usage.
14578 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14579 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14580 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14582 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14583 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14586 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14590 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14591 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14593 2015-10-23 Tom de Vries <tom@codesourcery.com>
14596 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14598 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
14600 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14602 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14604 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
14605 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
14607 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14608 to 0 when mapnum is 0.
14610 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
14612 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14613 Cast to int from int32_t.
14615 2015-10-13 Jakub Jelinek <jakub@redhat.com>
14616 Aldy Hernandez <aldyh@redhat.com>
14617 Ilya Verbin <ilya.verbin@intel.com>
14619 * config/linux/affinity.c (omp_get_place_num_procs,
14620 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14621 * config/linux/doacross.h: New file.
14622 * config/posix/affinity.c (omp_get_place_num_procs,
14623 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14624 * config/posix/doacross.h: New file.
14625 * env.c: Include gomp-constants.h.
14626 (struct gomp_task_icv): Rename run_sched_modifier to
14627 run_sched_chunk_size.
14628 (gomp_max_task_priority_var): New variable.
14629 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14630 (handle_omp_display_env): Change _OPENMP value from 201307 to
14631 201511. Print OMP_MAX_TASK_PRIORITY.
14632 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14633 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14634 chunk_size and run_sched_modifier to run_sched_chunk_size.
14635 (omp_get_max_task_priority, omp_get_initial_device,
14636 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14637 omp_get_partition_place_nums): New functions.
14638 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14639 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14641 (omp_get_num_places_, omp_get_place_num_procs_,
14642 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14643 omp_get_place_proc_ids_8_, omp_get_place_num_,
14644 omp_get_partition_num_places_, omp_get_partition_place_nums_,
14645 omp_get_partition_place_nums_8_, omp_get_initial_device_,
14646 omp_get_max_task_priority_): New functions.
14647 * libgomp_g.h (GOMP_loop_doacross_static_start,
14648 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14649 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14650 GOMP_loop_ull_doacross_dynamic_start,
14651 GOMP_loop_ull_doacross_guided_start,
14652 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14653 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14654 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14655 GOMP_target_data_41, GOMP_target_update_41,
14656 GOMP_target_enter_exit_data): New prototypes.
14657 (GOMP_task): Add prototype argument.
14658 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14659 (struct gomp_doacross_work_share): New type.
14660 (struct gomp_work_share): Add doacross field.
14661 (struct gomp_task_icv): Rename run_sched_modifier to
14662 run_sched_chunk_size.
14663 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14664 GOMP_TASK_UNDEFERRED. Add comments.
14665 (struct gomp_task_depend_entry): Add comments.
14666 (struct gomp_task): Likewise.
14667 (struct gomp_taskgroup): Likewise.
14668 (struct gomp_target_task): New type.
14669 (struct gomp_team): Add comment.
14670 (gomp_get_place_proc_ids_8, gomp_doacross_init,
14671 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14672 gomp_create_target_task, gomp_target_task_fn): New prototypes.
14673 (struct target_var_desc): New type.
14674 (struct target_mem_desc): Adjust comment. Use struct
14675 target_var_desc instead of splay_tree_key for list.
14676 (REFCOUNT_INFINITY): Define.
14677 (struct splay_tree_key_s): Remove copy_from field.
14678 (struct gomp_device_descr): Add dev2dev_func field.
14679 (enum gomp_map_vars_kind): New enum.
14680 (gomp_map_vars): Add one argument.
14681 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14682 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14683 omp_get_place_num_procs, omp_get_place_num_procs_,
14684 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14685 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14686 omp_get_place_num_, omp_get_partition_num_places,
14687 omp_get_partition_num_places_, omp_get_partition_place_nums,
14688 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14689 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14690 omp_target_free, omp_target_is_present, omp_target_memcpy,
14691 omp_target_memcpy_rect, omp_target_associate_ptr and
14692 omp_target_disassociate_ptr.
14693 (GOMP_4.0.2): Renamed to ...
14694 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14695 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14696 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14697 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14698 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14699 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14700 GOMP_loop_ull_doacross_guided_start,
14701 GOMP_loop_ull_doacross_runtime_start,
14702 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14703 GOMP_doacross_ull_wait.
14704 * libgomp.texi: Document omp_get_max_task_priority.
14705 Rename modifier argument to chunk_size for omp_set_schedule and
14706 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14707 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14708 to run_sched_chunk_size renaming.
14709 (GOMP_loop_ordered_runtime_start): Likewise.
14710 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14711 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14712 GOMP_parallel_loop_runtime_start): New functions.
14713 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14714 to run_sched_chunk_size renaming.
14715 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14716 GOMP_loop_doacross_guided_start): New functions or aliases.
14717 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14718 run_sched_modifier to run_sched_chunk_size renaming.
14719 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14720 (gomp_loop_ull_doacross_static_start,
14721 gomp_loop_ull_doacross_dynamic_start,
14722 gomp_loop_ull_doacross_guided_start,
14723 GOMP_loop_ull_doacross_runtime_start): New functions.
14724 (GOMP_loop_ull_doacross_static_start,
14725 GOMP_loop_ull_doacross_dynamic_start,
14726 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14727 * oacc-mem.c (acc_map_data, present_create_copy,
14728 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14730 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14731 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14732 instead of false to gomp_map_vars.
14733 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14734 * omp.h.in (omp_lock_hint_t): New type.
14735 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14736 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14737 omp_get_place_num, omp_get_partition_num_places,
14738 omp_get_partition_place_nums, omp_get_initial_device,
14739 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14740 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14741 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14743 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14744 (omp_lock_hint_none, omp_lock_hint_uncontended,
14745 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14746 omp_lock_hint_speculative): New parameters.
14747 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14748 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14749 omp_get_place_num, omp_get_partition_num_places,
14750 omp_get_partition_place_nums, omp_get_initial_device,
14751 omp_get_max_task_priority): New interfaces.
14752 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14754 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14755 (omp_lock_hint_none, omp_lock_hint_uncontended,
14756 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14757 omp_lock_hint_speculative): New parameters.
14758 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14759 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14760 omp_get_place_num, omp_get_partition_num_places,
14761 omp_get_partition_place_nums, omp_get_initial_device,
14762 omp_get_max_task_priority): New functions and subroutines.
14763 * ordered.c: Include stdarg.h and string.h.
14764 (MAX_COLLAPSED_BITS): Define.
14765 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14766 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14767 GOMP_doacross_ull_wait): New functions.
14768 * target.c: Include errno.h.
14769 (resolve_device): If device is not initialized, call
14770 gomp_init_device on it.
14771 (gomp_map_lookup): New function.
14772 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14773 Don't bump refcount if REFCOUNT_INFINITY. Handle
14774 GOMP_MAP_ALWAYS_TO_P.
14775 (get_kind): Rename is_openacc argument to short_mapkind.
14776 (gomp_map_pointer): Use gomp_map_lookup.
14777 (gomp_map_fields_existing): New function.
14778 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14779 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14780 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14781 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14782 Adjust for tgt->list changed type and copy_from living in there.
14783 (gomp_copy_from_async): Adjust for tgt->list changed type and
14784 copy_from living in there.
14785 (gomp_unmap_vars): Likewise.
14786 (gomp_update): Likewise. Rename is_openacc argument to
14787 short_mapkind. Don't fail if object is not mapped.
14788 (gomp_load_image_to_device): Initialize refcount to
14790 (gomp_target_fallback): New function.
14791 (gomp_get_target_fn_addr): Likewise.
14792 (GOMP_target): Adjust gomp_map_vars caller, use
14793 gomp_get_target_fn_addr and gomp_target_fallback.
14794 (GOMP_target_41): New function.
14795 (gomp_target_data_fallback): New function.
14796 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14797 (GOMP_target_data_41): New function.
14798 (GOMP_target_update): Adjust gomp_update caller.
14799 (GOMP_target_update_41): New function.
14800 (gomp_exit_data, GOMP_target_enter_exit_data,
14801 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14802 omp_target_is_present, omp_target_memcpy,
14803 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14804 omp_target_associate_ptr, omp_target_disassociate_ptr,
14805 gomp_load_plugin_for_device): New functions.
14806 * task.c: Include gomp-constants.h. Include taskloop.c
14807 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14808 (gomp_task_handle_depend): New function.
14809 (GOMP_task): Use it. Add priority argument. Use
14810 gomp-constant.h constants instead of hardcoded numbers.
14811 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14812 (gomp_create_target_task): New function.
14813 (verify_children_queue, verify_taskgroup_queue,
14814 verify_task_queue): New functions.
14815 (gomp_task_run_pre): Call verify_*_queue functions.
14816 If an upcoming tied task is about to leave the sibling or
14817 taskgroup queues in an invalid state, adjust appropriately.
14818 Remove taskgroup argument. Add comments.
14819 (gomp_task_run_post_handle_dependers): Add comments.
14820 (gomp_task_run_post_remove_parent): Likewise.
14821 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14822 (GOMP_taskwait): Likewise. Add comments.
14823 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14824 problem such that the first non parent_depends_on task does not
14825 end up at the end of the children queue.
14826 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14827 GOMP_TASK_UNDEFERRED.
14828 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14829 * taskloop.c: New file.
14830 * testsuite/lib/libgomp.exp
14831 (check_effective_target_offload_device_nonshared_as): New proc.
14832 * testsuite/libgomp.c/affinity-2.c: New test.
14833 * testsuite/libgomp.c/doacross-1.c: New test.
14834 * testsuite/libgomp.c/doacross-2.c: New test.
14835 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14836 Add map clause to target.
14837 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14838 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14839 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14840 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14841 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14843 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14844 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14845 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14846 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14847 not defined. Use those where needed.
14848 * testsuite/libgomp.c/for-4.c: New test.
14849 * testsuite/libgomp.c/for-5.c: New test.
14850 * testsuite/libgomp.c/for-6.c: New test.
14851 * testsuite/libgomp.c/linear-1.c: New test.
14852 * testsuite/libgomp.c/ordered-4.c: New test.
14853 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14854 only allowed on the loop iterator.
14855 * testsuite/libgomp.c/pr66199-3.c: New test.
14856 * testsuite/libgomp.c/pr66199-4.c: New test.
14857 * testsuite/libgomp.c/reduction-7.c: New test.
14858 * testsuite/libgomp.c/reduction-8.c: New test.
14859 * testsuite/libgomp.c/reduction-9.c: New test.
14860 * testsuite/libgomp.c/reduction-10.c: New test.
14861 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14863 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14864 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14865 * testsuite/libgomp.c/target-11.c: New test.
14866 * testsuite/libgomp.c/target-12.c: New test.
14867 * testsuite/libgomp.c/target-13.c: New test.
14868 * testsuite/libgomp.c/target-14.c: New test.
14869 * testsuite/libgomp.c/target-15.c: New test.
14870 * testsuite/libgomp.c/target-16.c: New test.
14871 * testsuite/libgomp.c/target-17.c: New test.
14872 * testsuite/libgomp.c/target-18.c: New test.
14873 * testsuite/libgomp.c/target-19.c: New test.
14874 * testsuite/libgomp.c/target-20.c: New test.
14875 * testsuite/libgomp.c/target-21.c: New test.
14876 * testsuite/libgomp.c/target-22.c: New test.
14877 * testsuite/libgomp.c/target-23.c: New test.
14878 * testsuite/libgomp.c/target-24.c: New test.
14879 * testsuite/libgomp.c/target-25.c: New test.
14880 * testsuite/libgomp.c/target-26.c: New test.
14881 * testsuite/libgomp.c/target-27.c: New test.
14882 * testsuite/libgomp.c/taskloop-1.c: New test.
14883 * testsuite/libgomp.c/taskloop-2.c: New test.
14884 * testsuite/libgomp.c/taskloop-3.c: New test.
14885 * testsuite/libgomp.c/taskloop-4.c: New test.
14886 * testsuite/libgomp.c++/ctor-13.C: New test.
14887 * testsuite/libgomp.c++/doacross-1.C: New test.
14888 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14889 Replace offload_device with offload_device_nonshared_as.
14890 * testsuite/libgomp.c++/for-12.C: New test.
14891 * testsuite/libgomp.c++/for-13.C: New test.
14892 * testsuite/libgomp.c++/for-14.C: New test.
14893 * testsuite/libgomp.c++/linear-1.C: New test.
14894 * testsuite/libgomp.c++/member-1.C: New test.
14895 * testsuite/libgomp.c++/member-2.C: New test.
14896 * testsuite/libgomp.c++/member-3.C: New test.
14897 * testsuite/libgomp.c++/member-4.C: New test.
14898 * testsuite/libgomp.c++/member-5.C: New test.
14899 * testsuite/libgomp.c++/ordered-1.C: New test.
14900 * testsuite/libgomp.c++/reduction-5.C: New test.
14901 * testsuite/libgomp.c++/reduction-6.C: New test.
14902 * testsuite/libgomp.c++/reduction-7.C: New test.
14903 * testsuite/libgomp.c++/reduction-8.C: New test.
14904 * testsuite/libgomp.c++/reduction-9.C: New test.
14905 * testsuite/libgomp.c++/reduction-10.C: New test.
14906 * testsuite/libgomp.c++/reference-1.C: New test.
14907 * testsuite/libgomp.c++/simd14.C: New test.
14908 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14909 * testsuite/libgomp.c++/target-5.C: New test.
14910 * testsuite/libgomp.c++/target-6.C: New test.
14911 * testsuite/libgomp.c++/target-7.C: New test.
14912 * testsuite/libgomp.c++/target-8.C: New test.
14913 * testsuite/libgomp.c++/target-9.C: New test.
14914 * testsuite/libgomp.c++/target-10.C: New test.
14915 * testsuite/libgomp.c++/target-11.C: New test.
14916 * testsuite/libgomp.c++/target-12.C: New test.
14917 * testsuite/libgomp.c++/taskloop-1.C: New test.
14918 * testsuite/libgomp.c++/taskloop-2.C: New test.
14919 * testsuite/libgomp.c++/taskloop-3.C: New test.
14920 * testsuite/libgomp.c++/taskloop-4.C: New test.
14921 * testsuite/libgomp.c++/taskloop-5.C: New test.
14922 * testsuite/libgomp.c++/taskloop-6.C: New test.
14923 * testsuite/libgomp.c++/taskloop-7.C: New test.
14924 * testsuite/libgomp.c++/taskloop-8.C: New test.
14925 * testsuite/libgomp.c++/taskloop-9.C: New test.
14926 * testsuite/libgomp.fortran/affinity1.f90: New test.
14927 * testsuite/libgomp.fortran/affinity2.f90: New test.
14929 2015-10-13 Tom de Vries <tom@codesourcery.com>
14931 PR tree-optimization/67476
14932 * testsuite/libgomp.c/autopar-3.c: New test.
14933 * testsuite/libgomp.c/autopar-4.c: New test.
14934 * testsuite/libgomp.c/autopar-5.c: New test.
14935 * testsuite/libgomp.c/autopar-6.c: New test.
14936 * testsuite/libgomp.c/autopar-7.c: New test.
14937 * testsuite/libgomp.c/autopar-8.c: New test.
14939 2015-10-12 James Norris <jnorris@codesourcery.com>
14941 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14944 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14946 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14947 using load_gcc_lib.
14949 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14951 * oacc-ptx.h: Remove file, moving its content into...
14952 * config/nvptx/fortran.c: ... here...
14953 * config/nvptx/oacc-init.c: ..., here...
14954 * config/nvptx/oacc-parallel.c: ..., and here.
14955 * config/nvptx/openacc.f90: New file.
14956 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14957 (link_ptx): Don't link in predefined bits of PTX code.
14959 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14960 Bernd Schmidt <bernds@codesourcery.com>
14962 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14963 (struct targ_ptx_obj): New.
14964 (nvptx_tdata): Move earlier, change data format.
14965 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14967 (GOMP_OFFLOAD_load_image): Adjust.
14969 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14971 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14972 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14973 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14974 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14975 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14976 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14977 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14978 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14979 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14980 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14981 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14982 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14983 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14984 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14985 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14986 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14987 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14988 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14989 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14990 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14991 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14992 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14993 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14994 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14995 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14996 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14997 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14998 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14999 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15000 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15001 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15002 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15003 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15004 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15005 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15006 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15007 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15008 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15009 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15010 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15011 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15012 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15013 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15014 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15015 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15016 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15017 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15018 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15019 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15020 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15021 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15022 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15023 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15024 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15025 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15026 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15027 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15028 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15029 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15030 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15031 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15032 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15033 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15035 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
15037 * oacc-init.c (acc_on_device): Force optimization level.
15039 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
15041 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
15042 (cuda_errlist): Delete.
15043 (cuda_error): Reimplement.
15045 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
15047 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
15049 * libgomp.map (GOACC_parallel_keyed): New.
15050 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
15052 (GOACC_parallel_keyed): New interface. Lose geometry arguments
15053 and take keyed varargs list. Adjust call to exec_func.
15054 (GOACC_parallel): Force host fallback.
15055 * libgomp_g.h (GOACC_parallel): Remove.
15056 (GOACC_parallel_keyed): Declare.
15057 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
15058 (struct targ_gn_descriptor): Replace name field with launch field.
15059 (nvptx_exec): Lose separate geometry args, take array. Process
15060 dynamic dimensions and adjust.
15061 (struct nvptx_tdata): Replace fn_names field with fn_descs.
15062 (GOMP_OFFLOAD_load_image): Adjust for change in function table
15064 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
15066 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
15069 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
15072 * oacc-int.h (goacc_host_init): Add declaration.
15073 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
15074 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
15076 2015-09-08 Aditya Kumar <hiraditya@msn.com>
15077 Sebastian Pop <s.pop@samsung.com>
15079 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
15081 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
15082 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
15083 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
15084 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
15085 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
15087 2015-09-03 Jakub Jelinek <jakub@redhat.com>
15089 * configure.tgt: Add missing ;; in between nvptx and rtems
15092 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15094 * config/posix/pool.h (gomp_adjust_thread_attr): New.
15095 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
15096 (gomp_thread_pool_reservoir): Add priority member.
15097 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
15099 (parse_thread_pools): Likewise.
15100 * team.c (gomp_team_start): Call configuration provided
15101 gomp_adjust_thread_attr(). Destroy thread attributes if
15103 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
15105 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15107 * config/posix/pool.h: New.
15108 * config/rtems/pool.h: Likewise.
15109 * config/rtems/proc.c: Likewise.
15110 * libgomp.h (gomp_thread_destructor): Declare.
15111 * team.c: Include configuration provided "pool.h".
15112 (gomp_get_thread_pool): Define in configuration.
15113 (gomp_team_end): Call configuration defined
15114 gomp_release_thread_pool().
15116 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15118 * config/rtems/bar.c: New.
15119 * config/rtems/bar.h: Likewise.
15120 * config/rtems/mutex.c: Likewise.
15121 * config/rtems/mutex.h: Likewise.
15122 * config/rtems/sem.c: Likewise.
15123 * config/rtems/sem.h: Likewise.
15124 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
15125 <sys/lock.h> header file.
15126 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
15127 supported by Newlib.
15128 * configure: Regenerate.
15130 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15132 * team.c (gomp_new_thread_pool): Delete and move content to ...
15133 (gomp_get_thread_pool): ... new function. Allocate and
15134 initialize thread pool on demand.
15135 (get_last_team): Use gomp_get_thread_pool().
15136 (gomp_team_start): Delete thread pool initialization.
15138 2015-09-03 Tom de Vries <tom@codesourcery.com>
15140 PR tree-optimization/65637
15141 * testsuite/libgomp.c/autopar-2.c: New test.
15143 2015-08-29 Tom de Vries <tom@codesourcery.com>
15145 PR tree-optimization/46193
15146 * testsuite/libgomp.c/pr46193.c: New test.
15148 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
15151 * libgomp.map: Add 4.0.2 version.
15152 * target.c (offload_image_descr): Add version field.
15153 (gomp_load_image_to_device): Add version argument. Adjust plugin
15154 call. Improve load mismatch diagnostic.
15155 (gomp_unload_image_from_device): Add version argument. Adjust plugin
15157 (GOMP_offload_regster): Make stub function, move bulk to ...
15158 (GOMP_offload_register_ver): ... here. Process version argument.
15159 (GOMP_offload_unregister): Make stub function, move bulk to ...
15160 (GOMP_offload_unregister_ver): ... here. Process version argument.
15161 (gomp_init_device): Process version field.
15162 (gomp_unload_device): Process version field.
15163 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
15164 macros. Check plugin version.
15165 * libgomp.h (gomp_device_descr): Add version function field. Adjust
15166 loader and unloader types.
15167 * oacc-host.c: Include gomp-constants.h.
15168 (host_version): New.
15169 (host_load_image, host_unload_image): Adjust.
15170 (host_dispatch): Add host_version.
15171 * plugin/plugin-nvptx.c: Include gomp-constants.h.
15172 (GOMP_OFFLOAD_version): New.
15173 (GOMP_OFFLOAD_load_image): Add version arg and check it.
15174 (GOMP_OFFLOAD_unload_image): Likewise.
15175 * plugin/plugin-host.c: Include gomp-constants.h.
15176 (GOMP_OFFLOAD_version): New.
15177 (GOMP_OFFLOAD_load_image): Add version arg.
15178 (GOMP_OFFLOAD_unload_image): Likewise.
15180 2015-08-24 Tom de Vries <tom@codesourcery.com>
15182 PR tree-optimization/65468
15183 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
15185 2015-08-24 Tom de Vries <tom@codesourcery.com>
15187 PR tree-optimization/65468
15188 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
15190 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
15194 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
15195 (gomp_iter_guided_next): Idem.
15196 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
15197 (gomp_iter_ull_guided_next): Idem.
15198 * config/linux/wait.h (do_spin): Idem.
15200 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15202 * libgomp-plugin.h (enum offload_target_type): Remove
15203 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
15204 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
15205 * openacc.h (enum acc_device_t): Likewise.
15206 * openacc_lib.h: Likewise.
15207 * oacc-init.c (name_of_acc_device_t): Don't handle it.
15208 (acc_on_device): Just use __builtin_acc_on_device.
15209 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
15210 of acc_on_device builtin.
15211 * plugin/plugin-host.h: Remove file.
15212 * plugin/plugin-host.c: Likewise, but salvage some content into...
15213 * oacc-host.c: ... this file.
15214 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
15215 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
15216 * Makefile.in: Regenerate.
15217 * configure: Likewise.
15218 * testsuite/lib/libgomp.exp
15219 (check_effective_target_openacc_host_nonshm_selected): Remove.
15220 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
15221 ACC_DEVICE_TYPE=host_nonshm.
15222 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15223 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15224 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15225 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15226 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15227 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15229 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15230 Jakub Jelinek <jakub@redhat.com>
15232 * config/nvptx/affinity.c: New file.
15233 * config/nvptx/alloc.c: Likewise.
15234 * config/nvptx/bar.c: Likewise.
15235 * config/nvptx/barrier.c: Likewise.
15236 * config/nvptx/critical.c: Likewise.
15237 * config/nvptx/env.c: Likewise.
15238 * config/nvptx/error.c: Likewise.
15239 * config/nvptx/fortran.c: Likewise.
15240 * config/nvptx/iter.c: Likewise.
15241 * config/nvptx/iter_ull.c: Likewise.
15242 * config/nvptx/libgomp-plugin.c: Likewise.
15243 * config/nvptx/lock.c: Likewise.
15244 * config/nvptx/loop.c: Likewise.
15245 * config/nvptx/loop_ull.c: Likewise.
15246 * config/nvptx/mutex.c: Likewise.
15247 * config/nvptx/oacc-async.c: Likewise.
15248 * config/nvptx/oacc-cuda.c: Likewise.
15249 * config/nvptx/oacc-host.c: Likewise.
15250 * config/nvptx/oacc-init.c: Likewise.
15251 * config/nvptx/oacc-mem.c: Likewise.
15252 * config/nvptx/oacc-parallel.c: Likewise.
15253 * config/nvptx/oacc-plugin.c: Likewise.
15254 * config/nvptx/omp-lock.h: Likewise.
15255 * config/nvptx/ordered.c: Likewise.
15256 * config/nvptx/parallel.c: Likewise.
15257 * config/nvptx/proc.c: Likewise.
15258 * config/nvptx/ptrlock.c: Likewise.
15259 * config/nvptx/sections.c: Likewise.
15260 * config/nvptx/sem.c: Likewise.
15261 * config/nvptx/single.c: Likewise.
15262 * config/nvptx/splay-tree.c: Likewise.
15263 * config/nvptx/target.c: Likewise.
15264 * config/nvptx/task.c: Likewise.
15265 * config/nvptx/team.c: Likewise.
15266 * config/nvptx/time.c: Likewise.
15267 * config/nvptx/work.c: Likewise.
15268 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
15269 * configure: Regenerate.
15270 * configure.tgt (config_path): Set to "nvptx" for target
15273 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15275 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
15277 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
15279 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
15280 (cuda_errlist): Constify.
15281 (errmsg): Move into ...
15282 (cuda_error): ... here. Make smaller.
15283 (_XSTR, _STR): Delete.
15284 (cuda_synames): Delete.
15285 (verify_device_library): Delete.
15286 (nvptx_init): Don't call it.
15288 2015-07-28 Tom de Vries <tom@codesourcery.com>
15290 * testsuite/libgomp.c/uns-outer-4.c: New test.
15292 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
15294 * testsuite/libgomp.c/pr66714.c: New test.
15296 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
15299 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
15300 (fib_ref): New function.
15301 (fib): Correct corner cases in the recursion.
15302 (main): Replace the non-simd loop with fib_ref call.
15303 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
15305 (fibonacci): Lower the parameter N to 30. Correct accordingly check
15306 for the last array element value. Replace the non-simd loop with
15307 fib_ref call. Remove redundant b_ref array. Remove the comparison
15308 of the last array element with according Fibonacci sequence element.
15309 (fib): Correct corner cases in the recursion.
15311 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
15313 * target.c (gomp_offload_image_to_device): Rename to ...
15314 (gomp_load_image_to_device): ... here.
15315 (GOMP_offload_register): Adjust call.
15316 (gomp_init_device): Likewise.
15317 (gomp_unload_image_from_device): New. Broken out of ...
15318 (GOMP_offload_unregister): ... here. Call it.
15319 (gomp_unload_device): New.
15320 * libgomp.h (gomp_unload_device): Declare.
15321 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
15324 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
15326 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
15328 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
15330 (goacc_waits): Move !num_waits handling to ...
15331 (GOACC_wait): ... here, the only caller that might have zero waits.
15333 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
15334 (struct ptx_image_data): Move earlier, add fns field.
15335 (struct ptx_device): Add images and image_lock fields.
15336 (ptx_images, ptx_image_lock): Delete.
15337 (nvptx_open_device): Initialize images and image_lock fields.
15338 (nvptx_close_device): Destroy image_lock.
15339 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
15340 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
15343 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15345 * target.c (GOMP_offload_register): Use int for device type arg.
15346 (GOMP_offload_unregister): Likewise.
15348 * target.c (struct_offload_image_descr): Constify host_table.
15349 (gomp_offload_image_to_device): Likewise.
15350 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
15352 * libgomp.h (gomp_device_descr): Constify target data arguments.
15353 * target.c (struct offload_image_descr): Constify target_data.
15354 (gomp_offload_image_to_device): Likewise.
15355 (GOMP_offload_register): Likewise.
15356 (GOMP_offload_unregister): Likewise.
15357 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
15358 GOMP_OFFLOAD_unload_image): Constify target data.
15359 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
15360 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
15362 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
15364 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
15365 Workaround driver library const error.
15366 (struct nvptx_tdata, nvptx_tdata_t): New.
15367 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
15370 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
15372 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
15373 of EPS parameter from integer to real.
15374 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
15375 type of EPS parameter from integer to real.
15377 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
15379 * team.c (get_last_team): New.
15380 (gomp_new_team): Recycle last non-nested team if possible.
15381 (gomp_team_end): Move team work share list free lock destruction
15383 (free_team): ... here.
15385 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
15387 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
15388 and ref from int to double. Replaced their comparison with
15389 an inequality of their difference and EPS.
15390 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
15391 comparison of pri and a reference number with an inequality of their
15392 difference and EPS.
15393 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
15394 the comparison of sum and sum_ref with an inequality of their
15395 difference and EPS.
15396 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
15397 the comparison of pri and a reference number with an inequality of
15398 their difference and EPS.
15400 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
15402 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
15403 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
15404 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
15405 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
15406 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
15407 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
15408 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
15409 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
15410 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
15411 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
15412 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
15413 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
15414 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
15416 (vec_mult): Likewise. Add #pragma omp taskwait.
15417 (main): Adjust caller.
15418 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
15419 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
15420 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
15421 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
15422 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
15423 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
15424 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
15425 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
15426 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
15427 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
15428 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
15429 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
15430 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
15431 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
15432 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
15433 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
15434 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
15435 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
15436 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
15437 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
15438 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
15439 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
15440 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
15441 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
15442 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
15443 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
15444 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15445 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15446 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15447 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15448 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15449 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15450 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15451 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15452 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15453 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15454 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15455 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15456 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15457 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15458 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15459 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15460 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15461 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15462 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15463 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15464 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15465 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15466 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15467 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15468 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15469 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15470 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15471 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15472 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15473 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15474 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15475 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15476 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15477 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15478 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15479 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15480 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15481 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15482 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15483 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15484 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15485 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15486 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15487 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15488 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15489 (vec_mult): Add !$omp taskwait.
15490 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15491 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15492 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15493 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15494 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15495 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15496 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15497 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15498 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15499 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15500 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15501 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15502 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15503 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15504 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15505 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15506 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15507 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15508 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15509 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15510 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15511 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15512 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15513 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15514 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15515 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15516 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15517 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15518 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15519 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15520 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15521 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15522 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15523 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15524 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15525 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15526 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15527 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15528 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15529 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15530 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15531 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15532 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15533 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15534 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15535 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15536 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15537 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15538 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15539 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15540 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15541 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15542 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15543 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15544 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15545 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15546 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15547 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15548 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15549 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15550 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15551 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15552 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15553 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15554 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15555 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15556 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15558 2015-07-10 Tom de Vries <tom@codesourcery.com>
15560 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15561 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15563 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15566 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15567 in a 64-bit configuration.
15568 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15569 offloading testing if no such device is available.
15570 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15571 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15573 2015-07-08 Tom de Vries <tom@codesourcery.com>
15575 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15577 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15579 2015-07-07 Tom de Vries <tom@codesourcery.com>
15581 PR tree-optimization/66642
15582 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15583 iteration count case.
15584 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15585 function, factor out of ...
15586 (main): ... here. Test low iteration count case.
15588 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
15590 * libgomp.h (gomp_thread_pool): Comment last_team field.
15592 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
15594 * testsuite/libgomp.c++/pr66702-1.C: Require
15595 vect_simd_clones effective target.
15596 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15598 2015-06-30 Tom de Vries <tom@codesourcery.com>
15600 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15601 already set. Use DEFAULT_CFLAGS in dg-runtest.
15602 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15605 2015-06-30 Tom de Vries <tom@codesourcery.com>
15607 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15608 already set. Use DEFAULT_CFLAGS in dg-runtest.
15609 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15610 * testsuite/libgomp.c++/pr64824.C: Same.
15611 * testsuite/libgomp.c++/pr64868.C: Same.
15612 * testsuite/libgomp.c++/pr66199-1.C: Same.
15613 * testsuite/libgomp.c++/pr66199-2.C: Same.
15614 * testsuite/libgomp.c++/target-2.C: Same.
15615 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15616 -std=<standard> option.
15617 * testsuite/libgomp.c++/udr-11.C: Same.
15618 * testsuite/libgomp.c++/udr-12.C: Same.
15619 * testsuite/libgomp.c++/udr-13.C: Same.
15620 * testsuite/libgomp.c++/udr-14.C: Same.
15621 * testsuite/libgomp.c++/udr-15.C: Same.
15622 * testsuite/libgomp.c++/udr-16.C: Same.
15623 * testsuite/libgomp.c++/udr-17.C: Same.
15624 * testsuite/libgomp.c++/udr-18.C: Same.
15625 * testsuite/libgomp.c++/udr-19.C: Same.
15626 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15627 * testsuite/libgomp.c++/simd-1.C: Same.
15628 * testsuite/libgomp.c++/simd-2.C: Same.
15629 * testsuite/libgomp.c++/simd-3.C: Same.
15630 * testsuite/libgomp.c++/simd-4.C: Same.
15631 * testsuite/libgomp.c++/simd-5.C: Same.
15632 * testsuite/libgomp.c++/simd-6.C: Same.
15633 * testsuite/libgomp.c++/simd-7.C: Same.
15634 * testsuite/libgomp.c++/simd-8.C: Same.
15635 * testsuite/libgomp.c++/simd-9.C: Same.
15636 * testsuite/libgomp.c++/simd10.C: Same.
15637 * testsuite/libgomp.c++/simd11.C: Same.
15638 * testsuite/libgomp.c++/simd12.C: Same.
15639 * testsuite/libgomp.c++/simd13.C: Same.
15641 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15643 PR middle-end/66702
15644 * testsuite/libgomp.c++/pr66702-1.C: New test.
15645 * testsuite/libgomp.c++/pr66702-2.C: New test.
15647 2015-06-30 Tom de Vries <tom@codesourcery.com>
15649 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15650 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15651 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15652 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15654 2015-06-30 Tom de Vries <tom@codesourcery.com>
15656 PR tree-optimization/66652
15657 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15658 using restrict pointers.
15659 (main): Add arguments to calls to f.
15660 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15662 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
15664 * configure.ac: Fix check for header <sys/sysctl.h>.
15665 * configure: Regenerate.
15666 * config.h.in: Likewise.
15668 2015-06-23 Tom de Vries <tom@codesourcery.com>
15670 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15672 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15674 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
15676 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15680 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15681 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15683 2015-06-15 Tom de Vries <tom@codesourcery.com>
15685 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
15686 dg-additional-options for any remaining options.
15687 * testsuite/libgomp.c/atomic-2.c: Same.
15688 * testsuite/libgomp.c/atomic-4.c: Same.
15689 * testsuite/libgomp.c/atomic-5.c: Same.
15690 * testsuite/libgomp.c/atomic-6.c: Same.
15691 * testsuite/libgomp.c/autopar-1.c: Same.
15692 * testsuite/libgomp.c/copyin-1.c: Same.
15693 * testsuite/libgomp.c/copyin-2.c: Same.
15694 * testsuite/libgomp.c/copyin-3.c: Same.
15695 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15696 * testsuite/libgomp.c/nestedfn-5.c: Same.
15697 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15698 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15699 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15700 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15701 * testsuite/libgomp.c/pr32362-1.c: Same.
15702 * testsuite/libgomp.c/pr32362-2.c: Same.
15703 * testsuite/libgomp.c/pr32362-3.c: Same.
15704 * testsuite/libgomp.c/pr39591-1.c: Same.
15705 * testsuite/libgomp.c/pr39591-2.c: Same.
15706 * testsuite/libgomp.c/pr39591-3.c: Same.
15707 * testsuite/libgomp.c/pr58392.c: Same.
15708 * testsuite/libgomp.c/pr58756.c: Same.
15709 * testsuite/libgomp.c/simd-1.c: Same.
15710 * testsuite/libgomp.c/simd-10.c: Same.
15711 * testsuite/libgomp.c/simd-11.c: Same.
15712 * testsuite/libgomp.c/simd-12.c: Same.
15713 * testsuite/libgomp.c/simd-13.c: Same.
15714 * testsuite/libgomp.c/simd-14.c: Same.
15715 * testsuite/libgomp.c/simd-15.c: Same.
15716 * testsuite/libgomp.c/simd-2.c: Same.
15717 * testsuite/libgomp.c/simd-3.c: Same.
15718 * testsuite/libgomp.c/simd-4.c: Same.
15719 * testsuite/libgomp.c/simd-5.c: Same.
15720 * testsuite/libgomp.c/simd-6.c: Same.
15721 * testsuite/libgomp.c/simd-7.c: Same.
15722 * testsuite/libgomp.c/simd-8.c: Same.
15723 * testsuite/libgomp.c/simd-9.c: Same.
15725 2015-06-15 Tom de Vries <tom@codesourcery.com>
15727 * testsuite/libgomp.c/pr35625.c: Fix typo.
15729 2015-06-15 Tom de Vries <tom@codesourcery.com>
15731 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15733 * testsuite/libgomp.c/atomic-3.c: Same.
15734 * testsuite/libgomp.c/debug-1.c: Same.
15735 * testsuite/libgomp.c/nqueens-1.c: Same.
15736 * testsuite/libgomp.c/pr26171.c: Same.
15737 * testsuite/libgomp.c/pr48591.c: Same.
15738 * testsuite/libgomp.c/pr64824.c: Same.
15739 * testsuite/libgomp.c/pr64868.c: Same.
15740 * testsuite/libgomp.c/pr66133.c: Same.
15741 * testsuite/libgomp.c/pr66199-1.c: Same.
15742 * testsuite/libgomp.c/pr66199-2.c: Same.
15743 * testsuite/libgomp.c/target-8.c: Same.
15745 2015-06-15 Tom de Vries <tom@codesourcery.com>
15747 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15749 * testsuite/libgomp.c/for-1.c: Same.
15750 * testsuite/libgomp.c/for-2.c: Same.
15751 * testsuite/libgomp.c/for-3.c: Same.
15752 * testsuite/libgomp.c/pr35625.c: Same.
15753 * testsuite/libgomp.c/pr39154.c: Same.
15754 * testsuite/libgomp.c/simd-16.c: Same.
15755 * testsuite/libgomp.c/simd-17.c: Same.
15757 2015-06-13 Tom de Vries <tom@codesourcery.com>
15759 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15761 2015-06-13 Tom de Vries <tom@codesourcery.com>
15763 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15764 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15765 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15767 (main): Use N instead of hardcoded constants.
15769 2015-06-05 Tom de Vries <tom@codesourcery.com>
15771 merge from gomp4 branch:
15772 2015-05-28 Tom de Vries <tom@codesourcery.com>
15774 PR tree-optimization/65443
15775 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15776 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15777 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15779 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15781 * testsuite/libgomp.graphite/bounds.c: Adjust for
15782 cleanup-tree-dump removal.
15783 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15784 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15785 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15786 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15787 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15788 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15789 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15790 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15791 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15792 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15794 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
15796 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15797 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15798 (futex_wake) [!__x86_64__]: Ditto.
15800 2015-05-28 Julian Brown <julian@codesourcery.com>
15802 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15803 function comment. Only call gomp_fatal if new argument is true.
15804 (acc_dev_num_out_of_range): New function.
15805 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15806 acc_dev_num_out_of_range as appropriate.
15807 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15808 (acc_get_device_num, acc_set_device_num): Update calls to
15810 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15813 2015-05-28 Julian Brown <julian@codesourcery.com>
15816 * oacc-init.c (plugin/plugin-host.h): Include.
15817 (acc_on_device): Check whether we're in an offloaded region for
15819 plugin. Don't use __builtin_acc_on_device.
15820 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15821 nonshm_exec flag in thread-local data.
15822 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15823 data for host_nonshm plugin.
15824 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15825 for host_nonshm plugin.
15826 * plugin/plugin-host.h: New.
15828 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15830 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15832 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15834 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15836 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15837 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15840 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15842 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15844 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15846 * target.c (gomp_map_pointer): New function abstracting out
15847 GOMP_MAP_POINTER handling.
15848 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15849 gomp_map_pointer().
15851 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15853 PR middle-end/66199
15854 * testsuite/libgomp.c/pr66199-1.c: New test.
15855 * testsuite/libgomp.c/pr66199-2.c: New test.
15856 * testsuite/libgomp.c++/pr66199-1.C: New test.
15857 * testsuite/libgomp.c++/pr66199-2.C: New test.
15858 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15859 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15861 2015-05-19 Julian Brown <julian@codesourcery.com>
15863 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15866 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15868 PR middle-end/66133
15869 * testsuite/libgomp.c/pr66133.c: New test.
15871 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15873 * Makefile.in: Regenerated with automake-1.11.6.
15874 * aclocal.m4: Likewise.
15875 * config.h.in: Likewise.
15876 * configure: Likewise.
15877 * testsuite/Makefile.in: Likewise.
15879 2015-05-08 Jason Merrill <jason@redhat.com>
15881 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15884 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15886 2015-05-06 Julian Brown <julian@codesourcery.com>
15888 * oacc-init.c (acc_device_lock): Add explanatory comment.
15889 (resolve_device): Add comment about locking requirement.
15890 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15891 gomp_init_device and gomp_fini_device calls.
15892 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15893 (acc_get_device_num, acc_set_device_num): Add locking around
15894 resolve_device and gomp_init_device calls.
15896 2015-05-06 Julian Brown <julian@codesourcery.com>
15898 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15899 goacc_thread_lock on error paths.
15900 * oacc-mem.c (lookup_host): Remove locking from function. Note
15901 locking requirement for caller in function comment.
15902 (lookup_dev): Likewise.
15903 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15904 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15905 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15908 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15912 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15913 don't expect "0x" prefix for "%p" format specifier, don't expect
15914 "(nil)" for NULL pointer.
15915 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15916 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15917 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15918 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15919 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15920 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15921 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15922 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15923 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15924 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15925 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15926 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15927 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15928 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15929 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15930 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15931 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15932 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15933 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15934 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15935 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15936 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15937 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15938 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15939 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15940 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15941 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15942 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15943 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15944 accurately specify what we're looking for.
15945 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15946 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15947 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15948 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15949 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15951 2015-04-30 James Norris <jnorris@codesourcery.com>
15954 * testsuite/lib/libgomp.exp
15955 (check_effective_target_openacc_host_selected)
15956 (check_effective_target_openacc_host_nonshm_selected): New
15958 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15960 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15961 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15962 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15963 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15964 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15965 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15966 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15967 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15968 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15969 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15970 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15971 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15972 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15973 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15974 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15975 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15976 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15977 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15978 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15979 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15980 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15981 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15982 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15983 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15984 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15985 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15986 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15987 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15988 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15989 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15990 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15991 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15992 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15993 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15994 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15995 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15996 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15997 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15998 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15999 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16000 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16001 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16002 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16004 2015-04-08 Julian Brown <julian@codesourcery.com>
16006 * libgomp.h (target_mem_desc: Remove mem_map field.
16007 (acc_dispatch_t): Remove open_device_func, close_device_func,
16008 get_device_num_func, set_device_num_func, target_data members.
16009 Change create_thread_data_func argument to device number instead of
16011 * oacc-async.c (assert.h): Include.
16012 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
16013 (acc_wait_all, acc_wait_all_async): Use current host thread's
16014 active device, not base_dev.
16015 * oacc-cuda.c (acc_get_current_cuda_device)
16016 (acc_get_current_cuda_context, acc_get_cuda_stream)
16017 (acc_set_cuda_stream): Likewise.
16018 * oacc-host.c (host_dispatch): Don't set open_device_func,
16019 close_device_func, get_device_num_func or set_device_num_func.
16020 * oacc-init.c (base_dev, init_key): Remove.
16021 (cached_base_dev): New.
16022 (name_of_acc_device_t): New.
16023 (acc_init_1): Initialise default-numbered device, not zeroth.
16024 (acc_shutdown_1): Close all devices of a given type.
16025 (goacc_destroy_thread): Don't use base_dev.
16026 (lazy_open, lazy_init, lazy_init_and_open): Remove.
16027 (goacc_attach_host_thread_to_device): New.
16028 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
16029 (acc_get_num_devices): Don't use base_dev.
16030 (acc_set_device_type): Reimplement.
16031 (acc_get_device_type): Don't use base_dev.
16032 (acc_get_device_num): Tweak logic.
16033 (acc_set_device_num): Likewise.
16034 (acc_on_device): Use acc_get_device_type.
16035 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
16036 (goacc_lazy_initialize): Reimplement with acc_init and
16037 goacc_attach_host_thread_to_device.
16038 * oacc-int.h (goacc_thread): Add base_dev field.
16039 (base_dev): Remove extern declaration.
16040 (goacc_attach_host_thread_to_device): Add prototype.
16041 * oacc-mem.c (acc_malloc): Use current thread's device instead of
16043 (acc_free): Likewise.
16044 (acc_memcpy_to_device): Likewise.
16045 (acc_memcpy_from_device): Likewise.
16046 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
16047 goacc_lazy_initialize (throughout).
16048 (GOACC_parallel): Use tgt_offset to locate target functions.
16049 * target.c (gomp_map_vars): Don't set tgt->mem_map.
16050 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
16051 (gomp_load_plugin_for_device): Remove open_device, close_device,
16052 get_device_num, set_device_num openacc hook initialisation. Don't set
16053 openacc.target_data.
16054 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
16055 (GOMP_OFFLOAD_openacc_close_device)
16056 (GOMP_OFFLOAD_openacc_get_device_num)
16057 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
16058 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
16060 * plugin/plugin-nvptx.c (ptx_inited): Remove.
16061 (instantiated_devices, ptx_dev_lock): New.
16062 (struct ptx_image_data): New.
16063 (ptx_devices, ptx_images, ptx_image_lock): New.
16064 (fini_streams_for_device): Reorder cuStreamDestroy call.
16065 (nvptx_get_num_devices): Remove forward declaration.
16066 (nvptx_init): Change return type to bool.
16067 (nvptx_fini): Remove.
16068 (nvptx_attach_host_thread_to_device): New.
16069 (nvptx_open_device): Return struct ptx_device* instead of void*.
16070 (nvptx_close_device): Change argument type to struct ptx_device*,
16071 return type to void.
16072 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
16073 (kernel_target_data, kernel_host_table): Remove static globals.
16074 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
16075 (GOMP_OFFLOAD_init_device): Reimplement.
16076 (GOMP_OFFLOAD_fini_device): Likewise.
16077 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
16078 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
16079 (GOMP_OFFLOAD_host2dev): Use ORD argument.
16080 (GOMP_OFFLOAD_openacc_open_device)
16081 (GOMP_OFFLOAD_openacc_close_device)
16082 (GOMP_OFFLOAD_openacc_set_device_num)
16083 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
16084 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
16088 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
16090 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
16092 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
16093 * libgomp.h (struct gomp_memory_mapping): Remove.
16094 (struct target_mem_desc): Change type of mem_map from
16095 gomp_memory_mapping * to splay_tree_s *.
16096 (struct gomp_device_descr): Remove register_image_func, get_table_func.
16097 Add load_image_func, unload_image_func.
16098 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
16099 Remove offload_regions_registered.
16100 (gomp_init_tables): Remove.
16101 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16103 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
16104 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
16105 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
16106 offload_regions_registered.
16107 Initialize load_image_func, unload_image_func, mem_map.root.
16108 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
16109 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
16110 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
16111 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
16112 gomp_memory_mapping *. Use dev's lock and splay_tree.
16113 (lookup_dev): Use dev's lock.
16114 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
16115 (acc_is_present): Likewise.
16116 (acc_map_data): Likewise.
16117 (acc_unmap_data): Likewise. Use dev's lock.
16118 (present_create_copy): Likewise.
16119 (delete_copyout): Pass dev to lookup_host instead of mem_map.
16120 (update_dev_host): Likewise.
16121 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
16122 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
16123 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
16124 (GOMP_OFFLOAD_get_table): Remove
16125 (GOMP_OFFLOAD_load_image): New function.
16126 (GOMP_OFFLOAD_unload_image): New function.
16127 * target.c (register_lock): New mutex for offload image registration.
16128 (num_devices): Do not guard with PLUGIN_SUPPORT.
16129 (gomp_realloc_unlock): New static function.
16130 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
16132 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
16133 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
16134 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
16136 (gomp_unmap_vars): Likewise.
16137 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
16138 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
16139 (gomp_offload_image_to_device): New static function.
16140 (GOMP_offload_register): Add mutex lock.
16141 Call gomp_offload_image_to_device for all initialized devices.
16142 Replace gomp_realloc with gomp_realloc_unlock.
16143 (GOMP_offload_unregister): New function.
16144 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
16145 get_table_func from the plugin with calls to init_device_func and
16146 gomp_offload_image_to_device.
16147 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16149 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
16150 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
16151 (GOMP_target_data): Do not call gomp_init_tables.
16152 (GOMP_target_update): Likewise. Remove argument from gomp_update.
16153 (gomp_load_plugin_for_device): Replace register_image and get_table
16154 with load_image and unload_image in DLSYM ().
16155 (gomp_register_images_for_device): Remove function.
16156 (gomp_target_init): Do not initialize current_device.mem_map.*,
16157 current_device.offload_regions_registered.
16158 Remove call to gomp_register_images_for_device.
16159 Do not free offload_images and num_offload_images.
16161 2015-03-30 Jakub Jelinek <jakub@redhat.com>
16164 * testsuite/libgomp.fortran/pr65597.f90: New test.
16166 2015-03-27 Tom de Vries <tom@codesourcery.com>
16169 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
16170 (init, check): New function.
16171 (foo): Change return type to void.
16172 (main): Call init and check.
16174 2015-03-27 Tom de Vries <tom@codesourcery.com>
16177 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
16178 (foo): Use M for non-inner loops to scale down test-case.
16180 2015-03-25 Kai Tietz <ktietz@redhat.com>
16183 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
16184 (GOACC_data_start): Likewise.
16185 * target.c (gomp_map_vars): Likewise.
16187 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
16189 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
16192 2015-03-19 Jakub Jelinek <jakub@redhat.com>
16194 * testsuite/libgomp.c/target-10.c: New test.
16195 * testsuite/libgomp.c++/target-4.C: New test.
16197 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
16199 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
16200 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
16202 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
16204 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
16205 * configure.ac (*-*-rtems*): Assume Pthread is supported.
16206 (pthread.h): Check for this header file.
16207 * configure: Regenerate.
16209 2015-02-25 Tom de Vries <tom@codesourcery.com>
16211 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
16212 (check_reduction_op, check_reduction_macro, max, min):
16214 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
16216 (main): Use new functions.
16218 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
16220 * target.c (gomp_load_plugin_for_device): Use const char * instead of
16221 char * for variables holding dlerror return values.
16222 (DLSYM_OPT): Ditto.
16224 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
16226 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
16228 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
16229 Cesar Philippidis <cesar@codesourcery.com>
16231 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
16232 GOACC_ctaid, and GOACC_nctaid routines.
16234 2015-02-11 Jakub Jelinek <jakub@redhat.com>
16237 * testsuite/libgomp.c/atomic-18.c: New test.
16238 * testsuite/libgomp.c++/atomic-16.C: New test.
16240 2015-02-04 Jakub Jelinek <jakub@redhat.com>
16244 * testsuite/libgomp.c/pr64824.c: New test.
16245 * testsuite/libgomp.c/pr64868.c: New test.
16246 * testsuite/libgomp.c++/pr64824.C: New test.
16247 * testsuite/libgomp.c++/pr64868.C: New test.
16249 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
16252 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
16253 Link with -lpthread.
16254 * config/aix/plugin-suffix.h: Delete.
16256 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
16259 * configure.tgt (*-*-aix*): Use config_path "aix posix".
16260 (*-*-darwin*): Use config_path "bsd darwin posix".
16261 (*-*-hpux*): Use config_path "hpux posix".
16262 * target.c: Add include of plugin-suffix.h and use
16263 SONAME_SUFFIX macro.
16264 * config/aix/plugin-suffix.h: New file.
16265 * config/darwin/plugin-suffix.h: New file.
16266 * config/hpux/plugin-suffix.h: New file.
16267 * config/posix/plugin-suffix.h: New file.
16269 2015-01-23 Jakub Jelinek <jakub@redhat.com>
16271 PR middle-end/64734
16272 * libgomp.c/pr64734.c: New test.
16274 2015-01-23 Tom de Vries <tom@codesourcery.com>
16277 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
16279 2015-01-23 Tom de Vries <tom@codesourcery.com>
16282 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
16285 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
16288 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
16289 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
16290 formal parameter. Update all users.
16291 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
16292 Document unused formal parameter.
16294 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
16296 * oacc-parallel.c: Don't include <alloca.h>.
16297 (GOACC_parallel): Use gomp_alloca instead of alloca.
16299 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
16301 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
16303 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
16304 James Norris <jnorris@codesourcery.com>
16305 Tom de Vries <tom@codesourcery.com>
16306 Julian Brown <julian@codesourcery.com>
16307 Cesar Philippidis <cesar@codesourcery.com>
16308 Nathan Sidwell <nathan@codesourcery.com>
16309 Tobias Burnus <burnus@net-b.de>
16311 * Makefile.am (search_path): Add $(top_srcdir)/../include.
16312 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
16313 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
16314 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
16315 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
16316 Include $(top_srcdir)/plugin/Makefrag.am.
16317 (nodist_libsubinclude_HEADERS): Add openacc.h.
16318 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
16319 openacc.f90, openacc.mod, openacc_kinds.mod.
16320 (omp_lib.mod): Generalize into...
16321 (%.mod): ... this new rule.
16322 (openacc_kinds.mod, openacc.mod): New rules.
16323 * plugin/configfrag.ac: New file.
16324 * configure.ac: Move plugin/offloading support into it. Include
16325 it. Instantiate testsuite/libgomp-test-support.pt.exp.
16326 * plugin/Makefrag.am: New file.
16327 * testsuite/Makefile.am (OFFLOAD_TARGETS)
16328 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
16330 (libgomp-test-support.exp): New rule.
16331 (all-local): Depend on it.
16332 * Makefile.in: Regenerate.
16333 * testsuite/Makefile.in: Regenerate.
16334 * config.h.in: Likewise.
16335 * configure: Likewise.
16336 * configure.tgt: Harden shell syntax.
16337 * env.c: Include "oacc-int.h".
16338 (parse_acc_device_type): New function.
16339 (gomp_debug_var, goacc_device_type, goacc_device_num): New
16341 (initialize_env): Initialize those. Call
16342 goacc_runtime_initialize.
16343 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
16344 (gomp_fatal): Call gomp_vfatal.
16345 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
16346 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
16347 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
16348 (splay_tree_node, splay_tree, splay_tree_key)
16349 (struct target_mem_desc, struct splay_tree_key_s)
16350 (struct gomp_memory_mapping, struct acc_dispatch_t)
16351 (struct gomp_device_descr, gomp_acc_insert_pointer)
16352 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
16353 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
16354 (gomp_free_memmap, gomp_fini_device): New declarations.
16355 (gomp_vdebug, gomp_debug): New macros.
16356 Include "splay-tree.h".
16357 * libgomp.map (OACC_2.0): New symbol version. Use for
16358 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
16359 acc_set_device_type_h_, acc_get_device_type,
16360 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
16361 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
16362 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
16363 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
16364 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
16365 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
16366 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
16367 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
16368 acc_copyin_array_h_, acc_present_or_copyin,
16369 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
16370 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
16371 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
16372 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
16373 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
16374 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
16375 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
16376 acc_update_device, acc_update_device_32_h_,
16377 acc_update_device_64_h_, acc_update_device_array_h_,
16378 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
16379 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
16380 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
16381 acc_is_present_64_h_, acc_is_present_array_h_,
16382 acc_memcpy_to_device, acc_memcpy_from_device,
16383 acc_get_current_cuda_device, acc_get_current_cuda_context,
16384 acc_get_cuda_stream, acc_set_cuda_stream.
16385 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
16386 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
16387 GOACC_update, GOACC_wait, GOACC_get_thread_num,
16388 GOACC_get_num_threads.
16389 (GOMP_PLUGIN_1.0): New symbol version. Use for
16390 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
16391 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
16392 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
16393 GOMP_PLUGIN_acc_thread.
16394 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
16395 environment variable.
16396 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
16397 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
16398 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
16399 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
16400 (splay_tree_remove): New declarations.
16401 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
16402 (splay_tree_remove, splay_tree_lookup): Move into...
16403 * splay-tree.c: ... this new file.
16404 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
16405 (splay_tree_node, splay_tree, splay_tree_key)
16406 (struct target_mem_desc, struct splay_tree_key_s)
16407 (struct gomp_device_descr): Don't declare.
16408 (num_devices_openmp): New variable.
16409 (gomp_get_num_devices ): Use it.
16410 (gomp_init_targets_once): New function.
16411 (gomp_get_num_devices ): Use it.
16412 (get_kind, gomp_copy_from_async, gomp_free_memmap)
16413 (gomp_fini_device, gomp_register_image_for_device): New functions.
16414 (gomp_map_vars): Add devaddrs parameter.
16415 (gomp_update): Add mm parameter.
16416 (gomp_init_device): Move most of it into...
16417 (gomp_init_tables): ... this new function.
16418 (gomp_register_images_for_device): Remove function.
16419 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
16420 Make them hidden instead of static.
16421 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
16422 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
16423 (GOMP_target_end_data, GOMP_target_update)
16424 (gomp_load_plugin_for_device, gomp_target_init): Update for
16426 * oacc-async.c: New file.
16427 * oacc-cuda.c: Likewise.
16428 * oacc-host.c: Likewise.
16429 * oacc-init.c: Likewise.
16430 * oacc-int.h: Likewise.
16431 * oacc-mem.c: Likewise.
16432 * oacc-parallel.c: Likewise.
16433 * oacc-plugin.c: Likewise.
16434 * oacc-plugin.h: Likewise.
16435 * oacc-ptx.h: Likewise.
16436 * openacc.f90: Likewise.
16437 * openacc.h: Likewise.
16438 * openacc_lib.h: Likewise.
16439 * plugin/plugin-host.c: Likewise.
16440 * plugin/plugin-nvptx.c: Likewise.
16441 * libgomp-plugin.c: Likewise.
16442 * libgomp-plugin.h: Likewise.
16443 * libgomp_target.h: Remove file after merging content into the
16444 former file. Update all users.
16445 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16446 (offload_targets_s, offload_targets_s_openacc): New variables.
16447 (check_effective_target_openacc_nvidia_accel_present)
16448 (check_effective_target_openacc_nvidia_accel_selected): New
16450 (libgomp_init): Update for OpenACC changes.
16451 * testsuite/libgomp-test-support.exp.in: New file.
16452 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16453 * testsuite/libgomp.oacc-c/c.exp: Likewise.
16454 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16455 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16456 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16457 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16458 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16459 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16460 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16461 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16462 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16463 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16464 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16465 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16466 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16467 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16468 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16469 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16470 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16471 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16472 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16473 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16474 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16475 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16476 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16477 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16478 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16479 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16480 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16481 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16482 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16483 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16484 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16485 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16486 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16487 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16488 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16489 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16490 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16491 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16492 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16493 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16494 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16495 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16496 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16497 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16498 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16499 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16500 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16501 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16502 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16503 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16504 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16505 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16506 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16507 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16508 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16509 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16510 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16511 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16512 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16513 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16514 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16515 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16516 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16517 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16518 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16519 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16520 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16521 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16522 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16523 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16524 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16525 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16526 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16527 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16528 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16529 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16530 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16531 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16532 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16533 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16534 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16535 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16536 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16537 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16538 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16539 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16540 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16541 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16542 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16543 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16544 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16545 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16546 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16547 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16548 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16549 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16550 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16551 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16552 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16553 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16554 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16555 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16556 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16557 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16558 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16559 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16560 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16561 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16562 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16563 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16564 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16565 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16566 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16567 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16568 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16569 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16570 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16571 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16572 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16573 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16574 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16575 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16576 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16577 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16578 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16579 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16580 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16581 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16582 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16583 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16584 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16585 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16586 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16587 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16588 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16589 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16590 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16591 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16593 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16594 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16595 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16596 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16597 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16598 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16599 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16600 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16601 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16602 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16603 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16604 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16605 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16606 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16607 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16608 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16609 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16610 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16611 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16612 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16613 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16614 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16615 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16616 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16617 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16618 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16619 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16620 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16621 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16622 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16623 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16624 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16625 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16626 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16627 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16628 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16629 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16630 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16631 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16632 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16633 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16634 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16635 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16636 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16637 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16638 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16639 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16640 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16641 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16642 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16643 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16644 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16645 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16646 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16647 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16648 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16649 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16650 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16651 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16652 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16654 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
16655 Julian Brown <julian@codesourcery.com>
16656 David Malcolm <dmalcolm@redhat.com>
16658 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16659 to "GNU Offloading and Multi Processing Runtime Library". Change
16661 * configure: Regenerate.
16662 * libgomp.texi: Update.
16664 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
16666 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16668 * configure: Regenerate.
16670 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16671 "intelmic" in $offload_targets.
16673 2015-01-05 Jakub Jelinek <jakub@redhat.com>
16675 Update copyright years.
16677 * libgomp.texi: Bump @copying's copyright year.
16679 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16681 * testsuite/lib/libgomp.exp: Load target-utils.exp.
16682 Move load of target-supports.exp earlier.
16684 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
16686 * testsuite/libgomp.c/target-9.c: New test.
16688 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
16690 * config.h.in: Regenerate.
16691 * configure: Regenerate.
16692 * configure.ac: Add GCC_CHECK_EMUTLS.
16693 * libgomp.h: Add check for USE_EMUTLS: this case
16694 is equal to HAVE_TLS.
16695 * team.c: Likewise.
16697 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
16699 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16701 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16702 Ilya Verbin <ilya.verbin@intel.com>
16704 * testsuite/libgomp.c/target-critical-1.c: New test.
16706 2014-11-26 Jakub Jelinek <jakub@redhat.com>
16708 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16709 to dg-options unless expensive testing is on.
16710 (TESTITERS): Define to N if not defined.
16711 (main): Use TESTITERS instead of N.
16712 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16713 dg-additional-options depending on whether expensive testing is on.
16714 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16715 Decrease N to 100000 and CHUNKSZ to 10000.
16717 2014-11-24 Jakub Jelinek <jakub@redhat.com>
16720 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16721 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16723 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
16725 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16727 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16730 * configure: Regenerated.
16732 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
16734 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16735 vect_simd_clones effective target.
16736 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16738 2014-11-14 Jakub Jelinek <jakub@redhat.com>
16740 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16741 of 32 as block_size.
16742 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16743 instead of 32 as block_size.
16745 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16746 Ilya Verbin <ilya.verbin@intel.com>
16748 * Makefile.in: Regenerate.
16749 * configure: Regenerate.
16750 * configure.ac: Set up offload_additional_options,
16751 offload_additional_lib_paths and offload_targets.
16752 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16753 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16754 * testsuite/Makefile.in: Regenerate.
16755 * testsuite/lib/libgomp.exp (libgomp_init): Append
16756 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16757 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16758 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16760 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16761 Ilya Verbin <ilya.verbin@intel.com>
16762 Kirill Yukhin <kirill.yukhin@intel.com>
16763 Ilya Tocar <ilya.tocar@intel.com>
16765 * testsuite/lib/libgomp.exp
16766 (check_effective_target_offload_device): New.
16767 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16768 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16769 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16770 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16771 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16772 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16773 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16774 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16775 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16776 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16777 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16778 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16779 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16780 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16781 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16782 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16783 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16784 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16785 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16786 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16787 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16788 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16789 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16790 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16791 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16792 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16793 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16794 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16795 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16796 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16797 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16798 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16799 * testsuite/libgomp.c/target-7.c: Fix test.
16800 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16801 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16802 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16803 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16804 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16805 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16806 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16807 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16808 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16809 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16810 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16811 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16812 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16813 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16814 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16815 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16816 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16817 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16818 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16819 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16820 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16821 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16822 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16823 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16824 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16825 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16826 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16827 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16828 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16829 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16830 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16832 2014-11-13 Jakub Jelinek <jakub@redhat.com>
16833 Ilya Verbin <ilya.verbin@intel.com>
16834 Thomas Schwinge <thomas@codesourcery.com>
16835 Andrey Turetskiy <andrey.turetskiy@intel.com>
16837 * libgomp.map (GOMP_4.0.1): New symbol version.
16838 Add GOMP_offload_register.
16839 * libgomp_target.h: New file.
16840 * splay-tree.h: New file.
16841 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16842 (gomp_target_init): New forward declaration.
16843 (gomp_is_initialized): New static variable.
16844 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16845 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16847 (offload_images, num_offload_images, devices, num_devices): New static
16849 (splay_compare): New static function.
16850 (struct gomp_device_descr): New structure.
16851 (gomp_get_num_devices): Call gomp_target_init.
16852 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16853 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16854 (GOMP_offload_register): New function.
16855 (GOMP_target): Arrange for host callback to be performed in a separate
16856 initial thread and contention group, inheriting ICVs from
16857 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16858 Add device initialization and lookup for target function in splay tree.
16859 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16860 (GOMP_target_end_data): Call gomp_unmap_vars.
16861 (GOMP_target_update): Add device initialization and call gomp_update.
16862 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16863 (gomp_target_init): New static functions.
16865 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16866 Thomas Schwinge <thomas@codesourcery.com>
16867 Ilya Verbin <ilya.verbin@intel.com>
16868 Andrey Turetskiy <andrey.turetskiy@intel.com>
16870 * config.h.in: Regenerate.
16871 * configure: Regenerate.
16872 * configure.ac: Check for libdl, required for plugin support.
16873 (PLUGIN_SUPPORT): Define if plugins are supported.
16874 (enable_offload_targets): Support Intel MIC targets.
16875 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16877 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16880 * configure: Regenerate.
16882 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16884 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16886 2014-10-06 Marek Polacek <polacek@redhat.com>
16888 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16889 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16890 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16891 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16893 2014-10-06 Marek Polacek <polacek@redhat.com>
16895 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16896 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16897 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16898 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16899 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16900 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16901 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16902 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16903 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16904 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16905 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16906 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16907 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16908 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16909 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16910 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16911 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16912 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16915 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16918 * testsuite/libgomp.c/pr61200.c: New test.
16920 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16923 * testsuite/libgomp.c++/pr63248.C: New test.
16925 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16927 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16928 is not zero, but taskgroup->children is NULL and there are
16929 any task->children, schedule those instead of waiting.
16930 * testsuite/libgomp.c/depend-6.c: New test.
16931 * testsuite/libgomp.c/depend-7.c: New test.
16932 * testsuite/libgomp.c/depend-8.c: New test.
16933 * testsuite/libgomp.c/depend-9.c: New test.
16934 * testsuite/libgomp.c/depend-10.c: New test.
16936 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16938 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16939 (struct gomp_taskwait): New type.
16940 (struct gomp_task): Add taskwait and parent_depends_on, remove
16941 in_taskwait and taskwait_sem fields.
16942 (gomp_finish_task): Don't destroy taskwait_sem.
16943 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16944 taskwait and parent_depends_on.
16945 (GOMP_task): For if (0) tasks with depend clause that depend on
16946 earlier tasks don't defer them, instead call
16947 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16948 Initialize redundant_out field, for redundant out entries just
16949 move them at the end of linked list instead of removing them
16950 completely, and set redundant_out flag instead of redundant.
16951 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16953 (gomp_task_run_post_handle_dependers): If parent is in
16954 gomp_task_maybe_wait_for_dependencies and newly runnable task
16955 is not parent_depends_on, queue it in parent->children linked
16956 list after all runnable tasks with parent_depends_on set.
16957 Adjust for addition of taskwait indirection.
16958 (gomp_task_run_post_remove_parent): If parent is in
16959 gomp_task_maybe_wait_for_dependencies and task to be removed
16960 is parent_depends_on, decrement n_depend and if needed awake
16961 parent. Adjust for addition of taskwait indirection.
16962 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16963 (gomp_task_maybe_wait_for_dependencies): New function.
16964 * testsuite/libgomp.c/depend-5.c: New test.
16966 2014-07-13 Tobias Burnus <burnus@net-b.de>
16968 * testsuite/libgomp.fortran/pr34020.f90: Make compile
16969 with TS 18508/Fortran 2015.
16971 2014-07-06 Marek Polacek <polacek@redhat.com>
16974 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16976 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16978 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16979 matches regex $lang_source_re, add $lang_include_flags to options.
16980 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16981 * testsuite/libgomp.c++/c++.exp: Likewise.
16982 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16983 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16985 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16987 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16989 * testsuite/libgomp.fortran/fortran.exp: Explain
16990 gfortran-dg-runtest usage.
16992 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16994 * testsuite/libgomp.fortran/simd5.f90: New test.
16995 * testsuite/libgomp.fortran/simd6.f90: New test.
16996 * testsuite/libgomp.fortran/simd7.f90: New test.
16998 2014-06-24 Jakub Jelinek <jakub@redhat.com>
17000 * testsuite/libgomp.c/for-2.c: Define SC to static for
17001 #pragma omp for simd testing.
17002 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
17003 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
17005 * testsuite/libgomp.c/simd-14.c: New test.
17006 * testsuite/libgomp.c/simd-15.c: New test.
17007 * testsuite/libgomp.c/simd-16.c: New test.
17008 * testsuite/libgomp.c/simd-17.c: New test.
17009 * testsuite/libgomp.c++/for-10.C: Define SC to static for
17010 #pragma omp for simd testing.
17011 * testsuite/libgomp.c++/simd10.C: New test.
17012 * testsuite/libgomp.c++/simd11.C: New test.
17013 * testsuite/libgomp.c++/simd12.C: New test.
17014 * testsuite/libgomp.c++/simd13.C: New test.
17016 * testsuite/libgomp.fortran/aligned1.f03: New test.
17017 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
17018 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
17019 tasks with !$omp parallel !$omp single.
17020 * testsuite/libgomp.fortran/target8.f90: New test.
17021 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
17022 not to use trim in the combiner, instead call elemental function.
17023 (fn): New elemental function.
17024 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
17026 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
17028 * testsuite/libgomp.fortran/udr12.f90: New test.
17029 * testsuite/libgomp.fortran/udr13.f90: New test.
17030 * testsuite/libgomp.fortran/udr14.f90: New test.
17031 * testsuite/libgomp.fortran/udr15.f90: New test.
17033 2014-06-18 Jakub Jelinek <jakub@redhat.com>
17035 * omp_lib.f90.in (openmp_version): Set to 201307.
17036 * omp_lib.h.in (openmp_version): Likewise.
17037 * testsuite/libgomp.c/target-8.c: New test.
17038 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
17039 and inbranch clauses.
17040 * testsuite/libgomp.fortran/depend-3.f90: New test.
17041 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
17043 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17044 * testsuite/libgomp.fortran/target1.f90: New test.
17045 * testsuite/libgomp.fortran/target2.f90: New test.
17046 * testsuite/libgomp.fortran/target3.f90: New test.
17047 * testsuite/libgomp.fortran/target4.f90: New test.
17048 * testsuite/libgomp.fortran/target5.f90: New test.
17049 * testsuite/libgomp.fortran/target6.f90: New test.
17050 * testsuite/libgomp.fortran/target7.f90: New test.
17052 2014-06-10 Jakub Jelinek <jakub@redhat.com>
17055 * testsuite/libgomp.fortran/allocatable9.f90: New test.
17056 * testsuite/libgomp.fortran/allocatable10.f90: New test.
17057 * testsuite/libgomp.fortran/allocatable11.f90: New test.
17058 * testsuite/libgomp.fortran/allocatable12.f90: New test.
17059 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
17060 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
17061 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
17062 * testsuite/libgomp.fortran/associate1.f90: New test.
17063 * testsuite/libgomp.fortran/associate2.f90: New test.
17064 * testsuite/libgomp.fortran/procptr1.f90: New test.
17066 2014-06-06 Jakub Jelinek <jakub@redhat.com>
17068 * testsuite/libgomp.fortran/simd1.f90: New test.
17069 * testsuite/libgomp.fortran/udr1.f90: New test.
17070 * testsuite/libgomp.fortran/udr2.f90: New test.
17071 * testsuite/libgomp.fortran/udr3.f90: New test.
17072 * testsuite/libgomp.fortran/udr4.f90: New test.
17073 * testsuite/libgomp.fortran/udr5.f90: New test.
17074 * testsuite/libgomp.fortran/udr6.f90: New test.
17075 * testsuite/libgomp.fortran/udr7.f90: New test.
17076 * testsuite/libgomp.fortran/udr8.f90: New test.
17077 * testsuite/libgomp.fortran/udr9.f90: New test.
17078 * testsuite/libgomp.fortran/udr10.f90: New test.
17079 * testsuite/libgomp.fortran/udr11.f90: New test.
17081 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
17083 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
17084 vect_simd_clones effective target.
17085 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
17087 2014-05-21 Jakub Jelinek <jakub@redhat.com>
17089 PR middle-end/61252
17090 * testsuite/libgomp.c++/simd-9.C: New test.
17092 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
17094 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
17095 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
17096 texts according to their @menu entry positions.
17098 2014-05-11 Jakub Jelinek <jakub@redhat.com>
17100 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
17101 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
17102 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
17103 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
17104 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
17105 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
17106 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
17107 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
17108 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
17109 * testsuite/libgomp.fortran/depend-1.f90: New test.
17110 * testsuite/libgomp.fortran/depend-2.f90: New test.
17111 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
17112 * testsuite/libgomp.fortran/simd1.f90: New test.
17113 * testsuite/libgomp.fortran/simd2.f90: New test.
17114 * testsuite/libgomp.fortran/simd3.f90: New test.
17115 * testsuite/libgomp.fortran/simd4.f90: New test.
17116 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
17118 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17120 * testsuite/libgomp.c/simd-10.c: New test.
17121 * testsuite/libgomp.c/simd-11.c: New test.
17122 * testsuite/libgomp.c/simd-12.c: New test.
17123 * testsuite/libgomp.c/simd-13.c: New test.
17125 2014-04-24 Jakub Jelinek <jakub@redhat.com>
17127 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
17128 atomic type clauses in any order and optional comma in between.
17129 * testsuite/libgomp.c++/atomic-15.C: Likewise.
17130 * testsuite/libgomp.c/atomic-17.c: Likewise.
17132 * testsuite/libgomp.c/simd-7.c: New test.
17133 * testsuite/libgomp.c/simd-8.c: New test.
17134 * testsuite/libgomp.c/simd-9.c: New test.
17135 * testsuite/libgomp.c/loop-16.c: New test.
17137 2014-04-02 Richard Henderson <rth@redhat.com>
17139 * config/linux/futex.h (futex_wait): Get error value from errno.
17140 (futex_wake): Likewise.
17142 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17145 * testsuite/libgomp.c++/udr-11.C: New test.
17146 * testsuite/libgomp.c++/udr-12.C: New test.
17147 * testsuite/libgomp.c++/udr-13.C: New test.
17148 * testsuite/libgomp.c++/udr-14.C: New test.
17149 * testsuite/libgomp.c++/udr-15.C: New test.
17150 * testsuite/libgomp.c++/udr-16.C: New test.
17151 * testsuite/libgomp.c++/udr-17.C: New test.
17152 * testsuite/libgomp.c++/udr-18.C: New test.
17153 * testsuite/libgomp.c++/udr-19.C: New test.
17155 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17157 Update copyright years
17159 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17161 * hashtab.h: Use the standard form for the copyright notice.
17163 2014-01-02 Tobias Burnus <burnus@net-b.de>
17165 * libgomp.texi: Bump @copying's copyright year.
17167 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
17169 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
17170 alloca () with __builtin_alloca ().
17171 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
17172 * testsuite/libgomp.c/lock-3.c: Likewise.
17173 * testsuite/libgomp.c/pr48591.c: Likewise.
17175 2013-12-17 Jakub Jelinek <jakub@redhat.com>
17178 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
17181 2013-12-16 Jakub Jelinek <jakub@redhat.com>
17184 * testsuite/libgomp.c/pr58756.c: New test.
17186 2013-12-12 Jakub Jelinek <jakub@redhat.com>
17189 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
17192 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
17194 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
17196 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
17197 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
17198 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
17199 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
17202 * libgomp_g.h: Include <stddef.h> for size_t.
17204 * libgomp.spec.in: Update comment about libgomp's dependencies.
17205 * configure.ac: Likewise.
17206 * configure: Regenerate.
17208 2013-10-16 Tobias Burnus <burnus@net-b.de>
17210 * libgomp.texi: (Runtime Library Routines): Update references for
17211 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
17212 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
17213 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
17214 (Environment Variables): Update references for OpenMP 4.0. Add
17215 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
17216 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
17219 2013-10-14 Jakub Jelinek <jakub@redhat.com>
17221 * env.c (parse_bind_var): Initialize value to avoid
17222 (false positive) warning.
17224 2013-10-12 Jakub Jelinek <jakub@redhat.com>
17227 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
17229 (gomp_init_num_threads): Move i variable declaration into
17230 #ifdef CPU_ALLOC_SIZE block.
17231 * config/linux/affinity.c (gomp_affinity_init_level): Test
17232 gomp_places_list_len == 0 rather than gomp_places_list == 0
17233 when checking for topology reading error.
17234 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
17235 * env.c (parse_affinity): Add ignore argument, if true, don't populate
17236 gomp_places_list, only parse env var and always return false.
17237 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
17238 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
17239 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
17240 and either of these variables were parsed correctly into a places
17243 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
17244 Jakub Jelinek <jakub@redhat.com>
17246 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
17247 of 5 loopfn matches.
17248 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17249 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17250 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
17251 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17252 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17253 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17254 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17255 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17257 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
17259 * Makefile.am (omp_lib.mod): Streamline rule.
17260 * Makefile.in: Regenerate.
17262 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
17265 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
17266 * testsuite/libgomp.fortran/lib1.f90: Likewise.
17267 * testsuite/libgomp.fortran/lib2.f: Likewise.
17268 * testsuite/libgomp.fortran/lib3.f: Likewise.
17270 * configure.ac: Typo fix.
17271 * configure: Regenerate.
17273 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
17274 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17276 * omp.h.in: Don't touch the user's namespace.
17278 2013-10-11 Jakub Jelinek <jakub@redhat.com>
17279 Tobias Burnus <burnus@net-b.de>
17280 Richard Henderson <rth@redhat.com>
17282 * target.c: New file.
17283 * Makefile.am (libgomp_la_SOURCES): Add target.c.
17284 * Makefile.in: Regenerated.
17285 * libgomp_g.h (GOMP_task): Add depend argument.
17286 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17287 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17288 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
17289 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17290 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17291 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
17292 GOMP_taskgroup_start, GOMP_taskgroup_end,
17293 GOMP_parallel_sections): New prototypes.
17294 * fortran.c (omp_is_initial_device): Add ialias_redirect.
17295 (omp_is_initial_device_): New function.
17296 (ULP, STR1, STR2, ialias_redirect): Removed.
17297 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
17298 omp_set_default_device_8_, omp_get_default_device_,
17299 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
17301 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17302 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17303 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
17305 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
17306 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
17307 omp_set_default_device, omp_set_default_device_,
17308 omp_set_default_device_8_, omp_get_default_device,
17309 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
17310 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
17311 omp_get_team_num_): Export @@OMP_4.0.
17312 * team.c (struct gomp_thread_start_data): Add place field.
17313 (gomp_thread_start): Clear thr->thread_pool and
17314 thr->task before returning. Use gomp_team_barrier_wait_final
17315 instead of gomp_team_barrier_wait. Initialize thr->place.
17316 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
17317 team_cancelled and task_queued_count fields.
17318 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
17319 before calling pthread_exit.
17320 (gomp_free_thread): No longer static. Use
17321 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
17322 (gomp_team_start): Add flags argument. Set
17323 thr->thread_pool->threads_busy to nthreads immediately after creating
17324 new pool. Use gomp_managed_threads_lock instead of
17325 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
17326 (gomp_team_end): Use gomp_managed_threads_lock instead of
17327 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
17328 of gomp_team_barrier_wait. If team->team_cancelled, call
17329 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
17330 rather than thr->ts.work_share.
17331 (initialize_team): Don't call gomp_sem_init here.
17332 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
17334 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
17335 * env.c (gomp_global_icv): Add default_device_var, target_data and
17336 bind_var initializers.
17337 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17338 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17339 gomp_places_list_len): New variables.
17340 (parse_bind_var, parse_one_place, parse_places_var): New functions.
17341 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
17343 (gomp_cancel_var): New global variable.
17344 (parse_int): New function.
17345 (handle_omp_display_env): New function.
17346 (initialize_env): Use it. Initialize default_device_var.
17347 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
17348 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
17349 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
17350 been successfully parsed (and call gomp_init_affinity in that case).
17351 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17352 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17353 omp_get_team_num, omp_is_initial_device): New functions.
17354 * libgomp.h: Include stdlib.h.
17355 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
17357 (struct target_mem_desc): Forward declare.
17358 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
17359 and thread_limit_var fields.
17360 (gomp_get_num_devices): New prototype.
17361 (gomp_cancel_var): New extern decl.
17362 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
17363 team_cancelled and task_queued_count fields. Add comments about
17364 task_{,queued_,running_}count.
17365 (gomp_cancel_kind): New enum.
17366 (gomp_work_share_end_cancel): New prototype.
17367 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
17368 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
17370 (struct gomp_taskgroup): New type.
17371 (struct gomp_task_depend_entry,
17372 struct gomp_dependers_vec): New types.
17373 (gomp_finish_task): Free depend_hash if non-NULL.
17374 (struct gomp_team_state): Add place_partition_off
17375 and place_partition_len fields.
17376 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17377 gomp_places_list_len): New extern decls.
17378 (struct gomp_thread): Add place field.
17379 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17380 (gomp_init_thread_affinity): Add place argument.
17381 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17382 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17383 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17384 gomp_affinity_init_level, gomp_affinity_print_place): New
17386 (gomp_team_start): Add flags argument.
17387 (gomp_thread_limit_var, gomp_remaining_threads_count,
17388 gomp_remaining_threads_lock): Remove.
17389 (gomp_managed_threads_lock): New variable.
17390 (struct gomp_thread_pool): Add threads_busy field.
17391 (gomp_free_thread): New prototype.
17392 * task.c: Include hashtab.h.
17393 (hash_entry_type): New typedef.
17394 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
17395 (gomp_init_task): Clear dependers, depend_hash, depend_count,
17396 copy_ctors_done and taskgroup fields.
17397 (GOMP_task): Add depend argument, handle depend clauses. If
17398 gomp_team_barrier_cancelled or if it's taskgroup has been
17399 cancelled, don't queue or start new tasks. Set copy_ctors_done
17400 field if needed. Initialize taskgroup field. If copy_ctors_done
17401 and already cancelled, don't discard the task. If taskgroup is
17402 non-NULL, enqueue the task into taskgroup queue. Increment
17403 num_children field in taskgroup. Increment task_queued_count.
17404 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
17405 gomp_task_run_post_remove_taskgroup): New inline functions.
17406 (gomp_task_run_post_handle_depend_hash,
17407 gomp_task_run_post_handle_dependers,
17408 gomp_task_run_post_handle_depend): New functions.
17409 (GOMP_taskwait): Use them. If more than one new tasks
17410 have been queued, wake other threads if needed.
17411 (gomp_barrier_handle_tasks): Likewise. If
17412 gomp_team_barrier_cancelled, don't start any new tasks, just free
17414 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
17416 (omp_proc_bind_kind, omp_proc_bind_false,
17417 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17418 omp_proc_bind_spread): New params.
17419 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17420 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17421 omp_get_team_num, omp_is_initial_device): New interfaces.
17422 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
17423 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
17424 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
17425 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
17426 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
17427 useless use omp_lib_kinds.
17428 * omp.h.in (omp_proc_bind_t): New typedef.
17429 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17430 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17431 omp_get_team_num, omp_is_initial_device): New prototypes.
17432 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
17433 through to gomp_team_start.
17434 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
17435 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
17436 Adjust gomp_parallel_loop_start callers.
17437 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17438 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17439 GOMP_loop_end_cancel): New functions.
17440 (GOMP_parallel_end): Add ialias_redirect.
17441 * hashtab.h: New file.
17442 * libgomp.texi (Environment Variables): Minor cleanup,
17443 update section refs to OpenMP 4.0rc2.
17444 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17445 environment variables.
17446 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17447 team->work_shares_to_free to thr->ts.work_share before calling
17449 (gomp_work_share_end_cancel): New function.
17450 * config/linux/proc.c: Include errno.h.
17451 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17452 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17453 sizeof (cpu_set_t) to determine number of iterations. Fix up check
17454 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
17455 gomp_cpuset_size is sizeof (cpu_set_t).
17456 (gomp_init_num_threads): Initialize gomp_cpuset_size,
17457 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17458 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17459 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
17460 contain any logical CPUs.
17461 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17462 is NULL. Use gomp_cpusetp instead of &cpuset and pass
17463 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17464 pthread_getaffinity_np. Check gomp_places_list instead of
17465 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
17466 * config/linux/bar.c (gomp_barrier_wait_end,
17467 gomp_barrier_wait_last): Use BAR_* defines.
17468 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
17469 from state where needed. Set work_share_cancelled to 0 on last
17471 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17472 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17474 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17475 Add cpusetsize argument.
17476 (gomp_cpuset_size, gomp_cpusetp): Declare.
17477 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17478 (affinity_counter): Remove.
17479 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17480 if CPU_ALLOC_SIZE isn't defined.
17481 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17482 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17483 bind current thread to the first place.
17484 (gomp_init_thread_affinity): Rewritten. Add place argument, just
17485 pthread_setaffinity_np to gomp_places_list[place].
17486 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17487 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17488 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17489 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17490 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17491 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17492 (gomp_barrier_t): Add awaited_final field.
17493 (gomp_barrier_init): Initialize awaited_final field.
17494 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17495 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17497 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
17499 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17500 gomp_team_barrier_cancelled): New inline functions.
17501 (gomp_barrier_last_thread,
17502 gomp_team_barrier_set_task_pending,
17503 gomp_team_barrier_clear_task_pending,
17504 gomp_team_barrier_set_waiting_for_tasks,
17505 gomp_team_barrier_waiting_for_tasks,
17506 gomp_team_barrier_done): Use BAR_* defines.
17507 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17508 (gomp_barrier_wait_end): Use BAR_* defines.
17509 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17510 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17512 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17513 gomp_team_barrier_cancel): New functions.
17514 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17516 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17517 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17518 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17519 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17520 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17521 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17522 (gomp_barrier_t): Add cancellable field.
17523 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17524 gomp_team_barrier_cancel): New prototypes.
17525 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17526 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17527 gomp_team_barrier_cancelled): New inline functions.
17528 (gomp_barrier_wait_start, gomp_barrier_last_thread,
17529 gomp_team_barrier_set_task_pending,
17530 gomp_team_barrier_clear_task_pending,
17531 gomp_team_barrier_set_waiting_for_tasks,
17532 gomp_team_barrier_waiting_for_tasks,
17533 gomp_team_barrier_done): Use BAR_* defines.
17534 * barrier.c (GOMP_barrier_cancel): New function.
17535 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17536 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17537 omp_proc_bind_spread): New params.
17538 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17539 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17540 omp_get_team_num, omp_is_initial_device): New externals.
17541 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17543 (gomp_resolve_num_threads): Adjust for thread_limit now being in
17544 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17545 infinity. If not nested, just return minimum of max_num_threads
17546 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17547 to the returned value. Otherwise, don't update atomically
17548 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17549 (GOMP_parallel_end): Adjust for thread_limit now being in
17550 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17551 infinity. Adjust threads_busy in the pool rather than
17552 gomp_remaining_threads_count. Remember team->nthreads and call
17553 gomp_team_end before adjusting threads_busy, if not nested
17554 afterwards, just set it to 1 non-atomically. Add ialias.
17555 (GOMP_parallel_start): Adjust gomp_team_start caller.
17556 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17557 * testsuite/libgomp.c/affinity-1.c: New test.
17558 * testsuite/libgomp.c/atomic-15.c: New test.
17559 * testsuite/libgomp.c/atomic-16.c: New test.
17560 * testsuite/libgomp.c/atomic-17.c: New test.
17561 * testsuite/libgomp.c/cancel-for-1.c: New test.
17562 * testsuite/libgomp.c/cancel-for-2.c: New test.
17563 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17564 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17565 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17566 * testsuite/libgomp.c/cancel-sections-1.c: New test.
17567 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17568 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17569 * testsuite/libgomp.c/depend-1.c: New test.
17570 * testsuite/libgomp.c/depend-2.c: New test.
17571 * testsuite/libgomp.c/depend-3.c: New test.
17572 * testsuite/libgomp.c/depend-4.c: New test.
17573 * testsuite/libgomp.c/for-1.c: New test.
17574 * testsuite/libgomp.c/for-1.h: New file.
17575 * testsuite/libgomp.c/for-2.c: New test.
17576 * testsuite/libgomp.c/for-2.h: New file.
17577 * testsuite/libgomp.c/for-3.c: New test.
17578 * testsuite/libgomp.c/pr58392.c: New test.
17579 * testsuite/libgomp.c/simd-1.c: New test.
17580 * testsuite/libgomp.c/simd-2.c: New test.
17581 * testsuite/libgomp.c/simd-3.c: New test.
17582 * testsuite/libgomp.c/simd-4.c: New test.
17583 * testsuite/libgomp.c/simd-5.c: New test.
17584 * testsuite/libgomp.c/simd-6.c: New test.
17585 * testsuite/libgomp.c/target-1.c: New test.
17586 * testsuite/libgomp.c/target-2.c: New test.
17587 * testsuite/libgomp.c/target-3.c: New test.
17588 * testsuite/libgomp.c/target-4.c: New test.
17589 * testsuite/libgomp.c/target-5.c: New test.
17590 * testsuite/libgomp.c/target-6.c: New test.
17591 * testsuite/libgomp.c/target-7.c: New test.
17592 * testsuite/libgomp.c/taskgroup-1.c: New test.
17593 * testsuite/libgomp.c/thread-limit-1.c: New test.
17594 * testsuite/libgomp.c/thread-limit-2.c: New test.
17595 * testsuite/libgomp.c/thread-limit-3.c: New test.
17596 * testsuite/libgomp.c/udr-1.c: New test.
17597 * testsuite/libgomp.c/udr-2.c: New test.
17598 * testsuite/libgomp.c/udr-3.c: New test.
17599 * testsuite/libgomp.c++/affinity-1.C: New test.
17600 * testsuite/libgomp.c++/atomic-10.C: New test.
17601 * testsuite/libgomp.c++/atomic-11.C: New test.
17602 * testsuite/libgomp.c++/atomic-12.C: New test.
17603 * testsuite/libgomp.c++/atomic-13.C: New test.
17604 * testsuite/libgomp.c++/atomic-14.C: New test.
17605 * testsuite/libgomp.c++/atomic-15.C: New test.
17606 * testsuite/libgomp.c++/cancel-for-1.C: New test.
17607 * testsuite/libgomp.c++/cancel-for-2.C: New test.
17608 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17609 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17610 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17611 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17612 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17613 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17614 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17615 * testsuite/libgomp.c++/cancel-test.h: New file.
17616 * testsuite/libgomp.c++/for-9.C: New test.
17617 * testsuite/libgomp.c++/for-10.C: New test.
17618 * testsuite/libgomp.c++/for-11.C: New test.
17619 * testsuite/libgomp.c++/simd-1.C: New test.
17620 * testsuite/libgomp.c++/simd-2.C: New test.
17621 * testsuite/libgomp.c++/simd-3.C: New test.
17622 * testsuite/libgomp.c++/simd-4.C: New test.
17623 * testsuite/libgomp.c++/simd-5.C: New test.
17624 * testsuite/libgomp.c++/simd-6.C: New test.
17625 * testsuite/libgomp.c++/simd-7.C: New test.
17626 * testsuite/libgomp.c++/simd-8.C: New test.
17627 * testsuite/libgomp.c++/target-1.C: New test.
17628 * testsuite/libgomp.c++/target-2.C: New test.
17629 * testsuite/libgomp.c++/target-2-aux.cc: New file.
17630 * testsuite/libgomp.c++/target-3.C: New test.
17631 * testsuite/libgomp.c++/taskgroup-1.C: New test.
17632 * testsuite/libgomp.c++/udr-1.C: New test.
17633 * testsuite/libgomp.c++/udr-2.C: New test.
17634 * testsuite/libgomp.c++/udr-3.C: New test.
17635 * testsuite/libgomp.c++/udr-4.C: New test.
17636 * testsuite/libgomp.c++/udr-5.C: New test.
17637 * testsuite/libgomp.c++/udr-6.C: New test.
17638 * testsuite/libgomp.c++/udr-7.C: New test.
17639 * testsuite/libgomp.c++/udr-8.C: New test.
17640 * testsuite/libgomp.c++/udr-9.C: New test.
17642 2013-09-20 Jakub Jelinek <jakub@redhat.com>
17645 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17648 2013-09-20 Alan Modra <amodra@gmail.com>
17650 * configure: Regenerate.
17652 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17654 * testsuite/libgomp.c/sections-2.c: New test.
17656 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
17658 * testsuite/libgomp.fortran/strassen.f90:
17659 Add dg-skip-if aarch64_tiny.
17661 2013-06-20 Iain Sandoe <iain@codesourcery.com>
17662 Cesar Philippidis <cesar@codesourcery.com>
17664 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17665 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17666 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17667 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17668 * testsuite/libgomp.graphite/graphite.exp: Likewise.
17669 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17670 Use dg-runtest rather than gfortran-dg-runtest.
17672 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
17674 * testsuite/libgomp.c/icv-2.c: Extend current handling of
17675 Linux-based x86 systems to cover all GNU systems.
17676 * testsuite/libgomp.c/lock-3.c: Likewise.
17677 * testsuite/libgomp.c/pr48591.c: Likewise.
17679 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
17681 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17682 GNU/Hurd, as done for Linux-based systems.
17684 * config/posix/ptrlock.h: Fix comment.
17686 2013-05-27 Tobias Burnus <burnus@net-b.de>
17689 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17690 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17691 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17692 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17693 omp_destroy_nest_lock): Correct arguments to match the one in
17695 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17696 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17697 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17698 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17700 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17702 * testsuite/libgomp.c/loop-13.c: New test.
17703 * testsuite/libgomp.c/loop-14.c: New test.
17704 * testsuite/libgomp.c/loop-15.c: New test.
17705 * testsuite/libgomp.c++/loop-13.C: New test.
17706 * testsuite/libgomp.c++/loop-14.C: New test.
17707 * testsuite/libgomp.c++/loop-15.C: New test.
17709 2013-02-06 Jakub Jelinek <jakub@redhat.com>
17711 PR middle-end/56217
17712 * testsuite/libgomp.c++/pr56217.C: New test.
17714 2013-02-01 Alan Modra <amodra@gmail.com>
17716 * task.c (GOMP_task, GOMP_taskwait): Comment.
17718 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17719 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17722 * config/linux/wait.h (do_spin): Use atomic load for addr.
17723 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17724 for intptr and ptrlock.
17725 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17728 2013-01-22 Alan Modra <amodra@gmail.com>
17732 * task.c (GOMP_task): Revert 2011-12-09 change.
17733 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17734 barrier to read task->children..
17735 (gomp_barrier_handle_tasks): ..and matching atomic store with
17736 release barrier here when setting parent->children to NULL.
17738 2013-01-16 Jakub Jelinek <jakub@redhat.com>
17739 Tobias Burnus <burnus@net-b.de>
17742 * testsuite/libgomp.fortran/fortran.exp: Use
17743 -fintrinsic-modules-path= instead of
17744 -fintrinsic-modules-path.
17746 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17748 Update copyright years.
17750 2012-12-19 Tobias Burnus <burnus@net-b.de>
17752 * testsuite/libgomp.fortran/fortran.exp: Set
17753 -fintrinsic-modules-path.
17755 2012-12-19 Tobias Burnus <burnus@net-b.de>
17757 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17758 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17760 2012-11-21 Jakub Jelinek <jakub@redhat.com>
17763 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17764 if pool had any threads_used.
17766 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17768 * testsuite/libgomp.c++/pr24455.C: Use
17769 -Wl,-undefined,dynamic_lookup on darwin.
17771 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
17773 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17775 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17777 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17779 2012-10-23 Ian Bolton <ian.bolton@arm.com>
17780 Jim MacArthur <jim.macarthur@arm.com>
17781 Marcus Shawcroft <marcus.shawcroft@arm.com>
17782 Nigel Stephens <nigel.stephens@arm.com>
17783 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17784 Richard Earnshaw <rearnsha@arm.com>
17785 Sofiane Naci <sofiane.naci@arm.com>
17786 Stephen Thomas <stephen.thomas@arm.com>
17787 Tejas Belagod <tejas.belagod@arm.com>
17788 Yufeng Zhang <yufeng.zhang@arm.com>
17790 * configure.tgt: Add AArch64.
17792 2012-10-04 Jason Merrill <jason@redhat.com>
17794 * testsuite/libgomp.c++/tls-init1.C: New.
17796 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
17798 * configure: Regenerated.
17800 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17802 * config/linux/mips/futex.h (sys_futex0): Change to static
17803 function with noinline, nomips16 attributes under MIPS16. Adjust
17804 asm statement to place 'li v0,SYS_futex' immediately before
17807 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17809 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17810 conflict with index.html on case-insensitive file systems.
17812 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17814 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17815 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17817 2012-07-02 Richard Guenther <rguenther@suse.de>
17818 Michael Matz <matz@suse.de>
17819 Tobias Grosser <tobias@grosser.es>
17820 Sebastian Pop <sebpop@gmail.com>
17822 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17823 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17824 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17825 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17827 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17829 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17831 2012-06-22 Richard Guenther <rguenther@suse.de>
17833 Merge from graphite branch
17834 2012-01-13 Tobias Grosser <tobias@grosser.es>
17836 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17837 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17839 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17841 PR middle-end/53580
17842 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17843 use GOMP_barrier () call instead.
17844 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17845 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17846 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17847 call GOMP_barrier instead.
17848 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17850 2012-06-06 Jakub Jelinek <jakub@redhat.com>
17853 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17854 argument to memset call.
17856 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17858 * configure: Regenerated.
17860 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17862 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17864 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17867 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17869 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17871 PR middle-end/52547
17872 * testsuite/libgomp.c/pr52547.c: New test.
17874 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17876 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17878 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17880 * configure.tgt (mips-sgi-irix6*): Remove.
17882 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17884 * configure.tgt (alpha*-dec-osf*): Remove.
17886 * config/osf/sem.h: Remove.
17887 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17889 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17891 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17893 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17896 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17897 Remove ENABLE_SYMVERS_SOL2.
17898 * configure: Regenerate.
17899 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17900 (PREPROCESS): New variable.
17901 (libgomp.ver): New target.
17902 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17903 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17904 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17906 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17907 * Makefile.in: Regenerate.
17909 2012-02-14 Walter Lee <walt@tilera.com>
17911 * configure.tgt: Handle tilegx and tilepro.
17912 * config/linux/tile/futex.h: New file.
17914 2012-02-08 Richard Guenther <rguenther@suse.de>
17916 PR tree-optimization/46886
17917 * testsuite/libgomp.c/pr46886.c: New testcase.
17919 2012-01-25 Matthias Klose <doko@ubuntu.com>
17921 * config/linux/arm: Remove empty directory.
17922 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17924 2011-12-09 Alan Modra <amodra@gmail.com>
17927 * task.c (GOMP_taskwait): Don't access task->children outside of
17928 task_lock mutex region.
17929 (GOMP_task): Likewise.
17931 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17934 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17936 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17937 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17938 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17939 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17940 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17942 2011-12-02 Alan Modra <amodra@gmail.com>
17944 * config/linux/affinity.c: Use atomic rather than sync builtin.
17945 * config/linux/lock.c: Likewise.
17946 * config/linux/ptrlock.h: Likewise.
17947 * config/linux/ptrlock.c: Likewise.
17948 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17949 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17950 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17951 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17952 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17953 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17954 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17955 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17956 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17957 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17959 2011-11-30 Alan Modra <amodra@gmail.com>
17962 * config/linux/bar.h: Use atomic rather than sync builtins.
17963 * config/linux/bar.c: Likewise. Add missing acquire
17964 synchronisation on generation field.
17965 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17968 2011-11-30 Alan Modra <amodra@gmail.com>
17970 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17971 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17972 * config/linux/mutex.h: Use atomic rather than sync builtins.
17973 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17974 * config/linux/omp-lock.h: Comment fix.
17975 * config/linux/arm/mutex.h: Delete.
17976 * config/linux/powerpc/mutex.h: Delete.
17977 * config/linux/ia64/mutex.h: Delete.
17978 * config/linux/mips/mutex.h: Delete.
17980 2011-11-30 Alan Modra <amodra@gmail.com>
17983 * config/linux/sem.h: Rewrite.
17984 * config/linux/sem.c: Rewrite.
17986 2011-11-28 Richard Henderson <rth@redhat.com>
17988 * libgomp.h (enum memmodel): New.
17990 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
17992 * configure: Regenerate.
17994 2011-10-10 Matthias Klose <doko@ubuntu.com>
17996 * config/posix95: Remove empty directory.
17998 2011-08-26 Jakub Jelinek <jakub@redhat.com>
18000 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
18002 2011-08-19 Jakub Jelinek <jakub@redhat.com>
18005 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
18006 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
18008 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18010 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
18012 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18015 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
18017 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
18019 * config/linux/proc.h: New.
18020 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
18021 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
18022 (gomp_init_num_threads): Update call to cpuset_popcount.
18023 (get_num_procs): Ditto.
18024 * config/linux/affinity.c (gomp_init_affinity): Call
18025 gomp_cpuset_popcount.
18027 2011-08-02 Jakub Jelinek <jakub@redhat.com>
18031 * omp.h.in (omp_in_final): New prototype.
18032 * omp_lib.f90.in (omp_in_final): New interface.
18033 (omp_integer_kind, omp_logical_kind): Remove
18034 and replace all its uses in the module with 4.
18035 (openmp_version): Change to 201107.
18036 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
18037 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
18038 kind for the parameters.
18039 (omp_in_final): New external.
18040 (openmp_version): Change to 201107.
18041 * task.c (omp_in_final): New function.
18042 (gomp_init_task): Initialize final_task.
18043 (GOMP_task): Remove unused attribute from flags. Handle final
18045 (GOMP_taskyield): New function.
18046 (omp_in_final): Return true if if (false) or final (true) task
18047 or descendant of final (true).
18048 * fortran.c (omp_in_final_): New function.
18049 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
18050 (GOMP_3.0): Export GOMP_taskyield.
18051 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
18053 (parse_unsigned_long_list): New function.
18054 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
18055 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
18056 even if parse_affinity returned false.
18057 * config/linux/affinity.c (gomp_init_affinity): Handle
18058 gomp_cpu_affinity_len == 0.
18059 * libgomp_g.h (GOMP_taskyield): New prototype.
18060 * libgomp.h (struct gomp_task): Add final_task field.
18061 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
18062 * team.c (gomp_team_start): Override new task's nthreads_var icv
18063 if list form OMP_NUM_THREADS has been used and it has value for
18064 the new nesting level.
18066 * testsuite/libgomp.c/atomic-11.c: New test.
18067 * testsuite/libgomp.c/atomic-12.c: New test.
18068 * testsuite/libgomp.c/atomic-13.c: New test.
18069 * testsuite/libgomp.c/atomic-14.c: New test.
18070 * testsuite/libgomp.c/reduction-6.c: New test.
18071 * testsuite/libgomp.c/task-5.c: New test.
18072 * testsuite/libgomp.c++/atomic-2.C: New test.
18073 * testsuite/libgomp.c++/atomic-3.C: New test.
18074 * testsuite/libgomp.c++/atomic-4.C: New test.
18075 * testsuite/libgomp.c++/atomic-5.C: New test.
18076 * testsuite/libgomp.c++/atomic-6.C: New test.
18077 * testsuite/libgomp.c++/atomic-7.C: New test.
18078 * testsuite/libgomp.c++/atomic-8.C: New test.
18079 * testsuite/libgomp.c++/atomic-9.C: New test.
18080 * testsuite/libgomp.c++/task-8.C: New test.
18081 * testsuite/libgomp.c++/reduction-4.C: New test.
18082 * testsuite/libgomp.fortran/allocatable7.f90: New test.
18083 * testsuite/libgomp.fortran/allocatable8.f90: New test.
18084 * testsuite/libgomp.fortran/crayptr3.f90: New test.
18085 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
18086 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
18087 * testsuite/libgomp.fortran/pointer1.f90: New test.
18088 * testsuite/libgomp.fortran/pointer2.f90: New test.
18089 * testsuite/libgomp.fortran/task4.f90: New test.
18091 2011-08-02 Tobias Burnus <burnus@net-b.de>
18093 * libgomp.texi: Update OpenMP spec references to 3.1.
18094 (omp_in_final,OMP_PROC_BIND): New sections.
18095 (OMP_NUM_THREADS): Document that the value can be now a list.
18096 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
18098 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
18100 * config/linux/x86/futex.h: Check __x86_64__ instead of
18103 2011-07-29 Jakub Jelinek <jakub@redhat.com>
18105 PR middle-end/49897
18106 PR middle-end/49898
18107 * testsuite/libgomp.c/pr49897-1.c: New test.
18108 * testsuite/libgomp.c/pr49897-2.c: New test.
18109 * testsuite/libgomp.c/pr49898-1.c: New test.
18110 * testsuite/libgomp.c/pr49898-2.c: New test.
18112 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
18114 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
18115 for ia32 instead of ilp32.
18117 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
18118 * testsuite/libgomp.c/atomic-6.c: Likewise.
18120 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
18122 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
18123 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
18125 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18128 * config/osf/sem.h: New file.
18129 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
18131 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18134 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
18137 2011-07-15 Jakub Jelinek <jakub@redhat.com>
18139 * config/linux/wait.h (do_spin): New inline, largely copied
18140 from do_wait, just don't do futex_wait here, instead return true if
18142 (do_wait): Implement using do_spin.
18143 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
18145 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18146 __sync_bool_compare_and_swap, pass the oldval to
18147 gomp_mutex_lock_slow.
18148 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
18149 If all mutex contenders are just spinning and not sleeping, don't
18150 change state to 2 unnecessarily. Optimize the loop when state has
18151 already become 2 to use just one atomic operation per loop instead
18153 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
18155 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18156 __sync_bool_compare_and_swap, pass the oldval to
18157 gomp_mutex_lock_slow.
18159 2011-06-22 Jakub Jelinek <jakub@redhat.com>
18162 * iter.c (gomp_iter_static_next): For chunk size 0
18163 only use n ceil/ nthreads size for the first
18164 n % nthreads threads in the team instead of
18165 all threads except for the last few ones which
18166 get less work or none at all.
18167 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
18168 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
18169 chunk argument, set run_sched_modifier to 0 for static
18170 resp. 1 for other kinds. If chunk argument is 0
18171 and not static, set value to 1.
18173 2011-05-19 Jakub Jelinek <jakub@redhat.com>
18176 * testsuite/libgomp.c++/pr49043.C: New test.
18179 * testsuite/libgomp.c++/pr48869.C: New test.
18181 2011-05-06 Jakub Jelinek <jakub@redhat.com>
18184 * fortran.c: Include limits.h.
18186 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
18188 (omp_set_num_threads_8_, omp_set_schedule_8_,
18189 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
18190 omp_get_team_size_8_): Use TO_INT macro.
18191 * testsuite/libgomp.fortran/pr48894.f90: New test.
18193 2011-04-13 Jakub Jelinek <jakub@redhat.com>
18195 PR middle-end/48591
18196 * testsuite/libgomp.c/pr48591.c: New test.
18198 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18201 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
18202 * configure: Regenerate.
18204 2011-02-27 Jakub Jelinek <jakub@redhat.com>
18207 * testsuite/libgomp.fortran/task3.f90: New test.
18209 2011-02-24 Tobias Burnus <burnus@net-b.de>
18211 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
18213 2011-02-23 Jakub Jelinek <jakub@redhat.com>
18216 * libgomp.texi (omp_get_wtime): Don't say time in the past
18217 must be Unix Epoch.
18219 2011-02-18 Jakub Jelinek <jakub@redhat.com>
18222 * testsuite/libgomp.fortran/fortran.exp: Check for both
18223 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
18224 but $blddir != "", still append ${blddir}/${lang_library_path}
18225 to ld_library_path.
18227 2011-02-16 Tobias Burnus <burnus@net-b.de>
18230 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
18231 of libquadmath.a before adding its libpath to ldflags.
18233 2011-02-14 Jakub Jelinek <jakub@redhat.com>
18236 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
18237 to FUTEX_WAIT futex syscall.
18238 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
18240 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18242 * configure: Regenerate.
18244 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
18247 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
18249 2011-01-16 Gerald Pfeifer
18251 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
18253 2010-12-14 Jakub Jelinek <jakub@redhat.com>
18256 * libgomp.fortran/allocatable6.f90: New test.
18258 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18260 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
18261 * configure: Regenerate.
18263 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
18267 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
18268 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
18269 * aclocal.m4: Regenerate.
18270 * configure: Regenerate.
18271 * Makefile.in: Regenerate.
18272 * testsuite/Makefile.in: Regenerate.
18274 2010-12-02 Jakub Jelinek <jakub@redhat.com>
18277 * libgomp.fortran/pr46753.f90: New test.
18280 * env.c (initialize_env): Default to spin count 300000
18281 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
18285 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
18286 at the end if sync builtins aren't supported.
18288 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18290 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
18292 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18294 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
18296 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
18298 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
18300 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18301 Tobias Burnus <burnus@net-b.de>
18305 * configure: Regenerate.
18307 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
18309 * config/linux/futex.h: New.
18310 * config/linux/arm/mutex.h: New.
18311 * configure.tgt (arm*-*-linux*): Add config path.
18313 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
18315 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18317 2010-09-23 Tobias Burnus <burnus@net-b.de>
18319 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
18320 Change Fortran datatype to LOGICAL.
18321 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
18322 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
18324 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18326 * configure: Regenerate.
18328 2010-07-26 Jakub Jelinek <jakub@redhat.com>
18330 * libgomp.texi: Add function keyword to a couple of Fortran
18331 interfaces, use integer instead of int for Fortran.
18333 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
18335 * libgomp.texi: Fix spelling and pasto problems throughout.
18336 Adjust prototypes to match code.
18338 2010-07-24 Tobias Burnus <burnus@net-b.de>
18340 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
18341 silence -fwhole-file warning.
18343 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18345 * configure.tgt (*-*-solaris2.[56]*): Removed.
18347 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18349 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
18350 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
18351 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
18352 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
18353 targetting solaris2*.
18354 * configure: Regenerate.
18355 * config.h.in: Regenerate.
18357 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
18358 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
18359 Add libgomp_version_dep.
18360 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
18362 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
18363 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
18364 * Makefile.in: Regenerate.
18366 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
18367 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18368 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
18369 to common block, protected by
18370 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18372 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
18374 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
18376 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
18379 * configure: Regenerate.
18381 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18384 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
18385 * configure: Regenerate.
18386 * Makefile.in: Regenerate.
18387 * testsuite/Makefile.in: Regenerate.
18389 2010-04-26 Jakub Jelinek <jakub@redhat.com>
18392 * testsuite/libgomp.c/pr43893.c: New test.
18393 * testsuite/libgomp.c++/pr43893.C: New test.
18395 2010-04-21 Jakub Jelinek <jakub@redhat.com>
18397 PR middle-end/43570
18398 * testsuite/libgomp.fortran/vla8.f90: New test.
18400 2010-04-20 Jakub Jelinek <jakub@redhat.com>
18403 * config/linux/affinity.c (gomp_init_affinity): Decrease
18404 gomp_available_cpus if affinity mask confines the process to fewer
18406 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
18407 non-NULL, just return gomp_available_cpus.
18410 * sections.c (gomp_sections_init): Initialize ws->mode.
18412 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18414 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
18415 not unused bar variable.
18416 * configure: Regenerate.
18418 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18420 * Makefile.in: Regenerate.
18421 * aclocal.m4: Regenerate.
18422 * testsuite/Makefile.in: Regenerate.
18424 2010-03-22 Jakub Jelinek <jakub@redhat.com>
18427 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
18428 (initialize_env): Adjust callers.
18429 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
18430 when the argument is 0.
18432 * testsuite/libgomp.c/pr42942.c: New test.
18434 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
18436 PR middle-end/42644
18437 PR middle-end/42130
18438 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18439 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
18441 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18443 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
18444 * testsuite/libgomp.c++/task-6.C: Likewise.
18446 2010-01-28 Steve Ellcey <sje@cup.hp.com>
18448 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18450 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
18452 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18453 * configure: Regenerate.
18455 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18458 * testsuite/libgomp.fortran/allocatable5.f90: New test.
18460 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
18462 * configure.ac: Test for executability of GFORTRAN.
18463 * configure: Regenerate.
18465 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18467 * configure: Regenerate.
18469 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18472 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18474 2010-01-03 Richard Guenther <rguenther@suse.de>
18476 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18478 2009-12-23 Sebastian Pop <sebpop@gmail.com>
18480 * testsuite/libgomp.graphite/pr4118.c: New.
18482 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18484 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18485 for darwin, protect the test with require-effective-target tls_runtime.
18486 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18488 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18491 * testsuite/lib/libgomp.exp: Provide -B options to allow for
18492 link spec %s substitutions for static libraries.
18494 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
18497 * libgomp.graphite/force-parallel-2.c: Reduce array size.
18499 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18501 * Makefile.in: Regenerate.
18502 * configure: Regenerate.
18503 * testsuite/Makefile.in: Regenerate.
18505 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
18507 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18508 settings for LC_ALL and LANG.
18510 2009-11-25 Jakub Jelinek <jakub@redhat.com>
18513 * testsuite/libgomp.fortran/pr42162.f90: New test.
18515 2009-11-13 Jakub Jelinek <jakub@redhat.com>
18517 PR middle-end/42029
18518 * testsuite/libgomp.c/pr42029.c: New test.
18520 2009-10-26 Jakub Jelinek <jakub@redhat.com>
18522 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18523 *s. Accept ld version without text in ()s.
18524 * configure: Regenerated.
18526 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
18528 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18530 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18533 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18534 or a hyphen (happens with fortran language disabled).
18535 * configure: Regenerate.
18537 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18539 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18540 use sed script portable to Solaris /bin/sed for extracting ld
18542 * configure: Regenerate.
18544 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
18546 * testsuite/libgomp.graphite/bounds.c: New test.
18548 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18550 * Makefile.am (libgomp_la_LINK): New.
18551 * Makefile.in: Regenerate.
18553 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18555 * configure.ac (AC_PREREQ): Bump to 2.64.
18557 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18559 * Makefile.am (install-html, install-pdf): Remove.
18560 * Makefile.in: Regenerate.
18562 * Makefile.in: Regenerate.
18563 * aclocal.m4: Regenerate.
18564 * config.h.in: Regenerate.
18565 * configure: Regenerate.
18566 * testsuite/Makefile.in: Regenerate.
18568 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18570 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18571 * Makefile.in: Regenerate.
18573 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
18575 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18576 * Makefile.in: Regenerate.
18578 2009-08-19 Tobias Burnus <burnus@net-b.de>
18581 omp_lib.h.in: Fix -std=f95 errors.
18583 2009-08-14 David Edelsohn <edelsohn@gnu.org>
18585 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18586 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18587 * testsuite/libgomp.graphite/graphite.exp: New.
18589 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
18591 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18594 2009-08-04 David Daney <ddaney@caviumnetworks.com>
18596 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18597 needed memory barrier semantics.
18598 * config/linux/mips/mutex.h: New file.
18600 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18602 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18604 2009-07-16 Joseph Myers <joseph@codesourcery.com>
18606 * configure: Regenerate.
18608 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
18613 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18614 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18615 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18617 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18619 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18620 options when choosing a multilib.
18622 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
18624 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18625 ld_library_path. Use add_path. Add just find_libgcc_s to
18626 ld_library_path, not every libgcc multilib directory.
18627 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18628 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18629 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18631 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18633 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
18635 * Makefile.am (LTLDFLAGS): Define.
18637 * Makefile.in: Regenerate.
18639 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
18642 * testsuite/libgomp.fortran/fortran.exp: Don't link with
18643 libgfortranbegin, check existence of libgfortran.a instead of
18644 libgfortranbegin.a.
18646 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18649 * team.c (gomp_thread_start): Destroy thr->release semaphore.
18650 (gomp_free_pool_helper): Likewise.
18652 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
18653 Jakub Jelinek <jakub@redhat.com>
18656 * testsuite/libgomp.fortran/workshare2.f90: New test.
18658 2009-04-09 Nick Clifton <nickc@redhat.com>
18660 * iter.c: Change copyright header to refer to version 3 of the
18661 GNU General Public License with version 3.1 of the GCC Runtime
18662 Library Exception and to point readers at the COPYING3 and
18663 COPYING3.RUNTIME files and the FSF's license web page.
18664 * alloc.c: Likewise.
18665 * barrier.c: Likewise.
18666 * config/bsd/proc.c: Likewise.
18667 * config/linux/affinity.c: Likewise.
18668 * config/linux/alpha/futex.h: Likewise.
18669 * config/linux/bar.c: Likewise.
18670 * config/linux/bar.h: Likewise.
18671 * config/linux/ia64/futex.h: Likewise.
18672 * config/linux/ia64/mutex.h: Likewise.
18673 * config/linux/lock.c: Likewise.
18674 * config/linux/mips/futex.h: Likewise.
18675 * config/linux/mutex.c: Likewise.
18676 * config/linux/mutex.h: Likewise.
18677 * config/linux/powerpc/futex.h: Likewise.
18678 * config/linux/proc.c: Likewise.
18679 * config/linux/ptrlock.c: Likewise.
18680 * config/linux/ptrlock.h: Likewise.
18681 * config/linux/s390/futex.h: Likewise.
18682 * config/linux/sem.c: Likewise.
18683 * config/linux/sem.h: Likewise.
18684 * config/linux/sparc/futex.h: Likewise.
18685 * config/linux/wait.h: Likewise.
18686 * config/linux/x86/futex.h: Likewise.
18687 * config/mingw32/proc.c: Likewise.
18688 * config/mingw32/time.c: Likewise.
18689 * config/posix/affinity.c: Likewise.
18690 * config/posix/bar.c: Likewise.
18691 * config/posix/bar.h: Likewise.
18692 * config/posix/lock.c: Likewise.
18693 * config/posix/mutex.h: Likewise.
18694 * config/posix/proc.c: Likewise.
18695 * config/posix/ptrlock.h: Likewise.
18696 * config/posix/sem.c: Likewise.
18697 * config/posix/sem.h: Likewise.
18698 * config/posix/time.c: Likewise.
18699 * config/posix95/lock.c: Likewise.
18700 * critical.c: Likewise.
18702 * error.c: Likewise.
18703 * fortran.c: Likewise.
18704 * iter_ull.c: Likewise.
18705 * libgomp.h: Likewise.
18706 * libgomp_f.h.in: Likewise.
18707 * libgomp_g.h: Likewise.
18708 * loop.c: Likewise.
18709 * loop_ull.c: Likewise.
18710 * omp.h.in: Likewise.
18711 * omp_lib.f90.in: Likewise.
18712 * omp_lib.h.in: Likewise.
18713 * ordered.c: Likewise.
18714 * parallel.c: Likewise.
18715 * sections.c: Likewise.
18716 * single.c: Likewise.
18717 * task.c: Likewise.
18718 * team.c: Likewise.
18719 * work.c: Likewise.
18721 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18723 * testsuite/config/default.exp: Change copyright header to refer to
18724 version 3 of the GNU General Public License and to point readers
18725 at the COPYING3 file and the FSF's license web page.
18727 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18729 PR middle-end/39573
18730 * libgomp.c++/pr39573.C: New test.
18732 2009-04-01 Jakub Jelinek <jakub@redhat.com>
18735 * testsuite/libgomp.c/pr39591-1.c: New test.
18736 * testsuite/libgomp.c/pr39591-2.c: New test.
18737 * testsuite/libgomp.c/pr39591-3.c: New test.
18739 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
18741 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18742 * testsuite/libgomp.c/atomic-6.c: Ditto.
18744 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18747 * testsuite/libgomp.c/loop-12.c: New test.
18748 * testsuite/libgomp.c/loop-11.c: New test.
18749 * testsuite/libgomp.c++/loop-11.C: New test.
18750 * testsuite/libgomp.c++/loop-12.C: New test.
18751 * testsuite/libgomp.c++/for-8.C: New test.
18753 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18755 * configure: Regenerate.
18757 2009-02-11 Jakub Jelinek <jakub@redhat.com>
18759 PR middle-end/39154
18760 * testsuite/libgomp.c/pr39154.c: New test.
18762 2009-01-30 Ian Lance Taylor <iant@google.com>
18764 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18765 libgomp_ld_is_gold. Get gold version number.
18766 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18767 * configure: Rebuild.
18769 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18771 * testsuite/lib/libgomp.exp: Add -B option for targets that
18772 use libgfortran.a%s in their specs.
18774 2009-01-07 Jakub Jelinek <jakub@redhat.com>
18777 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18778 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18779 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18780 * configure: Regenerated.
18781 * config.h.in: Likewise.
18783 2008-12-28 Jakub Jelinek <jakub@redhat.com>
18786 * testsuite/libgomp.c/pr38650.c: New test.
18787 * testsuite/libgomp.c++/pr38650.C: New test.
18789 2008-12-27 Jakub Jelinek <jakub@redhat.com>
18791 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18793 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
18795 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18797 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18799 * configure: Regenerate.
18801 2008-12-08 Jakub Jelinek <jakub@redhat.com>
18803 PR middle-end/36802
18804 * testsuite/libgomp.c/pr36802-1.c: New test.
18805 * testsuite/libgomp.c/pr36802-2.c: New test.
18806 * testsuite/libgomp.c/pr36802-3.c: New test.
18808 2008-12-01 Janis Johnson <janis187@us.ibm.com>
18811 * config/linux/powerpc/mutex.h: New.
18813 2008-12-01 Jakub Jelinek <jakub@redhat.com>
18816 * testsuite/libgomp.c++/for-7.C: New test.
18819 * testsuite/libgomp.c++/for-6.C: New test.
18821 2008-11-26 Janis Johnson <janis187@us.ibm.com>
18824 * testsuite/lib/libgomp.exp: Include new timeout library files.
18825 (libgomp_target_compile): Set timeout value from new proc.
18827 2008-11-13 Steve Ellcey <sje@cup.hp.com>
18830 * config/linux/ia64/mutex.h: New.
18832 2008-11-04 Tobias Burnus <burnus@net-b.de>
18835 * libgomp.texi (Runtime library routines, environment variables):
18836 Update for OpenMP version 3.0.
18838 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18839 Steve Ellcey <sje@cup.hp.com>
18841 * configure: Regenerate for new libtool.
18842 * Makefile.in: Ditto.
18843 * testsuite/Makefile.in: Ditto.
18845 2008-09-19 Jakub Jelinek <jakub@redhat.com>
18846 Andreas Tobler <a.tobler@schweiz.org>
18848 * config/bsd/proc.c: New file.
18849 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18850 * configure.ac: Check for header <sys/sysctl.h>
18851 * configure: Regenerate.
18852 * config.h.in: Likewise.
18854 2008-09-05 Janis Johnson <janis187@us.ibm.com>
18856 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18858 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18860 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18861 * Makefile.in: Regenerated.
18862 * testsuite/Makefile.in: Regenerated.
18864 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
18866 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18867 depend on blddir if blddir exists.
18868 (libgomp_target_compile): Likewise.
18869 * testsuite/libgomp.c++/c++.exp: Likewise.
18870 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18872 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18874 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18875 Do not list GPL as Invariant Section.
18877 2008-07-28 Ilie Garbacea <ilie@mips.com>
18878 Chao-ying Fu <fu@mips.com>
18880 * configure.tgt: Enable futex for MIPS.
18881 * config/linux/mips/futex.h: New file.
18883 2008-07-16 Jakub Jelinek <jakub@redhat.com>
18885 * team.c (gomp_team_end): Free team immediately if it has
18888 2008-07-08 David Edelsohn <edelsohn@gnu.org>
18890 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18891 * testsuite/libgomp.fortran/fortran.exp: Same.
18892 * testsuite/libgomp.c/c.exp: Same.
18893 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18894 directory to library path first.
18896 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18898 * env.c (parse_stacksize): Add cast to avoid warning.
18899 (parse_spincount): Likewise.
18901 2008-06-27 Jakub Jelinek <jakub@redhat.com>
18903 * testsuite/libgomp.c/loop-10.c: New test.
18904 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18905 * libgomp.c++/loop-6.C (main): Likewise.
18908 * testsuite/libgomp.c/debug-1.c: New test.
18910 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18912 * testsuite/libgomp.c/nqueens-1.c: New test.
18915 * testsuite/libgomp.c++/task-7.C: New function.
18917 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18919 * configure: Regenerate.
18921 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18923 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18924 mutex when HAVE_SYNC_BUILTINS isn't defined.
18926 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18928 * libgomp.texi (omp_test_lock): Fix typo.
18930 2008-06-12 Tobias Burnus <burnus@net-b.de>
18932 * omp_lib.f90.in: Add "implicit none".
18934 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18936 PR middle-end/36506
18937 * testsuite/libgomp.c/reduction-5.c: New test.
18939 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18941 * libgomp.h (struct gomp_task): Add in_tied_task field.
18942 * task.c (gomp_init_task): Initialize it.
18943 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18944 unconditionally. Don't call gomp_team_barrier_wake if
18945 current task is implicit or if(0) from implicit and number of
18946 running tasks is equal to nthreads - 1.
18949 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18950 omp_get_team_size_8): Fix pastos.
18953 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18954 * configure: Regenerated.
18955 * config.h.in: Regenerated.
18956 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18959 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18962 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18963 (GOMP_loop_ull_dynamic_start): Likewise.
18964 (GOMP_loop_ull_guided_start): Likewise.
18965 (GOMP_loop_ull_ordered_static_start): Likewise.
18966 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18967 (GOMP_loop_ull_ordered_guided_start): Likewise.
18969 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18970 Richard Henderson <rth@redhat.com>
18971 Ulrich Drepper <drepper@redhat.com>
18972 Jakob Blomer <jakob.blomer@ira.uka.de>
18974 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18975 Substitute also OMP_*LOCK_25*.
18976 * configure: Regenerated.
18977 * config.h.in: Regenerated.
18978 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18979 ptrlock.c and task.c.
18980 * Makefile.in: Regenerated.
18981 * testsuite/Makefile.in: Regenerated.
18982 * task.c: New file.
18983 * loop_ull.c: New file.
18984 * iter_ull.c: New file.
18985 * libgomp.h: Include ptrlock.h.
18986 (enum gomp_task_kind): New type.
18987 (struct gomp_team): Add task_lock, task_queue, task_count,
18988 task_running_count, single_count fields. Add
18989 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18990 Remove work_share_lock, generation_mask,
18991 oldest_live_gen, num_live_gen and init_work_shares fields, add
18992 work work_share_list_alloc, work_share_list_free and work_share_chunk
18993 fields. Change work_shares from pointer to pointers into an array.
18994 Change ordered_release field into gomp_sem_t ** from flexible array
18995 member. Add implicit_task and initial_work_shares fields.
18996 Move close to the end of the struct.
18997 (struct gomp_team_state): Add single_count, last_work_share,
18998 active_level and level fields, remove work_share_generation.
18999 (gomp_barrier_handle_tasks): New prototype.
19000 (gomp_finish_task): New inline function.
19001 (struct gomp_work_share): Move chunk_size, end, incr into
19002 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
19003 next_ll fields. Reshuffle fields. Add next_alloc,
19004 next_ws, next_free and inline_ordered_team_ids fields, change
19005 ordered_team_ids into pointer from flexible array member.
19006 Add mode field. Put lock and next into a different cache line
19007 from most of the write-once fields.
19008 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
19009 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
19010 gomp_iter_ull_guided_next): New prototypes.
19011 (gomp_new_icv): New prototype.
19012 (struct gomp_thread): Add thread_pool and task fields.
19013 (struct gomp_thread_pool): New type.
19014 (gomp_new_team): New prototype.
19015 (gomp_team_start): Change type of last argument.
19016 (gomp_new_work_share): Removed.
19017 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
19018 (gomp_work_share_init_done): New static inline.
19019 (gomp_throttled_spin_count_var, gomp_available_cpus,
19020 gomp_managed_threads): New extern decls.
19021 (gomp_init_task): New prototype.
19022 (gomp_spin_count_var): New extern var decl.
19023 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
19024 or no alias support, or if not PIC.
19025 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
19026 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
19027 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
19028 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
19029 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
19030 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
19031 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
19032 gomp_test_nest_lock_25): New prototypes.
19033 (omp_lock_symver, strong_alias): Define.
19034 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
19036 (gomp_end_task): New.
19037 (struct gomp_task_icv, gomp_global_icv): New.
19038 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
19039 (struct gomp_task): New.
19040 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19041 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19043 (gomp_schedule_type): Reorder enum to match
19045 * team.c (struct gomp_thread_start_data): Add thread_pool and task
19047 (gomp_thread_start): Add gomp_team_barrier_wait call.
19048 For non-nested case remove clearing of docked thread thr fields.
19049 Use pool fields instead of global gomp_* variables. Use
19050 gomp_barrier_wait_last when needed. Initialize ts.active_level.
19051 Create tasks for each member thread.
19052 (free_team): Only destroy team barrier, task_lock here and free it.
19053 (gomp_free_thread): Free last_team if non-NULL.
19054 (gomp_team_end): Call gomp_team_barrier_wait instead of
19055 gomp_barrier_wait. For nested case call one extra
19056 gomp_barrier_wait. Move here some destruction from free_team.
19057 Call free_team on pool->last_team if any, rather than freeing
19058 current team. Destroy work_share_list_free_lock ifndef
19059 HAVE_SYNC_BUILTINS.
19060 (gomp_new_icv): New function.
19061 (gomp_threads, gomp_threads_size, gomp_threads_used,
19062 gomp_threads_dock): Removed.
19063 (gomp_thread_destructor): New variable.
19064 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
19066 (gomp_team_start): Create new pool if current thread doesn't have
19067 one. Use pool fields instead of global gomp_* variables.
19068 Initialize thread_pool field for new threads. Clear single_count.
19069 Change last argument from ws to team, don't create
19070 new team, set ts.work_share to &team->work_shares[0] and clear
19071 ts.last_work_share. Don't clear ts.work_share_generation.
19072 If number of threads changed, adjust atomically gomp_managed_threads.
19073 Use gomp_init_task instead of gomp_new_task,
19074 set thr->task to the corresponding implicit_task array entry.
19075 Create tasks for each member thread. Initialize ts.level.
19076 (initialize_team): Call pthread_key_create on
19077 gomp_thread_destructor.
19078 (team_destructor): New function.
19079 (new_team): Removed.
19080 (gomp_new_team): New function.
19081 (free_team): Free gomp_work_share blocks chained through next_alloc,
19082 instead of freeing work_shares and destroying work_share_lock.
19083 (gomp_team_end): Call gomp_fini_work_share. If number of threads
19084 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
19085 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
19086 of gomp_barrier_wait.
19087 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
19088 instead of gomp_barrier_wait. Call gomp_work_share_init_done
19089 if gomp_work_share_start returned true. Don't unlock ws->lock.
19090 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
19091 of gomp_barrier_wait.
19092 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
19093 gomp_work_share_init_done if gomp_work_share_start returned true.
19094 Don't unlock ws->lock.
19095 * work.c: Include stddef.h.
19096 (free_work_share): Use work_share_list_free_lock instead
19097 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
19098 Call gomp_fini_work_share and then either free ws if orphaned, or
19099 put it into work_share_list_free list of the current team.
19100 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
19102 (gomp_work_share_start, gomp_work_share_end,
19103 gomp_work_share_end_nowait): Rewritten.
19104 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
19105 (openmp_version): Set to 200805.
19106 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19107 omp_sched_guided, omp_sched_auto): New parameters.
19108 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19109 omp_set_max_active_levels, omp_get_max_active_levels,
19110 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19111 omp_get_active_level): New interfaces.
19112 * omp_lib.h.in (openmp_version): Set to 200805.
19113 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19114 omp_sched_guided, omp_sched_auto): New parameters.
19115 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19116 omp_set_max_active_levels, omp_get_max_active_levels,
19117 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19118 omp_get_active_level): New externals.
19119 * loop.c: Include limits.h.
19120 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
19122 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
19123 Likewise. Use gomp_icv.
19124 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
19125 ts.static_trip here.
19126 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
19127 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
19128 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
19129 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
19130 don't unlock ws->lock, otherwise lock it.
19131 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
19132 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
19133 (gomp_parallel_loop_start): Call gomp_new_team instead of
19134 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
19135 Adjust gomp_team_start caller. Pass 0 as second argument to
19136 gomp_resolve_num_threads.
19137 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
19138 If adding ws->chunk_size nthreads + 1 times after end won't
19139 overflow, set ws->mode to 1.
19140 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
19141 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
19142 GOMP_loop_ull_ordered_static_start,
19143 GOMP_loop_ull_ordered_dynamic_start,
19144 GOMP_loop_ull_ordered_guided_start,
19145 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
19146 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
19147 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
19148 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
19149 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
19151 * libgomp.map: Export lock routines also @@OMP_2.0.
19152 (GOMP_loop_ordered_dynamic_first,
19153 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
19154 GOMP_loop_ordered_static_first): Remove.
19155 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
19156 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
19157 GOMP_loop_ull_ordered_dynamic_next,
19158 GOMP_loop_ull_ordered_dynamic_start,
19159 GOMP_loop_ull_ordered_guided_next,
19160 GOMP_loop_ull_ordered_guided_start,
19161 GOMP_loop_ull_ordered_runtime_next,
19162 GOMP_loop_ull_ordered_runtime_start,
19163 GOMP_loop_ull_ordered_static_next,
19164 GOMP_loop_ull_ordered_static_start,
19165 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
19166 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
19167 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
19168 (omp_set_schedule, omp_get_schedule,
19169 omp_get_thread_limit, omp_set_max_active_levels,
19170 omp_get_max_active_levels, omp_get_level,
19171 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
19172 omp_set_schedule_, omp_set_schedule_8_,
19173 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19174 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19175 omp_get_max_active_levels_, omp_get_level_,
19176 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19177 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19178 New exports @@OMP_3.0.
19179 * omp.h.in (omp_sched_t): New type.
19180 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19181 omp_set_max_active_levels, omp_get_max_active_levels,
19182 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19183 omp_get_active_level): New prototypes.
19184 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
19185 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
19186 gomp_thread_limit_var, gomp_remaining_threads_count,
19187 gomp_remaining_threads_lock): New variables.
19188 (parse_spincount): New function.
19189 (initialize_env): Call gomp_init_num_threads unconditionally.
19190 Initialize gomp_available_cpus. Call parse_spincount,
19191 initialize gomp_{,throttled_}spin_count_var
19192 depending on presence and value of OMP_WAIT_POLICY and
19193 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
19194 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
19195 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
19196 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
19197 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
19198 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19199 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19200 (gomp_global_icv): New.
19201 (parse_schedule): Use it. Parse "auto".
19202 (omp_set_num_threads): Use gomp_icv.
19203 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
19205 (omp_get_max_threads): Move from parallel.c.
19206 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19207 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
19209 (parse_stacksize, parse_wait_policy): New functions.
19210 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
19211 both wrappers for compatibility and new locks.
19212 (omp_set_schedule, omp_get_schedule,
19213 omp_get_thread_limit, omp_set_max_active_levels,
19214 omp_get_max_active_levels, omp_get_level,
19215 omp_get_ancestor_thread_num, omp_get_team_size,
19216 omp_get_active_level): New ialias_redirect.
19217 (omp_set_schedule_, omp_set_schedule_8_,
19218 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19219 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19220 omp_get_max_active_levels_, omp_get_level_,
19221 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19222 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19224 * parallel.c: Include limits.h.
19225 (gomp_resolve_num_threads): Add count argument. Rewritten.
19226 (GOMP_parallel_start): Call gomp_new_team and pass that as last
19227 argument to gomp_team_start. Pass 0 as second argument to
19228 gomp_resolve_num_threads.
19229 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
19230 if gomp_thread_limit_var != ULONG_MAX.
19231 (omp_in_parallel): Implement using ts.active_level.
19232 (omp_get_max_threads): Move to env.c.
19233 (omp_get_level, omp_get_ancestor_thread_num,
19234 omp_get_team_size, omp_get_active_level): New functions,
19236 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
19237 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
19238 gomp_iter_dynamic_next instead of the _locked variant and don't take
19239 lock around it, otherwise acquire it before calling
19240 gomp_iter_dynamic_next_locked.
19241 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
19242 gomp_iter_dynamic_next instead of the _locked variant and don't take
19244 (GOMP_parallel_sections_start): Call gomp_new_team instead of
19245 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
19246 Adjust gomp_team_start caller. Pass count as second argument to
19247 gomp_resolve_num_threads, don't adjust num_threads after the call.
19249 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
19250 ws->chunk_size by incr.
19251 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
19253 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
19255 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
19256 (omp_check_defines): Check even the compat defines.
19257 * config/linux/ptrlock.c: New file.
19258 * config/linux/ptrlock.h: New file.
19259 * config/linux/wait.h: New file.
19260 * config/posix/ptrlock.c: New file.
19261 * config/posix/ptrlock.h: New file.
19262 * config/linux/bar.h (gomp_team_barrier_wait,
19263 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19264 (gomp_team_barrier_set_task_pending,
19265 gomp_team_barrier_clear_task_pending,
19266 gomp_team_barrier_set_waiting_for_tasks,
19267 gomp_team_barrier_waiting_for_tasks,
19268 gomp_team_barrier_done): New inlines.
19269 (gomp_barrier_t): Rewritten.
19270 (gomp_barrier_state_t): New typedef.
19271 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
19272 gomp_barrier_wait_start): Rewritten.
19273 (gomp_barrier_wait_end): Change second argument to
19274 gomp_barrier_state_t.
19275 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19277 * config/linux/bar.c: Include wait.h instead of libgomp.h and
19279 (gomp_barrier_wait_end): Rewritten.
19280 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19281 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
19282 * config/posix/bar.h (gomp_barrier_t): Add generation field.
19283 (gomp_barrier_state_t): New typedef.
19284 (gomp_team_barrier_wait,
19285 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19286 (gomp_barrier_wait_start): Or all but low 2 bits from generation
19287 into the return value. Return gomp_barrier_state_t.
19288 (gomp_team_barrier_set_task_pending,
19289 gomp_team_barrier_clear_task_pending,
19290 gomp_team_barrier_set_waiting_for_tasks,
19291 gomp_team_barrier_waiting_for_tasks,
19292 gomp_team_barrier_done): New inlines.
19293 (gomp_barrier_wait_end): Change second argument to
19294 gomp_barrier_state_t.
19295 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19297 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
19298 (gomp_barrier_wait_end): Change second argument to
19299 gomp_barrier_state_t.
19300 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19301 gomp_team_barrier_wake): New functions.
19302 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
19304 (gomp_futex_wake, gomp_futex_wait): New variables.
19305 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
19306 * config/linux/lock.c: Rewrite to make locks task owned,
19307 for backwards compatibility provide the old entrypoints
19308 if symbol versioning. Include wait.h instead of libgomp.h and
19310 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
19311 * config/posix95/lock.c: Rewrite to make locks task owned,
19312 for backwards compatibility provide the old entrypoints
19313 if symbol versioning.
19314 * config/posix/lock.c: Rewrite to make locks task owned,
19315 for backwards compatibility provide the old entrypoints
19316 if symbol versioning.
19317 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
19318 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
19319 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
19320 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19321 (sys_futex0): Return error code.
19322 (futex_wake, futex_wait): If ENOSYS was returned, clear
19323 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19324 (cpu_relax, atomic_write_barrier): New static inlines.
19325 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19326 (futex_wake, futex_wait): If ENOSYS was returned, clear
19327 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19328 (cpu_relax, atomic_write_barrier): New static inlines.
19329 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19330 (sys_futex0): Return error code.
19331 (futex_wake, futex_wait): If ENOSYS was returned, clear
19332 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19333 (cpu_relax, atomic_write_barrier): New static inlines.
19334 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19335 (sys_futex0): Return error code.
19336 (futex_wake, futex_wait): If ENOSYS was returned, clear
19337 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19338 (cpu_relax, atomic_write_barrier): New static inlines.
19339 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19340 (sys_futex0): Return error code.
19341 (futex_wake, futex_wait): If ENOSYS was returned, clear
19342 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19343 (cpu_relax, atomic_write_barrier): New static inlines.
19344 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19345 (sys_futex0): Return error code.
19346 (futex_wake, futex_wait): If ENOSYS was returned, clear
19347 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19348 (cpu_relax, atomic_write_barrier): New static inlines.
19349 * config/linux/sem.c: Include wait.h instead of libgomp.h and
19351 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
19352 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
19353 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
19355 (omp_nest_lock_t): Change owner into void *, add lock field.
19356 * config/posix95/omp-lock.h: Include semaphore.h.
19357 (omp_lock_25_t, omp_nest_lock_25_t): New types.
19358 (omp_lock_t): Use sem_t instead of mutex if semaphores
19360 (omp_nest_lock_t): Likewise. Change owner to void *.
19361 * config/posix/omp-lock.h: Include semaphore.h.
19362 (omp_lock_25_t, omp_nest_lock_25_t): New types.
19363 (omp_lock_t): Use sem_t instead of mutex if semaphores
19365 (omp_nest_lock_t): Likewise. Add owner field.
19367 2008-06-06 Jakub Jelinek <jakub@redhat.com>
19369 * testsuite/libgomp.c/collapse-1.c: New test.
19370 * testsuite/libgomp.c/collapse-2.c: New test.
19371 * testsuite/libgomp.c/collapse-3.c: New test.
19372 * testsuite/libgomp.c/icv-1.c: New test.
19373 * testsuite/libgomp.c/icv-2.c: New test.
19374 * testsuite/libgomp.c/lib-2.c: New test.
19375 * testsuite/libgomp.c/lock-1.c: New test.
19376 * testsuite/libgomp.c/lock-2.c: New test.
19377 * testsuite/libgomp.c/lock-3.c: New test.
19378 * testsuite/libgomp.c/loop-4.c: New test.
19379 * testsuite/libgomp.c/loop-5.c: New test.
19380 * testsuite/libgomp.c/loop-6.c: New test.
19381 * testsuite/libgomp.c/loop-7.c: New test.
19382 * testsuite/libgomp.c/loop-8.c: New test.
19383 * testsuite/libgomp.c/loop-9.c: New test.
19384 * testsuite/libgomp.c/nested-3.c: New test.
19385 * testsuite/libgomp.c/nestedfn-6.c: New test.
19386 * testsuite/libgomp.c/sort-1.c: New test.
19387 * testsuite/libgomp.c/task-1.c: New test.
19388 * testsuite/libgomp.c/task-2.c: New test.
19389 * testsuite/libgomp.c/task-3.c: New test.
19390 * testsuite/libgomp.c/task-4.c: New test.
19391 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
19392 to C++ testsuite default compiler options.
19393 * testsuite/libgomp.c++/collapse-1.C: New test.
19394 * testsuite/libgomp.c++/collapse-2.C: New test.
19395 * testsuite/libgomp.c++/ctor-10.C: New test.
19396 * testsuite/libgomp.c++/for-1.C: New test.
19397 * testsuite/libgomp.c++/for-2.C: New test.
19398 * testsuite/libgomp.c++/for-3.C: New test.
19399 * testsuite/libgomp.c++/for-4.C: New test.
19400 * testsuite/libgomp.c++/for-5.C: New test.
19401 * testsuite/libgomp.c++/loop-8.C: New test.
19402 * testsuite/libgomp.c++/loop-9.C: New test.
19403 * testsuite/libgomp.c++/loop-10.C: New test.
19404 * testsuite/libgomp.c++/task-1.C: New test.
19405 * testsuite/libgomp.c++/task-2.C: New test.
19406 * testsuite/libgomp.c++/task-3.C: New test.
19407 * testsuite/libgomp.c++/task-4.C: New test.
19408 * testsuite/libgomp.c++/task-5.C: New test.
19409 * testsuite/libgomp.c++/task-6.C: New test.
19410 * testsuite/libgomp.fortran/allocatable1.f90: New test.
19411 * testsuite/libgomp.fortran/allocatable2.f90: New test.
19412 * testsuite/libgomp.fortran/allocatable3.f90: New test.
19413 * testsuite/libgomp.fortran/allocatable4.f90: New test.
19414 * testsuite/libgomp.fortran/collapse1.f90: New test.
19415 * testsuite/libgomp.fortran/collapse2.f90: New test.
19416 * testsuite/libgomp.fortran/collapse3.f90: New test.
19417 * testsuite/libgomp.fortran/collapse4.f90: New test.
19418 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
19419 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
19420 * testsuite/libgomp.fortran/lib4.f90: New test.
19421 * testsuite/libgomp.fortran/lock-1.f90: New test.
19422 * testsuite/libgomp.fortran/lock-2.f90: New test.
19423 * testsuite/libgomp.fortran/nested1.f90: New test.
19424 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
19425 * testsuite/libgomp.fortran/strassen.f90: New test.
19426 * testsuite/libgomp.fortran/tabs1.f90: New test.
19427 * testsuite/libgomp.fortran/tabs2.f: New test.
19428 * testsuite/libgomp.fortran/task1.f90: New test.
19429 * testsuite/libgomp.fortran/task2.f90: New test.
19430 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
19431 * testsuite/libgomp.fortran/vla5.f90: Likewise.
19432 * testsuite/libgomp.c/pr26943-2.c: Likewise.
19433 * testsuite/libgomp.c/pr26943-3.c: Likewise.
19434 * testsuite/libgomp.c/pr26943-4.c: Likewise.
19436 2008-05-23 Jakub Jelinek <jakub@redhat.com>
19439 * testsuite/libgomp.c++/ctor-11.C: New test.
19440 * testsuite/libgomp.c++/ctor-12.C: New test.
19442 2008-05-15 Janis Johnson <janis187@us.ibm.com>
19444 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19446 2008-05-07 Jakub Jelinek <jakub@redhat.com>
19448 PR middle-end/36106
19449 * testsuite/libgomp.c/atomic-5.c: New test.
19450 * testsuite/libgomp.c/atomic-6.c: New test.
19451 * testsuite/libgomp.c/autopar-1.c: New test.
19453 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19455 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19456 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19457 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19458 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19459 * configure: Regenerate.
19460 * Makefile.in, testsuite/Makefile.in: Likewise.
19462 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
19465 * aclocal.m4: Regenerate.
19466 * configure: Regenerate.
19468 2008-03-18 Jakub Jelinek <jakub@redhat.com>
19470 PR middle-end/35611
19471 * testsuite/libgomp.c/atomic-4.c: New test.
19474 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19475 (gomp_iter_guided_next): Likewise.
19476 * testsuite/libgomp.c/pr35625.c: New test.
19478 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19480 * aclocal.m4: Regenerate.
19481 * configure: Likewise.
19482 * Makefile.in: Likewise.
19483 * testsuite/Makefile.in: Likewise.
19485 2008-03-13 Jakub Jelinek <jakub@redhat.com>
19487 PR middle-end/35185
19488 * testsuite/libgomp.c++/pr35185.C: New test.
19490 2008-03-12 Jakub Jelinek <jakub@redhat.com>
19492 PR middle-end/35549
19493 * testsuite/libgomp.c/pr35549.c: New test.
19495 2008-03-06 Jakub Jelinek <jakub@redhat.com>
19497 * testsuite/libgomp.c/atomic-3.c: New test.
19499 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19502 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
19503 .F08 file suffixes.
19505 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
19508 * configure.ac: Add ACX_HEADER_STRING.
19509 * env.c: Include strings.h.
19510 * aclocal.m4: Regenerate.
19511 * config.h.in: Regenerate.
19512 * configure: Regenerate.
19513 * Makefile.in: Regenerate.
19514 * testsuite/Makefile.in: Regenerate.
19516 2008-02-15 Jakub Jelinek <jakub@redhat.com>
19518 PR middle-end/35196
19519 * testsuite/libgomp.c/pr35196.c: New test.
19521 PR middle-end/35130
19522 * testsuite/libgomp.fortran/pr35130.f90: New test.
19523 * testsuite/libgomp.c/pr35130.c: New test.
19525 2008-01-25 Jakub Jelinek <jakub@redhat.com>
19527 PR middle-end/33880
19528 * testsuite/libgomp.c/pr33880.c: New test.
19529 * testsuite/libgomp.fortran/pr33880.f90: New test.
19531 2008-01-24 David Edelsohn <edelsohn@gnu.org>
19533 * configure: Regenerate.
19535 2008-01-08 Jakub Jelinek <jakub@redhat.com>
19537 * configure.ac: Move futex checking into ../config/futex.m4.
19538 * configure: Rebuilt.
19539 * aclocal.m4: Rebuilt.
19540 * Makefile.in: Rebuilt.
19542 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19543 2007-10-15 ../config/tls.m4 change.
19545 2007-12-19 Jakub Jelinek <jakub@redhat.com>
19548 * testsuite/libgomp.c/pr34513.c: New test.
19549 * testsuite/libgomp.c++/pr34513.C: New test.
19551 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
19554 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19556 2007-12-04 Jakub Jelinek <jakub@redhat.com>
19558 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
19560 2007-12-03 Jakub Jelinek <jakub@redhat.com>
19562 * testsuite/libgomp.c/private-1.c: New test.
19564 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
19565 Paolo Bonzini <bonzini@gnu.org>
19567 * Makefile.am: Use space as vpath separator. Use 'vpath %'
19568 instead of 'VPATH ='.
19569 * Makefile.in: Regenerate.
19571 2007-11-23 Matthias Klose <doko@ubuntu.com>
19573 * configure.ac: Adjust makeinfo version check.
19574 * configure: Regenerate.
19576 2007-11-10 Jakub Jelinek <jakub@redhat.com>
19579 * testsuite/libgomp.fortran/pr34020.f90: New test.
19581 2007-11-06 Jakub Jelinek <jakub@redhat.com>
19584 * testsuite/libgomp.c++/atomic-1.C: New test.
19586 2007-10-25 Jakub Jelinek <jakub@redhat.com>
19589 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19590 Make x and y integers rather than (implicit) reals. Add private (j)
19591 clause to the last omp parallel.
19593 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
19595 * configure: Regenerate following changes to ../config/tls.m4.
19597 2007-09-28 Jakub Jelinek <jakub@redhat.com>
19599 * testsuite/libgomp.fortran/stack.f90: New test.
19601 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
19603 * config/mingw32/proc.c: New file.
19605 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
19607 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19608 (main): Use __get_cpuid to get i386 target fetaures.
19609 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19610 (main): Use __get_cpuid to get x86_64 target fetaures.
19612 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
19615 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19616 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19618 2007-07-12 Jakub Jelinek <jakub@redhat.com>
19621 * testsuite/libgomp.fortran/pr32550.f90: New test.
19622 * testsuite/libgomp.fortran/crayptr2.f90: New test.
19624 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
19626 * aclocal.m4: Regenerated.
19628 2007-07-05 Tobias Burnus <burnus@net-b.de>
19631 * testsuite/libgomp.fortran/pr32359.f90: New.
19633 2007-07-02 Jakub Jelinek <jakub@redhat.com>
19636 * sections.c (GOMP_parallel_sections_start): Only decrease
19637 number of threads to COUNT if dyn_var is true.
19638 * testsuite/libgomp.c/pr32468.c: New test.
19640 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19643 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19645 2007-06-21 Jakub Jelinek <jakub@redhat.com>
19647 PR middle-end/32362
19648 * testsuite/libgomp.c/pr32362-1.c: New test.
19649 * testsuite/libgomp.c/pr32362-2.c: New test.
19650 * testsuite/libgomp.c/pr32362-3.c: New test.
19652 2007-06-07 Jakub Jelinek <jakub@redhat.com>
19654 * team.c (gomp_team_start): Fix setting up thread_attr
19657 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
19659 * configure: Regenerate.
19661 2007-05-23 Steve Ellcey <sje@cup.hp.com>
19663 * Makefile.in: Regenerate.
19664 * configure: Regenerate.
19665 * aclocal.m4: Regenerate.
19666 * testsuite/Makefile.in: Regenerate.
19668 2007-05-04 Jakub Jelinek <jakub@redhat.com>
19670 * config/linux/proc.c: New file.
19673 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19675 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
19677 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19679 2007-04-16 Matthias Klose <doko@debian.org>
19681 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19682 flags if not building with -m64.
19683 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19684 flag for i?86-*-* targets, if current target matches -m64.
19686 2007-04-14 Steve Ellcey <sje@cup.hp.com>
19688 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19689 * Makefile.in: Regenerate.
19691 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19694 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19696 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19698 2007-04-04 Jakub Jelinek <jakub@redhat.com>
19700 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19702 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19703 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19704 (parse_affinity): New function.
19705 (initialize_env): Call it and gomp_init_affinity.
19706 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19707 create new pthread_attr_t and call gomp_init_thread_affinity
19708 on it for each thread before passing the attribute to pthread_create.
19709 * config/linux/affinity.c: New file.
19710 * config/posix/affinity.c: New file.
19711 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19712 * configure: Rebuilt.
19713 * config.h.in: Rebuilt.
19714 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19715 * Makefile.in: Rebuilt.
19717 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19719 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19721 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19722 and use it if found.
19724 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
19726 * testsuite/config/default.exp: New file.
19727 * testsuite/lib/libgomp.exp: New file.
19728 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19729 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19730 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19731 (libgomp_load): Remove.
19732 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19733 always_ld_library_path, not ld_library_path. Set additional_flags
19734 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19735 (target_compile): Do not call libgomp_init. Append lang_library_path
19736 and lang_link_flags to options.
19737 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19738 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19740 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19741 always_ld_library_path. Set LD_LIBRARY_PATH here.
19742 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19743 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19744 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19746 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19747 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19748 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19749 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19750 * testsuite/libgomp.c/atomic-10.c: Ditto.
19752 2007-03-21 Jakub Jelinek <jakub@redhat.com>
19754 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19755 dg-final cleanup-modules line.
19756 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19757 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19758 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19759 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19760 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19761 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19762 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19764 2007-03-18 Andreas Schwab <schwab@suse.de>
19766 * acinclude.m4: Adjust regular expression for ld version
19768 * configure: Regenerate.
19770 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19772 * Makefile.am: Add install-pdf target as copied from
19773 automake v1.10 rules.
19774 * Makefile.in: Regenerate
19776 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19779 * configure: Regenerate.
19782 * testsuite/libgomp.c++/pr30703.C: New test.
19784 2007-02-02 Jakub Jelinek <jakub@redhat.com>
19787 2006-07-05 Eric Christopher <echristo@apple.com>
19788 * configure.ac: Depend addition of -pthread on host OS.
19789 * configure: Regenerate.
19791 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19793 * libgomp.texi: Fix spacing after abbreviations.
19795 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
19798 * configure.ac: Add check for makeinfo
19799 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19800 if an appropriate version of makeinfo is found.
19801 * aclocal.m4: Regenerated.
19802 * configure: Regenerated.
19803 * Makefile.in: Regenerated.
19804 * testsuite/Makefile.in: Regenerated.
19806 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
19809 * libgomp.texi: More about implementation-dependent settings.
19811 2007-01-26 Tobias Burnus <burnus@net-b.de>
19813 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19815 2007-01-24 Jakub Jelinek <jakub@redhat.com>
19817 PR middle-end/30494
19818 * testsuite/libgomp.c/pr30494.c: New test.
19820 2007-01-15 Tom Tromey <tromey@redhat.com>
19822 * configure: Rebuilt.
19823 * configure.ac: Fixed comment.
19825 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
19827 * libgomp.texi: Document implementation specific default values of
19828 environment variables.
19830 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19833 * libgomp.texi: New file.
19834 * configure.ac: Add --enable-generated-files-in-srcdir option.
19835 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19837 * Makefile.in: Regenerated.
19838 * config.h.in: Regenerated.
19839 * testsuite/Makefile.in: Regenerated.
19842 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
19845 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19847 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19849 * configure: Regenerate.
19851 2006-12-04 Jakub Jelinek <jakub@redhat.com>
19854 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19855 start if there shouldn't be any loop iterations.
19856 (gomp_loop_ordered_static_start): Remove start == end test.
19857 * testsuite/libgomp.c/pr29947-1.c: New test.
19858 * testsuite/libgomp.c/pr29947-2.c: New test.
19860 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19862 * configure.tgt: Force initial-exec TLS model on Linux only.
19864 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19866 * configure: Regenerated.
19868 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
19870 * env.c (parse_schedule): Reject out of range values.
19871 (parse_unsigned_long): Reject out of range, negative or zero values.
19873 2006-10-29 Jakub Jelinek <jakub@redhat.com>
19876 * testsuite/libgomp.fortran/pr29629.f90: New test.
19878 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19881 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19882 * config/posix95: New directory.
19883 * config/posix95/omp-lock.h: New file.
19884 * config/posix95/lock.c: Likewise.
19886 2006-10-14 Geoffrey Keating <geoffk@apple.com>
19888 * aclocal.m4: Regenerate.
19889 * configure: Regenerate.
19891 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19893 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19896 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19898 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19900 * configure: Regenerate.
19901 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19903 2006-09-26 Jakub Jelinek <jakub@redhat.com>
19905 PR middle-end/25261
19906 PR middle-end/28790
19907 * testsuite/libgomp.c/nestedfn-4.c: New test.
19908 * testsuite/libgomp.c/nestedfn-5.c: New test.
19909 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19912 * testsuite/libgomp.fortran/condinc1.f: New test.
19913 * testsuite/libgomp.fortran/condinc2.f: New test.
19914 * testsuite/libgomp.fortran/condinc3.f90: New test.
19915 * testsuite/libgomp.fortran/condinc4.f90: New test.
19916 * testsuite/libgomp.fortran/condinc1.inc: New file.
19918 2006-09-18 Tom Tromey <tromey@redhat.com>
19920 * configure: Rebuilt.
19922 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19925 PR preprocessor/14634
19926 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19928 * configure: Regenerate.
19930 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19932 * testsuite/libgomp.fortran/reduction3.f90: Change
19933 -2147483648 to -huge(i)-1 to avoid overflow.
19934 * testsuite/libgomp.fortran/reduction4.f90: Change
19935 Z'ffffffff' to not(0) to avoid overflow.
19937 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19940 * Makefile.am (libsubincludedir): New.
19941 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19942 * Makefile.in: Regenerate.
19944 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19947 * env.c: Include ctype.h.
19948 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19949 leading and/or trailing whitespace and compare strings case
19952 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19955 * testsuite/libgomp.fortran/pr28390.f: New test.
19957 2006-07-05 Eric Christopher <echristo@apple.com>
19959 * configure.ac: Depend addition of -pthread on host OS.
19960 * configure: Regenerate.
19962 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19964 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19965 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19968 2006-06-20 Jakub Jelinek <jakub@redhat.com>
19972 * configure.ac: If neither --enable-linux-futex nor
19973 --disable-linux-futex is passed, determine the default by checking
19974 for compiling and/or running against NPTL. With --enable-linux-futex,
19975 check if SYS_gettid and SYS_futex are defined.
19976 * configure: Rebuilt.
19978 2006-06-14 Richard Henderson <rth@redhat.com>
19981 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19982 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19984 2006-06-09 Richard Henderson <rth@redhat.com>
19986 * env.c (gomp_nthreads_var): Change to unsigned long.
19987 (gomp_run_sched_chunk): Likewise.
19988 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19989 (initialize_env): Initialize gomp_thread_attr.
19990 * libgomp.h (gomp_nthreads_var): Update decl.
19991 (gomp_run_sched_chunk): Likewise.
19992 (gomp_thread_attr): Declare.
19993 * team.c (gomp_thread_attr): Export.
19994 (initialize_team): Don't initialize it.
19996 2006-06-09 Jakub Jelinek <jakub@redhat.com>
19999 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
20000 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
20002 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
20004 * config/mingw32/time.c: New file.
20005 * configure.tgt: Use it.
20007 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
20009 * Makefile.am: Add install-html target. Add install-html to .PHONY
20010 * Makefile.in: Regenerate.
20012 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20015 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
20016 * testsuite/libgomp.c/critical-1.c: Likewise.
20017 * testsuite/libgomp.c/loop-1.c: Likewise.
20018 * testsuite/libgomp.c/loop-2.c: Likewise.
20019 * testsuite/libgomp.c/single-1.c: Likewise.
20020 * testsuite/libgomp.c/ordered-1.c: Likewise.
20021 * testsuite/libgomp.c/ordered-2.c: Likewise.
20023 2006-05-15 Jakub Jelinek <jakub@redhat.com>
20025 PR middle-end/27416
20026 * libgomp.fortran/pr27416-1.f90: New test.
20028 2006-05-03 Jakub Jelinek <jakub@redhat.com>
20031 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
20032 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
20034 2006-05-02 Jakub Jelinek <jakub@redhat.com>
20037 * testsuite/libgomp.c/pr26943-1.c: New test.
20038 * testsuite/libgomp.c/pr26943-2.c: New test.
20039 * testsuite/libgomp.c/pr26943-3.c: New test.
20040 * testsuite/libgomp.c/pr26943-4.c: New test.
20041 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
20042 * testsuite/libgomp.c++/pr26943.C: New test.
20044 2006-05-02 Jakub Jelinek <jakub@redhat.com>
20046 PR middle-end/27337
20047 * testsuite/libgomp.c++/pr27337.C: New test.
20049 2006-04-26 Jakub Jelinek <jakub@redhat.com>
20052 * testsuite/libgomp.c/pr26171.c: New test.
20054 2006-04-25 Richard Henderson <rth@redhat.com>
20057 * configure.ac: Use GCC_CHECK_TLS.
20058 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
20059 * Makefile.in, aclocal.m4, configure: Regenerate.
20061 2006-04-10 Matthias Klose <doko@debian.org>
20063 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
20064 directory names containing underscores.
20066 2006-03-21 Jakub Jelinek <jakub@redhat.com>
20069 * testsuite/libgomp.c++/pr26691.C: New test.
20071 2006-03-13 Jakub Jelinek <jakub@redhat.com>
20073 * testsuite/libgomp.fortran/retval2.f90: New test.
20075 2006-03-09 Diego Novillo <dnovillo@redhat.com>
20077 * testsuite/libgomp.c++: New directory.
20079 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
20081 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
20082 * config/posix/sem.c: Implement the above.
20084 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
20086 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
20087 define HAVE_BROKEN_POSIX_SEMAPHORES.
20088 * configure: Rebuilt.
20089 * config.h.in: Rebuilt.
20091 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
20094 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
20095 for the other pthread check.
20096 * configure: Regenerate.
20097 * config.h.in: Regenerate.
20099 2006-02-15 Jakub Jelinek <jakub@redhat.com>
20103 * Makefile.am (fincludedir): New variable.
20104 (nodist_include_HEADERS): Remove Fortran files.
20105 (nodist_finclude_HEADERS): New variable.
20106 * Makefile.in: Regenerated.
20108 2006-02-13 Jakub Jelinek <jakub@redhat.com>
20110 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
20111 Remove tests for returning assumed character length arrays.
20113 2006-02-12 Roger Sayle <roger@eyesopen.com>
20114 John David Anglin <dave@hiauly1.hia.nrc.ca>
20117 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
20119 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
20121 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
20123 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
20125 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
20126 part of LD_LIBRARY_PATH manually.
20128 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
20131 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
20134 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
20137 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
20138 * configure.ac (PERL): Don't set.
20139 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
20140 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
20141 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
20142 * omp.h.in: Wrap the new configure substitutions with @ characters.
20143 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
20144 * aclocal.m4, configure, Makefile.in: Regenerate.
20145 * mkomp_h.pl: Delete.
20147 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
20150 * configure.ac: Use GCC_HEADER_STDINT.
20151 * libgomp.h: Include gstdint.h.
20152 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
20153 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
20155 2006-01-24 Richard Henderson <rth@redhat.com>
20158 * configure.ac: Add AM_MAINTAINER_MODE.
20159 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
20161 2006-01-24 Diego Novillo <dnovillo@redhat.com>
20163 * Makefile.in: Regenerate.
20164 * testsuite/Makefile.in: Regenerate.
20165 * aclocal.m4: Regenerate.
20167 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
20169 * config/posix/proc.c: Conditional include of sys/loadavg.h for
20171 * configure.ac: Add check for loadavg.h.
20172 (link_gomp): Adjust comment.
20173 * configure: Regenerate.
20174 * config.h.in: Regenerate.
20176 2006-01-21 Steve Ellcey <sje@cup.hp.com>
20179 * configure.ac: Remove check for alloca.h.
20180 * configure: Regenerate.
20181 * config.h.in: Regenerate.
20182 * libgomp.h: define gomp_alloca to be __builtin_alloca.
20183 * team.c: Remove use of alloca.h.
20184 Call gomp_alloca instead of alloca.
20186 2006-01-20 Steve Ellcey <sje@cup.hp.com>
20189 * team.c: Add include of alloca.h.
20190 * configure.ac: Add check for alloca.h.
20191 * configure: Regenerate.
20192 * config.h.in: Regenerate.
20194 2006-01-17 Jakub Jelinek <jakub@redhat.com>
20197 * testsuite/libgomp.fortran/pr25219.f90: New test.
20199 2005-12-05 Uros Bizjak <uros@kss-loka.si>
20201 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
20202 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
20203 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20204 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20205 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
20206 testsuite/libgomp.fortran/threadprivate1.f90,
20207 testsuite/libgomp.fortran/threadprivate2.f90,
20208 testsuite/libgomp.fortran/threadprivate3.f90,
20209 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20210 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20211 testsuite/libgomp.fortran/omp_parse3.f90: Change required
20212 effective-target to TLS runtime.
20214 * testsuite/libgomp.fortran/pr25162.f: Require
20215 effective-target TLS runtime.
20217 2005-12-01 Jakub Jelinek <jakub@redhat.com>
20219 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
20220 * testsuite/libgomp.c/nestedfn-3.c: New test.
20222 2005-11-30 Jakub Jelinek <jakub@redhat.com>
20225 * testsuite/libgomp.fortran/pr25162.f: New test.
20227 2005-11-28 Jakub Jelinek <jakub@redhat.com>
20229 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
20230 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
20232 2005-11-25 Jakub Jelinek <jakub@redhat.com>
20234 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
20235 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
20236 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
20237 single.c, team.c, work.c, config/linux/alpha/futex.h,
20238 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
20239 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
20240 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
20241 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
20242 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
20243 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
20244 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
20247 2005-11-18 Jakub Jelinek <jakub@redhat.com>
20249 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
20250 to nodist_noinst_HEADERS.
20251 * Makefile.in: Rebuilt.
20253 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
20254 add integer count field.
20255 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
20256 omp_nest_lock_t type change.
20257 (omp_init_nest_lock): Likewise. Initialize count to 0.
20258 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
20260 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
20262 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
20263 Increment count if successful and return the new nesting level.
20264 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
20265 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
20266 * testsuite/libgomp.c/lib-1.c: New test.
20267 * testsuite/libgomp.fortran/lib1.f90: New test.
20268 * testsuite/libgomp.fortran/lib2.f: New test.
20269 * testsuite/libgomp.fortran/lib3.f: New test.
20271 2005-11-17 Richard Henderson <rth@redhat.com>
20274 * Makefile.am (nodist_toolexeclib_HEADERS): New.
20275 * configure.ac (link_gomp): New. Substitute it.
20276 (AC_CONFIG_FILES): Add libgomp.spec.
20277 * libgomp.spec.in: New file.
20278 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
20279 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
20281 2005-11-18 Jakub Jelinek <jakub@redhat.com>
20283 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
20284 reduction(-:var) behaving the same as reduction(+:var).
20285 * testsuite/libgomp.c/reduction-4.c: New test.
20287 2005-11-15 Uros Bizjak <uros@kss-loka.si>
20289 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
20290 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
20291 testsuite/libgomp.c/copyin-3.c,
20292 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20293 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20294 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
20295 testsuite/libgomp.c++/pr24455.C,
20296 testsuite/libgomp.fortran/threadprivate1.f90,
20297 testsuite/libgomp.fortran/threadprivate2.f90,
20298 testsuite/libgomp.fortran/threadprivate3.f90,
20299 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20300 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20301 testsuite/libgomp.fortran/omp_parse3.f90: Require
20302 effective-target TLS.
20304 2005-11-14 Diego Novillo <dnovillo@redhat.com>
20308 2005-11-13 Jakub Jelinek <jakub@redhat.com>
20311 * team.c (initialize_team): Pass NULL rather than free as
20312 pthread_key_create destructor. Initialize thread specific data
20313 pointer in initial thread to a static local variable rather than
20316 2005-11-11 Uros Bizjak <uros@kss-loka.si>
20318 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
20319 its location to ld_library_path.
20321 2005-11-10 Diego Novillo <dnovillo@redhat.com>
20323 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
20325 2005-11-10 Diego Novillo <dnovillo@redhat.com>
20327 * testsuite/libgomp.c: Rename from libgomp.dg.
20329 2005-11-09 Diego Novillo <dnovillo@redhat.com>
20331 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
20332 threadprivate variable 'i'.
20334 2005-11-09 Jakub Jelinek <jakub@redhat.com>
20336 * config/linux/s390/futex.h: New file.
20337 * configure.tgt: Use it.
20339 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
20340 before the parallel.
20342 2005-11-08 Jakub Jelinek <jakub@redhat.com>
20345 * testsuite/libgomp.c++/master-1.C: New test.
20347 2005-11-07 Jakub Jelinek <jakub@redhat.com>
20349 * testsuite/libgomp.dg/copyin-3.c: New test.
20351 2005-11-07 Jakub Jelinek <jakub@redhat.com>
20353 * testsuite/libgomp.fortran/retval1.f90: New test.
20354 * testsuite/libgomp.fortran/vla7.f90: New test.
20356 2005-11-06 Jakub Jelinek <jakub@redhat.com>
20358 * testsuite/libgomp.fortran/vla2.f90: New test.
20359 * testsuite/libgomp.fortran/vla3.f90: New test.
20360 * testsuite/libgomp.fortran/vla4.f90: New test.
20361 * testsuite/libgomp.fortran/vla5.f90: New test.
20362 * testsuite/libgomp.fortran/vla6.f90: New test.
20364 2005-11-01 Jakub Jelinek <jakub@redhat.com>
20366 * config/linux/sparc/futex.h: New file.
20367 * configure.tgt: Use it.
20368 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
20370 * critical.c: Include stdlib.h.
20371 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
20372 ignoring return value.
20373 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
20374 LIBGOMP_CHECK_SYNC_BUILTINS check.
20375 * configure: Rebuilt.
20377 2005-10-31 Jakub Jelinek <jakub@redhat.com>
20379 * testsuite/libgomp.fortran/vla1.f90: New test.
20381 2005-10-31 Richard Henderson <rth@redhat.com>
20383 * testsuite/libgomp.fortran/character2.f90: Fix race condition
20384 setting 's' in different threads.
20386 2005-10-31 Jakub Jelinek <jakub@redhat.com>
20388 * libgomp.h (attribute_hidden, ialias): Define.
20389 * config/posix/proc.c (omp_get_num_procs): Add ialias.
20390 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
20391 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
20392 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20393 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20394 omp_test_lock, omp_test_nest_lock): Likewise.
20395 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
20396 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20397 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20398 omp_test_lock, omp_test_nest_lock): Likewise.
20399 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
20400 omp_get_dynamic, omp_get_nested): Likewise.
20401 * parallel.c (omp_get_num_threads, omp_get_max_threads,
20402 omp_get_thread_num, omp_in_parallel): Likewise.
20403 * fortran.c (ialias_redirect): Define.
20404 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
20405 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
20406 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
20407 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
20408 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
20409 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
20410 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
20411 omp_get_wtime): Add ialias_redirect.
20413 2005-10-30 Jakub Jelinek <jakub@redhat.com>
20415 * fortran.c: Include stdlib.h.
20417 2005-10-29 Jakub Jelinek <jakub@redhat.com>
20419 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
20420 * Makefile.in: Regenerated.
20422 2005-10-28 Jakub Jelinek <jakub@redhat.com>
20424 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
20425 * libgomp_f.h.in (omp_check_defines): New function.
20426 * env.c: Include libgomp_f.h.
20427 (initialize_env): Call omp_check_defines.
20429 * testsuite/libgomp.dg/copyin-2.c: New test.
20430 * testsuite/libgomp.c++/copyin-2.C: New test.
20431 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
20433 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
20434 * testsuite/libgomp.fortran/sharing2.f90: New test.
20436 * testsuite/libgomp.dg/copyin-1.c: New test.
20437 * testsuite/libgomp.c++/copyin-1.C: New test.
20439 2005-10-26 Jakub Jelinek <jakub@redhat.com>
20441 * testsuite/libgomp.fortran/crayptr1.f90: New test.
20443 * testsuite/libgomp.fortran/workshare1.f90: New test.
20445 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20447 * libgomp.fortran/sharing1.f90: New test.
20449 2005-10-24 Jakub Jelinek <jakub@redhat.com>
20452 * testsuite/libgomp.c++/loop-7.C: New test.
20454 * testsuite/libgomp.dg/nestedfn-2.c: New test.
20456 * testsuite/libgomp.dg/nestedfn-1.c: New test.
20457 * testsuite/libgomp.fortran/reduction6.f90: New test.
20458 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20460 2005-10-23 Richard Henderson <rth@redhat.com>
20462 * testsuite/libgomp.c++/ctor-1.C: New.
20463 * testsuite/libgomp.c++/ctor-2.C: New.
20464 * testsuite/libgomp.c++/ctor-3.C: New.
20465 * testsuite/libgomp.c++/ctor-4.C: New.
20466 * testsuite/libgomp.c++/ctor-5.C: New.
20467 * testsuite/libgomp.c++/ctor-6.C: New.
20468 * testsuite/libgomp.c++/ctor-7.C: New.
20469 * testsuite/libgomp.c++/ctor-8.C: New.
20470 * testsuite/libgomp.c++/ctor-9.C: New.
20472 2005-10-21 Diego Novillo <dnovillo@redhat.com>
20475 * testsuite/libgomp.c++/pr24455-1.C: New test.
20476 * testsuite/libgomp.c++/pr24455.C: New test.
20477 * testsuite/libgomp.dg/pr24455-1.c: New test.
20478 * testsuite/libgomp.dg/pr24455.c: New test.
20480 2005-10-20 Richard Henderson <rth@redhat.com>
20482 * testsuite/libgomp.c++/loop-6.C: New.
20483 * testsuite/libgomp.dg/loop-3.c: New.
20485 2005-10-20 Jakub Jelinek <jakub@redhat.com>
20487 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20488 explicitly private.
20489 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20492 2005-10-19 Diego Novillo <dnovillo@redhat.com>
20494 * testsuite/libgomp.fortran/jacobi.f: New test.
20496 2005-10-19 Richard Henderson <rth@redhat.com>
20498 * configure.tgt (i?86-linux): Default to with_arch instead of
20499 CFLAGS. Add -mtune to match target_cpu.
20500 (x86_64-linux): Tune to i686.
20502 * fortran.c (omp_test_nest_lock_): Fix typo.
20504 2005-10-19 Jakub Jelinek <jakub@redhat.com>
20506 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20507 gomp_ordered_sync): Do nothing if team->nthreads == 1.
20508 * testsuite/libgomp.dg/ordered-3.c: New test.
20510 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20511 Remove volatile keyword.
20513 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20514 in COMMON block to avoid warnings on 64-bit targets.
20516 2005-10-18 Diego Novillo <dnovillo@redhat.com>
20518 * testsuite/libgomp.dg/shared-3.c: New test.
20520 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20522 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20523 * testsuite/libgomp.fortran/reduction5.f90: New test.
20525 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20527 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20529 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
20530 flush loop now that __sync_synchronize has proper memory barrier.
20531 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20532 Add -ffixed-form to dg-options.
20534 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20536 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20537 from subdirectories.
20538 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20539 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20540 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20541 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20542 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20543 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20544 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20545 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20546 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20547 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20548 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20549 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20550 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20551 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20552 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20553 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20554 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20555 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20556 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20557 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20558 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20559 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20560 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20561 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20562 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20564 2005-10-17 Jakub Jelinek <jakub@redhat.com>
20566 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20567 lang_library_path exists. Use find instead of glob to gather tests.
20568 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20570 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20572 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20573 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20574 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20575 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20576 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20577 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20578 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20579 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20580 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20581 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20582 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20583 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20584 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20586 2005-10-15 Jakub Jelinek <jakub@redhat.com>
20588 * testsuite/libgomp.dg/vla-1.c: New test.
20590 * testsuite/libgomp.fortran/reference2.f90: New test.
20592 * testsuite/libgomp.fortran/character2.f90: Remove explicit
20593 declaration of omp_get_thread_num.
20594 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
20597 * testsuite/libgomp.fortran/reduction1.f90: New test.
20598 * testsuite/libgomp.fortran/reduction2.f90: New test.
20599 * testsuite/libgomp.fortran/reduction3.f90: New test.
20600 * testsuite/libgomp.fortran/reduction4.f90: New test.
20602 2005-10-13 Richard Henderson <rth@redhat.com>
20604 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20605 * Makefile.in: Regenerate.
20606 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20607 * libgomp.h: Include bar.h.
20608 (struct gomp_barrier): Remove.
20609 (struct gomp_team): Add barrier. Replace master_barrier with
20610 master_release. Replace threads with ordered_release.
20611 (struct gomp_thread): Replace barrier with release.
20612 * ordered.c (gomp_ordered_first): Update for ordered_release change.
20613 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20614 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20615 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20616 (GOMP_single_copy_end): Likewise.
20617 * team.c (gomp_threads_dock): New.
20618 (gomp_barrier_init, gomp_barrier_destroy): Remove.
20619 (gomp_thread_start): Use gomp_barrier_wait.
20620 (new_team, free_team): Update for gomp_team changes.
20621 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20622 (gomp_team_end): Use gomp_barrier_wait.
20623 (initialize_team): Update for gomp_thread changes.
20624 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20625 (gomp_work_share_end_nowait): Use atomic ops when available.
20626 * config/linux/bar.c, config/linux/bar.h: New files.
20627 * config/posix/bar.c, config/posix/bar.h: New files.
20629 2005-10-13 Jakub Jelinek <jakub@redhat.com>
20631 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20632 * testsuite/libgomp.dg/single-2.c: New test.
20634 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20635 lang_link_flags): Unset, so that they aren't inherited from previously
20638 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20640 2005-10-12 Richard Henderson <rth@redhat.com>
20642 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20643 (libgomp_init): Use lang_test_file, lang_library_path, and
20644 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
20646 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20647 (lang_test_file, lang_link_flags): New.
20648 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20650 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20651 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20652 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20653 testsuite/libgomp.c++/parallel-1.C,
20654 testsuite/libgomp.c++/reduction-1.C,
20655 testsuite/libgomp.c++/reduction-2.C,
20656 testsuite/libgomp.c++/reduction-3.C,
20657 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20658 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20659 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20660 New files, largely cribbed from the C testsuite.
20662 2005-10-12 Jakub Jelinek <jakub@redhat.com>
20664 * testsuite/libgomp.fortran/character1.f90: New test.
20665 * testsuite/libgomp.fortran/character2.f90: New test.
20667 * testsuite/libgomp.dg/nested-1.c: New test.
20668 * testsuite/libgomp.dg/nested-2.c: New test.
20669 * testsuite/libgomp.fortran/do1.f90: New test.
20670 * testsuite/libgomp.fortran/do2.f90: New test.
20672 * testsuite/libgomp.fortran/reference1.f90: New test.
20674 2005-10-11 Jakub Jelinek <jakub@redhat.com>
20676 * testsuite/libgomp.dg/reduction-1.c: New test.
20677 * testsuite/libgomp.dg/reduction-2.c: New test.
20678 * testsuite/libgomp.dg/reduction-3.c: New test.
20680 2005-10-10 Jakub Jelinek <jakub@redhat.com>
20682 * testsuite/libgomp.dg/atomic-1.c: New test.
20683 * testsuite/libgomp.dg/atomic-2.c: New test.
20685 2005-10-09 Richard Henderson <rth@redhat.com>
20687 * critical.c (atomic_lock): New.
20688 (initialize_critical): Initialize it.
20689 (GOMP_atomic_start, GOMP_atomic_end): New.
20690 * libgomp.map: Export them.
20691 * libgomp_g.h: Declare them.
20693 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20695 2005-10-02 Richard Henderson <rth@redhat.com>
20697 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20698 to XCFLAGS instead of CFLAGS.
20700 2005-09-30 Richard Henderson <rth@redhat.com>
20702 * configure.ac: Determine whether -pthread or -lpthread is needed.
20703 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20704 * Makefile.in, configure: Rebuild.
20706 2005-09-28 Richard Henderson <rth@redhat.com>
20708 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20709 * testsuite/libgomp.dg/omp-single-3.c: New test.
20711 2005-09-28 Diego Novillo <dnovillo@redhat.com>
20713 * testsuite/libgomp.dg/omp-single-2.c: New test.
20714 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20716 2005-09-27 Richard Henderson <rth@redhat.com>
20718 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20719 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20721 2005-09-27 Jakub Jelinek <jakub@redhat.com>
20723 * testsuite/libgomp.dg/omp-loop03.c: New test.
20725 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20727 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20729 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20731 * testsuite/libgomp.dg/omp-single-1.c: New test.
20732 * testsuite/libgomp.dg/shared-1.c: Return 0.
20733 Add prototype for abort.
20734 * testsuite/libgomp.dg/shared-2.c: Likewise.
20736 2005-09-26 Jakub Jelinek <jakub@redhat.com>
20738 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20741 2005-09-26 Diego Novillo <dnovillo@redhat.com>
20743 * testsuite/libgomp.dg/shared-1.c: New test.
20744 * testsuite/libgomp.dg/shared-2.c: New test.
20746 2005-09-24 Richard Henderson <rth@redhat.com>
20748 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20750 2005-09-24 Richard Henderson <rth@redhat.com>
20752 * iter.c (gomp_iter_static_next): Round up when computing number
20753 of iterations. Don't bother distributing a remainder equally.
20755 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20756 Don't call srand. Zero b before testing.
20759 2005-09-24 Jakub Jelinek <jakub@redhat.com>
20761 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20762 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20764 2005-09-23 Jakub Jelinek <jakub@redhat.com>
20766 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20767 without !$omp end do, followed immediately by subroutine end.
20769 2005-09-23 Diego Novillo <dnovillo@redhat.com>
20771 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20773 2005-09-22 Richard Henderson <rth@redhat.com>
20775 * critical.c (GOMP_critical_name_start): Change argument to void**.
20776 Reuse the pointer space if the mutex fits.
20777 (GOMP_critical_name_end): Likewise.
20778 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20779 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20780 (GOMP_critical_name_end): Likewise.
20781 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20782 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20784 2005-09-20 Richard Henderson <rth@redhat.com>
20786 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20787 (create_lock_lock): New.
20788 (initialize_critical): Initialize it.
20789 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20790 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20792 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20794 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20796 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20798 * testsuite/libgomp.dg/omp-loop01.c: New test.
20799 * testsuite/libgomp.dg/omp-loop02.c: New test.
20801 2005-09-20 Jakub Jelinek <jakub@redhat.com>
20803 * configure.ac (AC_PROG_FC): Add.
20804 (USE_FORTRAN): New automake conditional.
20805 * configure: Rebuilt.
20806 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20807 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20808 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20809 Add rules to build them.
20810 * Makefile.in: Rebuilt.
20811 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20812 OMP_NEST_LOCK_KIND.
20813 * libgomp.map: Add Fortran wrappers.
20814 * libgomp_f.h.in: New file.
20815 * omp_lib.h.in: New file.
20816 * omp_lib.f90.in: New file.
20817 * fortran.c: New file.
20818 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20819 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20820 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20821 libgfortran has been built.
20822 * testsuite/libgomp.fortran/fortran.exp: New file.
20823 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20824 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20825 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20826 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20827 * testsuite/libgomp.fortran/omp_hello.f: New test.
20828 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20829 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20830 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20831 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20832 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20833 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20834 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20835 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20837 2005-08-30 Richard Henderson <rth@redhat.com>
20839 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20840 function for when aliases are not usable.
20841 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20842 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20843 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20844 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20845 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20846 GOMP_loop_ordered_guided_next): Likewise.
20847 * ordered.c (GOMP_ordered_start): Likewise.
20849 2005-08-01 Diego Novillo <dnovillo@redhat.com>
20851 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20852 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20853 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20854 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20855 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20856 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20857 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20858 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20859 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20861 2005-07-07 Eric Christopher <echristo@redhat.com>
20862 Diego Novillo <dnovillo@redhat.com>
20864 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20865 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20867 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20868 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20869 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20870 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20871 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20872 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20873 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20875 2005-06-13 Diego Novillo <dnovillo@redhat.com>
20877 * TOPLEVEL.patch: Remove.
20879 2005-05-16 Richard Henderson <rth@redhat.com>
20881 * configure.ac: Test for clock_gettime.
20882 * config.h.in, configure: Rebuild.
20883 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20884 (omp_get_wtime): Use clock_gettime if available.
20885 (omp_get_wtick): Use clock_getres if available.
20887 2005-05-11 Richard Henderson <rth@redhat.com>
20889 * config/linux/ia64/futex.h: New file.
20890 * configure.tgt: Use it.
20892 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20894 2005-05-07 Richard Henderson <rth@redhat.com>
20896 * config/linux/powerpc/futex.h: New file.
20897 * configure.tgt: Use it.
20899 * config/linux/i486/futex.h: Merge ...
20900 * config/linux/x86_64/futex.h: ... into ...
20901 * config/linux/x86/futex.h: ... here.
20902 * configure.tgt: Update to match.
20904 2005-05-06 Richard Henderson <rth@redhat.com>
20906 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20907 * config/linux/i486/futex.h: Likewise.
20908 * config/linux/x86_64/futex.h: Likewise.
20910 * config/linux/lock.c: New file.
20911 * config/linux/omp-lock.h: New file.
20913 * critical.c, env.h: Don't include omp.h
20914 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20915 * config/posix/time.c: Likewise.
20916 * config/posix/omp-lock.h: New file.
20917 * libgomp.h: Include omp-lock.h and omp.h.
20918 * Makefile.am (nodist_include_HEADERS): New.
20920 * configure.ac (PERL): New.
20921 * mkomp_h.pl: New file.
20922 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20924 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20926 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20927 build directory. Re-add -march=i486 hack.
20929 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20930 (libgomp_link_flags): Remove.
20931 (libgomp_initialized): Remove.
20932 (libgomp_init): Don't protect from reinitialization. Copy code
20933 from libstdc++ for getting the multilib set correctly.
20935 2005-05-05 Richard Henderson <rth@redhat.com>
20937 * config/linux/alpha/futex.h: New file.
20938 * configure.tgt (alpha*-*-linux*): Use it.
20940 * config/posix/mutex.c: New file.
20941 * config/posix/sem.c: Use libgomp.h.
20943 * configure.tgt (x86_64-linux): Also test CC for -m32.
20944 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20946 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20949 * Makefile.am (SUBDIRS): New.
20950 (libgomp_la_LDFLAGS): Add -lpthread.
20951 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20952 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20954 * libgomp_g.h: New file.
20955 * libgomp.h: Split out all public declarations to libgomp_g.h.
20956 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20957 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20958 * config/linux/sem.h: Likewise.
20959 * config/posix/sem.h: Likewise.
20961 * Makefile.am (AM_LDFLAGS): New.
20962 (libgomp_version_script): Split out from ...
20963 (libgomp_la_LDFLAGS): ... here.
20964 (libgomp_version_info): New.
20965 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20966 (LIBGOMP_ENABLE): New.
20967 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20968 (LIBGOMP_ENABLE_SYMVERS): New.
20969 * configure.ac (AC_INIT): Version 1.0.
20970 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20971 (enable-linux-futex): Likewise. Rename from enable-futex.
20972 (libtool_VERSION): New.
20973 (LIBGOMP_ENABLE_SYMVERS): Use it.
20974 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20975 * Makefile.in, aclocal.m4, configure: Rebuild.
20977 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20978 (gomp_mutex_unlock_slow): Fix typo.
20979 * config/linux/sem.c: Similarly.
20980 (gomp_sem_post_slow): Fix typo.
20981 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20982 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20983 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20985 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20986 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20987 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20988 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20989 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20990 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20991 LDFLAGS. Pull enable_futex check to top-level.
20992 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20993 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20995 First attempt at real configury.
20996 * Makefile, config.h: Remove file.
20997 * Makefile.am, Makefile.in: New file.
20998 * acinclude.m4 aclocal.m4: New file.
20999 * configure.ac, configure.tgt, configure: New file.
21001 * config/posix/lock.c: Rename from sys-lock.c.
21002 * config/posix/mutex.h: Rename from sys-mutex.h.
21003 * config/posix/sem.c: Rename from sys-sem.c.
21004 * config/posix/sem.h: Rename from sys-sem.h.
21005 * config/posix/proc.c: Rename from sys-proc.c.
21006 * config/posix/time.c: Rename from sys-proc.c.
21008 * config/linux/mutex.c: New file.
21009 * config/linux/mutex.h: New file.
21010 * config/linux/sem.c: New file.
21011 * config/linux/sem.h: New file.
21012 * config/linux/i486/futex.h: New file.
21013 * config/linux/x86_64/futex.h: New file.
21015 2005-05-04 Richard Henderson <rth@redhat.com>
21017 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
21018 * libgomp.h: Declare them.
21019 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
21020 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
21022 2005-05-04 Richard Henderson <rth@redhat.com>
21024 * libgomp-1 code drop
21026 2005-05-04 Richard Henderson <rth@redhat.com>
21028 * iter.c (gomp_iter_static_next): Return tri-state on 0.
21029 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
21030 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
21031 (gomp_iter_static_next): Update.
21032 (gomp_ordered_static_next): Update.
21033 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
21034 (gomp_loop_ordered_static_start): Likewise. Exit early for a
21035 totally empty range.
21036 (gomp_loop_ordered_static_next): Refine test for calling
21037 gomp_ordered_static_next.
21038 * testsuite/ordered-1.c: Add case for more threads than iterations.
21040 * iter.c (gomp_iter_runtime_next_locked): Remove.
21041 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
21042 gomp_loop_guided_start, gomp_loop_ordered_static_start,
21043 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
21044 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
21045 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
21046 gomp_loop_ordered_guided_next): Downcase name, make static, add
21047 an external alias with the old name.
21048 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
21049 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
21050 switch and call one of the above static functions.
21051 * libgomp.h: Update.
21053 * work.c (gomp_work_share_start): Lock the mutex for !first too.
21054 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
21055 GOMP_loop_guided_start, GOMP_loop_runtime_start,
21056 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
21057 GOMP_loop_ordered_guided_start): Update to match.
21058 * sections.c (GOMP_sections_start): Likewise.
21059 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
21061 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
21062 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
21063 Use bounds check instead of modulus.
21064 (gomp_ordered_sync): Split out of GOMP_ordered_start.
21065 (gomp_ordered_last): Don't sync with ordered_owner here.
21066 (gomp_ordered_next): Likewise.
21067 (gomp_ordered_static_loop_next): Likewise.
21068 * loop.c, libgomp.h: Update to match.
21070 * libgomp.h (GOMP_barrier): Declare.
21072 * testsuite/barrier-1.c: New file.
21073 * testsuite/critical-1.c: New file.
21074 * testsuite/ordered-2.c: New file.
21075 * testsuite/ordered-1.c: New file.
21076 * testsuite/sections-1.c: New file.
21077 * testsuite/single-1.c: New file.
21078 * testsuite/Makefile (TESTS): Add them.
21080 2005-05-04 Richard Henderson <rth@redhat.com>
21082 * libgomp.h (struct gomp_work_share): Add ordered_owner.
21083 * loop.c (GOMP_loop_static_start): If not the startup thread,
21084 acquire the mutex to wait for initialization complete.
21085 (GOMP_loop_ordered_static_start): Likewise.
21086 (GOMP_loop_ordered_runtime_start): Likewise.
21087 (GOMP_loop_ordered_static_first): Remove.
21088 (GOMP_loop_ordered_dynamic_first): Remove.
21089 (GOMP_loop_ordered_guided_first): Remove.
21090 (GOMP_loop_ordered_runtime_first): Remove.
21091 * ordered.c (gomp_ordered_loop_first): Post to own release when
21092 we're the first thread.
21093 (gomp_ordered_loop_last): Wait on release if not owner.
21094 (gomp_ordered_loop_next): Likewise.
21095 (gomp_ordered_static_loop_init): New.
21096 (gomp_ordered_static_loop_next): Use ordered_owner.
21097 (GOMP_ordered_start): Likewise.
21098 * work.c (gomp_new_work_share): Initialize ordered_owner.
21100 2005-05-03 Richard Henderson <rth@redhat.com>
21102 * Makefile (OPT): New.
21105 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
21106 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
21107 * libgomp.h, libgomp.map, NOTES: Update to match.
21109 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
21110 Add initialized and thr members.
21111 (gomp_thread_start): Pause when initially spawned to wait for
21112 the whole team to be created.
21113 (gomp_team_start): Release team members at the end.
21115 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
21116 (f_foo_1): Use GOMP_loop_end.
21117 (f_foo_2): Use GOMP_loop_end_nowait.
21119 * testsuite/loop-2.c: New file.
21120 * testsuite/Makefile (TESTS): Add it.
21122 2005-05-03 Richard Henderson <rth@redhat.com>
21124 * iter.c (gomp_iter_static_next): Fix overflow check typo.
21125 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
21126 * team.c (new_team): Initialize oldest_live_gen to 1 if no
21127 initial work_share.
21129 * testsuite/Makefile: New file.
21130 * testsuite/loop-1.c: New file.
21132 2005-05-03 Richard Henderson <rth@redhat.com>
21134 Initial implementation and checkin.
21136 Copyright (C) 2005-2024 Free Software Foundation, Inc.
21138 Copying and distribution of this file, with or without modification,
21139 are permitted in any medium without royalty provided the copyright
21140 notice and this notice are preserved.