1 2024-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]
4 (libgomp.ver-sun): Pass $(libgomp_la_OBJECTS),
5 $(libgomp_la_LIBADD) to make_sunver.pl unmodified.
6 * Makefile.in: Regenerate.
8 2024-05-02 Jakub Jelinek <jakub@redhat.com>
10 * testsuite/libgomp.c/declare-variant-4.h (gfx90c, gfx1036, gfx1103):
12 (f): Add #pragma omp declare variant directives for those.
13 * testsuite/libgomp.c/declare-variant-4-gfx90c.c: New test.
14 * testsuite/libgomp.c/declare-variant-4-gfx1036.c: New test.
15 * testsuite/libgomp.c/declare-variant-4-gfx1103.c: New test.
17 2024-04-26 Frederik Harwath <frederik@harwath.name>
19 * plugin/plugin-gcn.c (isa_hsa_name): Handle EF_AMDGPU_MACH_AMDGCN_GFX90c.
20 (isa_code): Handle gfx90c.
21 (max_isa_vgprs): Handle EF_AMDGPU_MACH_AMDGCN_GFX90c.
23 2024-04-16 Chung-Lin Tang <cltang@baylibre.com>
25 * libgomp.h (REFCOUNT_ACC_MAP_DATA): Define as (REFCOUNT_SPECIAL | 2).
26 * oacc-mem.c (acc_map_data): Adjust to use REFCOUNT_ACC_MAP_DATA,
27 initialize dynamic_refcount as 1.
28 (acc_unmap_data): Adjust to use REFCOUNT_ACC_MAP_DATA,
29 (goacc_map_var_existing): Add REFCOUNT_ACC_MAP_DATA case.
30 (goacc_exit_datum_1): Add REFCOUNT_ACC_MAP_DATA case, respect
31 REFCOUNT_ACC_MAP_DATA when decrementing/finalizing. Force lowest
32 dynamic_refcount to be 1 for REFCOUNT_ACC_MAP_DATA.
33 (goacc_enter_data_internal): Add REFCOUNT_ACC_MAP_DATA case.
34 * target.c (gomp_increment_refcount): Return early for
35 REFCOUNT_ACC_MAP_DATA case.
36 (gomp_decrement_refcount): Likewise.
37 * testsuite/libgomp.oacc-c-c++-common/lib-96.c: New testcase.
38 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: Adjust
39 testcase error output scan test.
41 2024-04-08 Thomas Schwinge <tschwinge@baylibre.com>
43 * plugin/plugin-gcn.c (init_hsa_context): Add and handle
44 'bool probe' parameter. Adjust all users; errors during device
46 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Aside from
47 'CUDA_ERROR_NO_DEVICE', errors during device probing are fatal.
49 2024-04-05 Thomas Schwinge <tschwinge@baylibre.com>
51 * testsuite/libgomp.c/reverse-offload-sm30.c: Set 'GCC_COLORS' to the empty string.
53 2024-04-05 Jakub Jelinek <jakub@redhat.com>
56 * testsuite/libgomp.c++/pr114572.C: New test.
58 2024-04-04 Tobias Burnus <tburnus@baylibre.com>
60 * libgomp.texi (TR12): Honor post-TR12 directive name change; add
61 item about curly braces/BLOCK permitted in canonical loop nests.
63 2024-04-02 Jakub Jelinek <jakub@redhat.com>
65 * libgomp.texi (OpenMP 5.2): Fix duplicated words; with with ->
67 (omp_target_associate_ptr): Fix duplicated words; either either ->
69 (omp_init_allocator): Fix duplicated words; be be -> be.
70 (omp_realloc): Fix duplicated words; is is -> is.
71 (OMP_ALLOCATOR): Fix duplicated words; other other -> other.
72 * priority_queue.h (priority_queue_multi_p): Fix duplicated words;
75 2024-03-25 Richard Biener <rguenther@suse.de>
77 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1036.
79 (isa_hsa_name): Handle gfx1036.
81 (max_isa_vgprs): Likewise.
83 2024-03-22 Kwok Cheung Yeung <kcyeung@baylibre.com>
85 * config/accel/target-indirect.c: Include string.h and hashtab.h.
86 Remove include of splay-tree.h. Update comments.
87 (splay_tree_prefix, splay_tree_c): Delete.
88 (struct indirect_map_t): New.
89 (hash_entry_type, htab_alloc, htab_free, htab_hash, htab_eq): New.
90 (GOMP_INDIRECT_ADD_MAP): Remove volatile qualifier.
91 (USE_SPLAY_TREE_LOOKUP): Rename to...
92 (USE_HASHTAB_LOOKUP): ..this.
93 (indirect_map, indirect_array): Delete.
95 (build_indirect_map): Remove locking. Build indirect map using
97 (GOMP_target_map_indirect_ptr): Use indirect_htab to lookup target
99 (GOMP_target_map_indirect_ptr): Remove volatile qualifier.
100 * config/gcn/team.c (gomp_gcn_enter_kernel): Call build_indirect_map
101 from first thread of first team only.
102 * config/nvptx/team.c (gomp_nvptx_main): Likewise.
103 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c (main):
104 Add missing break statements.
105 * testsuite/libgomp.fortran/declare-target-indirect-2.f90: Remove
108 2024-03-22 Andrew Stubbs <ams@baylibre.com>
110 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1103.
111 (gcn_gfx1103_s): New.
112 (isa_hsa_name): Handle gfx1103.
113 (isa_code): Likewise.
114 (max_isa_vgprs): Likewise.
116 2024-03-14 Thomas Schwinge <tschwinge@baylibre.com>
118 * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: Fix 'char'
119 initialization, copy, check.
121 2024-03-13 Tobias Burnus <tburnus@baylibre.com>
124 * testsuite/libgomp.fortran/declare-target-indirect-4.f90: New test.
126 2024-03-12 Tobias Burnus <tburnus@baylibre.com>
128 * libgomp.texi (Device Memory Routines): Swap item order to match
129 the order of the '@node's of the '@subsection's.
131 2024-03-08 Thomas Schwinge <tschwinge@baylibre.com>
133 * plugin/plugin-gcn.c (GOMP_OFFLOAD_can_run): Don't consider
134 'GCN_SUPPRESS_HOST_FALLBACK' anymore (assume always-'true').
135 (init_hsa_context): Adjust 'GCN_SUPPRESS_HOST_FALLBACK' error
138 2024-03-08 Thomas Schwinge <tschwinge@baylibre.com>
140 * plugin/plugin-nvptx.c (nvptx_get_num_devices):
141 'cuDeviceGetCount' failure is fatal.
143 2024-03-08 Thomas Schwinge <tschwinge@baylibre.com>
145 * plugin/plugin-gcn.c (init_hsa_runtime_functions): Fatal error
147 * plugin/plugin-nvptx.c (init_cuda_lib): Likewise.
149 2024-03-06 John David Anglin <danglin@gcc.gnu.org>
152 2024-02-01 John David Anglin <danglin@gcc.gnu.org>
154 * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
156 * testsuite/libgomp.c/omp-loop03.c: Likewise.
158 2024-03-04 Jakub Jelinek <jakub@redhat.com>
161 * target.c (gomp_target_rev): Change host_fn type and corresponding
162 cast from void (*)() to void (*) (void *).
164 2024-03-01 Jakub Jelinek <jakub@redhat.com>
165 Tobias Burnus <tburnus@baylibre.com>
168 * testsuite/libgomp.c++/target-lambda-3.C: Moved from
169 gcc/testsuite/g++.dg/gomp/ and fixed is-mapped handling.
170 * testsuite/libgomp.c++/target-lambda-1.C: Modify to also
171 also work without offloading.
172 * testsuite/libgomp.c++/firstprivate-1.C: New test.
173 * testsuite/libgomp.c++/firstprivate-2.C: New test.
174 * testsuite/libgomp.c++/private-1.C: New test.
175 * testsuite/libgomp.c++/private-2.C: New test.
176 * testsuite/libgomp.c++/target-lambda-4.C: New test.
177 * testsuite/libgomp.c++/use_device_ptr-1.C: New test.
179 2024-02-27 Tobias Burnus <tburnus@baylibre.com>
181 * libgomp.texi (OpenACC Runtime Library Routines): Document new 3.3
182 routines that simply map to their C counterpart.
183 * openacc.f90 (openacc): Add them.
184 * openacc_lib.h: Likewise.
185 * testsuite/libgomp.oacc-fortran/acc_host_device_ptr.f90: New test.
186 * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: New test.
187 * testsuite/libgomp.oacc-fortran/acc-memcpy-2.f90: New test.
188 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Crossref to f90 test.
189 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
190 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
192 2024-02-21 Tobias Burnus <tburnus@baylibre.com>
194 * libgomp.texi (OpenMP Context Selectors): Add 'nvptx64' as additional
195 'arch' value for nvptx.
197 2024-02-15 Kwok Cheung Yeung <kcyeung@baylibre.com>
199 * libgomp.texi (OpenMP 5.1): Mark indirect call support as fully
202 2024-02-15 Kwok Cheung Yeung <kcyeung@baylibre.com>
204 * testsuite/libgomp.fortran/declare-target-indirect-1.f90: New.
205 * testsuite/libgomp.fortran/declare-target-indirect-2.f90: New.
206 * testsuite/libgomp.fortran/declare-target-indirect-3.f90: New.
208 2024-02-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
211 * testsuite/libgomp.c/alloc-pinned-1.c [!__linux__] (CHECK_SIZE):
213 * testsuite/libgomp.c/alloc-pinned-2.c [!__linux__] (CHECK_SIZE):
216 2024-02-11 John David Anglin <danglin@gcc.gnu.org>
219 * configure.tgt (hppa*-*-linux*): Define config_path.
221 2024-02-01 John David Anglin <danglin@gcc.gnu.org>
223 * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
225 * testsuite/libgomp.c/omp-loop03.c: Likewise.
227 2024-01-29 Tobias Burnus <tburnus@baylibre.com>
229 * testsuite/libgomp.c/declare-variant-4.h: Use gfx1100/gfx1030
230 function not gfx90a for gfx1100/gfx1030 context selector.
232 2024-01-26 Richard Biener <rguenther@suse.de>
234 * plugin/plugin-gcn.c (suitable_hsa_agent_p): Filter out
235 agents with unsupported ISA.
237 2024-01-26 Richard Biener <rguenther@suse.de>
239 * plugin/plugin-gcn.c
240 (EF_AMDGPU_MACH::EF_AMDGPU_MACH_UNSUPPORTED): Add.
241 (isa_code): Return that instead of -1.
242 (GOMP_OFFLOAD_init_device): Adjust.
244 2024-01-26 Tobias Burnus <tburnus@baylibre.com>
246 * testsuite/libgomp.c/declare-variant-4.h: Add variant functions
247 for gfx1030 and gfx1100.
248 * testsuite/libgomp.c/declare-variant-4-gfx1030.c: New test.
249 * testsuite/libgomp.c/declare-variant-4-gfx1100.c: New test.
251 2024-01-26 Andrew Stubbs <ams@baylibre.com>
253 * config/gcn/time.c (RTC_TICKS): Configure RDNA3.
254 (omp_get_wtime): Add RDNA3-compatible variant.
255 * plugin/plugin-gcn.c (max_isa_vgprs): Tune for gfx1030 and gfx1100.
257 2024-01-24 Tobias Burnus <tburnus@baylibre.com>
258 Sandra Loosemore <sandra@codesourcery.com>
260 * libgomp.texi (Runtime Library Routines): Document
261 omp_pause_resource, omp_pause_resource_all and
262 omp_target_memcpy{,_rect}{,_async}.
264 2024-01-22 Tobias Burnus <tburnus@baylibre.com>
266 * testsuite/libgomp.c/declare-variant-4-fiji.c: Xfail as fiji
267 support is no longer enabled by default.
268 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
270 2024-01-20 John David Anglin <danglin@gcc.gnu.org>
272 * testsuite/libgomp.fortran/alloc-comp-3.f90: Increase
273 timeout by 2 on hppa*-*-*.
275 2024-01-20 John David Anglin <danglin@gcc.gnu.org>
277 * testsuite/libgomp.c/simd-math-1.c: Don't run on
280 2024-01-17 Jakub Jelinek <jakub@redhat.com>
283 * testsuite/libgomp.c/bitint-1.c: New test.
285 2024-01-11 Julian Brown <julian@codesourcery.com>
287 * libgomp.texi: C/C++ lvalues are supported now for map/to/from.
288 * testsuite/libgomp.c-c++-common/ind-base-4.c: New test.
289 * testsuite/libgomp.c-c++-common/unary-ptr-1.c: New test.
291 2024-01-10 Jakub Jelinek <jakub@redhat.com>
294 * configure.ac (FLOCK): Use $libgomp_abs_srcdir/testsuite/flock
295 instead of \$(abs_top_srcdir)/testsuite/flock.
296 * configure: Regenerated.
298 2024-01-09 Julian Brown <julian@codesourcery.com>
300 * testsuite/libgomp.c++/baseptrs-4.C: Remove commented-out cases that
302 * testsuite/libgomp.c++/baseptrs-6.C: New test.
303 * testsuite/libgomp.c++/ind-base-1.C: New test.
304 * testsuite/libgomp.c++/ind-base-2.C: New test.
305 * testsuite/libgomp.c++/lvalue-tofrom-1.C: New test.
306 * testsuite/libgomp.c++/lvalue-tofrom-2.C: New test.
307 * testsuite/libgomp.c++/map-comma-1.C: New test.
308 * testsuite/libgomp.c++/map-rvalue-ref-1.C: New test.
309 * testsuite/libgomp.c++/struct-ref-1.C: New test.
310 * testsuite/libgomp.c-c++-common/array-field-1.c: New test.
311 * testsuite/libgomp.c-c++-common/array-of-struct-1.c: New test.
312 * testsuite/libgomp.c-c++-common/array-of-struct-2.c: New test.
314 2024-01-09 Jakub Jelinek <jakub@redhat.com>
317 * configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
318 rather than $srcdir/testsuite/flock.
319 * configure: Regenerated.
321 2024-01-08 Thomas Schwinge <thomas@codesourcery.com>
323 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
324 'EF_AMDGPU_MACH_AMDGCN_GFX1100'.
326 2024-01-08 Julian Brown <julian@codesourcery.com>
328 * plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
329 hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
330 hsa_amd_memory_async_copy_rect_fn function pointers.
331 (init_hsa_runtime_functions): Add above functions, with
333 (GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
335 2024-01-08 Tobias Burnus <tobias@codesourcery.com>
337 * plugin/plugin-gcn.c (gcn_gfx1100_s): New const string.
338 (gcn_isa_name_len): Fix length.
339 (isa_hsa_name, isa_code, max_isa_vgprs): Handle gfx1100.
341 2024-01-06 Tobias Burnus <tobias@codesourcery.com>
343 * libgomp.texi (OpenMP Technical Report 12): Fix a typo.
344 (Device Memory Routines): Fix OpenMP 5.1 spec refs; add
345 omp_target_is_accessible.
346 (Environment Display Routine): Uncomment and add
347 omp_display_env description.
348 (OMP_DISPLAY_ENV): Update wording, add 'see also'.
350 2024-01-06 Mark Wielaard <mark@klomp.org>
352 * configure: Regenerate.
354 2024-01-03 Jakub Jelinek <jakub@redhat.com>
356 * libgomp.texi: Bump @copying's copyright year.
358 2023-12-21 Julian Brown <julian@codesourcery.com>
360 * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
362 2023-12-20 Julian Brown <julian@codesourcery.com>
364 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
365 avoid out-of-bounds array checks in CUDA runtime.
366 (GOMP_OFFLOAD_memcpy3d): Likewise.
367 * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
369 2023-12-18 Jakub Jelinek <jakub@redhat.com>
371 * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
372 drop because of that unneeded target selector from other directives
373 and remove the aarch64 specific ones.
375 2023-12-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
377 * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
378 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
380 2023-12-15 Thomas Schwinge <thomas@codesourcery.com>
382 * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
383 'dg-output's to 'target offload_device_nonshared_as'.
385 2023-12-15 Julian Brown <julian@codesourcery.com>
387 * oacc-mem.c (find_group_last, goacc_enter_data_internal,
388 goacc_exit_data_internal, GOACC_enter_exit_data): Add
389 GOMP_MAP_STRUCT_UNORD support.
390 * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
391 Detect incorrect use of variable indexing of arrays of structs.
392 (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
393 GOMP_MAP_STRUCT_UNORD support.
394 * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
395 * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
396 * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
397 * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
399 2023-12-13 Julian Brown <julian@codesourcery.com>
401 * testsuite/libgomp.fortran/map-subarray.f90: New test.
402 * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
403 * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
404 * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
405 * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
406 * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
407 * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
408 * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
409 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
410 descriptor-mapping changes. Remove XFAIL.
412 2023-12-13 Julian Brown <julian@codesourcery.com>
414 * target.c (gomp_map_pointer): Modify zero-length array section
416 (gomp_attach_pointer): Likewise.
417 (gomp_map_fields_existing): Use gomp_map_0len_lookup.
418 (gomp_attach_pointer): Allow attaching null pointers (or Fortran
419 "unassociated" pointers).
420 (gomp_map_vars_internal): Handle zero-sized struct members. Add
421 diagnostic for unmapped struct pointer members.
422 * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
423 * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
424 * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
425 * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
426 * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
427 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
429 * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
430 * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
431 * testsuite/libgomp.c++/class-array-1.C: New test.
432 * testsuite/libgomp.c++/baseptrs-3.C: New test.
433 * testsuite/libgomp.c++/baseptrs-4.C: New test.
434 * testsuite/libgomp.c++/baseptrs-5.C: New test.
435 * testsuite/libgomp.c++/baseptrs-8.C: New test.
436 * testsuite/libgomp.c++/baseptrs-9.C: New test.
437 * testsuite/libgomp.c++/ref-mapping-1.C: New test.
438 * testsuite/libgomp.c++/target-48.C: New test.
439 * testsuite/libgomp.c++/target-49.C: New test.
440 * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
441 * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
443 * testsuite/libgomp.c++/target-this-3.C: Likewise.
444 * testsuite/libgomp.c++/target-this-4.C: Likewise.
445 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
446 * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
448 2023-12-13 Thomas Schwinge <thomas@codesourcery.com>
450 * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
451 vs. '%ld' format string mismatch.
453 2023-12-13 Andrew Stubbs <ams@codesourcery.com>
454 Thomas Schwinge <thomas@codesourcery.com>
456 * allocator.c (MEMSPACE_ALLOC): Add PIN.
457 (MEMSPACE_CALLOC): Add PIN.
458 (MEMSPACE_REALLOC): Add PIN.
459 (MEMSPACE_FREE): Add PIN.
460 (MEMSPACE_VALIDATE): Add PIN.
461 (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
462 (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
463 (omp_aligned_calloc): Likewise.
464 (omp_realloc): Likewise.
465 (omp_free): Likewise.
466 * config/linux/allocator.c: New file.
467 * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
468 (MEMSPACE_CALLOC): Add PIN.
469 (MEMSPACE_REALLOC): Add PIN.
470 (MEMSPACE_FREE): Add PIN.
471 (MEMSPACE_VALIDATE): Add PIN.
472 * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
473 (MEMSPACE_CALLOC): Add PIN.
474 (MEMSPACE_REALLOC): Add PIN.
475 (MEMSPACE_FREE): Add PIN.
476 * libgomp.texi: Switch pinned trait to supported.
477 (MEMSPACE_VALIDATE): Add PIN.
478 * testsuite/libgomp.c/alloc-pinned-1.c: New test.
479 * testsuite/libgomp.c/alloc-pinned-2.c: New test.
480 * testsuite/libgomp.c/alloc-pinned-3.c: New test.
481 * testsuite/libgomp.c/alloc-pinned-4.c: New test.
483 2023-12-11 Lipeng Zhu <lipeng.zhu@intel.com>
485 * testsuite/libgomp.fortran/rwlock_1.f90: New file.
486 * testsuite/libgomp.fortran/rwlock_2.f90: New file.
487 * testsuite/libgomp.fortran/rwlock_3.f90: New file.
489 2023-12-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
491 * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
492 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
494 2023-12-11 Tobias Burnus <tobias@codesourcery.com>
496 * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
498 2023-12-08 Tobias Burnus <tobias@codesourcery.com>
500 * allocator.c (struct fort_alloc_splay_tree_key_s,
501 fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
502 * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
503 * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
504 GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
505 (GOMP_5.1.1): ... here.
506 * libgomp.texi (Impl. Status, Memory management): Update for
507 allocators/allocate directives.
508 * splay-tree.c: Handle splay_tree_static define to declare all
510 (splay_tree_lookup_node): New.
511 * splay-tree.h: Handle splay_tree_decl_only define.
512 (splay_tree_lookup_node): New prototype.
513 * target.c: Define splay_tree_static for 'reverse'.
514 * testsuite/libgomp.fortran/allocators-1.f90: New test.
515 * testsuite/libgomp.fortran/allocators-2.f90: New test.
516 * testsuite/libgomp.fortran/allocators-3.f90: New test.
517 * testsuite/libgomp.fortran/allocators-4.f90: New test.
518 * testsuite/libgomp.fortran/allocators-5.f90: New test.
520 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
522 * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
523 (TEAM_ARENA_FREE): Likewise.
524 (TEAM_ARENA_END): Likewise.
525 (GCN_LOWLAT_HEAP): New.
526 * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
527 (__gcn_lowlat_init): New prototype.
528 (gomp_gcn_enter_kernel): Initialize the low-latency heap.
529 * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
530 (TEAM_ARENA_FREE): Likewise.
531 (TEAM_ARENA_END): Likewise.
532 * plugin/plugin-gcn.c (lowlat_size): New variable.
533 (print_kernel_dispatch): Label the group_segment_size purpose.
534 (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
535 (create_kernel_dispatch): Pass low-latency head allocation to kernel.
536 (run_kernel): Use shadow; don't assume values.
537 * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
538 * config/gcn/allocator.c: New file.
539 * libgomp.texi: Document low-latency implementation details.
541 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
543 * allocator.c (MEMSPACE_VALIDATE): New macro.
544 (omp_init_allocator): Use MEMSPACE_VALIDATE.
545 (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
546 (omp_aligned_calloc): Likewise.
547 (omp_realloc): Likewise.
548 * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
549 (MEMSPACE_VALIDATE): New macro.
550 (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
551 * libgomp.texi: Document low-latency implementation details.
552 * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
553 * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
554 * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
555 * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
556 * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
557 * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
558 * testsuite/libgomp.c/omp_alloc-traits.c: New test.
560 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
561 Kwok Cheung Yeung <kcy@codesourcery.com>
562 Thomas Schwinge <thomas@codesourcery.com>
564 * allocator.c (MEMSPACE_ALLOC): New macro.
565 (MEMSPACE_CALLOC): New macro.
566 (MEMSPACE_REALLOC): New macro.
567 (MEMSPACE_FREE): New macro.
568 (predefined_alloc_mapping): New array. Add _Static_assert to match.
569 (ARRAY_SIZE): New macro.
570 (omp_aligned_alloc): Use MEMSPACE_ALLOC.
571 Implement fall-backs for predefined allocators. Simplify existing
573 (omp_free): Use MEMSPACE_FREE.
574 (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
575 predefined allocators. Simplify existing fall-backs.
576 (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
577 Implement fall-backs for predefined allocators. Simplify existing
579 * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
580 (__nvptx_lowlat_init): New prototype.
581 (gomp_nvptx_main): Call __nvptx_lowlat_init.
582 * libgomp.texi: Update memory space table.
583 * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
584 (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
585 (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
586 * basic-allocator.c: New file.
587 * config/nvptx/allocator.c: New file.
588 * testsuite/libgomp.c/omp_alloc-1.c: New test.
589 * testsuite/libgomp.c/omp_alloc-2.c: New test.
590 * testsuite/libgomp.c/omp_alloc-3.c: New test.
591 * testsuite/libgomp.c/omp_alloc-4.c: New test.
592 * testsuite/libgomp.c/omp_alloc-5.c: New test.
593 * testsuite/libgomp.c/omp_alloc-6.c: New test.
595 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
597 * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
598 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
599 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
600 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
601 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
602 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
603 * testsuite/libgomp.c/declare-variant-4.h: Likewise.
604 * testsuite/libgomp.c/declare-variant-4.c: New.
606 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
608 * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
610 * testsuite/libgomp.c/declare-variant-3.c: New.
611 * testsuite/libgomp.c/declare-variant-3.h: Extend.
613 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
615 * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
616 'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
617 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
618 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
619 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
620 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
621 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
622 * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
623 'scan-offload-tree-dump' to
624 'only_for_offload_target amdgcn-amdhsa'.
625 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
626 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
627 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
628 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
629 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
631 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
633 * testsuite/libgomp.c/declare-variant-3-sm30.c:
634 'dg-additional-options -foffload=nvptx-none'.
635 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
636 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
637 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
638 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
639 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
641 2023-11-29 Thomas Schwinge <thomas@codesourcery.com>
643 * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
644 'scan-offload-ipa-dump's to
645 'only_for_offload_target amdgcn-amdhsa'.
646 * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
647 * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
649 2023-11-24 Tobias Burnus <tobias@codesourcery.com>
651 * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
654 2023-11-22 Thomas Schwinge <thomas@codesourcery.com>
656 * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
657 (f75, f80, f): Add '__attribute__ ((noipa))'.
658 * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
659 (gfx908, gfx90a, f): Likewise.
661 2023-11-15 Andrew Stubbs <ams@codesourcery.com>
662 Andrew Jenner <andrew@codesourcery.com>
664 * plugin/plugin-gcn.c (max_isa_vgprs): New.
665 (run_kernel): CDNA2 devices have more VGPRs.
667 2023-11-10 Tobias Burnus <tobias@codesourcery.com>
669 * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
670 renamed section from TR11.
672 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
674 * config/linux/target-indirect.c: Move to...
675 * target-indirect.c: ...here.
677 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
679 * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
680 * Makefile.in: Regenerate.
681 * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
682 (GOMP_OFFLOAD_load_image): Add extra argument.
683 * libgomp.h (struct indirect_splay_tree_key_s): New.
684 (indirect_splay_tree_node, indirect_splay_tree,
685 indirect_splay_tree_key): New.
686 (indirect_splay_compare): New.
687 * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
688 * libgomp.texi (OpenMP 5.1): Update documentation on indirect
689 calls in target region and on indirect clause.
690 (Other new OpenMP 5.2 features): Add entry for virtual function calls.
691 * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
692 * oacc-host.c (host_load_image): Add extra argument.
693 * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
694 enough, read host indirect functions table and pass to
696 * config/accel/target-indirect.c: New.
697 * config/linux/target-indirect.c: New.
698 * config/gcn/team.c (build_indirect_map): Add prototype.
699 (gomp_gcn_enter_kernel): Initialize support for indirect
700 function calls on GCN target.
701 * config/nvptx/team.c (build_indirect_map): Add prototype.
702 (gomp_nvptx_main): Initialize support for indirect function
703 calls on NVPTX target.
704 * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
705 indirect functions count.
706 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
707 is high enough, build address translation table and copy it to target
709 * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
711 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
712 is high enough, Build address translation table and copy it to target
714 * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
715 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
716 * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
718 2023-11-05 Jakub Jelinek <jakub@redhat.com>
720 * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
723 2023-10-31 Thomas Schwinge <thomas@codesourcery.com>
725 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
726 'acc_map_data' variant.
728 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
730 * oacc-parallel.c (GOACC_data_start): Handle
731 'GOACC_FLAG_LOCAL_DEVICE'.
732 (GOACC_parallel_keyed): Simplify accordingly.
733 * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
735 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
737 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
738 * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
739 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
740 * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
741 * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
743 2023-10-25 Chung-Lin Tang <cltang@codesourcery.com>
745 * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
746 GOACC_FLAG_LOCAL_DEVICE case.
747 * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
749 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
751 * Makefile.am: Handle Darwin rpaths.
752 * Makefile.in: Regenerate.
753 * configure: Regenerate.
754 * configure.ac: Handle Darwin rpaths
756 2023-10-20 Andrew Stubbs <ams@codesourcery.com>
758 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
759 (isa_hsa_name): Recognise gfx1030.
760 (isa_code): Likewise.
761 * team.c (defined): Remove s_endpgm.
763 2023-10-20 Tobias Burnus <tobias@codesourcery.com>
765 * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
768 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
770 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
771 improve wording especially for Fortran; mention -fopenmp-simd.
772 (Enabling OpenACC): Minor cleanup; remove conditional compilation
775 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
777 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
778 Actually document what the function does.
779 (GCC_ACC_NOTIFY): Remove unused env var.
781 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
783 * libgomp.texi: Replace most future tense by present tense.
785 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
787 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
788 dg-additional-options "-fdump-tree-gimple"; fix scan.
790 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
792 * libgomp.texi: Fix some typos.
793 (Memory Management Routines): Document remaining 5.x routines.
794 (Memory allocation): Make clear when the section applies.
796 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
798 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
799 supports the allocate directive for stack variables.
800 * testsuite/libgomp.fortran/allocate-5.f90: New test.
801 * testsuite/libgomp.fortran/allocate-6.f90: New test.
802 * testsuite/libgomp.fortran/allocate-7.f90: New test.
803 * testsuite/libgomp.fortran/allocate-8.f90: New test.
805 2023-10-12 Tobias Burnus <tobias@codesourcery.com>
807 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
809 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
810 clarify MANDATORY behavior.
812 2023-10-12 Zhang, Jun <jun.zhang@intel.com>
814 * env.c (initialize_env): Use do_adjust_default_spincount.
815 * config/linux/x86/spincount.h: New file.
817 2023-10-08 Tobias Burnus <tobias@codesourcery.com>
819 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
821 2023-10-06 Tobias Burnus <tobias@codesourcery.com>
823 * libgomp.texi (Device Memory Routines): New.
825 2023-10-04 Tobias Burnus <tobias@codesourcery.com>
827 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
828 and that other target archs have no 'arch'/'isa' traits implemented.
830 2023-09-20 Tobias Burnus <tobias@codesourcery.com>
832 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
833 implemented for C only.
834 * testsuite/libgomp.c/allocate-4.c: New test.
835 * testsuite/libgomp.c/allocate-5.c: New test.
836 * testsuite/libgomp.c/allocate-6.c: New test.
838 2023-09-20 Jakub Jelinek <jakub@redhat.com>
841 * libgomp.texi: Mark decl attribute was added to the C++ attribute
842 syntax as implemented.
844 2023-09-19 Jakub Jelinek <jakub@redhat.com>
847 * env.c (initialize_env): Don't dereference environ if it is NULL.
850 2023-09-18 Richard Biener <rguenther@suse.de>
852 PR tree-optimization/111294
853 * team.c (gomp_team_start): Assert alloca size to avoid false
854 positive alloc-size diagnostic.
856 2023-09-12 Thomas Schwinge <thomas@codesourcery.com>
857 Chung-Lin Tang <cltang@codesourcery.com>
861 * configure.ac: Revert earlier changes, instead
862 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
863 * Makefile.in: Regenerate.
864 * configure: Likewise.
865 * testsuite/Makefile.in: Likewise.
866 * testsuite/lib/libgomp.exp (libgomp_init): Remove
867 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
868 If '--with-build-sysroot=[...]' was specified, use it for
870 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
871 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
872 (SYSROOT_CFLAGS_FOR_TARGET): Set.
873 * testsuite/libgomp.c++/c++.exp (lang_source_re)
874 (lang_include_flags): Set for build-tree testing.
875 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
876 (lang_include_flags): Likewise.
878 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
880 * libgomp.texi (Memory Management Routines): New; add documentation for
881 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
882 omp_get_default_allocator.
883 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
885 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
887 * target.c (gomp_unload_device): Remove tailing whitespace.
889 2023-09-04 Tobias Burnus <tobias@codesourcery.com>
890 Thomas Schwinge <thomas@codesourcery.com>
892 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
894 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
896 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
898 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
900 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
901 * testsuite/libgomp.fortran/imperfect1.f90: New.
902 * testsuite/libgomp.fortran/imperfect2.f90: New.
903 * testsuite/libgomp.fortran/imperfect3.f90: New.
904 * testsuite/libgomp.fortran/imperfect4.f90: New.
905 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
906 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
907 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
908 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
910 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
912 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
913 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
914 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
915 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
916 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
917 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
918 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
919 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
920 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
921 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
923 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
925 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
926 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
927 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
928 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
929 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
930 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
931 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
932 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
933 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
934 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
935 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
936 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
937 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
939 2023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
941 * testsuite/lib/libgomp.exp: Add effective target.
942 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
945 2023-08-22 Tobias Burnus <tobias@codesourcery.com>
947 * libgomp.texi (OpenMP 5.2 status): Add depobj with
948 destroy-var argument as 'N'. Mark defaultmap with
949 'all' category as 'Y'.
951 2023-08-19 Tobias Burnus <tobias@codesourcery.com>
954 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
956 2023-08-17 Tobias Burnus <tobias@codesourcery.com>
959 * allocator.c (gomp_init_libnuma): Call numa_available; if
960 not available or not returning 0, disable libnuma usage.
962 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
964 * configure: Regenerate.
966 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
968 * configure: Regenerate.
970 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
972 * configure: Regenerate.
974 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
976 * configure: Regenerate.
978 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
980 * configure: Regenerate.
982 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
984 * configure: Regenerate.
986 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
988 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
989 GOMP_OFFLOAD_CAP_SHARED_MEM.
990 (omp_target_memcpy_rect_copy): Likewise for lock condition.
991 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
993 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
994 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
995 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
997 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
999 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
1000 GOMP_OFFLOAD_memcpy3d): New prototypes.
1001 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
1003 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
1004 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
1005 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
1006 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
1007 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
1008 GOMP_OFFLOAD_memcpy3d): New.
1009 * target.c (omp_target_memcpy_rect_worker):
1010 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
1011 Permit all device-to-device copyies; invoke new plugins for
1012 2D and 3D copying when available.
1013 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
1014 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
1015 * testsuite/libgomp.fortran/target-12.f90: Likewise.
1016 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
1018 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
1020 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
1021 (Tasking Routines): Document omp_in_explicit_task.
1022 (Implementation-defined ICV Initialization): Use @ref not @code.
1024 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
1026 * libgomp.texi (OpenMP Runtime Library Routines):
1027 Split long list by adding sections and moving routines there.
1028 (OMP_ALLOCATORS): Fix typo.
1030 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
1033 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
1034 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
1036 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
1037 test file; tests are in non-rectangular-loop-1.f90.
1038 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
1039 testcase to use a non-constant step to retain the 'sorry' test.
1040 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
1042 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
1043 Chung-Lin Tang <cltang@codesourcery.com>
1045 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
1046 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
1048 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
1050 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
1051 the traits. Add crossref to 'Memory allocation'.
1052 (Memory allocation): Refer to OMP_ALLOCATOR for the available
1053 traits and allocators/mem spaces; document the default value
1054 for the pool_size trait.
1056 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
1058 * allocator.c (omp_init_allocator): Check whether symbol from
1059 dlopened libnuma is available before using libnuma for
1062 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
1064 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
1065 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
1066 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
1068 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
1070 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
1071 'Memory allocation' section which contains the full status.
1072 (TR11): Remove differently worded duplicated entry.
1074 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
1076 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
1077 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
1078 add GOMP_MEMKIND_LIBNUMA.
1079 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
1080 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
1081 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
1082 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
1084 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
1085 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
1086 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
1087 updated for libnuma usage.
1088 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
1089 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
1091 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
1093 * allocator.c (omp_init_allocator): Use malloc for
1094 omp_high_bw_mem_space when the memkind lib is unavailable
1095 instead of returning omp_null_allocator.
1096 * libgomp.texi (OpenMP 5.0): Fix typo.
1097 (Memory allocation with libmemkind): Document implementation
1100 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
1102 * libgomp.texi: Use @var for ICV vars.
1103 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
1104 document which ICV is set and which scope the ICV has; extend/cleanup
1106 (Implementation-defined ICV Initialization): New.
1107 (nvptx): Document the implementation-defined used per-warp stack size.
1109 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
1111 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
1114 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
1116 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
1117 as expected dg-output.
1119 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
1121 PR middle-end/110270
1122 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
1123 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
1124 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
1125 * testsuite/libgomp.c/target-19.c: Update expected value.
1126 * testsuite/libgomp.c++/target-18.C: Likewise.
1127 * testsuite/libgomp.c++/target-19.C: Likewise.
1128 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
1129 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
1130 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
1132 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
1134 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
1135 gomp_init_targets_once was called before using default-device-var.
1136 * testsuite/libgomp.c/target-55.c: New test.
1137 * testsuite/libgomp.c/target-55a.c: New test.
1139 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
1141 * env.c (gomp_def_allocator_envvar): New var.
1142 (parse_allocator): Handle OpenMP 5.1 syntax.
1144 (omp_display_env): Output gomp_def_allocator_envvar
1145 for an allocator with traits.
1146 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
1147 OMP_DISPLAY_AFFINITY): New.
1148 * testsuite/libgomp.c/allocator-1.c: New test.
1149 * testsuite/libgomp.c/allocator-2.c: New test.
1150 * testsuite/libgomp.c/allocator-3.c: New test.
1151 * testsuite/libgomp.c/allocator-4.c: New test.
1152 * testsuite/libgomp.c/allocator-5.c: New test.
1153 * testsuite/libgomp.c/allocator-6.c: New test.
1155 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1157 * target.c (resolve_device): Align a
1158 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
1159 * testsuite/libgomp.c/target-51.c: Adjust.
1161 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1163 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
1165 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
1167 * testsuite/libgomp.c/simd-math-1.c: Remove
1168 '-foffload-options=-lm'.
1169 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
1171 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1174 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1176 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
1177 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1180 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1182 * testsuite/libgomp.c/target-51.c: Fix typo.
1184 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
1186 * env.c (gomp_default_icv_values): Init default_device_var to
1187 an nonconforming value - INT_MIN.
1188 (initialize_env): After env-var parsing, set default_device_var to
1189 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
1190 (omp_display_env): If default_device_var is INT_MIN, call
1191 gomp_init_targets_once.
1192 * icv-device.c (omp_get_default_device): Likewise.
1193 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
1194 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
1195 * target.c (resolve_device): Improve error message device-num < 0
1196 with 'mandatory' and no no-host devices available.
1197 (gomp_target_init): Set default-device-var if INT_MIN.
1198 * testsuite/libgomp.c/target-48.c: New test.
1199 * testsuite/libgomp.c/target-49.c: New test.
1200 * testsuite/libgomp.c/target-50.c: New test.
1201 * testsuite/libgomp.c/target-50a.c: New test.
1202 * testsuite/libgomp.c/target-51.c: New test.
1203 * testsuite/libgomp.c/target-52.c: New test.
1204 * testsuite/libgomp.c/target-53.c: New test.
1205 * testsuite/libgomp.c/target-54.c: New test.
1207 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
1210 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
1211 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
1213 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
1215 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
1216 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
1217 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
1219 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
1220 changed error message.
1221 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1222 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
1223 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1224 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
1225 extend testcase to check that data is copied when needed.
1226 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1227 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1229 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
1230 Tobias Burnus <tobias@codesourcery.com>
1232 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
1233 also for non-offload_device targets; check that it runs
1234 successfully for those and for all until a checkpoint for all
1235 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
1236 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1237 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1238 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1239 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
1240 add missing vars to map clause.
1242 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
1244 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
1245 unified_address requirement as supported.
1246 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
1247 'unified_address' from the not-supported requirements.
1249 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
1250 Tobias Burnus <tobias@codesourcery.com>
1252 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
1253 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
1254 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
1256 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
1257 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
1258 Emit runtime error if memory region not present.
1259 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
1260 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
1261 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
1262 * testsuite/libgomp.fortran/target-present-1.f90: New test.
1263 * testsuite/libgomp.fortran/target-present-2.f90: New test.
1264 * testsuite/libgomp.fortran/target-present-3.f90: New test.
1266 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
1269 * testsuite/lib/libgomp.exp: 'flock' through stdout.
1270 * testsuite/flock: New.
1271 * configure.ac (FLOCK): Point to that if no 'flock' available, but
1273 * configure: Regenerate.
1275 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
1277 * configure.ac (PERL): Remove.
1278 * configure: Regenerate.
1279 * Makefile.in: Likewise.
1280 * testsuite/Makefile.in: Likewise.
1282 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
1284 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
1286 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
1288 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
1290 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
1293 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
1294 * config/nvptx/target.c (GOMP_teams4): Likewise.
1295 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
1296 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
1297 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
1298 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
1300 2023-05-19 Jakub Jelinek <jakub@redhat.com>
1303 * configure.ac (link_gomp): Include also $DL_LIBS.
1304 * configure: Regenerated.
1306 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
1308 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
1310 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
1311 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
1312 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
1313 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
1315 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1318 * configure.ac: Look for 'flock'.
1319 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
1320 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
1321 * testsuite/lib/libgomp.exp: ... but here, instead.
1322 (libgomp_load): Override for parallel testing.
1323 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
1324 * configure: Regenerate.
1325 * Makefile.in: Regenerate.
1326 * testsuite/Makefile.in: Regenerate.
1328 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1329 Thomas Schwinge <thomas@codesourcery.com>
1332 * testsuite/Makefile.am (PWD_COMMAND): New variable.
1333 (%/site.exp): New target.
1334 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
1335 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
1336 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
1338 (check_DEJAGNU_libgomp_targets): New variables.
1339 ($(check_DEJAGNU_libgomp_targets)): New target.
1340 ($(check_DEJAGNU_libgomp_targets)): New dependency.
1341 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
1342 * testsuite/Makefile.in: Regenerate.
1343 * testsuite/lib/libgomp.exp: For parallel testing,
1344 'load_file ../libgomp-test-support.exp'.
1346 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1349 * configure.ac: 'AC_SUBST(CXX)'.
1350 * configure: Regenerate.
1351 * Makefile.in: Likewise.
1352 * testsuite/Makefile.in: Likewise.
1353 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
1354 (GFORTRAN_UNDER_TEST): Set.
1355 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
1356 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
1357 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1358 * testsuite/libgomp.fortran/fortran.exp: Use
1359 'GFORTRAN_UNDER_TEST'.
1360 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1362 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1365 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
1367 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
1368 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1369 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1370 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1372 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
1373 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
1374 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
1377 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
1380 * testsuite/libgomp.c++/target-map-class-1.C: New test.
1381 * testsuite/libgomp.c++/target-map-class-2.C: New test.
1383 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1385 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
1386 'lang_library_path' into a list of 'lang_library_paths'.
1387 * testsuite/libgomp.c++/c++.exp: Adjust.
1388 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1389 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
1391 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1393 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1395 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
1396 at 'lang_test_file_found'.
1397 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
1398 'return' early if not able to test. Simplify 'ld_library_path' setup.
1399 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1400 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1401 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1403 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1405 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
1407 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1408 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1409 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1411 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1413 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
1414 * testsuite/libgomp.c/c.exp: Likewise.
1415 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1416 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1417 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1418 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1419 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1421 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1423 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
1424 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1425 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1426 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1427 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
1429 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1430 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1431 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
1432 'lang_test_file_found' instead of 'lang_test_file'.
1434 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1436 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
1438 * testsuite/libgomp.c++/c++.exp: Likewise.
1439 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1441 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1443 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
1444 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
1446 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1448 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
1449 of 'libstdcxx_includes'.
1450 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1452 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1454 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
1455 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
1456 * libgomp.h (gomp_target_rev): Adjust.
1457 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
1458 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
1459 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
1460 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
1461 (rev_off_host_to_dev_cpy): Remove.
1462 (GOMP_OFFLOAD_run): Adjust.
1464 2023-05-04 Julian Brown <julian@codesourcery.com>
1467 * testsuite/libgomp.fortran/pr109622.f90: Move test...
1468 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
1469 vector length warning.
1470 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
1471 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
1472 missing copyin/copyout variable. Ignore vector length warnings.
1473 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
1474 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
1475 vector length warnings.
1476 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
1478 2023-04-28 Julian Brown <julian@codesourcery.com>
1481 * testsuite/libgomp.fortran/pr109622.f90: New test.
1482 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
1483 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
1485 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
1487 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
1488 * testsuite/libgomp.c/scan-23.c: New test.
1489 * testsuite/libgomp.fortran/scan-2.f90: New test.
1491 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1493 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
1494 weak_undefined options.
1496 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
1498 * libgomp.texi (Offload-Target Specifics): Grammar fix.
1500 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
1503 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
1506 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1509 * target.c (gomp_map_vars_internal): Allow for
1510 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
1511 * oacc-parallel.c (GOACC_parallel_keyed): Pass
1512 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
1513 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
1514 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1516 (gomp_offload_free): Remove.
1517 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1518 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1519 (cuda_free_argmem): Remove.
1520 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1523 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1525 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1526 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1529 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1531 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1532 'GOMP_MAP_IF_PRESENT'.
1533 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1534 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1535 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1536 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1537 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1539 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1541 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1543 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1546 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1548 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1549 another aspect of OpenACC 'async' semantics.
1551 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1553 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1555 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1556 Verify 'acc_ev_alloc', 'acc_ev_free'.
1558 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
1561 * env.c (wait_policy): Initialize to -1.
1562 (initialize_icvs): Initialize icvs->wait_policy to -1.
1563 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1565 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
1567 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1569 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1570 Paul-Antoine Arras <pa@codesourcery.com>
1572 * testsuite/libgomp.c/simd-math-1.c: New testcase.
1574 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
1576 PR middle-end/108546
1577 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1578 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1580 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
1582 * testsuite/libgomp.fortran/alloc-10.f90: Use
1583 '-Wno-complain-wrong-lang'.
1584 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1585 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1586 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1587 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1588 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1589 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1590 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1591 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1592 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1593 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1595 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1597 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1598 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1599 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1600 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1603 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1605 * libgomp.texi: Fix typos - theads -> threads.
1607 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1609 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1610 comment typo and improve its wording.
1612 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1614 * target.c (gomp_target_rev): Dereference ptr
1615 to get device address.
1616 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1617 for unallocated allocatable.
1619 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1621 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1623 (GOMP_target_enter_exit_data): If the next map item is
1624 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1625 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1627 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
1630 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1631 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1632 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1633 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1634 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1635 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1637 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
1639 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1640 offloading compilation.
1642 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1644 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1645 freeing not allocated memory.
1646 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1648 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1650 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1652 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1653 reverse-offload requirement.
1655 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
1657 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1658 (DEFAULT_TEAM_ARENA_SIZE): New define.
1659 (struct heap): Move to this file.
1660 (struct kernargs_abi): Likewise.
1661 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1663 * libgomp.h: Include libgomp-gcn.h.
1664 (TEAM_ARENA_SIZE): Remove.
1665 (team_malloc): Update the error message.
1666 * plugin/plugin-gcn.c (struct kernargs): Move common content to
1667 struct kernargs_abi.
1668 (struct agent_info): Rename team arenas to ephemeral memories.
1669 (struct team_arena_list): Rename ....
1670 (struct ephemeral_memories_list): to this.
1671 (struct heap): Delete.
1672 (team_arena_size): New variable.
1673 (stack_size): New variable.
1674 (print_kernel_dispatch): Update debug messages.
1675 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1676 Read GCN_STACK_SIZE.
1677 (get_team_arena): Rename ...
1678 (configure_ephemeral_memories): ... to this, and set up stacks.
1679 (release_team_arena): Rename ...
1680 (release_ephemeral_memories): ... to this.
1681 (destroy_team_arenas): Rename ...
1682 (destroy_ephemeral_memories): ... to this.
1683 (create_kernel_dispatch): Add num_threads parameter.
1684 Adjust for kernargs_abi refactor and ephemeral memories.
1685 (release_kernel_dispatch): Adjust for ephemeral memories.
1686 (run_kernel): Pass thread-count to create_kernel_dispatch.
1687 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1688 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1690 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
1692 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1694 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1696 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1697 usage, remove unused -fdump-tree-original.
1698 * testsuite/libgomp.fortran/allocate-4.f90: New.
1700 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1702 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1703 (GCN): Add item about 'omp requires'.
1704 (nvptx): Likewise; add item about reverse offload.
1706 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
1709 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1711 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
1713 * libgomp.texi (OpenMP 5.0): Set non-rectangular
1714 loop nest back to 'P' as Fortran support is incomplete.
1716 2023-01-19 Jakub Jelinek <jakub@redhat.com>
1718 PR middle-end/108459
1719 * testsuite/libgomp.c/pr108459.c: New test.
1721 2023-01-17 Martin Liska <mliska@suse.cz>
1723 * Makefile.in: Regenerate.
1724 * configure: Regenerate.
1726 2023-01-07 LIU Hao <lh_mouse@126.com>
1728 PR middle-end/108300
1729 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1732 2023-01-05 Jakub Jelinek <jakub@redhat.com>
1735 * testsuite/libgomp.c++/pr108286.C: New test.
1737 2023-01-02 Jakub Jelinek <jakub@redhat.com>
1739 * libgomp.texi: Bump @copying's copyright year.
1741 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
1744 * config/nvptx/bar.c (generation_to_barrier): Remove.
1745 (futex_wait,futex_wake,do_spin,do_wait): Remove.
1746 (GOMP_WAIT_H): Remove.
1747 (#include "../linux/bar.c"): Remove.
1748 (gomp_barrier_wait_end): New function.
1749 (gomp_barrier_wait): Likewise.
1750 (gomp_barrier_wait_last): Likewise.
1751 (gomp_team_barrier_wait_end): Likewise.
1752 (gomp_team_barrier_wait): Likewise.
1753 (gomp_team_barrier_wait_final): Likewise.
1754 (gomp_team_barrier_wait_cancel_end): Likewise.
1755 (gomp_team_barrier_wait_cancel): Likewise.
1756 (gomp_team_barrier_cancel): Likewise.
1757 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1758 (gomp_barrier_init): Remove init of waiters, lock fields.
1759 (gomp_team_barrier_wake): Remove prototype, add new static inline
1762 2022-12-21 Jakub Jelinek <jakub@redhat.com>
1765 * testsuite/libgomp.c++/pr108180.C: New test.
1767 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
1769 PR libfortran/108056
1770 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1771 accidentally added file.
1773 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
1775 PR libfortran/108056
1776 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1778 2022-12-14 Julian Brown <julian@codesourcery.com>
1780 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1783 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
1785 * libgomp.h (struct target_mem_desc): Predeclare; move
1786 below after 'reverse_splay_tree_node' and add rev_array
1788 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1789 (reverse_splay_tree_node, reverse_splay_tree,
1790 reverse_splay_tree_key): New typedef.
1791 (struct gomp_device_descr): Add mem_map_rev member.
1792 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1793 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1794 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1795 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1796 splay_tree_callback but returning int not void.
1797 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1798 taking splay_tree_callback_stop as argument.
1799 * splay-tree.c (splay_tree_foreach_internal_lazy,
1800 splay_tree_foreach_lazy): New; but early exit if callback returns
1802 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1803 (gomp_map_lookup_rev): New.
1804 (gomp_load_image_to_device): Handle reverse-offload function
1806 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1807 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1808 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1809 gomp_map_cdata_lookup): New auxiliary structs and functions for
1811 (gomp_target_rev): Implement reverse offloading and its mapping.
1812 (gomp_target_init): Init current_device.mem_map_rev.root.
1813 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1814 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1815 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1816 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1817 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1818 mapping of on-device allocated variables.
1820 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
1822 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1823 item about 'align'; mark clause as 'Y' and directive as 'N'.
1824 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1825 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1827 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1829 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1830 allow processing of device-specific values.
1831 (omp_set_teams_thread_limit): Likewise.
1833 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1834 (omp_set_teams_thread_limit): Likewise.
1836 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1838 (omp_set_teams_thread_limit): Likewise.
1839 * icv.c (omp_set_teams_thread_limit): Removed.
1840 (omp_get_teams_thread_limit): Likewise.
1842 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1843 to the limitation of the number of teams.
1844 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1845 the number of teams by twice the number of compute units.
1846 (parse_target_attributes): Limit the number of teams on gcn offload
1848 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1850 (gomp_load_image_to_device): Added a size check for the ICVs struct
1852 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1853 copy back the ICV values from device to host.
1854 (GOMP_target_ext): Update the number of teams and threads in the kernel
1855 args also considering device-specific values.
1856 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1857 of OMP_TEAMS_THREAD_LIMIT from the environment.
1858 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1859 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1860 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1861 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1862 * testsuite/libgomp.fortran/icv-5.f90: New test.
1863 * testsuite/libgomp.fortran/icv-6.f90: New test.
1865 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
1867 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1868 (TR11): Add missing '@tab N @tab'.
1870 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
1872 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1874 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1876 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1877 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1878 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1879 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1880 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1881 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1882 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1884 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
1886 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1888 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1890 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1891 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1892 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1893 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1895 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1897 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1898 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1899 as valid and the code having no reverse-offload code.
1900 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1902 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1904 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1905 and status for Technical Report (TR) 11.
1907 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
1909 * config/gcn/libgomp-gcn.h (struct output):
1910 Remove 'msg_u64' from the union, change
1911 value_u64[2] to value_u64[6].
1912 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1913 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1916 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
1918 * config/gcn/libgomp-gcn.h: New file; contains
1919 struct output, declared previously in plugin-gcn.c.
1920 * config/gcn/target.c: Include it.
1921 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1922 (GOMP_target_ext): Handle reverse offload.
1923 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1924 (struct kernargs): Replace struct def by the one
1925 from libgomp-gcn.h for output_data.
1926 (process_reverse_offload): New.
1927 (console_output): Call it.
1929 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
1930 Andrew Stubbs <ams@codesourcery.com>
1932 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1933 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1935 2022-11-14 Martin Liska <mliska@suse.cz>
1938 2022-11-14 Martin Liska <mliska@suse.cz>
1940 * doc/amd-radeon-gcn.rst: New file.
1941 * doc/conf.py: New file.
1942 * doc/copyright.rst: New file.
1943 * doc/cuda-streams-usage.rst: New file.
1944 * doc/enabling-openacc.rst: New file.
1945 * doc/enabling-openmp.rst: New file.
1946 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1947 * doc/first-invocation-openacc-library-api.rst: New file.
1948 * doc/funding.rst: New file.
1949 * doc/general-public-license-3.rst: New file.
1950 * doc/gnu-free-documentation-license.rst: New file.
1951 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1952 * doc/index.rst: New file.
1953 * doc/indices-and-tables.rst: New file.
1954 * doc/introduction.rst: New file.
1955 * doc/memory-allocation-with-libmemkind.rst: New file.
1956 * doc/nvptx.rst: New file.
1957 * doc/offload-target-specifics.rst: New file.
1958 * doc/openacc-environment-variables.rst: New file.
1959 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1960 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1961 * doc/openacc-environment-variables/accproflib.rst: New file.
1962 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1963 * doc/openacc-introduction.rst: New file.
1964 * doc/openacc-library-and-environment-variables.rst: New file.
1965 * doc/openacc-library-interoperability.rst: New file.
1966 * doc/openacc-profiling-interface.rst: New file.
1967 * doc/openacc-runtime-library-routines.rst: New file.
1968 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1969 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1970 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1971 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1972 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1973 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1974 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1975 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1976 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1977 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1978 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1979 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1980 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1981 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1982 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1983 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1984 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1985 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1986 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1987 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1988 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1989 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1990 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1991 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1992 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1993 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1994 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1995 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1996 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1997 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1998 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1999 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2000 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2001 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2002 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2003 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2004 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2005 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2006 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2007 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2008 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2009 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2010 * doc/openmp-context-selectors.rst: New file.
2011 * doc/openmp-environment-variables.rst: New file.
2012 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2013 * doc/openmp-environment-variables/gompdebug.rst: New file.
2014 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2015 * doc/openmp-environment-variables/gompspincount.rst: New file.
2016 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2017 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2018 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2019 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2020 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2021 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2022 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2023 * doc/openmp-environment-variables/ompnested.rst: New file.
2024 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2025 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2026 * doc/openmp-environment-variables/ompplaces.rst: New file.
2027 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2028 * doc/openmp-environment-variables/ompschedule.rst: New file.
2029 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2030 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2031 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2032 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2033 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2034 * doc/openmp-implementation-specifics.rst: New file.
2035 * doc/openmp-implementation-status.rst: New file.
2036 * doc/openmp-implementation-status/openmp-45.rst: New file.
2037 * doc/openmp-implementation-status/openmp-50.rst: New file.
2038 * doc/openmp-implementation-status/openmp-51.rst: New file.
2039 * doc/openmp-implementation-status/openmp-52.rst: New file.
2040 * doc/openmp-runtime-library-routines.rst: New file.
2041 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2042 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2043 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2044 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2045 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2046 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2047 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2048 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2049 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2050 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2051 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2052 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2053 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2054 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2055 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2056 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2057 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2058 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2059 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2060 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2061 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2062 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2063 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2064 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2065 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2066 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2067 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2068 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2069 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2070 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2071 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2072 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2073 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2074 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2075 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2076 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2077 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2078 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2079 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2080 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2081 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2082 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2083 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2084 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2085 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2086 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2087 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2088 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2089 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2090 * doc/reporting-bugs.rst: New file.
2091 * doc/the-libgomp-abi.rst: New file.
2092 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2093 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2094 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2095 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2097 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2098 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2099 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2100 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2101 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2102 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2103 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2104 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2105 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2106 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2107 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2109 2022-11-14 Martin Liska <mliska@suse.cz>
2112 2022-11-14 Martin Liska <mliska@suse.cz>
2114 * Makefile.in: Support Sphinx based documentation.
2116 2022-11-14 Martin Liska <mliska@suse.cz>
2119 2022-11-14 Martin Liska <mliska@suse.cz>
2121 * libgomp.texi: Removed.
2123 2022-11-14 Martin Liska <mliska@suse.cz>
2126 2022-11-14 Martin Liska <mliska@suse.cz>
2128 * Makefile.in: Support --with-sphinx-build.
2129 * configure.ac: Likewise..
2130 * configure: Regenerate.
2132 2022-11-14 Martin Liska <mliska@suse.cz>
2135 2022-11-09 Martin Liska <mliska@suse.cz>
2137 * Makefile.in: Build info pages conditionally.
2139 2022-11-14 Martin Liska <mliska@suse.cz>
2142 2022-11-14 Martin Liska <mliska@suse.cz>
2144 * doc/amd-radeon-gcn.rst:
2145 Add trailing newline.
2146 * doc/copyright.rst:
2147 Add trailing newline.
2148 * doc/cuda-streams-usage.rst:
2149 Add trailing newline.
2150 * doc/enabling-openacc.rst:
2151 Add trailing newline.
2152 * doc/enabling-openmp.rst:
2153 Add trailing newline.
2154 * doc/first-invocation-nvidia-cublas-library-api.rst:
2155 Add trailing newline.
2156 * doc/first-invocation-openacc-library-api.rst:
2157 Add trailing newline.
2159 Add trailing newline.
2160 * doc/general-public-license-3.rst:
2161 Add trailing newline.
2162 * doc/gnu-free-documentation-license.rst:
2163 Add trailing newline.
2164 * doc/implementation-status-and-implementation-defined-behavior.rst:
2165 Add trailing newline.
2167 Add trailing newline.
2168 * doc/indices-and-tables.rst:
2169 Add trailing newline.
2170 * doc/introduction.rst:
2171 Add trailing newline.
2172 * doc/memory-allocation-with-libmemkind.rst:
2173 Add trailing newline.
2175 Add trailing newline.
2176 * doc/offload-target-specifics.rst:
2177 Add trailing newline.
2178 * doc/openacc-environment-variables.rst:
2179 Add trailing newline.
2180 * doc/openacc-environment-variables/accdevicenum.rst:
2181 Add trailing newline.
2182 * doc/openacc-environment-variables/accdevicetype.rst:
2183 Add trailing newline.
2184 * doc/openacc-environment-variables/accproflib.rst:
2185 Add trailing newline.
2186 * doc/openacc-environment-variables/gccaccnotify.rst:
2187 Add trailing newline.
2188 * doc/openacc-introduction.rst:
2189 Add trailing newline.
2190 * doc/openacc-library-and-environment-variables.rst:
2191 Add trailing newline.
2192 * doc/openacc-library-interoperability.rst:
2193 Add trailing newline.
2194 * doc/openacc-profiling-interface.rst:
2195 Add trailing newline.
2196 * doc/openacc-runtime-library-routines.rst:
2197 Add trailing newline.
2198 * doc/openacc-runtime-library-routines/accasynctest.rst:
2199 Add trailing newline.
2200 * doc/openacc-runtime-library-routines/accasynctestall.rst:
2201 Add trailing newline.
2202 * doc/openacc-runtime-library-routines/accattach.rst:
2203 Add trailing newline.
2204 * doc/openacc-runtime-library-routines/acccopyin.rst:
2205 Add trailing newline.
2206 * doc/openacc-runtime-library-routines/acccopyout.rst:
2207 Add trailing newline.
2208 * doc/openacc-runtime-library-routines/acccreate.rst:
2209 Add trailing newline.
2210 * doc/openacc-runtime-library-routines/accdelete.rst:
2211 Add trailing newline.
2212 * doc/openacc-runtime-library-routines/accdetach.rst:
2213 Add trailing newline.
2214 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2215 Add trailing newline.
2216 * doc/openacc-runtime-library-routines/accfree.rst:
2217 Add trailing newline.
2218 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2219 Add trailing newline.
2220 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2221 Add trailing newline.
2222 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2223 Add trailing newline.
2224 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2225 Add trailing newline.
2226 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2227 Add trailing newline.
2228 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2229 Add trailing newline.
2230 * doc/openacc-runtime-library-routines/accgetproperty.rst:
2231 Add trailing newline.
2232 * doc/openacc-runtime-library-routines/acchostptr.rst:
2233 Add trailing newline.
2234 * doc/openacc-runtime-library-routines/accinit.rst:
2235 Add trailing newline.
2236 * doc/openacc-runtime-library-routines/accispresent.rst:
2237 Add trailing newline.
2238 * doc/openacc-runtime-library-routines/accmalloc.rst:
2239 Add trailing newline.
2240 * doc/openacc-runtime-library-routines/accmapdata.rst:
2241 Add trailing newline.
2242 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2243 Add trailing newline.
2244 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2245 Add trailing newline.
2246 * doc/openacc-runtime-library-routines/accondevice.rst:
2247 Add trailing newline.
2248 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2249 Add trailing newline.
2250 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2251 Add trailing newline.
2252 * doc/openacc-runtime-library-routines/accproflookup.rst:
2253 Add trailing newline.
2254 * doc/openacc-runtime-library-routines/accprofregister.rst:
2255 Add trailing newline.
2256 * doc/openacc-runtime-library-routines/accprofunregister.rst:
2257 Add trailing newline.
2258 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2259 Add trailing newline.
2260 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2261 Add trailing newline.
2262 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2263 Add trailing newline.
2264 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2265 Add trailing newline.
2266 * doc/openacc-runtime-library-routines/accshutdown.rst:
2267 Add trailing newline.
2268 * doc/openacc-runtime-library-routines/accunmapdata.rst:
2269 Add trailing newline.
2270 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2271 Add trailing newline.
2272 * doc/openacc-runtime-library-routines/accupdateself.rst:
2273 Add trailing newline.
2274 * doc/openacc-runtime-library-routines/accwait.rst:
2275 Add trailing newline.
2276 * doc/openacc-runtime-library-routines/accwaitall.rst:
2277 Add trailing newline.
2278 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2279 Add trailing newline.
2280 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2281 Add trailing newline.
2282 * doc/openmp-context-selectors.rst:
2283 Add trailing newline.
2284 * doc/openmp-environment-variables.rst:
2285 Add trailing newline.
2286 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2287 Add trailing newline.
2288 * doc/openmp-environment-variables/gompdebug.rst:
2289 Add trailing newline.
2290 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2291 Add trailing newline.
2292 * doc/openmp-environment-variables/gompspincount.rst:
2293 Add trailing newline.
2294 * doc/openmp-environment-variables/gompstacksize.rst:
2295 Add trailing newline.
2296 * doc/openmp-environment-variables/ompcancellation.rst:
2297 Add trailing newline.
2298 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2299 Add trailing newline.
2300 * doc/openmp-environment-variables/ompdisplayenv.rst:
2301 Add trailing newline.
2302 * doc/openmp-environment-variables/ompdynamic.rst:
2303 Add trailing newline.
2304 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2305 Add trailing newline.
2306 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2307 Add trailing newline.
2308 * doc/openmp-environment-variables/ompnested.rst:
2309 Add trailing newline.
2310 * doc/openmp-environment-variables/ompnumteams.rst:
2311 Add trailing newline.
2312 * doc/openmp-environment-variables/ompnumthreads.rst:
2313 Add trailing newline.
2314 * doc/openmp-environment-variables/ompplaces.rst:
2315 Add trailing newline.
2316 * doc/openmp-environment-variables/ompprocbind.rst:
2317 Add trailing newline.
2318 * doc/openmp-environment-variables/ompschedule.rst:
2319 Add trailing newline.
2320 * doc/openmp-environment-variables/ompstacksize.rst:
2321 Add trailing newline.
2322 * doc/openmp-environment-variables/omptargetoffload.rst:
2323 Add trailing newline.
2324 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2325 Add trailing newline.
2326 * doc/openmp-environment-variables/ompthreadlimit.rst:
2327 Add trailing newline.
2328 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2329 Add trailing newline.
2330 * doc/openmp-implementation-specifics.rst:
2331 Add trailing newline.
2332 * doc/openmp-implementation-status.rst:
2333 Add trailing newline.
2334 * doc/openmp-implementation-status/openmp-45.rst:
2335 Add trailing newline.
2336 * doc/openmp-implementation-status/openmp-50.rst:
2337 Add trailing newline.
2338 * doc/openmp-implementation-status/openmp-51.rst:
2339 Add trailing newline.
2340 * doc/openmp-implementation-status/openmp-52.rst:
2341 Add trailing newline.
2342 * doc/openmp-runtime-library-routines.rst:
2343 Add trailing newline.
2344 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2345 Add trailing newline.
2346 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2347 Add trailing newline.
2348 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2349 Add trailing newline.
2350 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2351 Add trailing newline.
2352 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2353 Add trailing newline.
2354 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2355 Add trailing newline.
2356 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2357 Add trailing newline.
2358 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2359 Add trailing newline.
2360 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2361 Add trailing newline.
2362 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2363 Add trailing newline.
2364 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2365 Add trailing newline.
2366 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2367 Add trailing newline.
2368 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2369 Add trailing newline.
2370 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2371 Add trailing newline.
2372 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2373 Add trailing newline.
2374 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2375 Add trailing newline.
2376 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2377 Add trailing newline.
2378 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2379 Add trailing newline.
2380 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2381 Add trailing newline.
2382 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2383 Add trailing newline.
2384 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2385 Add trailing newline.
2386 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2387 Add trailing newline.
2388 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2389 Add trailing newline.
2390 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2391 Add trailing newline.
2392 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2393 Add trailing newline.
2394 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2395 Add trailing newline.
2396 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2397 Add trailing newline.
2398 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2399 Add trailing newline.
2400 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2401 Add trailing newline.
2402 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2403 Add trailing newline.
2404 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2405 Add trailing newline.
2406 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2407 Add trailing newline.
2408 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2409 Add trailing newline.
2410 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2411 Add trailing newline.
2412 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2413 Add trailing newline.
2414 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2415 Add trailing newline.
2416 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2417 Add trailing newline.
2418 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2419 Add trailing newline.
2420 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2421 Add trailing newline.
2422 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2423 Add trailing newline.
2424 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2425 Add trailing newline.
2426 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2427 Add trailing newline.
2428 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2429 Add trailing newline.
2430 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2431 Add trailing newline.
2432 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2433 Add trailing newline.
2434 * doc/openmp-runtime-library-routines/omptestlock.rst:
2435 Add trailing newline.
2436 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2437 Add trailing newline.
2438 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2439 Add trailing newline.
2440 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2441 Add trailing newline.
2442 * doc/reporting-bugs.rst:
2443 Add trailing newline.
2444 * doc/the-libgomp-abi.rst:
2445 Add trailing newline.
2446 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2447 Add trailing newline.
2448 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2449 Add trailing newline.
2450 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2451 Add trailing newline.
2452 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2453 Add trailing newline.
2454 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2455 Add trailing newline.
2456 * doc/the-libgomp-abi/implementing-for-construct.rst:
2457 Add trailing newline.
2458 * doc/the-libgomp-abi/implementing-master-construct.rst:
2459 Add trailing newline.
2460 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2461 Add trailing newline.
2462 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2463 Add trailing newline.
2464 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2465 Add trailing newline.
2466 * doc/the-libgomp-abi/implementing-private-clause.rst:
2467 Add trailing newline.
2468 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2469 Add trailing newline.
2470 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2471 Add trailing newline.
2472 * doc/the-libgomp-abi/implementing-single-construct.rst:
2473 Add trailing newline.
2474 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2475 Add trailing newline.
2477 2022-11-14 Martin Liska <mliska@suse.cz>
2480 2022-11-09 Martin Liska <mliska@suse.cz>
2482 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2484 2022-11-14 Martin Liska <mliska@suse.cz>
2487 2022-11-14 Martin Liska <mliska@suse.cz>
2489 * doc/conf.py: Add newline at last line.
2491 2022-11-14 Martin Liska <mliska@suse.cz>
2494 2022-11-14 Martin Liska <mliska@suse.cz>
2497 * configure: Regenerate.
2498 * configure.ac: Always set sphinx-build.
2500 2022-11-13 Martin Liska <mliska@suse.cz>
2503 * configure: Regenerate.
2504 * configure.ac: Always set sphinx-build.
2506 2022-11-12 Jakub Jelinek <jakub@redhat.com>
2509 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
2510 unsigned long. Change type of upper from unsigned to unsigned long.
2512 2022-11-10 Martin Liska <mliska@suse.cz>
2514 * doc/conf.py: Add newline at last line.
2516 2022-11-09 Martin Liska <mliska@suse.cz>
2518 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2520 2022-11-09 Martin Liska <mliska@suse.cz>
2522 * doc/amd-radeon-gcn.rst:
2523 Add trailing newline.
2524 * doc/copyright.rst:
2525 Add trailing newline.
2526 * doc/cuda-streams-usage.rst:
2527 Add trailing newline.
2528 * doc/enabling-openacc.rst:
2529 Add trailing newline.
2530 * doc/enabling-openmp.rst:
2531 Add trailing newline.
2532 * doc/first-invocation-nvidia-cublas-library-api.rst:
2533 Add trailing newline.
2534 * doc/first-invocation-openacc-library-api.rst:
2535 Add trailing newline.
2537 Add trailing newline.
2538 * doc/general-public-license-3.rst:
2539 Add trailing newline.
2540 * doc/gnu-free-documentation-license.rst:
2541 Add trailing newline.
2542 * doc/implementation-status-and-implementation-defined-behavior.rst:
2543 Add trailing newline.
2545 Add trailing newline.
2546 * doc/indices-and-tables.rst:
2547 Add trailing newline.
2548 * doc/introduction.rst:
2549 Add trailing newline.
2550 * doc/memory-allocation-with-libmemkind.rst:
2551 Add trailing newline.
2553 Add trailing newline.
2554 * doc/offload-target-specifics.rst:
2555 Add trailing newline.
2556 * doc/openacc-environment-variables.rst:
2557 Add trailing newline.
2558 * doc/openacc-environment-variables/accdevicenum.rst:
2559 Add trailing newline.
2560 * doc/openacc-environment-variables/accdevicetype.rst:
2561 Add trailing newline.
2562 * doc/openacc-environment-variables/accproflib.rst:
2563 Add trailing newline.
2564 * doc/openacc-environment-variables/gccaccnotify.rst:
2565 Add trailing newline.
2566 * doc/openacc-introduction.rst:
2567 Add trailing newline.
2568 * doc/openacc-library-and-environment-variables.rst:
2569 Add trailing newline.
2570 * doc/openacc-library-interoperability.rst:
2571 Add trailing newline.
2572 * doc/openacc-profiling-interface.rst:
2573 Add trailing newline.
2574 * doc/openacc-runtime-library-routines.rst:
2575 Add trailing newline.
2576 * doc/openacc-runtime-library-routines/accasynctest.rst:
2577 Add trailing newline.
2578 * doc/openacc-runtime-library-routines/accasynctestall.rst:
2579 Add trailing newline.
2580 * doc/openacc-runtime-library-routines/accattach.rst:
2581 Add trailing newline.
2582 * doc/openacc-runtime-library-routines/acccopyin.rst:
2583 Add trailing newline.
2584 * doc/openacc-runtime-library-routines/acccopyout.rst:
2585 Add trailing newline.
2586 * doc/openacc-runtime-library-routines/acccreate.rst:
2587 Add trailing newline.
2588 * doc/openacc-runtime-library-routines/accdelete.rst:
2589 Add trailing newline.
2590 * doc/openacc-runtime-library-routines/accdetach.rst:
2591 Add trailing newline.
2592 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2593 Add trailing newline.
2594 * doc/openacc-runtime-library-routines/accfree.rst:
2595 Add trailing newline.
2596 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2597 Add trailing newline.
2598 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2599 Add trailing newline.
2600 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2601 Add trailing newline.
2602 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2603 Add trailing newline.
2604 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2605 Add trailing newline.
2606 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2607 Add trailing newline.
2608 * doc/openacc-runtime-library-routines/accgetproperty.rst:
2609 Add trailing newline.
2610 * doc/openacc-runtime-library-routines/acchostptr.rst:
2611 Add trailing newline.
2612 * doc/openacc-runtime-library-routines/accinit.rst:
2613 Add trailing newline.
2614 * doc/openacc-runtime-library-routines/accispresent.rst:
2615 Add trailing newline.
2616 * doc/openacc-runtime-library-routines/accmalloc.rst:
2617 Add trailing newline.
2618 * doc/openacc-runtime-library-routines/accmapdata.rst:
2619 Add trailing newline.
2620 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2621 Add trailing newline.
2622 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2623 Add trailing newline.
2624 * doc/openacc-runtime-library-routines/accondevice.rst:
2625 Add trailing newline.
2626 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2627 Add trailing newline.
2628 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2629 Add trailing newline.
2630 * doc/openacc-runtime-library-routines/accproflookup.rst:
2631 Add trailing newline.
2632 * doc/openacc-runtime-library-routines/accprofregister.rst:
2633 Add trailing newline.
2634 * doc/openacc-runtime-library-routines/accprofunregister.rst:
2635 Add trailing newline.
2636 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2637 Add trailing newline.
2638 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2639 Add trailing newline.
2640 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2641 Add trailing newline.
2642 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2643 Add trailing newline.
2644 * doc/openacc-runtime-library-routines/accshutdown.rst:
2645 Add trailing newline.
2646 * doc/openacc-runtime-library-routines/accunmapdata.rst:
2647 Add trailing newline.
2648 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2649 Add trailing newline.
2650 * doc/openacc-runtime-library-routines/accupdateself.rst:
2651 Add trailing newline.
2652 * doc/openacc-runtime-library-routines/accwait.rst:
2653 Add trailing newline.
2654 * doc/openacc-runtime-library-routines/accwaitall.rst:
2655 Add trailing newline.
2656 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2657 Add trailing newline.
2658 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2659 Add trailing newline.
2660 * doc/openmp-context-selectors.rst:
2661 Add trailing newline.
2662 * doc/openmp-environment-variables.rst:
2663 Add trailing newline.
2664 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2665 Add trailing newline.
2666 * doc/openmp-environment-variables/gompdebug.rst:
2667 Add trailing newline.
2668 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2669 Add trailing newline.
2670 * doc/openmp-environment-variables/gompspincount.rst:
2671 Add trailing newline.
2672 * doc/openmp-environment-variables/gompstacksize.rst:
2673 Add trailing newline.
2674 * doc/openmp-environment-variables/ompcancellation.rst:
2675 Add trailing newline.
2676 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2677 Add trailing newline.
2678 * doc/openmp-environment-variables/ompdisplayenv.rst:
2679 Add trailing newline.
2680 * doc/openmp-environment-variables/ompdynamic.rst:
2681 Add trailing newline.
2682 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2683 Add trailing newline.
2684 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2685 Add trailing newline.
2686 * doc/openmp-environment-variables/ompnested.rst:
2687 Add trailing newline.
2688 * doc/openmp-environment-variables/ompnumteams.rst:
2689 Add trailing newline.
2690 * doc/openmp-environment-variables/ompnumthreads.rst:
2691 Add trailing newline.
2692 * doc/openmp-environment-variables/ompplaces.rst:
2693 Add trailing newline.
2694 * doc/openmp-environment-variables/ompprocbind.rst:
2695 Add trailing newline.
2696 * doc/openmp-environment-variables/ompschedule.rst:
2697 Add trailing newline.
2698 * doc/openmp-environment-variables/ompstacksize.rst:
2699 Add trailing newline.
2700 * doc/openmp-environment-variables/omptargetoffload.rst:
2701 Add trailing newline.
2702 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2703 Add trailing newline.
2704 * doc/openmp-environment-variables/ompthreadlimit.rst:
2705 Add trailing newline.
2706 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2707 Add trailing newline.
2708 * doc/openmp-implementation-specifics.rst:
2709 Add trailing newline.
2710 * doc/openmp-implementation-status.rst:
2711 Add trailing newline.
2712 * doc/openmp-implementation-status/openmp-45.rst:
2713 Add trailing newline.
2714 * doc/openmp-implementation-status/openmp-50.rst:
2715 Add trailing newline.
2716 * doc/openmp-implementation-status/openmp-51.rst:
2717 Add trailing newline.
2718 * doc/openmp-implementation-status/openmp-52.rst:
2719 Add trailing newline.
2720 * doc/openmp-runtime-library-routines.rst:
2721 Add trailing newline.
2722 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2723 Add trailing newline.
2724 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2725 Add trailing newline.
2726 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2727 Add trailing newline.
2728 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2729 Add trailing newline.
2730 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2731 Add trailing newline.
2732 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2733 Add trailing newline.
2734 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2735 Add trailing newline.
2736 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2737 Add trailing newline.
2738 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2739 Add trailing newline.
2740 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2741 Add trailing newline.
2742 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2743 Add trailing newline.
2744 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2745 Add trailing newline.
2746 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2747 Add trailing newline.
2748 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2749 Add trailing newline.
2750 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2751 Add trailing newline.
2752 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2753 Add trailing newline.
2754 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2755 Add trailing newline.
2756 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2757 Add trailing newline.
2758 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2759 Add trailing newline.
2760 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2761 Add trailing newline.
2762 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2763 Add trailing newline.
2764 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2765 Add trailing newline.
2766 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2767 Add trailing newline.
2768 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2769 Add trailing newline.
2770 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2771 Add trailing newline.
2772 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2773 Add trailing newline.
2774 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2775 Add trailing newline.
2776 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2777 Add trailing newline.
2778 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2779 Add trailing newline.
2780 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2781 Add trailing newline.
2782 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2783 Add trailing newline.
2784 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2785 Add trailing newline.
2786 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2787 Add trailing newline.
2788 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2789 Add trailing newline.
2790 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2791 Add trailing newline.
2792 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2793 Add trailing newline.
2794 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2795 Add trailing newline.
2796 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2797 Add trailing newline.
2798 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2799 Add trailing newline.
2800 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2801 Add trailing newline.
2802 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2803 Add trailing newline.
2804 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2805 Add trailing newline.
2806 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2807 Add trailing newline.
2808 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2809 Add trailing newline.
2810 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2811 Add trailing newline.
2812 * doc/openmp-runtime-library-routines/omptestlock.rst:
2813 Add trailing newline.
2814 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2815 Add trailing newline.
2816 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2817 Add trailing newline.
2818 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2819 Add trailing newline.
2820 * doc/reporting-bugs.rst:
2821 Add trailing newline.
2822 * doc/the-libgomp-abi.rst:
2823 Add trailing newline.
2824 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2825 Add trailing newline.
2826 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2827 Add trailing newline.
2828 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2829 Add trailing newline.
2830 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2831 Add trailing newline.
2832 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2833 Add trailing newline.
2834 * doc/the-libgomp-abi/implementing-for-construct.rst:
2835 Add trailing newline.
2836 * doc/the-libgomp-abi/implementing-master-construct.rst:
2837 Add trailing newline.
2838 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2839 Add trailing newline.
2840 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2841 Add trailing newline.
2842 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2843 Add trailing newline.
2844 * doc/the-libgomp-abi/implementing-private-clause.rst:
2845 Add trailing newline.
2846 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2847 Add trailing newline.
2848 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2849 Add trailing newline.
2850 * doc/the-libgomp-abi/implementing-single-construct.rst:
2851 Add trailing newline.
2852 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2853 Add trailing newline.
2855 2022-11-09 Martin Liska <mliska@suse.cz>
2857 * Makefile.in: Build info pages conditionally.
2859 2022-11-09 Martin Liska <mliska@suse.cz>
2861 * Makefile.in: Support --with-sphinx-build.
2862 * configure.ac: Likewise..
2863 * configure: Regenerate.
2865 2022-11-09 Martin Liska <mliska@suse.cz>
2867 * libgomp.texi: Removed.
2869 2022-11-09 Martin Liska <mliska@suse.cz>
2871 * Makefile.in: Support Sphinx based documentation.
2873 2022-11-09 Martin Liska <mliska@suse.cz>
2875 * doc/amd-radeon-gcn.rst: New file.
2876 * doc/conf.py: New file.
2877 * doc/copyright.rst: New file.
2878 * doc/cuda-streams-usage.rst: New file.
2879 * doc/enabling-openacc.rst: New file.
2880 * doc/enabling-openmp.rst: New file.
2881 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2882 * doc/first-invocation-openacc-library-api.rst: New file.
2883 * doc/funding.rst: New file.
2884 * doc/general-public-license-3.rst: New file.
2885 * doc/gnu-free-documentation-license.rst: New file.
2886 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2887 * doc/index.rst: New file.
2888 * doc/indices-and-tables.rst: New file.
2889 * doc/introduction.rst: New file.
2890 * doc/memory-allocation-with-libmemkind.rst: New file.
2891 * doc/nvptx.rst: New file.
2892 * doc/offload-target-specifics.rst: New file.
2893 * doc/openacc-environment-variables.rst: New file.
2894 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2895 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2896 * doc/openacc-environment-variables/accproflib.rst: New file.
2897 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2898 * doc/openacc-introduction.rst: New file.
2899 * doc/openacc-library-and-environment-variables.rst: New file.
2900 * doc/openacc-library-interoperability.rst: New file.
2901 * doc/openacc-profiling-interface.rst: New file.
2902 * doc/openacc-runtime-library-routines.rst: New file.
2903 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2904 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2905 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2906 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2907 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2908 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2909 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2910 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2911 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2912 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2913 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2914 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2915 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2916 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2917 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2918 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2919 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2920 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2921 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2922 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2923 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2924 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2925 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2926 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2927 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2928 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2929 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2930 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2931 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2932 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2933 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2934 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2935 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2936 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2937 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2938 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2939 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2940 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2941 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2942 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2943 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2944 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2945 * doc/openmp-context-selectors.rst: New file.
2946 * doc/openmp-environment-variables.rst: New file.
2947 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2948 * doc/openmp-environment-variables/gompdebug.rst: New file.
2949 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2950 * doc/openmp-environment-variables/gompspincount.rst: New file.
2951 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2952 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2953 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2954 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2955 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2956 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2957 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2958 * doc/openmp-environment-variables/ompnested.rst: New file.
2959 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2960 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2961 * doc/openmp-environment-variables/ompplaces.rst: New file.
2962 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2963 * doc/openmp-environment-variables/ompschedule.rst: New file.
2964 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2965 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2966 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2967 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2968 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2969 * doc/openmp-implementation-specifics.rst: New file.
2970 * doc/openmp-implementation-status.rst: New file.
2971 * doc/openmp-implementation-status/openmp-45.rst: New file.
2972 * doc/openmp-implementation-status/openmp-50.rst: New file.
2973 * doc/openmp-implementation-status/openmp-51.rst: New file.
2974 * doc/openmp-implementation-status/openmp-52.rst: New file.
2975 * doc/openmp-runtime-library-routines.rst: New file.
2976 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2977 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2978 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2979 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2980 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2981 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2982 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2983 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2984 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2985 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2986 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2987 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2988 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2989 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2990 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2991 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2992 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2993 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2994 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2995 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2996 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2997 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2998 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2999 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
3000 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
3001 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
3002 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
3003 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
3004 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
3005 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
3006 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
3007 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
3008 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
3009 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
3010 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
3011 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
3012 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
3013 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
3014 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
3015 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
3016 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
3017 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
3018 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
3019 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
3020 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
3021 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
3022 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
3023 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
3024 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
3025 * doc/reporting-bugs.rst: New file.
3026 * doc/the-libgomp-abi.rst: New file.
3027 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
3028 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
3029 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
3030 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
3032 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
3033 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
3034 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
3035 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
3036 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
3037 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
3038 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
3039 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
3040 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
3041 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
3042 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
3044 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
3046 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
3047 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
3049 * plugin/configfrag.ac <enable_offload_targets>
3050 [*-intelmic-* | *-intelmicemul-*]: Remove.
3051 * configure: Regenerate.
3052 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
3054 (offload_target_to_openacc_device_type)
3055 [$offload_target = *-intelmic*]: Remove.
3056 (check_effective_target_offload_device_intel_mic)
3057 (check_effective_target_offload_device_any_intel_mic): Remove.
3058 * testsuite/libgomp.c-c++-common/on_device_arch.h
3059 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
3060 (any_device_arch_intel_mic): Remove.
3061 * testsuite/libgomp.c-c++-common/target-45.c: Remove
3062 'offload_device_any_intel_mic' XFAIL.
3063 * testsuite/libgomp.fortran/target10.f90: Likewise.
3065 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
3067 * testsuite/libgomp.fortran/target-11.f90: New test.
3068 * testsuite/libgomp.fortran/target-13.f90: New test.
3070 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
3074 * oacc-mem.c (goacc_enter_data_internal): Support
3075 OpenACC 'declare create' with Fortran allocatable arrays, part II.
3076 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
3078 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
3080 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
3083 * oacc-mem.c (goacc_enter_data_internal): Support
3084 OpenACC 'declare create' with Fortran allocatable arrays, part I.
3085 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
3087 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
3090 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
3092 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
3095 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
3097 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
3100 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
3101 Thomas Schwinge <thomas@codesourcery.com>
3103 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
3105 2022-10-28 Julian Brown <julian@codesourcery.com>
3106 Thomas Schwinge <thomas@codesourcery.com>
3109 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
3110 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
3111 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3112 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
3113 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3115 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
3117 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
3118 'ptx_dev->rev_data'.
3120 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
3122 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
3123 'static' for this variable.
3124 * config/nvptx/libgomp-nvptx.h: New file.
3125 * config/nvptx/target.c: Include it.
3126 (GOMP_ADDITIONAL_ICVS): Declare extern var.
3127 (GOMP_REV_OFFLOAD_VAR): Declare var.
3128 (GOMP_target_ext): Handle reverse offload.
3129 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
3130 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
3131 * target.c (gomp_target_rev): ... this new stub function.
3132 * libgomp.h (gomp_target_rev): Declare.
3133 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
3134 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
3135 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
3136 (struct ptx_device): Add rev_data member.
3137 (nvptx_open_device): Remove async_engines query, last used in
3138 r10-304-g1f4c5b9b; add unified-address assert check.
3139 (GOMP_OFFLOAD_get_num_devices): Claim unified address
3141 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
3142 offload functions exist. Make offload var available
3144 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
3145 (GOMP_OFFLOAD_run): Handle reverse offload.
3147 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
3149 PR tree-optimization/107195
3151 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
3154 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
3156 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
3158 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
3159 on_device_arch_gcn): New.
3160 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
3161 requires-4.c but using heap-allocated memory.
3163 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
3166 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
3168 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
3170 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
3171 '-foffload-options' syntax.
3173 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
3175 * testsuite/libgomp.fortran/task-7.f90: New test.
3176 * testsuite/libgomp.fortran/task-8.f90: New test.
3177 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
3178 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
3179 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
3180 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
3181 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
3183 2022-10-12 Jakub Jelinek <jakub@redhat.com>
3185 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
3186 in deprecation bullet.
3188 2022-10-12 Jakub Jelinek <jakub@redhat.com>
3190 * omp.h.in (omp_in_explicit_task): Declare.
3191 * omp_lib.h.in (omp_in_explicit_task): Likewise.
3192 * omp_lib.f90.in (omp_in_explicit_task): New interface.
3193 * libgomp.map (OMP_5.2): New symbol version, export
3194 omp_in_explicit_task and omp_in_explicit_task_.
3195 * task.c (omp_in_explicit_task): New function.
3196 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
3197 (omp_in_explicit_task_): New function.
3198 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
3199 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
3200 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
3201 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
3203 2022-10-12 Jakub Jelinek <jakub@redhat.com>
3205 * task.c (gomp_create_artificial_team): Fix up handling of invocations
3206 from within explicit task.
3207 * target.c (GOMP_target_ext): Likewise.
3208 * testsuite/libgomp.c/task-7.c: New test.
3209 * testsuite/libgomp.c/task-8.c: New test.
3210 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
3211 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
3213 2022-10-12 Martin Liska <mliska@suse.cz>
3215 * configure: Regenerate.
3217 2022-10-11 Olivier Hainque <hainque@adacore.com>
3218 Olivier Hainque <hainque@adacore.com>
3220 * configure: Regenerate.
3222 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
3224 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
3226 2022-10-04 Jakub Jelinek <jakub@redhat.com>
3228 * libgomp.texi (Support begin/end declare target syntax in C/C++):
3229 Mark as implemented.
3231 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
3234 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
3236 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
3238 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
3239 for C/C++. Remove duplicated 'begin declare target' entry.
3241 2022-09-24 Jakub Jelinek <jakub@redhat.com>
3244 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
3246 2022-09-14 Julian Brown <julian@codesourcery.com>
3248 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
3249 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
3250 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
3251 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
3252 test to here, make "run" test.
3254 2022-09-13 Jakub Jelinek <jakub@redhat.com>
3257 * env.c (get_icv_member_addr): Cast false to void * before assigning
3258 it to icv_addr[1], and comment the whole assignment out.
3260 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
3262 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
3265 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
3267 * libgomp.texi (Offload-Target Specifics: nvptx): Document
3268 that reverse offload requires >= -march=sm_35.
3269 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
3271 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3272 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
3273 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
3274 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
3275 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
3277 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
3279 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
3280 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
3282 2022-09-12 Jakub Jelinek <jakub@redhat.com>
3285 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
3286 (main): Avoid tests for which corresponding non-_ALL suffixed variable
3287 is in the environment, or for OMP_NUM_TEAMS on the device
3288 OMP_NUM_TEAMS_DEV_?.
3290 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
3292 * env.c (initialize_env): Include libiberty environ.h.
3294 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3296 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
3297 function address table '$offload_func_table' if rev_fn_table
3300 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3302 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
3303 .offload_func_table to populate rev_fn_table when requested.
3305 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3307 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
3308 'uint64_t **rev_fn_table' argument.
3309 * oacc-host.c (host_load_image): Likewise.
3310 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
3312 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3313 * target.c (gomp_load_image_to_device): Update call but pass
3316 2022-09-09 Jakub Jelinek <jakub@redhat.com>
3319 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
3320 char * for dest[1] initialization from params[1]. Formatting fixes.
3322 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
3325 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
3327 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
3329 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
3330 section; move OpenMP Context Selectors from ...
3331 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
3334 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
3336 * config/gcn/icv-device.c (omp_get_default_device): Return device-
3338 (omp_get_max_teams): Added for GCN devices.
3339 (omp_set_num_teams): Likewise.
3341 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
3343 (omp_get_max_teams): Added for NVPTX devices.
3344 (omp_set_num_teams): Likewise.
3346 * env.c (struct gomp_icv_list): New struct to store entries of initial
3348 (struct gomp_offload_icv_list): New struct to store entries of device-
3349 specific ICV values that are copied to the device and back.
3350 (struct gomp_default_icv_values): New struct to store default values of
3351 ICVs according to the OpenMP standard.
3352 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
3353 (print_env_var_error): Function that prints an error for invalid values
3355 (parse_unsigned_long_1): Removed getenv. Generalized.
3356 (parse_unsigned_long): Likewise.
3357 (parse_int_1): Likewise.
3358 (parse_int): Likewise.
3359 (parse_int_secure): Likewise.
3360 (parse_unsigned_long_list): Likewise.
3361 (parse_target_offload): Likewise.
3362 (parse_bind_var): Likewise.
3363 (parse_stacksize): Likewise.
3364 (parse_boolean): Likewise.
3365 (parse_wait_policy): Likewise.
3366 (parse_allocator): Likewise.
3367 (omp_display_env): Extended to output different variants of environment
3369 (print_schedule): New helper function for omp_display_env which prints
3370 the values of run_sched_var.
3371 (print_proc_bind): New helper function for omp_display_env which prints
3372 the values of proc_bind_var.
3373 (enum gomp_parse_type): Collection of types used for parsing environment
3375 (ENTRY): Preprocess string lengths of environment variables.
3376 (OMP_VAR_CNT): Preprocess table size.
3377 (OMP_HOST_VAR_CNT): Likewise.
3378 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
3380 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3381 (gomp_set_icv_flag): Sets a flag for a particular ICV.
3382 (print_device_specific_icvs): New helper function for omp_display_env to
3383 print device specific ICV values.
3384 (get_device_num): New helper function for parse_device_specific.
3385 Extracts the device number from an environment variable name.
3386 (get_icv_member_addr): Gets the memory address for a particular member
3388 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3389 (initialize_icvs): New function to initialize a gomp_initial_icvs
3391 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
3392 (startswith): Checks if a string starts with a given prefix.
3393 (initialize_env): Extended to parse the new syntax of environment
3395 * icv-device.c (omp_get_max_teams): Added.
3397 (omp_set_num_teams): Likewise.
3398 * icv.c (omp_set_num_teams): Moved to icv-device.c.
3399 (omp_get_max_teams): Likewise.
3401 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
3402 (GOMP_ADDITIONAL_ICVS): New target-side struct that
3403 holds the designated ICVs of the target device.
3404 * libgomp.h (enum gomp_icvs): Collection of ICVs.
3405 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
3407 (enum gomp_env_suffix): Collection of possible suffixes of environment
3409 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
3411 (struct gomp_default_icv):New struct to hold ICVs for which we need
3412 to store initial values.
3413 (struct gomp_icv_list): Definition of a linked list that is used for
3414 storing ICVs for the devices and also for _DEV, _ALL, and without
3416 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
3418 (struct gomp_offload_icv_list): Definition of a linked list that holds
3419 device-specific ICVs that are copied to devices.
3420 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3421 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3422 * libgomp.texi: Updated.
3423 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
3424 further ICVs from the offload image.
3425 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3426 * target.c (gomp_get_offload_icv_item): Get a list item of
3427 gomp_offload_icv_list.
3428 (get_gomp_offload_icvs): New. Returns the ICV values
3429 depending on the device num and the variable hierarchy.
3430 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
3431 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
3432 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
3433 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
3434 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
3435 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
3436 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
3438 2022-09-08 Jakub Jelinek <jakub@redhat.com>
3440 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
3442 * testsuite/libgomp.c/doacross-4.c: New test.
3443 * testsuite/libgomp.c/doacross-5.c: New test.
3444 * testsuite/libgomp.c/doacross-6.c: New test.
3445 * testsuite/libgomp.c/doacross-7.c: New test.
3447 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
3449 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
3451 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
3453 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
3454 refer to 'requires'.
3455 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
3456 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
3457 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
3458 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
3460 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
3462 PR middle-end/106548
3463 * testsuite/libgomp.c/linear-2.c: New test.
3465 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
3467 * splay-tree.h: Fix splay_* macro unsetting if
3468 splay_tree_prefix is defined.
3470 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
3472 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
3474 2022-07-29 Jakub Jelinek <jakub@redhat.com>
3476 PR middle-end/106449
3477 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
3479 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
3481 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
3483 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
3485 PR middle-end/101551
3486 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
3487 'offloading_enabled' diagnostics issue.
3489 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
3491 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
3492 '_Pragma' diagnostics verification.
3494 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
3496 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
3497 improved warning locations.
3498 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
3500 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
3502 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
3503 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
3504 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3505 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3506 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3508 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3510 * target.c (GOMP_offload_register, GOMP_offload_unregister):
3511 Denote as legacy entry points.
3512 * testsuite/lib/libgomp.exp
3513 (check_effective_target_offload_target_any): New proc.
3514 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
3515 'offload_target_any'.
3516 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3517 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3518 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3520 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3522 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3523 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3525 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3527 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3529 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
3531 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3533 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
3535 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3536 Jakub Jelinek <jakub@redhat.com>
3538 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3540 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3541 Chung-Lin Tang <cltang@codesourcery.com>
3542 Thomas Schwinge <thomas@codesourcery.com>
3544 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3545 omp_requires_mask arg.
3546 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3547 return -1 when device available but omp_requires_mask != 0.
3548 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3549 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3551 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3552 goacc_attach_host_thread_to_device, acc_get_num_devices,
3553 acc_set_device_num, get_property_any): Likewise.
3554 * target.c (omp_requires_mask): New global var.
3555 (gomp_requires_to_name): New.
3556 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3557 (gomp_target_init): Handle omp_requires_mask.
3558 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3559 (OpenMP 5.1): Add a missed item.
3560 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3561 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3562 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3563 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3564 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3565 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3566 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3567 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3568 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3569 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3570 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3571 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3572 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3573 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3574 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3575 * testsuite/libgomp.fortran/requires-1.f90: New test.
3577 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
3579 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3580 with fromto as implemented.
3582 2022-06-28 Martin Liska <mliska@suse.cz>
3584 * acinclude.m4: Fix typo in mold linker detection.
3585 * Makefile.in: Regenerate.
3586 * configure: Regenerate.
3588 2022-06-21 Jakub Jelinek <jakub@redhat.com>
3589 Paul Iannetta <piannetta@kalrayinc.com>
3592 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3594 2022-06-17 Martin Liska <mliska@suse.cz>
3596 * libgomp.texi: Add table header for new features of
3599 2022-06-15 Jakub Jelinek <jakub@redhat.com>
3601 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3602 q to ddress of an automatic variable. Use -5 instead of -1 in
3603 omp_get_mapped_ptr call. Add test with omp_initial_device.
3604 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3605 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
3606 Renumber stop arguments afterwards.
3608 2022-06-13 Jakub Jelinek <jakub@redhat.com>
3610 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3611 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3613 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3614 * target.c (resolve_device): Add remapped argument, handle
3615 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3616 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3617 if remapped, otherwise treat omp_initial_device that way. For
3618 omp_invalid_device, always emit gomp_fatal, even when
3619 OMP_TARGET_OFFLOAD isn't mandatory.
3620 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3621 GOMP_target_update, GOMP_target_update_ext,
3622 GOMP_target_enter_exit_data): Pass true as remapped argument to
3624 (omp_target_alloc, omp_target_free, omp_target_is_present,
3625 omp_target_memcpy_check, omp_target_associate_ptr,
3626 omp_target_disassociate_ptr, omp_get_mapped_ptr,
3627 omp_target_is_accessible): Pass false as remapped argument to
3628 resolve_device. Treat omp_initial_device the same as
3629 gomp_get_num_devices (). Don't bypass resolve_device calls if
3630 device_num is negative.
3631 (omp_pause_resource): Treat omp_initial_device the same as
3632 gomp_get_num_devices (). Call resolve_device.
3633 * icv-device.c (omp_set_default_device): Always set to device_num
3634 even when it is negative.
3635 * libgomp.texi: Document that Conforming device numbers,
3636 omp_initial_device and omp_invalid_device is implemented.
3637 * testsuite/libgomp.c/target-41.c (main): Add test with
3639 * testsuite/libgomp.c/target-45.c: New test.
3640 * testsuite/libgomp.c/target-46.c: New test.
3641 * testsuite/libgomp.c/target-47.c: New test.
3642 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3643 test with omp_initial_device. Use -5 instead of -1 for negative value
3645 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3646 Likewise. Reorder stop numbers.
3648 2022-06-10 Jakub Jelinek <jakub@redhat.com>
3650 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3651 rather than "libmemkind.so".
3653 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
3655 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3656 * plugin/configfrag.ac (--with-cuda-driver)
3657 (--with-cuda-driver-include, --with-cuda-driver-lib)
3658 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3659 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3661 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3662 (cuda_driver_lib): Remove.
3663 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3664 * Makefile.in: Regenerate.
3665 * configure: Likewise.
3666 * testsuite/Makefile.in: Likewise.
3668 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3670 * config/linux/allocator.c: Fix up #include directive.
3672 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3674 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3675 (enum gomp_memkind_kind): New type.
3676 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3678 (struct gomp_memkind_data): New type.
3679 (memkind_data, memkind_data_once): New variables.
3680 (gomp_init_memkind, gomp_get_memkind): New functions.
3681 (omp_init_allocator): Initialize data.memkind, don't fail for
3682 omp_high_bw_mem_space if libmemkind supports it.
3683 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3684 memkind support of LIBGOMP_USE_MEMKIND is defined.
3685 * config/linux/allocator.c: New file.
3687 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
3689 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3690 * testsuite/libgomp.fortran/scope-2.f90: New test.
3692 2022-06-02 David Malcolm <dmalcolm@redhat.com>
3694 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3696 2022-05-31 Jakub Jelinek <jakub@redhat.com>
3698 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3699 scope construct with allocate clause.
3700 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3701 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3703 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
3705 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3706 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3707 explicit 'to' and 'enter' clause.
3708 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3710 2022-05-28 Jakub Jelinek <jakub@redhat.com>
3713 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3714 defined(HAVE__ALIGNED_MALLOC) case.
3715 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3716 handling as last option before fallback instead of first.
3717 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3720 2022-05-27 Jakub Jelinek <jakub@redhat.com>
3722 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3724 * testsuite/libgomp.c/target-41.c: Likewise.
3726 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
3728 * libgomp.texi (Other new OpenMP 5.1 features): Add
3729 'begin declare target'.
3730 (Other new OpenMP 5.2 features): New.
3732 2022-05-25 Jakub Jelinek <jakub@redhat.com>
3734 * task.c (gomp_task_run_post_handle_dependers): If empty_task
3735 is the last task taskwait depend depends on, wake it up.
3736 Similarly if it is the last child of a taskgroup, use atomic
3737 store instead of decrement and awak taskgroup wait if any.
3738 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3740 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
3742 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3743 EF_AMDGPU_MACH_AMDGCN_GFX90a.
3744 (gcn_gfx90a_s): New.
3745 (isa_hsa_name): Support gfx90a.
3746 (isa_code): Likewise.
3748 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
3751 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3752 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3754 2022-05-24 Jakub Jelinek <jakub@redhat.com>
3757 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3758 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3759 * task.c (empty_task): New function.
3760 (gomp_task_run_post_handle_depend_hash): Declare earlier.
3761 (gomp_task_run_post_handle_depend): Declare.
3762 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3764 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3765 (GOMP_taskwait_depend_nowait): New function.
3766 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3768 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
3771 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3772 Support attach for GOMP_MAP_FIRSTPRIVATE.
3773 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3774 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3775 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3777 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3779 * libgomp.map: Added omp_target_memcpy_async and
3780 omp_target_memcpy_rect_async.
3781 * libgomp.texi: Both functions are now supported.
3782 * omp.h.in: Added omp_target_memcpy_async and
3783 omp_target_memcpy_rect_async.
3784 * omp_lib.f90.in: Added interfaces for both new functions.
3785 * omp_lib.h.in: Likewise.
3786 * target.c (ialias_redirect): Added for GOMP_task.
3787 (omp_target_memcpy): Restructured into check and copy part.
3788 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3789 omp_target_memcpy_async that checks requirements.
3790 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3791 omp_target_memcpy_async that performs the memcpy.
3792 (omp_target_memcpy_async_helper): New helper function that is used in
3793 omp_target_memcpy_async for the asynchronous task.
3794 (omp_target_memcpy_async): Added.
3795 (omp_target_memcpy_rect): Restructured into check and copy part.
3796 (omp_target_memcpy_rect_check): New helper function for
3797 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3799 (omp_target_memcpy_rect_copy): New helper function for
3800 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3802 (omp_target_memcpy_rect_async_helper): New helper function that is used
3803 in omp_target_memcpy_rect_async for the asynchronous task.
3804 (omp_target_memcpy_rect_async): Added.
3805 * task.c (ialias): Added for GOMP_task.
3806 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3807 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3808 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3809 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3810 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3811 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3812 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3813 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3815 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
3817 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3818 (OpenMP Context Selectors): Add missing comma.
3819 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3820 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3821 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3822 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3824 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3826 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3827 comment for omp_display_env feature.
3829 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3831 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3832 to document OpenMP context selectors.
3834 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3836 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3837 from bool to unsigned char.
3838 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3839 Ignore dependencies where
3840 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3841 rather than just task->depend[i].is_in && ent->is_in. Remember
3842 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3844 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3845 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3846 rather than just elem.is_in && ent->is_in.
3847 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3848 inoutset depend-kind.
3849 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3850 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3851 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3853 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3855 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3857 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3859 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3860 * testsuite/libgomp.fortran/depend-5.f90: New test.
3861 * testsuite/libgomp.fortran/depend-6.f90: New test.
3862 * testsuite/libgomp.fortran/depend-7.f90: New test.
3864 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3866 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3867 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3868 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3870 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3872 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3874 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3876 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3878 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3880 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3881 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3882 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3883 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3884 * Makefile.in: Regenerate.
3886 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3888 * Makefile.am (libgomp_la_LIBADD): Initialize.
3889 * plugin/configfrag.ac (DL_LIBS): New.
3890 (PLUGIN_GCN_LIBS): Remove.
3891 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3892 * plugin/Makefrag.am (libgomp_la_LIBADD)
3893 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3894 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3895 * Makefile.in: Regenerate.
3896 * config.h.in: Likewise.
3897 * configure: Likewise.
3898 * testsuite/Makefile.in: Likewise.
3900 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3902 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3903 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3904 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3905 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3906 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3907 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3908 * Makefile.in: Regenerate.
3909 * config.h.in: Likewise.
3910 * configure: Likewise.
3912 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3914 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3915 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3916 * Makefile.in: Regenerate.
3917 * config.h.in: Likewise.
3918 * configure: Likewise.
3919 * testsuite/Makefile.in: Likewise.
3921 2022-05-12 Jakub Jelinek <jakub@redhat.com>
3923 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3924 * task.c (gomp_init_task): Initialize depend_all_memory.
3925 (gomp_task_handle_depend): Handle omp_all_memory.
3926 (gomp_task_run_post_handle_depend_hash): Clear
3927 parent->depend_all_memory if equal to current task.
3928 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3929 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3930 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3931 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3933 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3935 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3936 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3937 * Makefile.in: Regenerate.
3938 * configure: Likewise.
3939 * testsuite/Makefile.in: Likewise.
3941 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3943 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3944 consider 'PLUGIN_GCN_CPPFLAGS'.
3945 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3946 'PLUGIN_GCN_LDFLAGS'.
3947 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3949 * Makefile.in: Regenerate.
3950 * configure: Likewise.
3951 * testsuite/Makefile.in: Likewise.
3953 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3955 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3956 (HSA_RUNTIME_LDFLAGS): Remove.
3957 * configure: Regenerate.
3959 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3961 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3962 'append always_ld_library_path ":$hsa_runtime_lib"'.
3963 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3965 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3967 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3968 multi-device testing.
3970 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3972 * libgomp.map: Added omp_target_is_accessible.
3973 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3974 * omp.h.in: Added omp_target_is_accessible.
3975 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3976 * omp_lib.h.in: Likewise.
3977 * target.c (omp_target_is_accessible): Added implementation of
3978 omp_target_is_accessible.
3979 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3980 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3982 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3984 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3986 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3988 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3990 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3992 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3994 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3996 * libgomp.map: Added omp_get_mapped_ptr.
3997 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3998 * omp.h.in: Added omp_get_mapped_ptr.
3999 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
4000 * omp_lib.h.in: Likewise.
4001 * target.c (omp_get_mapped_ptr): Added implementation of
4003 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
4004 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
4005 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
4006 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
4007 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
4008 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
4009 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
4010 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
4012 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
4015 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
4016 privatization scanning. For GCN offloading compilation, raise
4017 '-mgang-private-size'.
4019 2022-04-26 Jakub Jelinek <jakub@redhat.com>
4022 * work.c (gomp_init_work_share): Don't mask of adjustment for
4023 dynamic long long realignment if struct gomp_work_share has smaller
4024 alignof than long long.
4025 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
4026 struct gomp_work_share has smaller alignof than long long or if
4027 sizeof (struct gomp_work_share) is smaller than
4028 INLINE_ORDERED_TEAM_IDS_OFF.
4029 * loop_ull.c (GOMP_loop_ull_start): Likewise.
4030 * sections.c (GOMP_sections2_start): Likewise.
4032 2022-04-25 Jakub Jelinek <jakub@redhat.com>
4033 Thomas Schwinge <thomas@codesourcery.com>
4036 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
4038 2022-04-13 Jakub Jelinek <jakub@redhat.com>
4040 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
4042 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
4044 * plugin/cuda/cuda.h: Remove file.
4045 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
4046 "cuda/cuda.h" instead of <cuda.h>.
4047 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
4048 'PLUGIN_NVPTX_CPPFLAGS'.
4049 * configure: Regenerate.
4051 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
4053 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
4055 2022-04-04 Tom de Vries <tdevries@suse.de>
4057 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
4058 on_device_arch_nvptx instead of offload_target_nvptx.
4059 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4061 2022-04-01 Tom de Vries <tdevries@suse.de>
4063 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
4065 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4067 2022-04-01 Tom de Vries <tdevries@suse.de>
4069 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
4072 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
4073 Lulu Cheng <chenglulu@loongson.cn>
4075 * configure.tgt: Add LoongArch triplet.
4077 2022-03-28 Tom de Vries <tdevries@suse.de>
4079 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
4080 instead of /libexec/.
4081 * configure: Regenerate.
4083 2022-03-25 Tom de Vries <tdevries@suse.de>
4086 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
4088 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
4089 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
4091 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
4093 PR middle-end/104285
4094 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
4095 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
4096 * testsuite/libgomp.c++/target-same-name-2.C: New test.
4097 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
4098 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
4099 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
4101 2022-03-22 Tom de Vries <tdevries@suse.de>
4105 * testsuite/libgomp.c/pr104783-2.c: New test.
4107 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
4110 * testsuite/libgomp.fortran/associate4.f90: New test.
4112 2022-03-18 Tom de Vries <tdevries@suse.de>
4115 * testsuite/libgomp.c/pr104952-1.c: New test.
4116 * testsuite/libgomp.c/pr104952-2.c: New test.
4118 2022-03-18 Jakub Jelinek <jakub@redhat.com>
4120 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
4121 variable next to pl variable.
4123 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
4125 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4127 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4128 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4130 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
4133 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
4134 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4136 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
4138 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
4139 omp_set_max_active_levels.
4140 * testsuite/libgomp.fortran/icv-8.f90: New test.
4142 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
4145 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
4147 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
4149 * libgomp.texi: Fix typo.
4151 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4153 PR middle-end/100280
4154 PR middle-end/104892
4155 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
4156 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
4157 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4159 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4161 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4162 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4163 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4166 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4168 PR middle-end/104892
4169 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
4171 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
4172 enable '--param=openacc-kernels=decompose' and adjust.
4173 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4175 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4176 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4179 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4182 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
4183 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
4184 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4185 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
4187 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4189 PR middle-end/100280
4190 PR middle-end/104086
4191 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4193 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4195 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
4197 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4200 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
4202 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
4203 trait. Test last index in w and v array. Remove redundant
4204 assignment to V(1). Move alignment checks at the end of
4207 2022-03-10 Tom de Vries <tdevries@suse.de>
4209 * testsuite/libgomp.c/pr104783.c: New test.
4211 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
4214 PR middle-end/102330
4215 PR middle-end/104774
4216 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4218 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4220 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4222 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4224 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4226 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4228 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4230 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4232 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4234 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4236 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4238 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4240 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4242 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4244 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4245 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4246 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4248 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
4251 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
4252 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4253 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4254 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4256 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4259 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
4260 expected diagnostics.
4262 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4264 PR middle-end/104784
4265 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4266 Test with '--param=openacc-kernels=decompose'.
4267 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4269 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4271 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4273 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4275 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4277 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4279 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4281 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4283 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4285 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4287 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4289 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4291 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4293 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4295 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4297 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4299 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4301 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4303 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4305 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4307 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4309 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4311 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4313 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4315 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4317 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4319 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4321 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4323 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4325 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4327 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4329 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4332 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4334 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4335 Test '-fopt-info-omp-all'.
4336 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4338 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4340 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4342 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4344 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4346 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4348 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4350 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4352 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4354 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4356 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4358 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4360 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4362 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4364 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4366 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4368 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4370 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4372 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4374 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4376 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4378 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4380 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4382 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4384 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4386 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4388 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4390 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4392 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4394 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4396 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4398 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4401 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4403 PR middle-end/100280
4404 PR middle-end/104132
4405 PR middle-end/104133
4406 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4409 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4411 PR middle-end/100280
4412 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4413 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4416 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4418 PR middle-end/100280
4419 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4420 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4423 2022-02-28 Tom de Vries <tdevries@suse.de>
4425 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
4426 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
4427 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
4428 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
4429 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
4430 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
4432 2022-02-24 Tom de Vries <tdevries@suse.de>
4434 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
4435 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
4436 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
4437 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
4438 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
4439 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
4440 * testsuite/libgomp.c/declare-variant-3.h: New header file.
4442 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
4444 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
4445 gang-redundant execution.
4447 2022-02-22 Tom de Vries <tdevries@suse.de>
4450 * config/nvptx/bar.c (generation_to_barrier): New function, copied
4451 from config/rtems/bar.c.
4452 (futex_wait, futex_wake): New function.
4453 (do_spin, do_wait): New function, copied from config/linux/wait.h.
4454 (gomp_barrier_wait_end, gomp_barrier_wait_last)
4455 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
4456 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
4457 and replace with include of config/linux/bar.c.
4458 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
4459 (gomp_barrier_init): Init new fields.
4460 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
4462 * testsuite/libgomp.c/pr99555-1.c: Same.
4463 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
4465 2022-02-22 Tom de Vries <tdevries@suse.de>
4468 * testsuite/libgomp.c++/pr96390.C: Add additional-option
4469 -foffload=-Wa,--verify for nvptx.
4470 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
4472 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
4474 * testsuite/libgomp.fortran/depend-4.f90: New test.
4476 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
4479 * testsuite/libgomp.c++/target-virtual-1.C: New test.
4481 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
4483 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
4484 * target.c (copy_firstprivate_data): Copy only if host address is not
4486 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
4487 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
4488 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
4489 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
4490 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
4491 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
4492 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
4493 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
4494 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
4495 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
4497 2022-02-08 Jakub Jelinek <jakub@redhat.com>
4500 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
4502 * testsuite/libgomp.c/pr104385.c: New test.
4504 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4506 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
4507 STOP of previous commit.
4509 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4511 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
4512 from is_64bit_aligned_.
4513 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
4514 and use it, more implicit none, remove unused argument.
4516 2022-02-03 David Seifert <soap@gentoo.org>
4517 Jakub Jelinek <jakub@redhat.com>
4519 * configure.ac: Support --disable-werror.
4520 * configure: Regenerate.
4522 2022-02-01 Tom de Vries <tdevries@suse.de>
4524 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4526 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4527 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4529 2022-02-01 Tom de Vries <tdevries@suse.de>
4531 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4532 num_workers for nvidia accelerator to fix libgomp error 'insufficient
4534 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4536 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4538 2022-02-01 Tom de Vries <tdevries@suse.de>
4540 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4542 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4544 2022-01-31 Martin Liska <mliska@suse.cz>
4546 * acinclude.m4: Detect *_ld_is_mold and use it.
4547 * configure: Regenerate.
4549 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
4551 * libgomp.texi (OpenMP 5.0): Update implementation status.
4553 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
4555 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4556 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4557 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4558 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4559 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4560 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4561 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4562 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4563 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4564 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4565 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4566 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4567 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4568 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4569 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4571 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
4573 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4574 "static") to make the device num available in the offload image.
4576 2022-01-19 Martin Liska <mliska@suse.cz>
4577 Thomas Schwinge <thomas@codesourcery.com>
4579 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4581 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4582 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4584 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4585 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4586 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4587 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4588 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4590 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4592 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4594 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4596 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4598 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4600 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4601 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4602 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4604 2022-01-18 Martin Liska <mliska@suse.cz>
4606 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4608 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4609 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4610 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4611 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4612 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4613 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4614 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4615 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4616 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4617 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4618 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4619 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4620 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4621 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4622 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4624 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
4626 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4627 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4628 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4630 2022-01-17 Julian Brown <julian@codesourcery.com>
4631 Thomas Schwinge <thomas@codesourcery.com>
4633 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4634 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4635 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4637 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4638 Andrew Stubbs <ams@codesourcery.com>
4640 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4641 the number of teams and threads if necessary.
4642 (gcn_exec): Automatically set the number of gangs and workers if
4645 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
4647 * testsuite/libgomp.fortran/allocate-1.c: New test.
4648 * testsuite/libgomp.fortran/allocate-1.f90: New test.
4649 * libgomp.texi: Remove string that says that allocate clause
4650 support is for C/C++ only.
4652 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4654 * testsuite/libgomp.c-c++-common/on_device_arch.h
4655 (any_device_arch, any_device_arch_intel_mic): New.
4656 * testsuite/lib/libgomp.exp
4657 (check_effective_target_offload_device_any_intel_mic): New.
4658 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4659 * testsuite/libgomp.fortran/target10.f90: Likewise.
4661 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4663 PR tree-optimization/102192
4664 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4665 '-Wuninitialized' diagnostics.
4667 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4669 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4670 current '-Wuninitialized' diagnostics.
4671 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4672 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4673 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4674 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4675 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4676 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4677 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4678 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4679 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4680 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4681 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4684 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4686 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4687 for 'offload_device_intel_mic'.
4689 2022-01-13 Julian Brown <julian@codesourcery.com>
4690 Thomas Schwinge <thomas@codesourcery.com>
4692 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4693 offloading execution XFAIL.
4695 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4697 PR middle-end/100280
4698 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4700 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4701 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4704 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4706 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4708 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4710 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4711 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4712 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4713 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4714 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4716 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4717 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4718 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4719 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4721 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
4723 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4724 * testsuite/libgomp.fortran/target10.f90: Likewise.
4726 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
4728 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4729 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4730 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4732 2022-01-03 Jakub Jelinek <jakub@redhat.com>
4734 * libgomp.texi: Bump @copying's copyright year.
4736 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
4738 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4739 * testsuite/libgomp.fortran/atomic-19.f90: New test.
4741 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
4743 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4744 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4745 table, not individual symbols.
4747 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
4749 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4750 "target offload_device_nonshared_as"
4751 * testsuite/libgomp.c++/target-this-3.C: Likewise.
4752 * testsuite/libgomp.c++/target-this-4.C: Likewise.
4754 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4756 * target.c (gomp_map_vars_existing): Make sure attached pointer is
4757 not overwritten during cross-host/device copying.
4758 (gomp_update): Likewise.
4759 (gomp_exit_data): Likewise.
4760 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4761 * testsuite/libgomp.c++/target-12.C: Likewise.
4762 * testsuite/libgomp.c++/target-15.C: Likewise.
4763 * testsuite/libgomp.c++/target-16.C: Likewise.
4764 * testsuite/libgomp.c++/target-17.C: Likewise.
4765 * testsuite/libgomp.c++/target-21.C: Likewise.
4766 * testsuite/libgomp.c++/target-23.C: Likewise.
4767 * testsuite/libgomp.c/target-23.c: Likewise.
4768 * testsuite/libgomp.c/target-29.c: Likewise.
4769 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4771 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4774 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4775 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4776 (goacc_enter_data_internal): Likewise.
4777 * target.c (gomp_map_vars_existing): Update assert condition to
4778 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4779 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4780 parameter, add support for mapping a pointer with NULL target.
4781 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4782 parameter, add support for attaching a pointer with NULL target.
4783 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4784 gomp_attach_pointer, add handling for
4785 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4786 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4787 * testsuite/libgomp.c++/target-23.C: New testcase.
4788 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4789 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4790 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4791 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4792 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4793 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4794 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4796 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4798 * libgomp.texi (OpenMP 5.1): Update status.
4800 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4802 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4804 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4807 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4808 * testsuite/libgomp.fortran/pr90030.f90: New test.
4810 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4811 Thomas Schwinge <thomas@codesourcery.com>
4813 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4816 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4817 Thomas Schwinge <thomas@codesourcery.com>
4819 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4822 2021-11-29 Richard Biener <rguenther@suse.de>
4824 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4827 2021-11-24 Jakub Jelinek <jakub@redhat.com>
4829 PR middle-end/103384
4830 * testsuite/libgomp.c/declare-variant-2.c: New test.
4832 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
4834 * alloc.c (gomp_aligned_alloc): Fix typo.
4836 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4839 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4840 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4841 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4842 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4843 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4844 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4845 gomp_aligned_alloc instead of team_malloc.
4847 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4850 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4851 memalign over posix_memalign over aligned_alloc over fallback
4852 with malloc instead of aligned_alloc over _aligned_alloc over
4853 posix_memalign over memalign over fallback with malloc. For
4854 aligned_alloc, round up size up to multiple of al.
4856 2021-11-16 Jakub Jelinek <jakub@redhat.com>
4858 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4859 construct as implemented.
4861 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
4863 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4865 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4867 * task.c (gomp_create_target_task): Copy args array as well.
4868 * target.c (gomp_target_fallback): Add args argument.
4869 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4870 (GOMP_target): Adjust gomp_target_fallback caller.
4871 (GOMP_target_ext): Likewise.
4872 (gomp_target_task_fn): Likewise.
4873 * config/nvptx/team.c (gomp_nvptx_main): Set
4874 gomp_global_icv.thread_limit_var.
4875 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4877 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4879 * config/nvptx/team.c (__gomp_team_num): Define as
4880 __attribute__((shared)) var.
4881 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4882 * config/nvptx/target.c (__gomp_team_num): Declare as
4883 extern __attribute__((shared)) var.
4884 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4885 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4886 is bigger than num_blocks, use num_teams_lower teams and arrange for
4887 bumping of __gomp_team_num if !first and returning false once we run
4889 * config/nvptx/teams.c (__gomp_team_num): Declare as
4890 extern __attribute__((shared)) var.
4891 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4893 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4895 * testsuite/libgomp.c/teams-5.c: New test.
4897 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4900 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4902 * config/gcn/teams.c: ... here. New file.
4904 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4906 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4907 implicit map handling to allow a "superset" existing map as valid case.
4908 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4909 (get_implicit): New function to extract implicit status.
4910 (gomp_map_fields_existing): Adjust arguments in calls to
4911 gomp_map_vars_existing, and add uses of get_implicit.
4912 (gomp_map_vars_internal): Likewise.
4913 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4915 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4917 * libgomp_g.h (GOMP_teams4): Declare.
4918 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4919 * target.c (GOMP_teams4): New function.
4920 * config/nvptx/target.c (GOMP_teams): Remove.
4921 (GOMP_teams4): New function.
4922 * config/gcn/target.c (GOMP_teams): Remove.
4923 (GOMP_teams4): New function.
4924 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4925 teams instead of <= 2.
4926 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4928 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
4930 * testsuite/libgomp.fortran/teams-1.f90: New test.
4932 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4934 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4935 * team.c (struct gomp_thread_start_data): Likewise.
4936 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4937 (gomp_team_start): Initialize start_data->num_teams and
4938 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4939 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4940 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4941 instead of gomp_num_teams and gomp_team_num.
4942 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4943 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4944 * testsuite/libgomp.c/teams-4.c: New test.
4946 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4948 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4950 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4952 * env.c (parse_gomp_openacc_dim): Restore parsing.
4954 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4956 PR middle-end/102972
4957 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4959 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4960 * testsuite/libgomp.c/target-3.c: Likewise.
4961 * testsuite/libgomp.c/target-5.c: Likewise.
4962 * testsuite/libgomp.c/target-6.c: Likewise.
4963 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4964 * testsuite/libgomp.c/teams-1.c: Likewise.
4965 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4966 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4967 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4968 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4969 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4970 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4971 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4973 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
4975 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4976 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4978 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4980 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4981 aren't implemented for Fortran yet.
4983 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4985 * testsuite/libgomp.c/loop-26.c: New test.
4986 * testsuite/libgomp.c/loop-27.c: New test.
4988 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4991 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4992 instead of #include <alloca.h> + alloca.
4994 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4996 * libgomp.texi (Support of strictly structured blocks in Fortran):
4998 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
5000 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
5002 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
5003 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
5005 2021-10-20 Jakub Jelinek <jakub@redhat.com>
5008 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
5009 (struct gomp_work_share): Only use aligned(64) attribute if
5010 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
5011 add padding before lock to ensure lock is at offset 64 bytes
5013 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
5014 New poor man's static assertions.
5015 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
5016 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
5018 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
5019 Richard Biener <rguenther@suse.de>
5021 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
5023 2021-10-18 Jakub Jelinek <jakub@redhat.com>
5025 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
5026 && gomp_places_list_len < count after nfirst <= nlast loop condition.
5028 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
5037 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
5039 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5041 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
5042 type from char [50] to const char *.
5043 (places_array): Add a testcase for simplified syntax place followed
5044 by length or length and stride.
5046 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5048 * env.c (parse_one_place): Handle non-negative-number the same
5049 as { non-negative-number }. Reject even !number:1 and
5050 !number:1:stride or !place:1 or !place:1:stride instead of just
5051 length other than 1.
5052 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
5053 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
5054 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
5056 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
5059 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5061 * env.c (parse_schedule): For strtoul or strtoull calls which don't
5062 clearly reject return value 0 as invalid handle the case where end
5063 pointer is the same as first argument as invalid.
5064 (parse_unsigned_long_1): Likewise.
5065 (parse_one_place): Likewise.
5066 (parse_places_var): Likewise.
5067 (parse_stacksize): Likewise.
5068 (parse_spincount): Likewise.
5069 (parse_affinity): Likewise.
5070 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
5071 Make code valid C89.
5072 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
5073 For strtoul calls which don't clearly reject return value 0 as
5074 invalid handle the case where end pointer is the same as first
5075 argument as invalid.
5076 (gomp_affinity_init_level_1): Likewise.
5077 (gomp_affinity_init_numa_domains): Likewise.
5078 * config/rtems/proc.c (parse_thread_pools): Likewise.
5080 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5082 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
5083 after creating count places clean up and return immediately.
5084 * testsuite/libgomp.c/places-6.c: New test.
5085 * testsuite/libgomp.c/places-7.c: New test.
5086 * testsuite/libgomp.c/places-8.c: New test.
5087 * testsuite/libgomp.c/places-9.c: New test.
5088 * testsuite/libgomp.c/places-10.c: New test.
5090 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5092 * env.c (parse_places_var): Handle numa_domains as level 5.
5093 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
5095 (gomp_affinity_init_level): Use it instead of
5096 gomp_affinity_init_level_1 for level == 5.
5097 * testsuite/libgomp.c/places-5.c: New test.
5099 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5101 * env.c (parse_places_var): Handle ll_caches as level 4.
5102 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
5104 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
5106 (gomp_affinity_init_level): Likewise.
5107 * testsuite/libgomp.c/places-1.c: New test.
5108 * testsuite/libgomp.c/places-2.c: New test.
5109 * testsuite/libgomp.c/places-3.c: New test.
5110 * testsuite/libgomp.c/places-4.c: New test.
5112 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
5114 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
5117 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
5119 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
5121 2021-10-12 Julian Brown <julian@codesourcery.com>
5123 * target.c (gomp_copy_host2dev): Release device lock on cbuf
5126 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
5128 * testsuite/libgomp.fortran/icv-3.f90: New.
5129 * testsuite/libgomp.fortran/icv-4.f90: New.
5131 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5133 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
5134 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
5135 OMP_TEAMS_THREAD_LIMIT): Document.
5137 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5139 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
5140 to avoid makeinfo warnings.
5142 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5144 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
5145 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
5147 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5151 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
5152 allocation sizes from 420 to 320 and from 768 to 568.
5153 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
5154 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
5155 for cr from 16 to 4.
5157 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5159 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
5160 * testsuite/libgomp.c/scan-12.c: Likewise.
5161 * testsuite/libgomp.c/scan-13.c: Likewise.
5162 * testsuite/libgomp.c/scan-14.c: Likewise.
5163 * testsuite/libgomp.c/scan-15.c: Likewise.
5164 * testsuite/libgomp.c/scan-16.c: Likewise.
5165 * testsuite/libgomp.c/scan-17.c: Likewise.
5166 * testsuite/libgomp.c/scan-18.c: Likewise.
5167 * testsuite/libgomp.c/scan-19.c: Likewise.
5168 * testsuite/libgomp.c/scan-20.c: Likewise.
5169 * testsuite/libgomp.c/scan-21.c: Likewise.
5170 * testsuite/libgomp.c/scan-22.c: Likewise.
5171 * testsuite/libgomp.c++/scan-9.C: Likewise.
5172 * testsuite/libgomp.c++/scan-10.C: Likewise.
5173 * testsuite/libgomp.c++/scan-11.C: Likewise.
5174 * testsuite/libgomp.c++/scan-12.C: Likewise.
5175 * testsuite/libgomp.c++/scan-13.C: Likewise.
5176 * testsuite/libgomp.c++/scan-14.C: Likewise.
5177 * testsuite/libgomp.c++/scan-15.C: Likewise.
5178 * testsuite/libgomp.c++/scan-16.C: Likewise.
5180 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
5182 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
5184 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
5186 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
5188 * omp.h.in: Add deprecated flag for omp_atv_sequential.
5189 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
5190 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
5191 * testsuite/libgomp.fortran/alloc-12.f90: New test.
5193 2021-10-11 Jakub Jelinek <jakub@redhat.com>
5195 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
5196 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5197 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
5198 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5199 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
5200 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5201 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
5202 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
5203 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
5204 omp_set_teams_thread_limit{,_,_8_}.
5205 * icv.c (omp_set_num_teams, omp_get_max_teams,
5206 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
5208 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
5209 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
5210 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
5212 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
5213 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
5214 is not specified, use gomp_nteams_var.
5215 * fortran.c (omp_set_num_teams, omp_get_max_teams,
5216 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
5218 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
5219 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
5220 omp_get_teams_thread_limit_): New functions.
5222 2021-10-09 liuhongt <hongtao.liu@intel.com>
5224 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
5225 * testsuite/libgomp.c++/scan-11.C: Ditto.
5226 * testsuite/libgomp.c++/scan-12.C: Ditto.
5227 * testsuite/libgomp.c++/scan-13.C: Ditto.
5228 * testsuite/libgomp.c++/scan-14.C: Ditto.
5229 * testsuite/libgomp.c++/scan-15.C: Ditto.
5230 * testsuite/libgomp.c++/scan-16.C: Ditto.
5231 * testsuite/libgomp.c++/scan-9.C: Ditto.
5232 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
5233 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
5234 * testsuite/libgomp.c/scan-11.c: Ditto.
5235 * testsuite/libgomp.c/scan-12.c: Ditto.
5236 * testsuite/libgomp.c/scan-13.c: Ditto.
5237 * testsuite/libgomp.c/scan-14.c: Ditto.
5238 * testsuite/libgomp.c/scan-15.c: Ditto.
5239 * testsuite/libgomp.c/scan-16.c: Ditto.
5240 * testsuite/libgomp.c/scan-17.c: Ditto.
5241 * testsuite/libgomp.c/scan-18.c: Ditto.
5242 * testsuite/libgomp.c/scan-19.c: Ditto.
5243 * testsuite/libgomp.c/scan-20.c: Ditto.
5244 * testsuite/libgomp.c/scan-21.c: Ditto.
5245 * testsuite/libgomp.c/scan-22.c: Ditto.
5247 2021-10-09 Jakub Jelinek <jakub@redhat.com>
5249 * libgomp.texi (OpenMP 5.1): Mention implemented support for
5250 structured block sequences in C/C++. Mention support for
5251 unconstrained/reproducible modifiers on order clause.
5252 Mention partial (C/C++ only) support of extentensions to atomics
5253 construct. Mention partial (C/C++ on clause only) support of
5254 align/allocator modifiers on allocate clause.
5256 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
5258 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
5259 based on libgomp.c-c++-common/order-reproducible-1.c.
5260 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
5261 * testsuite/libgomp.fortran/my-usleep.c: New test.
5263 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
5265 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
5266 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
5267 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
5268 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
5269 based on libgomp.c-c++-common/alloc-9.c.
5271 2021-10-01 Jakub Jelinek <jakub@redhat.com>
5273 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
5274 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
5276 2021-10-01 Jakub Jelinek <jakub@redhat.com>
5278 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
5280 * env.c (handle_omp_display_env): Use ialias_call.
5281 * icv-device.c: Move ialias right below each function.
5282 (omp_get_device_num): Use ialias_call.
5283 * fortran.c (omp_fulfill_event): Add ialias_redirect.
5284 * icv.c (omp_get_active_level): Add ialias_redirect.
5286 2021-10-01 Jakub Jelinek <jakub@redhat.com>
5288 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
5289 __alloc_align__ (1) attribute.
5290 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
5292 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
5294 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
5295 for -fintrinsic-modules-path= warning of the C compiler.
5296 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
5297 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
5299 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
5301 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
5302 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
5303 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5305 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5307 * testsuite/libgomp.fortran/alloc-10.f90: New test.
5308 * testsuite/libgomp.fortran/alloc-6.f90: New test.
5309 * testsuite/libgomp.fortran/alloc-7.c: New test.
5310 * testsuite/libgomp.fortran/alloc-7.f90: New test.
5311 * testsuite/libgomp.fortran/alloc-8.f90: New test.
5312 * testsuite/libgomp.fortran/alloc-9.f90: New test.
5314 2021-09-30 Jakub Jelinek <jakub@redhat.com>
5316 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
5317 omp_realloc): New prototypes.
5318 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
5320 * allocator.c: Include string.h.
5321 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
5322 variable and use it instead of alignment so that when retrying the old
5323 alignment is used again. Don't retry if new alignment is the same
5324 as old alignment, unless allocator had pool size.
5325 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
5326 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
5327 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
5328 omp_aligned_calloc and omp_realloc.
5329 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
5330 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
5331 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
5332 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
5333 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
5334 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
5336 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
5339 * configure.ac: Only check for int-type = 2*size_t support when
5340 building with Fortran support.
5341 * configure: Regenerate.
5343 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
5345 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
5346 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5348 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
5350 * team.c: Initialize start_data.
5351 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5352 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
5354 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
5356 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
5357 dg-message back to dg-note.
5359 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
5362 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
5363 expected dg-note output.
5365 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
5368 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
5369 r12-3722 by removing -Wno-missing-include-dirs.
5370 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5372 2021-09-22 Jakub Jelinek <jakub@redhat.com>
5374 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
5375 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
5377 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
5380 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
5382 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5384 2021-09-18 Jakub Jelinek <jakub@redhat.com>
5386 * testsuite/libgomp.c++/default-1.C: New test.
5387 * testsuite/libgomp.c-c++-common/default-1.c: New test.
5388 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
5389 to default clause in C and C++" as implemented.
5391 2021-09-17 Julian Brown <julian@codesourcery.com>
5393 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
5395 2021-09-17 Julian Brown <julian@codesourcery.com>
5397 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
5399 2021-09-17 Jakub Jelinek <jakub@redhat.com>
5401 * libgomp.texi (OpenMP 5.1): Spelling fix,
5402 declare variante -> declare variant.
5404 2021-09-17 Jakub Jelinek <jakub@redhat.com>
5406 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
5407 Use /* */ comments instead of //.
5408 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
5409 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
5410 * testsuite/libgomp.c++/atomic-16.C: New test.
5411 * testsuite/libgomp.c++/atomic-17.C: New test.
5413 2021-09-10 Jakub Jelinek <jakub@redhat.com>
5415 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
5416 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
5417 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
5419 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
5421 * libgomp.texi (OpenMP Implementation Status): Extend
5423 (OpenACC Profiling Interface): Fix typo.
5425 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
5427 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
5428 not to 4.5; link to new section.
5429 (OpenMP Implementation Status): New.
5431 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
5433 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
5435 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
5437 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
5439 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5441 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5442 Jakub Jelinek <jakub@redhat.com>
5444 * testsuite/libgomp.c/address-space-1.c: New file.
5446 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5448 * testsuite/lib/libgomp.exp
5449 (check_effective_target_offload_target_intelmic): Remove 'proc'.
5450 (check_effective_target_offload_device_intel_mic): New 'proc'.
5451 * testsuite/libgomp.c-c++-common/on_device_arch.h
5452 (device_arch_intel_mic, on_device_arch_intel_mic): New.
5453 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
5455 * testsuite/libgomp.fortran/target10.f90: Likewise.
5457 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
5459 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
5460 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
5461 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
5462 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
5464 2021-08-23 Jakub Jelinek <jakub@redhat.com>
5466 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
5467 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
5468 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
5470 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
5472 * config/nvptx/error.c (fwrite, exit): Override, too.
5473 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
5474 of offloading testing.
5475 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5477 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
5479 * testsuite/libgomp.fortran/error-1.f90: New test.
5481 2021-08-20 Jakub Jelinek <jakub@redhat.com>
5483 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
5484 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
5485 * error.c (GOMP_warning, GOMP_error): New functions.
5486 * testsuite/libgomp.c-c++-common/error-1.c: New test.
5488 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
5490 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
5491 omp_target_free. omp_target_is_present, omp_target_memcpy,
5492 omp_target_memcpy_rect, omp_target_associate_ptr,
5493 omp_target_disassociate_ptr): Add interface.
5494 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
5495 omp_target_free. omp_target_is_present, omp_target_memcpy,
5496 omp_target_memcpy_rect, omp_target_associate_ptr,
5497 omp_target_disassociate_ptr): Add interface.
5498 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
5499 interface block for omp_alloc + omp_free.
5500 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
5501 * testsuite/libgomp.fortran/refcount-1.f90: New test.
5502 * testsuite/libgomp.fortran/target-12.f90: New test.
5504 2021-08-18 Jakub Jelinek <jakub@redhat.com>
5506 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
5508 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
5510 * testsuite/libgomp.fortran/scope-1.f90: New test.
5511 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
5513 2021-08-17 Jakub Jelinek <jakub@redhat.com>
5515 * Makefile.am (libgomp_la_SOURCES): Add scope.c
5516 * Makefile.in: Regenerated.
5517 * libgomp_g.h (GOMP_scope_start): Declare.
5518 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5519 * scope.c: New file.
5520 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5521 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5523 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
5525 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5528 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
5530 * testsuite/libgomp.fortran/masked-1.f90: New test.
5532 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
5534 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5536 2021-08-12 Jakub Jelinek <jakub@redhat.com>
5538 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5540 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
5542 * env.c (parse_bind_var): Accept 'primary' as alias for
5544 (omp_display_env): Add TODO comment to
5545 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5546 * libgomp.texi: Change 'master thread' to 'primary thread'
5547 in line with OpenMP 5.1.
5548 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5549 omp_proc_bind_master is an alias of it.
5550 (OMP_PROC_BIND): Mention 'PRIMARY'.
5551 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5552 (omp_proc_bind_primary): Add.
5553 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5554 * omp_lib.f90.in (omp_proc_bind_primary): Add.
5555 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5556 * omp_lib.h.in (omp_proc_bind_primary): Add.
5557 * testsuite/libgomp.c/affinity-1.c: Check that
5558 'primary' works and is identical to 'master'.
5560 2021-08-09 Julian Brown <julian@codesourcery.com>
5561 Kwok Cheung Yeung <kcy@codesourcery.com>
5562 Thomas Schwinge <thomas@codesourcery.com>
5564 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5566 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5567 [acc_device_radeon]: Update.
5568 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5569 [ACC_DEVICE_TYPE_radeon]: Likewise.
5570 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5571 [acc_device_radeon]: Likewise.
5572 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5573 [ACC_DEVICE_TYPE_radeon]: Likewise.
5574 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5575 'openacc_radeon_accel_selected' and '-O0'.
5576 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5578 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
5580 * icv-device.c (omp_get_device_num): New API function, host side.
5581 * fortran.c (omp_get_device_num_): New interface function.
5582 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5583 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5584 omp_get_device_num_.
5585 * libgomp.texi (omp_get_device_num): Add documentation for new API
5587 * omp.h.in (omp_get_device_num): Add declaration.
5588 * omp_lib.f90.in (omp_get_device_num): Likewise.
5589 * omp_lib.h.in (omp_get_device_num): Likewise.
5590 * target.c (gomp_load_image_to_device): If additional entry for device
5591 number exists at end of returned entries from 'load_image_func' hook,
5592 copy the assigned device number over to the device variable.
5593 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5594 (omp_get_device_num): New API function, device side.
5595 * plugin/plugin-gcn.c ("symcat.h"): Add include.
5596 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5597 at end of returned 'target_table' entries.
5598 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5599 (omp_get_device_num): New API function, device side.
5600 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5601 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5602 at end of returned 'target_table' entries.
5603 * testsuite/lib/libgomp.exp
5604 (check_effective_target_offload_target_intelmic): New function for
5605 testing for intelmic offloading.
5606 * testsuite/libgomp.c-c++-common/target-45.c: New test.
5607 * testsuite/libgomp.fortran/target10.f90: New test.
5609 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
5610 Ulrich Drepper <drepper@redhat.com>
5612 * fortran.c (omp_display_env_, omp_display_env_8_): Only
5613 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5615 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
5616 Julian Brown <julian@codesourcery.com>
5617 Kwok Cheung Yeung <kcy@codesourcery.com>
5619 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5620 's%oaccdevlow%oaccloops%g'.
5621 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5622 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5623 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5625 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5627 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5629 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5631 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5633 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5635 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5637 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5639 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5641 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
5643 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5645 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5647 2021-07-27 Ulrich Drepper <drepper@gmail.com>
5649 * env.c (wait_policy, stacksize): New static variables,
5650 move out of handle_omp_display_env.
5651 (omp_display_env): New function. The meat of the old
5652 handle_omp_display_env function.
5653 (handle_omp_display_env): Change to not take parameters
5654 and instead use the global variables. Only perform
5655 parsing, defer to omp_display_env for the implementation.
5656 (initialize_env): Remove local variables wait_policy and
5657 stacksize. Don't pass parameters to handle_omp_display_env.
5658 * fortran.c: Add ialias_redirect for omp_display_env.
5659 (omp_display_env_, omp_display_env_8_): New functions.
5660 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
5661 omp_display_env_, and omp_display_env_8_.
5662 * omp.h.in: Declare omp_display_env.
5663 * omp_lib.f90.in: Likewise.
5664 * omp_lib.h.in: Likewise.
5666 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5667 Julian Brown <julian@codesourcery.com>
5669 * target.c (gomp_coalesce_buf_add): Update comment.
5670 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5672 (gomp_map_vars_internal): Only 'if (!aq)', do
5673 'gomp_coalesce_buf_add'.
5674 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5677 2021-07-27 Julian Brown <julian@codesourcery.com>
5678 Thomas Schwinge <thomas@codesourcery.com>
5680 * libgomp.h (gomp_copy_host2dev): Update prototype.
5681 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5682 argument to gomp_copy_host2dev (false).
5683 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5684 (copy_data): Don't free src.
5685 (queue_push_copy): Remove free_src handling.
5686 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5687 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5689 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5691 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5692 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
5693 data when true, and set up deferred freeing of temporary buffer.
5694 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5695 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5696 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5697 calls to gomp_copy_host2dev with appropriate ephemeral argument.
5698 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5701 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5702 Tom de Vries <tom@codesourcery.com>
5704 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5705 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5707 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5709 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5710 sequencing of 'async' data copying vs. profiling events.
5711 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5714 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5715 Julian Brown <julian@codesourcery.com>
5717 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5718 'async'/'wait' issue.
5719 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5720 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5721 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5723 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
5724 Joseph Myers <joseph@codesourcery.com>
5725 Cesar Philippidis <cesar@codesourcery.com>
5727 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5729 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5731 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5733 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5735 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
5738 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5739 '-Wno-error=array-bounds'.
5740 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5741 * libgomp.h [__AMDGCN__]: Likewise.
5743 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
5746 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5747 * libgomp.h [__AMDGCN__]: Likewise.
5749 2021-07-13 Jakub Jelinek <jakub@redhat.com>
5750 Florian Weimer <fweimer@redhat.com>
5752 * config/linux/sem.h: Don't include limits.h.
5753 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5754 * config/linux/affinity.c: Include limits.h.
5756 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5759 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5761 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5764 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5765 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5766 avoid disabling other offload targets.
5767 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5768 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5769 * testsuite/libgomp.c/target-44.c: Likewise.
5771 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5773 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5774 target has shared memory and disable some scalar pointer/allocatable
5775 checks if not as firstprivate does not work.
5777 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5780 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5781 Add "target offload_device_nonshared_as" condition for enabling test.
5783 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5785 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5786 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5787 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5788 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5790 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5792 PR middle-end/101167
5793 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5795 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5797 * hashtab.h (htab_clear): New function with initialization code
5798 factored out from...
5799 (htab_create): ...here, adjust to use htab_clear function.
5800 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5801 special refcount values, add comments.
5802 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5803 (REFCOUNT_LINK): Likewise.
5804 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5806 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5808 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5809 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5810 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5811 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5812 (struct splay_tree_key_s): Add structelem_refcount and
5813 structelem_refcount_ptr fields into a union with dynamic_refcount.
5815 (gomp_map_vars): Delete declaration.
5816 (gomp_map_vars_async): Likewise.
5817 (gomp_unmap_vars): Likewise.
5818 (gomp_unmap_vars_async): Likewise.
5819 (goacc_map_vars): New declaration.
5820 (goacc_unmap_vars): Likewise.
5821 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5822 (goacc_enter_datum): Likewise.
5823 (goacc_enter_data_internal): Likewise.
5824 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5825 and goacc_unmap_vars.
5826 (GOACC_data_start): Adjust to use goacc_map_vars.
5827 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5828 * target.c (hash_entry_type): New typedef.
5829 (htab_alloc): New function hook for hashtab.h.
5830 (htab_free): Likewise.
5831 (htab_hash): Likewise.
5832 (htab_eq): Likewise.
5833 (hashtab.h): Add file include.
5834 (gomp_increment_refcount): New function.
5835 (gomp_decrement_refcount): Likewise.
5836 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5837 gomp_increment_refcount.
5838 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5839 to gomp_map_vars_existing.
5840 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5841 variable to guard OpenMP specific paths, adjust calls to
5842 gomp_map_vars_existing, add structure element sibling splay_tree_key
5843 sequence creation code, adjust Fortran map case to avoid increment
5845 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5846 local refcount_set if caller passed in NULL, adjust call to
5847 gomp_map_vars_internal.
5848 (gomp_map_vars_async): Adjust and rename into...
5849 (goacc_map_vars): ...this new function, adjust call to
5850 gomp_map_vars_internal.
5851 (gomp_remove_splay_tree_key): New function with code factored out from
5852 gomp_remove_var_internal.
5853 (gomp_remove_var_internal): Add code to handle removing multiple
5854 splay_tree_key sequence for structure elements, adjust code to use
5855 gomp_remove_splay_tree_key for splay-tree key removal.
5856 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5857 gomp_decrement_refcount.
5858 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5859 local refcount_set if caller passed in NULL, adjust call to
5860 gomp_unmap_vars_internal.
5861 (gomp_unmap_vars_async): Adjust and rename into...
5862 (goacc_unmap_vars): ...this new function, adjust call to
5863 gomp_unmap_vars_internal.
5864 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5866 (GOMP_target_ext): Likewise.
5867 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5868 (GOMP_target_data): Likewise.
5869 (GOMP_target_data_ext): Likewise.
5870 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5871 (gomp_exit_data): Add refcount_set parameter, adjust to use
5872 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5874 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5875 gomp_map_vars and gomp_exit_data.
5876 (gomp_target_task_fn): Likewise.
5877 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5878 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5879 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5880 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5881 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5882 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5884 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5887 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5889 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5890 Thomas Schwinge <thomas@codesourcery.com>
5892 * libgomp.map (GOACC_2.0.2): New symbol version.
5893 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5894 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5896 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5897 Andrew Stubbs <ams@codesourcery.com>
5899 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5901 (GOACC_enter_exit_data): ... here.
5902 (GOACC_declare): Use it.
5904 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5906 * oacc-parallel.c (GOACC_declare): Move...
5907 * oacc-mem.c: ... here.
5908 * libgomp_g.h: Adjust.
5910 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5911 Thomas Schwinge <thomas@codesourcery.com>
5913 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5916 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5918 PR tree-optimization/100981
5919 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5920 dsdotr and dsdoti to 0.
5922 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5924 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5925 if atomic compare-and-swap is supported on 'int'.
5927 2021-06-09 Richard Biener <rguenther@suse.de>
5929 PR tree-optimization/100981
5930 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5932 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5934 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5936 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5938 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5939 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5941 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5943 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5944 '-DACC_MEM_SHARED=0'.
5945 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5946 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5947 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5948 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5949 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5950 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5951 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5952 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5953 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5954 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5955 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5956 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5957 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5958 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5959 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5960 'acc_device_radeon' testing.
5961 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5962 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5963 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5964 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5965 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5966 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5967 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5968 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5969 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5970 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5971 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5972 for non-'openacc_nvidia_accel_selected'.
5973 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5974 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5975 all implement this checking".
5976 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5977 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5978 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5979 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5980 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5982 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5984 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5985 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5987 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5989 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5990 for 'acc_device_radeon'.
5992 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5994 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5995 for non-'acc_device_nvidia'.
5997 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5999 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
6000 'acc_device_radeon' testing.
6001 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6002 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6003 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6005 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
6007 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
6008 require 'openacc_nvidia_accel_selected'. Fix up for
6009 'ACC_DEVICE_TYPE_radeon'.
6011 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
6013 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
6014 'openacc_nvidia_accel_selected'.
6015 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
6017 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
6019 * testsuite/lib/libgomp.exp
6020 (check_effective_target_openacc_radeon_accel_selected):
6023 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
6025 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
6028 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
6030 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
6031 <acc_device_nvidia>: Update comment.
6033 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
6035 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
6037 2021-05-27 Jakub Jelinek <jakub@redhat.com>
6039 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
6040 check_effective_target_openacc_cublas,
6041 check_effective_target_openacc_cudart): New.
6042 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
6043 target openacc_cublas.
6044 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6045 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6046 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
6047 target openacc_cuda.
6048 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6049 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6050 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6051 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6052 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6053 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6054 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6055 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6056 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
6057 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6058 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6059 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6060 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6061 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6062 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6063 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6064 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
6065 targets openacc_cublas and openacc_cudart.
6066 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6067 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6068 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6069 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6070 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
6071 Require effective target openacc_cudart.
6072 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
6073 for effective target openacc_cuda and add && defined USE_CUDA_H to
6074 preprocessor conditionals. Guard -lcuda also on openacc_cuda
6077 2021-05-26 Jakub Jelinek <jakub@redhat.com>
6080 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
6081 GOMP_target_end_data, GOMP_target_update_ext,
6082 GOMP_target_enter_exit_data): New dummy entrypoints.
6083 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
6084 GOMP_target_end_data, GOMP_target_update_ext,
6085 GOMP_target_enter_exit_data): Likewise.
6086 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
6087 OMPFROM, OMPTO): Define.
6088 (main): Remove #pragma omp target teams around all the tests.
6089 * testsuite/libgomp.c-c++-common/target-41.c: New test.
6090 * testsuite/libgomp.c-c++-common/target-42.c: New test.
6092 2021-05-25 Jakub Jelinek <jakub@redhat.com>
6095 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
6097 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
6100 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
6101 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
6102 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
6104 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
6107 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
6108 uninteresting/varying diagnostics.
6110 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6113 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
6114 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6116 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6119 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
6121 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
6122 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
6123 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6125 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6127 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6129 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6131 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6133 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6135 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6137 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6139 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6141 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6143 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6145 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6147 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6149 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6151 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6153 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6155 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6157 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6159 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6161 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6163 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6165 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6166 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6167 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6168 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
6169 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6170 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6171 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6172 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6173 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6174 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6175 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6176 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6177 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6178 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6179 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6181 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
6183 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
6185 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6187 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
6188 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6190 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6191 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6192 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6193 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6194 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
6195 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6196 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6198 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6200 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6202 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6204 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6206 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6208 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6210 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6212 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6214 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6216 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6218 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6220 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6222 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6223 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6224 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6226 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6228 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6229 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6230 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6232 2021-05-21 Julian Brown <julian@codesourcery.com>
6233 Chung-Lin Tang <cltang@codesourcery.com>
6234 Thomas Schwinge <thomas@codesourcery.com>
6237 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
6239 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6241 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6244 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6246 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
6247 for nvptx offloading.
6249 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
6251 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
6253 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
6256 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
6258 2021-05-19 Julian Brown <julian@codesourcery.com>
6260 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
6262 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6264 * testsuite/lib/libgomp.exp
6265 (check_effective_target_offload_target_nvptx): Don't shadow global
6266 'offload_targets' variable.
6268 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6270 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
6271 '-latomic' to nvptx offloading compilation.
6272 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6274 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6276 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
6277 offloading compilation.
6279 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
6281 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
6282 if new tasks generated.
6283 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
6285 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
6287 * testsuite/libgomp.fortran/parallel-master.f90: New test.
6289 2021-05-13 Martin Liska <mliska@suse.cz>
6292 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
6293 * testsuite/libgomp.c/pr46032-2.c: Likewise.
6294 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
6295 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
6297 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
6299 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
6300 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
6302 2021-05-11 Jakub Jelinek <jakub@redhat.com>
6304 PR middle-end/100471
6305 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
6306 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
6308 * testsuite/libgomp.c/task-reduction-4.c: New test.
6310 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
6311 Tom de Vries <tdevries@suse.de>
6313 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
6314 complex/floating-point || + && reduction with 'omp target'.
6315 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6317 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
6319 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
6320 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
6321 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
6322 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
6324 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
6327 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
6328 declaration to scope of non-'depend'-guarded assignment to avoid races.
6330 2021-05-03 Tom de Vries <tdevries@suse.de>
6333 * testsuite/libgomp.c/target-44.c: New test.
6335 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
6337 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
6339 2021-04-29 Tom de Vries <tdevries@suse.de>
6341 * testsuite/libgomp.c/pr81778.c: New test.
6343 2021-04-29 Tom de Vries <tdevries@suse.de>
6346 * testsuite/libgomp.c/target-43.c: New file.
6348 2021-04-28 Jakub Jelinek <jakub@redhat.com>
6349 Tobias Burnus <tobias@codesourcery.com>
6351 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
6352 * target.c (gomp_load_plugin_for_device): If set and if a plugin
6353 can't be dlopened, silently assume it has no devices.
6354 * Makefile.in: Regenerate.
6355 * config.h.in: Regenerate.
6356 * configure: Regenerate.
6358 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
6360 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6361 Use [Ww]arning in dg-bogus as FE diagnostic and default
6362 diagnostic differ and the result depends on ENABLE_OFFLOAD.
6363 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6364 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6365 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6367 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
6369 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6370 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
6371 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6372 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6373 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6375 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6376 Nathan Sidwell <nathan@codesourcery.com>
6377 Tom de Vries <vries@codesourcery.com>
6378 Julian Brown <julian@codesourcery.com>
6379 Kwok Cheung Yeung <kcy@codesourcery.com>
6381 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
6382 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
6383 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6384 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6385 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6386 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6387 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
6389 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6390 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6391 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6392 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6394 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6395 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6397 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6398 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6399 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6400 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6401 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6402 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6404 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6405 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
6406 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6407 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6408 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6409 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
6410 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6411 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6412 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6413 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6414 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6416 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6418 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
6420 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6421 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6423 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6424 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
6425 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6426 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6427 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6428 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6429 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6431 2021-04-22 Richard Biener <rguenther@suse.de>
6433 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
6436 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6438 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
6439 omp_depend_kind instead of defining it as 16.
6441 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6443 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6444 New, based on check_effective_target_offload_target_nvptx.
6445 (check_effective_target_offload_target_nvptx): Call it.
6446 (check_effective_target_offload_target_amdgcn): New.
6447 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
6448 Require target offload_target_nvptx || offload_target_amdgcn.
6449 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
6450 * testsuite/libgomp.c/pr86416-1.c: Likewise.
6451 * testsuite/libgomp.c/pr86416-2.c: Likewise.
6453 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6455 * testsuite/libgomp.fortran/depobj-1.f90: New test.
6457 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
6459 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6460 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
6461 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6463 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6465 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6467 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
6470 * testsuite/lib/libgomp.exp
6471 (check_effective_target_offload_device_nvptx): New.
6472 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
6473 resolved, make sure that we exit quickly, with error status,
6475 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
6476 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6478 2021-04-14 Jakub Jelinek <jakub@redhat.com>
6481 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
6482 cp = omp_alloc with cp, p arguments instead of cq, q and call
6483 c_f_pointer after last cq = omp_alloc with cq, q.
6485 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
6488 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
6489 for loop with GT/GE condition.
6490 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6492 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
6497 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
6499 2021-04-09 Jakub Jelinek <jakub@redhat.com>
6502 * team.c (gomp_thread_start): Call pthread_setspecific for
6503 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
6504 has been initialized to avoid false positive warning.
6506 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
6509 * testsuite/lib/on_device_arch.c: Move to ...
6510 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
6511 * testsuite/libgomp.fortran/on_device_arch.c: New file;
6512 #include on_device_arch.h.
6513 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
6514 on_device_arch.h instead of using dg-additional-source.
6515 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6516 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
6517 on_device_arch.c without relative paths.
6519 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6521 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6522 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6523 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6524 * config.h.in: Regenerate.
6525 * configure: Likewise.
6527 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6530 * testsuite/lib/on_device_arch.c: New file.
6531 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6532 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6533 skip for nvptx offloading, with error status.
6534 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6536 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6538 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6539 OpenACC 'serial' construct diagnostic for nvptx offloading.
6541 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
6544 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6546 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
6549 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6551 2021-03-04 Jakub Jelinek <jakub@redhat.com>
6553 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6554 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6555 checking of -m32 or -mx32 options on the command line.
6556 * config.h.in: Regenerated.
6557 * configure: Regenerated.
6559 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
6561 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6562 support from the target.
6564 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6565 Jakub Jelinek <jakub@redhat.com>
6568 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6569 (struct gomp_task): Replace detach and completion_sem fields with
6570 union containing completion_sem and detach_team. Add deferred_p
6572 (struct gomp_team): Remove task_detach_queue.
6573 * task.c: Include assert.h.
6574 (gomp_init_task): Initialize deferred_p and completion_sem fields.
6575 Rearrange initialization order of fields.
6576 (task_fulfilled_p): Delete.
6577 (GOMP_task): Use address of task as the event handle. Remove
6578 initialization of detach field. Initialize deferred_p field.
6579 Use automatic local for completion_sem. Initialize detach_team field
6581 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6582 Set kind of suspended detach task to GOMP_TASK_DETACHED and
6583 decrement task_running_count. Move finish_cancelled block out of
6584 else branch. Relocate call to gomp_team_barrier_done.
6585 (GOMP_taskwait): Handle tasks with completion events that have not
6587 (GOMP_taskgroup_end): Likewise.
6588 (omp_fulfill_event): Use address of task as event handle. Post to
6589 completion_sem for undeferred tasks. Clear detach_team if task
6590 has not finished. For finished tasks, handle post-execution tasks,
6591 call gomp_team_barrier_wake if necessary, and free task.
6592 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6593 (free_team): Remove free of task_detach_queue.
6594 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6595 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6596 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6597 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6598 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6599 Change data-sharing of detach events on enclosing parallel to private.
6600 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
6602 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6603 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6604 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6605 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6606 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6607 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6608 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6609 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6610 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6611 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6612 Change data-sharing of detach events on enclosing parallel to private.
6613 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
6615 * testsuite/libgomp.fortran/task-detach-7.f90: New.
6616 * testsuite/libgomp.fortran/task-detach-8.f90: New.
6617 * testsuite/libgomp.fortran/task-detach-9.f90: New.
6618 * testsuite/libgomp.fortran/task-detach-10.f90: New.
6619 * testsuite/libgomp.fortran/task-detach-11.f90: New.
6621 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
6624 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6626 2021-02-17 Julian Brown <julian@codesourcery.com>
6628 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6631 2021-02-17 Julian Brown <julian@codesourcery.com>
6633 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6634 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6636 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6638 * config/linux/x86/futex.h (__futex_wait):
6639 Revert output type back to long.
6640 (__futex_wake): Ditto.
6641 (futex_wait): Update for revert.
6642 (futex_wake): Ditto.
6644 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6646 * config/linux/x86/futex.h (__futex_wait): New static inline
6647 wrapper function. Correct output type to int and
6648 timeout type to void *.
6649 (__futex_wake): New static inline wrapper function.
6650 Correct output type to int.
6651 (futex_wait): Use __futex_wait.
6652 (futex_wake): Use __futex_wake.
6654 2021-02-10 Julian Brown <julian@codesourcery.com>
6657 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6660 2021-02-04 Julian Brown <julian@codesourcery.com>
6662 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6664 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
6666 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6667 EF_AMDGPU_MACH_AMDGCN_GFX908.
6668 (gcn_gfx908_s): New constant string.
6669 (isa_hsa_name): Add gfx908.
6670 (isa_code): Add gfx908.
6672 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6674 * libgomp.texi (omp_fulfill_event): New entry.
6676 2021-01-20 Jakub Jelinek <jakub@redhat.com>
6678 * task.c (GOMP_task): Rename priority argument to priority_arg,
6679 add priority automatic variable and modify that variable. Instead of
6680 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6681 check flags for that bit.
6683 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
6686 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6688 2021-01-18 Andreas Schwab <schwab@suse.de>
6690 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6692 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6694 * config/rtems/sem.h (gomp_sem_getcount): New function.
6696 2021-01-18 Jakub Jelinek <jakub@redhat.com>
6698 * config/linux/sem.h (gomp_sem_getcount): New function.
6699 * config/posix/sem.h (gomp_sem_getcount): New function.
6700 * config/posix/sem.c (gomp_sem_getcount): New function.
6701 * config/accel/sem.h (gomp_sem_getcount): New function.
6702 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6703 (omp_fulfill_event): Likewise.
6705 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
6707 * fortran.c (omp_fulfill_event_): New.
6708 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6709 (struct gomp_team): Add task_detach_queue and task_detach_count
6711 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6712 * libgomp_g.h (GOMP_task): Add extra argument.
6713 * omp.h.in (enum omp_event_handle_t): New.
6714 (omp_fulfill_event): New.
6715 * omp_lib.f90.in (omp_event_handle_kind): New.
6716 (omp_fulfill_event): New.
6717 * omp_lib.h.in (omp_event_handle_kind): New.
6718 (omp_fulfill_event): Declare.
6719 * priority_queue.c (priority_tree_find): New.
6720 (priority_list_find): New.
6721 (priority_queue_find): New.
6722 * priority_queue.h (priority_queue_predicate): New.
6723 (priority_queue_find): New.
6724 * task.c (gomp_init_task): Initialize detach field.
6725 (task_fulfilled_p): New.
6726 (GOMP_task): Add detach argument. Ignore detach argument if
6727 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
6728 field. Copy address of completion_sem into detach argument and
6729 into the start of the data record. Wait for detach event if task
6731 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6732 Remove completed tasks and requeue dependent tasks.
6733 (omp_fulfill_event): New.
6734 * team.c (gomp_new_team): Initialize task_detach_queue and
6735 task_detach_count fields.
6736 (free_team): Free task_detach_queue field.
6737 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6738 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6739 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6740 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6741 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6742 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6743 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6744 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6745 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6746 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6747 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6748 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6750 2021-01-15 Jakub Jelinek <jakub@redhat.com>
6753 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6754 be added through preprocessor check on
6755 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6757 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
6760 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6762 * configure: Regenerate.
6763 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6766 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6768 * configure: Re-generate.
6770 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6772 * configure: Re-generate.
6774 2021-01-05 Julian Brown <julian@codesourcery.com>
6776 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6777 (struct ptx_device): Add omp_stacks struct.
6778 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6779 (nvptx_close_device): Free cached stacks block and mutex.
6780 (nvptx_stacks_free): New function.
6781 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6782 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6783 (nvptx_stacks_alloc): Rename to...
6784 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6785 size or smaller is required.
6786 (nvptx_stacks_free): Remove.
6787 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6788 during kernel execution.
6790 2021-01-01 Jakub Jelinek <jakub@redhat.com>
6792 * libgomp.texi: Bump @copying's copyright year.
6794 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6796 * libgomp.texi (Top): Avoid bad "up" link.
6798 2020-12-18 Jakub Jelinek <jakub@redhat.com>
6800 * testsuite/libgomp.c/task-6.c: New test.
6802 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
6804 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6805 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6807 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
6809 * testsuite/libgomp.fortran/scan-1.f90: New test.
6811 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6814 * configure: Regenerate.
6816 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
6818 * configure: Regenerate.
6820 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6822 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6823 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6825 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
6827 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6830 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
6832 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6833 (reserved): Delete unused define.
6835 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6837 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6838 Tcl 8.5-specific behavior.
6839 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6841 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6843 * env.c (gomp_global_icv): Remove nest_var field. Add
6844 max_active_levels_var field.
6845 (gomp_max_active_levels_var): Remove.
6846 (parse_boolean): Return true on success.
6847 (handle_omp_display_env): Express OMP_NESTED in terms of
6848 max_active_levels_var. Change format specifier for
6849 max_active_levels_var.
6850 (initialize_env): Set max_active_levels_var from
6851 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6853 * icv.c (omp_set_nested): Express in terms of
6854 max_active_levels_var.
6855 (omp_get_nested): Likewise.
6856 (omp_set_max_active_levels): Use max_active_levels_var field instead
6857 of gomp_max_active_levels_var.
6858 (omp_get_max_active_levels): Likewise.
6859 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6860 max_active_levels_var field.
6861 (gomp_supported_active_levels): Set to UCHAR_MAX.
6862 (gomp_max_active_levels_var): Delete.
6863 * libgomp.texi (omp_get_nested): Update documentation.
6864 (omp_set_nested): Likewise.
6865 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6866 (OMP_NESTED): Likewise.
6867 (OMP_NUM_THREADS): Likewise.
6868 (OMP_PROC_BIND): Likewise.
6869 * parallel.c (gomp_resolve_num_threads): Replace reference
6870 to nest_var with max_active_levels_var. Use max_active_levels_var
6871 field instead of gomp_max_active_levels_var.
6873 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
6875 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6876 nvptx_usleep; use also for device={arch(gcn)}.
6878 2020-11-14 Jakub Jelinek <jakub@redhat.com>
6880 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6881 (foo): Add tests for non-VLA private and firstprivate clauses on
6883 (bar): Likewise. Remove taking of address from private/firstprivate
6885 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6886 (foo): Add p, q, px and s arguments. Add tests for array reductions
6887 and for non-VLA private and firstprivate clauses on omp task.
6889 (main): Adjust foo caller. Don't call bar.
6891 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6892 Thomas Schwinge <thomas@codesourcery.com>
6894 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6896 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6898 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6900 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6901 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6903 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6904 Thomas Schwinge <thomas@codesourcery.com>
6907 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6909 2020-11-13 Jakub Jelinek <jakub@redhat.com>
6911 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6912 for array reductions.
6913 (main): Adjust foo callers.
6915 2020-11-12 Jakub Jelinek <jakub@redhat.com>
6917 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6918 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6919 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6920 * allocator.c (omp_aligned_alloc): New for now static function,
6921 add alignment argument and handle it.
6922 (omp_alloc): Reimplement using omp_aligned_alloc.
6923 (GOMP_alloc, GOMP_free): New functions.
6924 (omp_free): Add ialias.
6925 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6926 * testsuite/libgomp.c++/allocate-1.C: New test.
6928 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6931 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6933 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6935 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6937 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6938 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6939 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6940 (goacc_enter_data_internal): Likewise.
6941 * target.c (gomp_map_vars_internal):
6942 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6943 of gomp_attach_pointer for OpenMP cases.
6944 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6945 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6946 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6948 2020-11-05 Ulrich Drepper <drepper@redhat.com>
6949 Kwok Cheung Yeung <kcy@codesourcery.com>
6951 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6952 * Makefile.in: Regenerate.
6953 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6954 pragmas to ignore -Wdeprecated-declarations warnings.
6956 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6957 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6958 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6959 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6961 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6963 * testsuite/libgomp.c/affinity-1.c: Likewise.
6964 * testsuite/libgomp.c/affinity-2.c: Likewise.
6965 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6966 * testsuite/libgomp.c/lib-1.c: Likewise.
6967 * testsuite/libgomp.c/nested-1.c: Likewise.
6968 * testsuite/libgomp.c/nested-2.c: Likewise.
6969 * testsuite/libgomp.c/nested-3.c: Likewise.
6970 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6971 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6972 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6973 * testsuite/libgomp.c/pr35549.c: Likewise.
6974 * testsuite/libgomp.c/pr42942.c: Likewise.
6975 * testsuite/libgomp.c/pr61200.c: Likewise.
6976 * testsuite/libgomp.c/sort-1.c: Likewise.
6977 * testsuite/libgomp.c/target-5.c: Likewise.
6978 * testsuite/libgomp.c/target-6.c: Likewise.
6979 * testsuite/libgomp.c/teams-1.c: Likewise.
6980 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6981 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6982 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6983 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6984 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6985 * testsuite/libgomp.fortran/lib2.f: Likewise.
6986 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6987 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6989 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6992 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6993 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6994 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6996 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
7000 * testsuite/lib/libgomp.exp (libgomp_init): Set
7001 'gcc_warning_prefix', 'gcc_error_prefix'.
7003 2020-10-30 Jakub Jelinek <jakub@redhat.com>
7005 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
7006 even in field_tgt_clear initializer.
7008 2020-10-28 Jakub Jelinek <jakub@redhat.com>
7010 * testsuite/libgomp.c/target-42.c: New test.
7012 2020-10-28 Jakub Jelinek <jakub@redhat.com>
7013 Tom de Vries <tdevries@suse.de>
7016 * testsuite/libgomp.c/usleep.h: New file.
7017 * testsuite/libgomp.c/target-32.c: Include usleep.h.
7018 (main): Use tgt_usleep instead of usleep.
7019 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
7020 (main): Use tgt_usleep instead of usleep.
7022 2020-10-28 Jakub Jelinek <jakub@redhat.com>
7025 * testsuite/libgomp.c/declare-variant-1.c: New test.
7027 2020-10-22 Jakub Jelinek <jakub@redhat.com>
7029 * testsuite/libgomp.c/target-41.c: New test.
7031 2020-10-22 Jakub Jelinek <jakub@redhat.com>
7033 * icv.c (omp_get_initial_device): Remove including corresponding
7035 * icv-device.c (omp_get_initial_device): New function. Return
7036 gomp_get_num_devices (). Add ialias.
7037 * target.c (resolve_device): Don't fail with
7038 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
7039 gomp_get_num_devices ().
7040 (omp_target_alloc, omp_target_free, omp_target_is_present,
7041 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
7042 omp_target_disassociate_ptr, omp_pause_resource): Use
7043 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
7044 first use in the functions, in uses dominated by the
7045 gomp_get_num_devices call use num_devices_openmp instead.
7046 * libgomp.texi (omp_get_initial_device): Document.
7047 * config/gcn/icv-device.c (omp_get_initial_device): New function.
7049 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
7050 * testsuite/libgomp.c/target-40.c: New test.
7052 2020-10-21 Jakub Jelinek <jakub@redhat.com>
7054 * env.c (parse_target_offload): Change new_offload var type to int,
7055 preinitialize to -1, remove found var and test new_offload != -1
7058 2020-10-20 Jakub Jelinek <jakub@redhat.com>
7060 * target.c (gomp_target_init): Inside of the function, use automatic
7061 variables corresponding to num_devices, num_devices_openmp and devices
7062 global variables and update the globals only at the end of the
7065 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
7067 * env.c (gomp_target_offload_var): New.
7068 (parse_target_offload): New.
7069 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
7070 (initialize_env): Parse OMP_TARGET_OFFLOAD.
7071 * libgomp.h (gomp_target_offload_t): New.
7072 (gomp_target_offload_var): New.
7073 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
7074 * target.c (resolve_device): Generate error if device not found and
7075 offloading is mandatory.
7076 (gomp_target_fallback): Generate error if offloading is mandatory.
7077 (GOMP_target): Add argument in call to gomp_target_fallback.
7078 (GOMP_target_ext): Likewise.
7079 (gomp_target_data_fallback): Generate error if offloading is mandatory.
7080 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
7081 (GOMP_target_data_ext): Likewise.
7082 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
7083 (gomp_target_init): Return early if offloading is disabled.
7085 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
7087 * libgomp.texi (omp_get_max_active_levels): Modify description.
7088 (omp_get_supported_active_levels): Make descriptions consistent.
7090 2020-10-14 Jakub Jelinek <jakub@redhat.com>
7092 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
7094 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
7096 * env.c (gomp_max_active_levels_var): Initialize to
7097 gomp_supported_active_levels.
7098 (initialize_env): Limit gomp_max_active_levels_var to be at most
7099 equal to gomp_supported_active_levels.
7100 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
7101 (omp_get_supported_active_levels_): New.
7102 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
7103 to at most equal to gomp_supported_active_levels.
7104 (omp_get_supported_active_levels): New.
7105 * libgomp.h (gomp_supported_active_levels): New.
7106 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
7107 omp_get_supported_active_levels_.
7108 * libgomp.texi (omp_get_supported_active_levels): New.
7109 (omp_set_max_active_levels): Update. Add reference to
7110 omp_get_supported_active_levels.
7111 * omp.h.in (omp_get_supported_active_levels): New.
7112 * omp_lib.f90.in (omp_get_supported_active_levels): New.
7113 * omp_lib.h.in (omp_get_supported_active_levels): New.
7114 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
7115 against omp_get_supported_active_levels.
7116 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
7118 2020-10-11 Clement Chigot <clement.chigot@atos.net>
7120 * config/t-aix: Delete and recreate libgomp before creating
7123 2020-10-08 Tom de Vries <tdevries@suse.de>
7126 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
7129 2020-10-06 Tom de Vries <tdevries@suse.de>
7131 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
7133 2020-10-06 Tom de Vries <tdevries@suse.de>
7136 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
7138 2020-10-05 Tom de Vries <tdevries@suse.de>
7141 * testsuite/libgomp.fortran/pr95654.f90: New test.
7143 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
7145 * Makefile.in: Regenerate with automake 1.15.1.
7146 * aclocal.m4: Likewise.
7147 * configure: Likewise.
7148 * testsuite/Makefile.in: Likewise.
7150 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
7152 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
7155 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
7157 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
7159 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
7161 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
7162 total number of threads is one.
7163 (gomp_team_barrier_wake): Likewise.
7164 (gomp_team_barrier_wait_end): Likewise.
7165 (gomp_team_barrier_wait_cancel_end): Likewise.
7166 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
7167 (gomp_team_barrier_wake): Likewise.
7168 (gomp_team_barrier_wait_end): Likewise.
7169 (gomp_team_barrier_wait_cancel_end): Likewise.
7170 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
7172 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
7175 * testsuite/libgomp.c++/pr96390.C: New test.
7176 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
7178 2020-09-27 Clement Chigot <clement.chigot@atos.net>
7180 * config/t-aix: Use $(AR) without -X32_64.
7182 2020-09-25 Jakub Jelinek <jakub@redhat.com>
7184 * testsuite/libgomp.c/loop-25.c: New test.
7186 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
7189 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
7191 2020-09-22 Tom de Vries <tdevries@suse.de>
7193 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
7196 2020-09-16 Nathan Sidwell <nathan@acm.org>
7198 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
7200 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
7203 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
7205 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
7208 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
7209 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
7210 (gomp_map_vars_existing): Update call to it.
7211 (gomp_map_fields_existing): Likewise
7212 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
7213 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
7215 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
7217 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
7218 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
7220 2020-09-14 Tom de Vries <tdevries@suse.de>
7222 * config/nvptx/atomic.c: New file. Add
7223 __sync_val_compare_and_swap_16.
7224 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
7225 target offload_target_nvptx.
7227 2020-09-08 Julian Brown <julian@codesourcery.com>
7229 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
7230 iteration-ordering assumptions.
7232 2020-09-08 Julian Brown <julian@codesourcery.com>
7234 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
7235 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7237 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
7239 * plugin/plugin-nvptx.c (nvptx_free):
7240 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
7241 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
7244 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
7246 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
7248 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
7250 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
7252 2020-08-13 Jakub Jelinek <jakub@redhat.com>
7254 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
7255 * testsuite/libgomp.c/loop-23.c (main): Likewise.
7256 * testsuite/libgomp.c/loop-24.c: New test.
7258 2020-08-08 Jakub Jelinek <jakub@redhat.com>
7259 Tobias Burnus <tobias@codesourcery.com>
7262 * testsuite/libgomp.fortran/pr93553.f90: New test.
7264 2020-08-05 Jakub Jelinek <jakub@redhat.com>
7266 * testsuite/libgomp.c/loop-22.c: New test.
7267 * testsuite/libgomp.c/loop-23.c: New test.
7269 2020-08-05 Jakub Jelinek <jakub@redhat.com>
7272 * testsuite/libgomp.c/teams-3.c: New test.
7273 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
7275 (N(test)): Use it before all N(f*) calls.
7276 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
7277 (main): Don't call all test_* functions from within
7278 #pragma omp teams reduction(|:err), call them directly.
7280 2020-08-04 Tom de Vries <tdevries@suse.de>
7283 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
7284 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
7286 2020-08-03 Julian Brown <julian@codesourcery.com>
7287 Thomas Schwinge <thomas@codesourcery.com>
7289 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
7290 shared-memory devices. Extend with further checking.
7292 2020-08-03 Martin Jambor <mjambor@suse.cz>
7294 * plugin/Makefrag.am: Remove configuration of HSA plugin.
7295 * aclocal.m4: Regenerated.
7296 * Makefile.in: Regenerated.
7297 * config.h.in: Regenerated.
7298 * configure: Regenerated.
7299 * plugin/configfrag.ac: Likewise.
7300 * plugin/hsa_ext_finalize.h: Removed.
7301 * plugin/plugin-hsa.c: Likewise.
7302 * testsuite/Makefile.in: Regenerated.
7303 * testsuite/lib/libgomp.exp
7304 (offload_target_to_openacc_device_type): Remove hsa case.
7305 (check_effective_target_hsa_offloading_selected_nocache): Removed
7306 (check_effective_target_hsa_offloading_selected): Likewise.
7307 (libgomp_init): Do not add -Wno-hsa to additional_flags.
7308 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
7309 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7310 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
7311 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7312 * testsuite/libgomp.hsa.c/c.exp: Likewise.
7313 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7314 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
7315 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7316 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7317 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7318 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7319 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7320 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7321 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7322 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7323 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7324 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
7325 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7326 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
7327 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7328 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7329 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
7330 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7331 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7333 2020-07-27 Julian Brown <julian@codesourcery.com>
7334 Thomas Schwinge <thomas@codesourcery.com>
7336 * libgomp.h (struct target_var_desc): Rename do_detach field to
7338 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
7339 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
7340 (goacc_enter_data_internal): Don't affect reference counts
7341 for attach mappings.
7342 (goacc_exit_data_internal): Don't affect reference counts for detach
7344 * target.c (gomp_map_vars_existing): Don't affect reference counts for
7346 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
7347 mark attach mappings.
7348 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
7349 reference count for attach mappings.
7350 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
7351 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7352 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7353 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
7355 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
7356 gracefully in no-finalize mode.
7357 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
7359 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
7361 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
7363 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7364 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7366 2020-07-23 Julian Brown <julian@codesourcery.com>
7367 Thomas Schwinge <thomas@codesourcery.com>
7369 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
7370 finalization for detach operation.
7371 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
7374 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
7376 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
7377 * libgomp_f.h.in (omp_check_defines): Check whether
7378 sizeof of determined Fortran kind and C typedef match.
7379 * omp_lib.f90.in: Add omp_depened_kind.
7380 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
7381 * configure: Regenerate.
7382 * Makefile.in: Regenerate.
7383 * testsuite/Makefile.in: Regenerate.
7385 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
7387 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
7388 gcc/testsuite/c-c++-common/gomp/.
7389 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
7390 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
7391 from gcc/testsuite/gfortran.dg/gomp/.
7392 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
7394 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
7396 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
7397 * omp_lib.h.in: Likewise.
7399 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
7402 * testsuite/libgomp.c/pr95620.c: New test.
7404 2020-07-16 Julian Brown <julian@codesourcery.com>
7405 Thomas Schwinge <thomas@codesourcery.com>
7407 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
7408 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
7410 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7412 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
7413 avoid conversion on 32bit systems from 32bit to 64bit due
7414 to -fdefault-integer-8.
7416 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7418 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
7419 variables; add character(kind=4) tests; update TODO comment.
7421 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7423 * allocator.c: Add ialias for omp_init_allocator and
7424 omp_destroy_allocator.
7425 * configure.ac: Set INTPTR_T_KIND.
7426 * configure: Regenerate.
7427 * Makefile.in: Regenerate.
7428 * testsuite/Makefile.in: Regenerate.
7429 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
7430 omp_set_default_allocator_, omp_get_default_allocator_): New
7431 functions and ialias_redirect.
7432 * icv.c: Add ialias for omp_set_default_allocator and
7433 omp_get_default_allocator.
7434 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
7435 omp_destroy_allocator_, omp_set_default_allocator_ and
7436 omp_get_default_allocator_.
7437 * omp_lib.f90.in: Add allocator traits parameters, declare
7438 allocator routines and add related kind parameters.
7439 * omp_lib.h.in: Likewise.
7440 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
7441 * testsuite/libgomp.fortran/alloc-1.F90: New test.
7442 * testsuite/libgomp.fortran/alloc-2.F90: New test.
7443 * testsuite/libgomp.fortran/alloc-3.F: New test.
7444 * testsuite/libgomp.fortran/alloc-4.f90: New test.
7445 * testsuite/libgomp.fortran/alloc-5.f90: New test.
7447 2020-07-14 Tom de Vries <tom@codesourcery.com>
7448 Cesar Philippidis <cesar@codesourcery.com>
7449 Thomas Schwinge <thomas@codesourcery.com>
7450 Kwok Cheung Yeung <kcy@codesourcery.com>
7452 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
7454 (acc_init_1): Set acc_init_thread to pthread_self (). Set
7455 acc_init_state to initializing at the start, and to initialized at the
7457 (self_initializing_p): New function.
7458 (acc_get_device_type): Return acc_device_none if called by thread that
7459 is currently executing acc_init_1.
7460 * libgomp.texi (acc_get_device_type): Update documentation.
7461 (Implementation Status and Implementation-Defined Behavior): Likewise.
7462 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
7464 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
7466 * config/t-aix: Set BITS from compiler cpp macro.
7468 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
7470 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
7472 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
7475 * testsuite/libgomp.fortran/target-map-1.f90: New test.
7477 2020-07-14 Jakub Jelinek <jakub@redhat.com>
7479 * testsuite/libgomp.c/loop-21.c: New test.
7481 2020-07-13 Julian Brown <julian@codesourcery.com>
7482 Thomas Schwinge <thomas@codesourcery.com>
7484 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
7486 2020-07-10 Julian Brown <julian@codesourcery.com>
7487 Thomas Schwinge <thomas@codesourcery.com>
7489 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
7491 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7492 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
7494 (acc_unmap_data): Update comment.
7495 (goacc_map_var_existing, goacc_enter_datum): Adjust for
7496 dynamic_refcount semantics.
7497 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
7498 Adjust for dynamic_refcount semantics.
7499 (goacc_enter_data_internal): Implement "present" case of dynamic
7500 memory-map handling here. Update "non-present" case for
7501 dynamic_refcount semantics.
7502 (goacc_exit_data_internal): Use goacc_exit_datum_1.
7503 * target.c (gomp_map_vars_internal): Remove
7504 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
7506 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
7507 (gomp_load_image_to_device): Substitute dynamic_refcount for
7509 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
7510 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
7511 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
7512 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
7513 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
7515 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
7517 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7519 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7520 Remove stale comment.
7521 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7522 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7523 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7524 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7525 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7526 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7528 2020-07-10 Julian Brown <julian@codesourcery.com>
7529 Thomas Schwinge <thomas@codesourcery.com>
7531 * oacc-mem.c (goacc_map_var_existing): New function.
7532 (goacc_enter_datum): Use above function.
7533 (goacc_exit_datum_1): New function.
7534 (goacc_exit_datum): Use above function.
7536 2020-07-09 Julian Brown <julian@codesourcery.com>
7537 Thomas Schwinge <thomas@codesourcery.com>
7540 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7541 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7543 2020-07-09 Julian Brown <julian@codesourcery.com>
7545 * oacc-mem.c (find_group_last): Group data-movement clauses
7546 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7547 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
7549 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7551 * testsuite/libgomp.c/loop-19.c: New test.
7552 * testsuite/libgomp.c/loop-20.c: New test.
7554 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7556 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7557 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
7558 it. Remove __omp_alloctrait_value_max__.
7559 * allocator.c (omp_init_allocator): Handle omp_atv_default for
7560 omp_atk_alignment and omp_atk_pool_size.
7562 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7564 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7565 behavior for 'GOMP_MAP_FORCE_FROM'.
7566 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7568 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7570 * oacc-mem.c (goacc_exit_data_internal): Remove
7571 'GOMP_MAP_ALWAYS_FROM' handling.
7573 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7575 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7576 'scan-assembler' with 'scan-offload-rtl'.
7577 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7578 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7579 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7580 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7582 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7584 * target.c (gomp_map_vars_existing): Assert 'kind !=
7586 (gomp_map_vars_internal): Clean up.
7588 2020-06-27 Jakub Jelinek <jakub@redhat.com>
7590 * testsuite/libgomp.c/loop-17.c: New test.
7591 * testsuite/libgomp.c/loop-18.c: New test.
7593 2020-06-26 Marek Polacek <polacek@redhat.com>
7595 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7597 2020-06-23 Alexandre Oliva <oliva@adacore.com>
7599 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7600 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7602 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
7604 * Makefile.am: Use -include.
7605 * Makefile.in: Regenerate.
7607 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
7609 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7610 * Makefile.in: Regenerate
7611 * configure.ac (tmake_file): Substitute.
7612 * configure: Regenerate.
7613 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7614 * config/t-aix: New file.
7616 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
7619 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7622 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
7624 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7625 variant for HSA_RUNTIME_LIB name.
7626 (find_executable_symbol_1): Delete.
7627 (find_executable_symbol): Delete.
7628 (init_kernel_properties): Add ".kd" suffix to symbol names.
7629 (find_load_offset): Delete.
7630 (create_and_finalize_hsa_program): Remove relocation handling.
7632 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
7634 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7636 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
7640 * testsuite/libgomp.fortran/target-var.f90: New test.
7642 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7643 Julian Brown <julian@codesourcery.com>
7645 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7648 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7649 Julian Brown <julian@codesourcery.com>
7651 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7654 2020-06-05 Julian Brown <julian@codesourcery.com>
7656 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7657 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7659 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7661 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7662 Evaluate 'copyfrom' individually for each entry.
7663 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7665 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7667 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7668 Evaluate 'finalize' individually for each entry.
7669 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7670 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7673 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7675 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7677 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7679 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7680 Julian Brown <julian@codesourcery.com>
7682 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7684 (acc_unmap_data, goacc_exit_data_internal): Restore
7685 'is_tgt_unmapped' checking.
7686 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7688 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7689 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7690 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7691 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7692 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7693 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7695 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7696 Julian Brown <julian@codesourcery.com>
7698 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7700 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7703 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7705 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7708 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7711 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7712 Julian Brown <julian@codesourcery.com>
7714 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7716 (acc_map_data): Clean up accordingly.
7718 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7720 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7721 of over-eager 'finalize' clause.
7722 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7724 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7725 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7726 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7727 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7728 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7729 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7730 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7731 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7733 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7735 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7737 2020-06-04 Julian Brown <julian@codesourcery.com>
7739 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7741 (goacc_detach_internal): Likewise.
7743 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7745 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7747 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7748 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7749 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7750 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7751 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7753 2020-06-02 Jakub Jelinek <jakub@redhat.com>
7755 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7758 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7760 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7762 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7764 * allocator.c (omp_alloc): For size == 0, return NULL early.
7766 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
7769 * configure: Regenerated.
7771 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7774 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7776 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7778 * omp.h.in (omp_uintptr_t): New typedef.
7779 (__GOMP_UINTPTR_T_ENUM): Define.
7780 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7781 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7782 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7783 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7784 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7785 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7786 (gomp_def_allocator): Declare.
7787 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7788 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7789 omp_alloc and omp_free.
7790 * team.c (gomp_team_start): Copy over ts.def_allocator.
7791 * env.c (gomp_def_allocator): New variable.
7792 (parse_wait_policy): Adjust function comment.
7793 (parse_allocator): New function.
7794 (handle_omp_display_env): Print OMP_ALLOCATOR.
7795 (initialize_env): Call parse_allocator.
7796 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7797 * allocator.c: New file.
7798 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7800 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7801 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7802 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7803 * Makefile.in: Regenerated.
7805 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7808 * configure: Regenerated.
7810 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7813 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7815 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7817 * configure: Regenerated.
7819 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7821 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7823 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
7826 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7827 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7828 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7829 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7830 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7831 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7832 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7834 2020-05-12 Jakub Jelinek <jakub@redhat.com>
7836 * testsuite/libgomp.c/target-39.c: New test.
7838 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7840 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7841 * openacc.f90 (acc_device_current): Likewise.
7842 * openacc.h (acc_device_current): Likewise.
7843 * openacc_lib.h (acc_device_current): Likewise.
7846 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7847 'dg-allow-blank-lines-in-output'.
7849 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7850 * testsuite/lib/libgomp.exp
7851 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7852 'radeon'. Adjust all users.
7853 (check_effective_target_openacc_amdgcn_accel_present): Rename
7855 (check_effective_target_openacc_radeon_accel_present): ... this.
7857 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7858 (check_effective_target_openacc_radeon_accel_selected): ... this.
7861 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7864 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
7868 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7870 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7871 hsa_agent_iterate_regions.
7873 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7876 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7879 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
7882 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7885 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
7888 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7890 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7893 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7895 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7897 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7899 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7901 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7903 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7905 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7907 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7909 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7911 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7913 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7915 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7917 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7919 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7921 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7923 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7925 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7927 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7929 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7931 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7933 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7935 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7937 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7939 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7941 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7943 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7945 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7947 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7949 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7951 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7953 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7955 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7958 2020-04-10 Julian Brown <julian@codesourcery.com>
7959 Thomas Schwinge <thomas@codesourcery.com>
7962 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7964 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7966 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7968 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7970 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7972 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7974 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7976 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7978 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7980 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7982 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7984 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7986 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7988 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7990 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7992 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7995 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7997 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
8000 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
8003 * libgomp.oacc-c++/declare-pr94120.C: New.
8005 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
8007 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
8009 * configure: Regenerate.
8010 * testsuite/libgomp-site-extra.exp.in: New file.
8011 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
8013 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
8015 * testsuite/Makefile.in: Regenerate.
8017 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
8019 PR tree-optimization/89713
8021 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
8023 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
8025 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
8027 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
8028 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
8030 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
8033 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
8035 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
8038 * target.c (gomp_load_image_to_device): Fix link
8041 2020-03-19 Jakub Jelinek <jakub@redhat.com>
8044 * testsuite/libgomp.c++/pr93931.C: New test.
8046 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
8048 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
8049 dg-allow-blank-lines-in-output.
8051 2020-03-18 Julian Brown <julian@codesourcery.com>
8052 Tobias Burnus <tobias@codesourcery.com>
8054 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
8055 it work concurrently.
8057 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
8059 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
8060 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
8061 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
8063 2020-03-14 Jakub Jelinek <jakub@redhat.com>
8066 * testsuite/libgomp.c/pr93566.c: New test.
8068 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
8070 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
8071 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
8072 integer(acc_device_property) for the type of the return value of
8075 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
8077 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
8078 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
8079 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
8080 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
8081 (acc_set_device_num): Fix Fortran argument name, use same name for C.
8082 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
8083 corrections; add note about the previous interface and named constant.
8084 (OpenACC library and environment variables): Fix two typos.
8085 * openacc.f90: Use for all procedures the argument names from the spec
8086 as for …_h they are user visible.
8087 (openacc_kinds): Rename acc_device_property to
8088 acc_device_property_kinds and change value to int32 ; and update users.
8089 Re-add acc_device_property for for backward compatibility.
8090 (acc_get_property_string_h): Clean up as acc_device_property_kind
8092 (acc_get_property_h): Likewise and return c_size_t instead of
8093 acc_device_property.
8094 (openacc): Also export acc_device_property_kinds.
8095 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
8096 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
8097 handling; check against /= 0 instead of == 1 to match C.
8098 * openacc_lib.h: Use for all procedures the argument names from the spec
8099 as for …_h they are user visible. Place !GCC$ into the first column to
8100 be active also for fixed-form souce form.
8101 (acc_device_current, acc_device_property_kind, acc_device_property,
8102 acc_property_memory, acc_property_free_memory, acc_property_name,
8103 acc_property_vendor, acc_property_driver): New named constants.
8104 (acc_get_property, acc_get_property_string): New generic interface.
8106 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
8109 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
8110 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
8112 (gomp_target_task_fn): Assert "devicep->async_run_func".
8113 (clear_unsupported_flags): New function to remove unsupported flags
8114 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
8115 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
8116 * testsuite/libgomp.c/target-33.c:
8117 Remove xfail for offload_target_nvptx.
8118 * testsuite/libgomp.c/target-34.c: Likewise.
8120 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
8122 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
8123 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
8124 * testsuite/libgomp.c/target-34.c: Likewise.
8125 * testsuite/libgomp.c/target-link-1.c: Add xfail for
8126 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
8128 2020-02-09 Jakub Jelinek <jakub@redhat.com>
8130 * testsuite/libgomp.c/target-38.c: New test.
8132 2020-02-06 Jakub Jelinek <jakub@redhat.com>
8135 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
8137 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
8139 * testsuite/lib/libgomp.exp
8140 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
8141 and not as 'source' argument to libgomp_target_compile.
8143 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
8145 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
8146 (gcn_gfx801_s): Remove.
8147 (isa_hsa_name): Remove gfx801.
8148 (isa_gcc_name): Remove gfx801/carizzo.
8149 (isa_code): Remove gfx801.
8151 2020-02-03 Julian Brown <julian@codesourcery.com>
8152 Tobias Burnus <tobias@codesourcery.com>
8154 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
8155 and *_finalize variants; document acc_attach and acc_detach; update
8156 references from OpenACC 2.0 to 2.6.
8157 * openacc.f90 (openacc_version): Update to 201711.
8158 * openacc_lib.h (openacc_version): Update to 201711.
8159 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
8160 openacc_version to 201711.
8161 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8163 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
8165 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
8166 and vgpr_count fields.
8167 (struct kernel_info): Add a field for a hsa_kernel_description.
8168 (run_kernel): Reduce the number of threads/workers if the requested
8169 number would require too many VGPRs.
8170 (init_basic_kernel_info): Initialize description field with
8171 the hsa_kernel_description entry for the kernel.
8173 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
8176 * plugin/configfrag.ac (enable_offload_targets): Skip
8177 HSA and GCN plugin besides -m32 also for -mx32.
8178 * configure: Regenerate.
8180 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
8182 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
8184 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
8186 * plugin-gcn.c (struct agent_info): Add fields "name" and
8188 (GOMP_OFFLOAD_init_device): ... and init from here.
8189 (struct hsa_context_info): Add field "driver_version_s" ...
8190 (init_hsa_contest): ... and init from here.
8191 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
8193 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8194 Enable test execution for amdgcn and host offloading targets.
8195 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
8196 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8197 (expect_device_properties): Split function into ...
8198 (expect_device_string_properties): ... this new function ...
8199 (expect_device_memory): ... and this new function.
8200 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
8203 2020-01-28 Julian Brown <julian@codesourcery.com>
8205 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
8206 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
8207 component/non-component variable refs in a single directive.
8208 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
8210 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
8212 * configure.ac: Handle `--with-toolexeclibdir='.
8213 * Makefile.in: Regenerate.
8214 * aclocal.m4: Regenerate.
8215 * configure: Regenerate.
8216 * testsuite/Makefile.in: Regenerate.
8218 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
8220 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8221 (expect_device_properties): Remove "expected_free_mem" argument,
8222 change "expected_total_mem" argument type to size_t;
8223 change types of acc_get_property results to size_t,
8224 adapt format strings.
8225 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8226 Use %zu instead of %zd to print size_t values.
8227 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
8229 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
8230 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
8232 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
8234 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
8236 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
8239 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
8241 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
8242 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
8243 Adjust test dimensions for amdgcn.
8244 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
8245 gang/worker/vector expectations dynamically.
8246 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
8248 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
8249 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
8250 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
8251 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
8252 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
8253 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
8254 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
8255 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
8256 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
8257 (acc_gang): Recognise acc_device_radeon.
8258 (acc_worker): Likewise.
8259 (acc_vector): Likewise.
8260 (main): Set expectations for amdgcn.
8261 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
8262 (main): Adjust gang/worker/vector expectations dynamically.
8263 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
8264 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
8265 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
8266 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
8269 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
8271 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
8273 (openacc): Likewise.
8274 * openacc.f90 (openacc_kinds): Likewise.
8275 (openacc): Likewise.
8276 * openacc.h (acc_device_t): Likewise.
8277 * openacc_lib.h: Likewise.
8278 * testsuite/lib/libgomp.exp
8279 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
8280 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
8281 (cb_compute_construct_end): Likewise.
8282 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
8283 (cb_enqueue_launch_start): Likewise.
8284 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
8285 (cb_enter_data_end): Likewise.
8286 (cb_exit_data_start): Likewise.
8287 (cb_exit_data_end): Likewise.
8288 (cb_compute_construct_end): Likewise.
8289 (cb_enqueue_launch_start): Likewise.
8290 (cb_enqueue_launch_end): Likewise.
8291 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
8294 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
8296 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
8297 to use this instead of 'enum gomp_device_property'.
8298 (GOMP_OFFLOAD_get_property): Rename to...
8299 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
8300 * libgomp.h (struct gomp_device_descr): Move
8301 'GOMP_OFFLOAD_openacc_get_property'...
8302 (struct acc_dispatch_t): ... here. Adjust all users.
8303 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
8305 * target.c (gomp_map_vars_internal)
8306 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
8309 2020-01-10 Jakub Jelinek <jakub@redhat.com>
8312 * libgomp.h (gomp_print_string): Change return type from void to int.
8313 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
8314 not all characters have been written.
8316 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
8318 * libgomp.texi: Fix typos, use https.
8320 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
8322 * testsuite/libgomp.fortran/optional-map.f90: Add test for
8323 unallocated/disassociated actual arguments to nonallocatable/nonpointer
8324 dummy arguments; those are/shall be regarded as absent arguments.
8325 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8326 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
8328 2020-01-01 Jakub Jelinek <jakub@redhat.com>
8330 Update copyright years.
8332 * libgomp.texi: Bump @copying's copyright year.
8334 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
8337 * oacc-init.c (goacc_runtime_deinitialize): New function.
8339 2019-12-28 Jakub Jelinek <jakub@redhat.com>
8342 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
8343 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
8345 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
8346 Frederik Harwath <frederik@codesourcery.com>
8347 Thomas Schwinge <tschwinge@codesourcery.com>
8349 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
8350 * libgomp-plugin.h (gomp_device_property_value): New union.
8351 (gomp_device_property_value): New prototype.
8352 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
8354 (acc_device_property_t): New enum.
8355 (acc_get_property, acc_get_property_string): New prototypes.
8356 * oacc-init.c (acc_get_device_type): Also assert that result
8357 is not `acc_device_current'.
8358 (get_property_any, acc_get_property, acc_get_property_string):
8360 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
8361 `acc_property_memory', `acc_property_free_memory',
8362 `acc_property_name', `acc_property_vendor' and
8363 `acc_property_driver' constants. Add `acc_device_property' data
8365 (openacc_internal): Add `acc_get_property' and
8366 `acc_get_property_string' interfaces. Add `acc_get_property_h',
8367 `acc_get_property_string_h', `acc_get_property_l' and
8368 `acc_get_property_string_l'.
8369 * oacc-host.c (host_get_property): New function.
8370 (host_dispatch): Wire it.
8371 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
8372 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
8373 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
8374 * libgomp.texi (OpenACC Runtime Library Routines): Add
8376 (acc_get_property): New node.
8377 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
8379 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
8380 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
8381 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
8383 (GOMP_OFFLOAD_get_property): New function.
8384 (struct ptx_device): Add new field "name".
8385 (cuda_driver_version_s): Add new static variable ...
8386 (nvptx_init): ... and init from here.
8388 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
8389 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
8390 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
8391 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
8392 with test helper functions.
8394 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
8396 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
8398 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
8401 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
8403 * target.c (gomp_map_vars_internal): Restore 'omp declare target
8406 2019-12-19 Julian Brown <julian@codesourcery.com>
8408 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
8409 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
8410 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
8412 2019-12-19 Julian Brown <julian@codesourcery.com>
8413 Cesar Philippidis <cesar@codesourcery.com>
8415 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
8416 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
8417 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
8418 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
8419 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
8420 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
8421 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
8422 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
8423 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
8424 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
8425 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
8426 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
8427 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
8429 2019-12-19 Julian Brown <julian@codesourcery.com>
8431 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
8432 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
8433 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
8434 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
8435 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
8436 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
8437 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
8438 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
8439 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
8440 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
8441 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
8442 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
8444 2019-12-19 Julian Brown <julian@codesourcery.com>
8446 * libgomp.h (struct target_var_desc): Add do_detach flag.
8447 * oacc-init.c (acc_shutdown_1): Free aux block if present.
8448 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
8449 struct components. Tidy up and add some new checks.
8450 (goacc_enter_data_internal): Update call to find_group_last.
8451 (goacc_exit_data_internal): Support detach operations and
8453 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
8454 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
8455 attach/detach in enter/exit data detection code.
8456 * target.c (gomp_map_vars_existing): Initialise do_detach field of
8458 (gomp_map_vars_internal): Support attach.
8459 (gomp_unmap_vars_internal): Support detach.
8461 2019-12-19 Julian Brown <julian@codesourcery.com>
8462 Thomas Schwinge <thomas@codesourcery.com>
8464 * libgomp.h (struct splay_tree_aux): Add attach_count field.
8465 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
8466 * libgomp.map (OACC_2.6): New section. Add acc_attach,
8467 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
8468 acc_detach_finalize_async.
8469 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
8470 acc_detach, acc_detach_async, acc_detach_finalize,
8471 acc_detach_finalize_async): New functions.
8472 * openacc.h (acc_attach, acc_attach_async, acc_detach,
8473 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
8475 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
8476 (gomp_remove_var_internal): Free attachment counts if present.
8477 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
8478 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
8480 2019-12-19 Julian Brown <julian@codesourcery.com>
8481 Cesar Philippidis <cesar@codesourcery.com>
8483 * libgomp.h (gomp_map_val): Add prototype.
8484 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
8485 open-coding device-address calculation.
8486 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
8489 2019-12-19 Julian Brown <julian@codesourcery.com>
8491 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
8492 field for virtual_refcount.
8493 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8494 (gomp_free_memmap): Remove prototype.
8495 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
8496 instead of calling gomp_free_memmap.
8497 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
8499 (acc_unmap_data): Open code instead of forcing target_mem_desc's
8500 to_free field to NULL then calling gomp_unmap_vars. Handle
8501 REFCOUNT_INFINITY on target blocks.
8502 (goacc_enter_data): Rename to...
8503 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
8504 handling for mapping groups. Use virtual_refcount instead of
8505 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
8506 map_map_vars_async call. Re-do lookup for target pointer return value.
8507 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
8508 renamed goacc_enter_datum function.
8509 (goacc_exit_data): Rename to...
8510 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
8511 (acc_delete, acc_delete_async, acc_delete_finalize,
8512 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
8513 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
8514 goacc_exit_datum function.
8515 (gomp_acc_remove_pointer, find_pointer): Remove functions.
8516 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
8518 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8519 goacc_exit_data_internal helper functions.
8520 * target.c (gomp_map_vars_internal): Handle
8521 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
8523 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8524 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8525 virtual_refcount field instead of dynamic_refcount.
8526 (gomp_free_memmap): Remove function.
8527 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8528 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8529 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8531 2019-12-19 Julian Brown <julian@codesourcery.com>
8532 Thomas Schwinge <thomas@codesourcery.com>
8534 * libgomp.h (struct splay_tree_aux): New.
8535 (struct splay_tree_key_s): Replace link_key field with aux pointer.
8536 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8538 (gomp_remove_var_internal): Free aux block if present.
8539 (gomp_load_image_to_device): Zero-initialise aux field instead of
8541 (omp_target_associate_pointer): Zero-initialise aux field.
8543 2019-12-18 Jakub Jelinek <jakub@redhat.com>
8546 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8548 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8551 2019-12-19 Julian Brown <julian@codesourcery.com>
8552 Maciej W. Rozycki <macro@codesourcery.com>
8553 Tobias Burnus <tobias@codesourcery.com>
8554 Thomas Schwinge <thomas@codesourcery.com>
8556 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8557 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8558 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8559 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8560 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8561 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8562 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8563 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8564 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8566 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
8568 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8570 (goacc_insert_pointer): ... from here, "present" case.
8571 (goacc_insert_pointer): Inline function into...
8572 (GOACC_enter_exit_data): ... here, and simplify.
8574 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8576 (goacc_insert_pointer): ... from here, "not present" case.
8578 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
8581 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8582 'goacc_enter_data', 'goacc_exit_data'.
8584 * oacc-mem.c (delete_copyout): Refactor into...
8585 (goacc_exit_data): ... this. Adjust all users.
8587 * oacc-mem.c (present_create_copy): Refactor into...
8588 (goacc_enter_data): ... this. Adjust all users.
8590 * target.c (gomp_unmap_vars_internal): Add a safeguard to
8593 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8594 like 'GOMP_MAP_FROM'.
8599 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8601 (GOACC_enter_exit_data): Simplify accordingly.
8602 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8604 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8605 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8607 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8609 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8610 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8612 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8614 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8616 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8617 'finalize' handling.
8620 * oacc-mem.c (acc_map_data, present_create_copy)
8621 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8622 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8623 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8624 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8625 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8626 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8627 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8628 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8631 * target.c (gomp_unmap_tgt): Make it 'static'.
8632 * libgomp.h (gomp_unmap_tgt): Remove.
8634 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
8637 * testsuite/libgomp.c/pr86416-1.c: New.
8638 * testsuite/libgomp.c/pr86416-2.c: New.
8640 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
8642 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8643 all symbols as public except for the 'use …, only' imported symbol,
8645 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8646 all symbols from module openacc_kinds as PUBLIC
8647 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8649 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8651 2019-12-13 Julian Brown <julian@codesourcery.com>
8655 * libgomp.h (gomp_remove_var_async): Add prototype.
8656 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8658 * target.c (gomp_unref_tgt): Change return type to bool, indicating
8659 whether target_mem_desc was unmapped.
8660 (gomp_unref_tgt_void): New.
8661 (gomp_remove_var): Reimplement in terms of...
8662 (gomp_remove_var_internal): ...this new helper function.
8663 (gomp_remove_var_async): New, implemented using above helper function.
8664 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8667 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
8669 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8670 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8671 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8672 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8673 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8675 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8676 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8678 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
8680 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8681 as public except for the 'use …, only' imported symbol, which is
8683 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8684 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8685 attributes for acc_copyout_finalize and acc_delete_finalize.
8687 2019-12-11 Jakub Jelinek <jakub@redhat.com>
8690 * testsuite/libgomp.fortran/atomic1.f90: New test.
8692 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8695 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8696 reference counting for structured 'REFCOUNT_INFINITY'. Add some
8698 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8699 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8700 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8701 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8702 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8704 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8705 * oacc-mem.c: ... here.
8706 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8707 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8708 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8710 * libgomp_g.h: Update.
8712 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8713 * oacc-async.c: ... here.
8714 * oacc-int.h (goacc_wait): Declare.
8715 * libgomp_g.h: Update
8718 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8720 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8722 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8724 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8726 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8728 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8731 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8732 Julian Brown <julian@codesourcery.com>
8734 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8735 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8737 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8739 * omp_lib.h.in: Fix spelling of function declaration
8740 omp_get_cancell(l)ation.
8741 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8743 * env.c: Fix comment typos.
8744 * oacc-host.c: Likewise.
8745 * ordered.c: Likewise.
8748 * config/gcn/task.c: Likewise.
8749 * config/gcn/team.c: Likewise.
8750 * config/nvptx/task.c: Likewise.
8751 * config/nvptx/team.c: Likewise.
8752 * plugin/plugin-gcn.c: Likewise.
8753 * testsuite/libgomp.fortran/jacobi.f: Likewise.
8754 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8755 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8757 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8759 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8760 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8761 unnecessary 'dg-additional-options "-w"'.
8763 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8764 Julian Brown <julian@codesourcery.com>
8769 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8770 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8772 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8774 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8776 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8778 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8781 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8782 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8784 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8786 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8788 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8790 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8792 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8794 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8795 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8796 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8797 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8798 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8799 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8800 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8801 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8802 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8803 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8806 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8807 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8808 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8810 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8812 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8814 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8815 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8818 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8820 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8822 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8824 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8826 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8827 ... with their content moved into, and extended in this new file.
8828 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8830 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8832 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8834 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8837 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8840 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8842 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8844 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8846 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
8848 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8850 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8851 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8852 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8853 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8855 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8856 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8858 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8860 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8862 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
8863 Kwok Cheung Yeung <kcy@codesourcery.com>
8865 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8866 if input it a NULL pointer.
8867 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8868 diagnostic of NULL pointer.
8869 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8870 * testsuite/libgomp.fortran/optional-map.f90: New.
8871 * testsuite/libgomp.fortran/use_device_addr-1.f90
8872 (test_dummy_opt_callee_1_absent): New.
8873 (test_dummy_opt_call_1): Call it.
8874 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8875 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8876 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8877 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8878 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8879 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8880 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8881 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8882 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8883 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8884 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8885 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8886 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8887 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8888 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8889 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8891 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
8893 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8894 expect dg-output of 'Error termination.' for GCN.
8895 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8896 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8898 2019-12-04 Jakub Jelinek <jakub@redhat.com>
8901 * testsuite/libgomp.fortran/teams1.f90: New test.
8902 * testsuite/libgomp.fortran/teams2.f90: New test.
8904 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
8906 * oacc-init.c (acc_known_device_type): Add function.
8907 (unknown_device_type_error): Add function.
8908 (name_of_acc_device_t): Change to call unknown_device_type_error
8910 (resolve_device): Use acc_known_device_type.
8911 (acc_init): Fail if acc_device_t argument is not valid.
8912 (acc_shutdown): Likewise.
8913 (acc_get_num_devices): Likewise.
8914 (acc_set_device_type): Likewise.
8915 (acc_get_device_num): Likewise.
8916 (acc_set_device_num): Likewise.
8917 (acc_on_device): Add comment that argument validity is not checked.
8919 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
8921 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8923 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8924 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8925 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8926 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8927 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8929 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8932 * configure.tgt: Avoid IE tls on *-*-musl*.
8934 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
8936 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8937 adding a common-block test case.
8939 2019-11-29 Jakub Jelinek <jakub@redhat.com>
8942 * testsuite/libgomp.c++/udr-20.C: New test.
8943 * testsuite/libgomp.c++/udr-21.C: New test.
8945 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8947 * testsuite/lib/libgomp.exp
8948 (check_effective_target_offload_target_nvptx): New proc.
8949 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8951 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8952 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8953 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8955 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8957 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8958 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8959 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8960 * testsuite/libgomp.c/private-1.c: Likewise.
8961 * testsuite/libgomp.c/task-1.c: Likewise.
8962 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8964 2019-11-20 Julian Brown <julian@codesourcery.com>
8966 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8968 (queue_push_launch): Lock aq->mutex before calling
8969 wait_for_queue_nonfull.
8970 (queue_push_callback): Likewise.
8971 (queue_push_asyncwait): Likewise.
8972 (queue_push_placeholder): Likewise.
8974 2019-11-20 Julian Brown <julian@codesourcery.com>
8976 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8977 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8978 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8981 2019-11-20 Julian Brown <julian@codesourcery.com>
8985 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8986 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8987 in non-present/create case.
8988 (delete_copyout): Change error condition to fail only on copies outside
8989 of mapped block. Adjust error message accordingly.
8990 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8991 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8992 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8994 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8995 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8996 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8998 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
9000 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
9001 libatomic in build-tree testing.
9003 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
9005 * testsuite/Makefile.in: Regenerate.
9007 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
9009 * testsuite/libgomp.c/target-print-1.c: New file.
9010 * testsuite/libgomp.fortran/target-print-1.f90: New file.
9011 * testsuite/libgomp.oacc-c/print-1.c: New file.
9012 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
9014 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
9015 Kwok Cheung Yeung <kcy@codesourcery.com>
9016 Julian Brown <julian@codesourcery.com>
9017 Tom de Vries <tom@codesourcery.com>
9019 * plugin/Makefrag.am: Add amdgcn plugin support.
9020 * plugin/configfrag.ac: Likewise.
9021 * plugin/plugin-gcn.c: New file.
9022 * configure: Regenerate.
9023 * Makefile.in: Regenerate.
9024 * testsuite/Makefile.in: Regenerate.
9026 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
9028 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
9029 and use team_malloc variants.
9030 (gomp_gcn_exit_kernel): Use team_free.
9031 * libgomp.h (TEAM_ARENA_SIZE): Define.
9032 (TEAM_ARENA_START): Define.
9033 (TEAM_ARENA_FREE): Define.
9034 (TEAM_ARENA_END): Define.
9035 (team_malloc): New function.
9036 (team_malloc_cleared): New function.
9037 (team_free): New function.
9038 * team.c (gomp_new_team): Initialize and use team_malloc.
9039 (free_team): Use team_free.
9040 (gomp_free_thread): Use team_free.
9041 (gomp_pause_host): Use team_free.
9042 * work.c (gomp_init_work_share): Use team_malloc.
9043 (gomp_fini_work_share): Use team_free.
9045 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
9046 Kwok Cheung Yeung <kcy@codesourcery.com>
9047 Julian Brown <julian@codesourcery.com>
9048 Tom de Vries <tom@codesourcery.com>
9050 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
9051 * Makefile.in: Regenerate.
9052 * config.h.in (PLUGIN_GCN): Add new undef.
9053 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
9054 * config/gcn/affinity-fmt.c: New file.
9055 * config/gcn/bar.c: New file.
9056 * config/gcn/bar.h: New file.
9057 * config/gcn/doacross.h: New file.
9058 * config/gcn/icv-device.c: New file.
9059 * config/gcn/oacc-target.c: New file.
9060 * config/gcn/simple-bar.h: New file.
9061 * config/gcn/target.c: New file.
9062 * config/gcn/task.c: New file.
9063 * config/gcn/team.c: New file.
9064 * config/gcn/time.c: New file.
9065 * configure.ac: Add amdgcn*-*-*.
9066 * configure: Regenerate.
9067 * configure.tgt: Add amdgcn*-*-*.
9068 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
9069 * libgomp.h (gcn_thrs): Add amdgcn variant.
9070 (set_gcn_thrs): Likewise.
9071 (gomp_thread): Likewise.
9072 * oacc-int.h (goacc_thread): Likewise.
9073 * oacc-target.c: New file.
9074 * openacc.f90 (acc_device_gcn): New parameter.
9075 * openacc.h (acc_device_t): Add acc_device_gcn.
9076 * team.c (gomp_free_pool_helper): Add amdgcn support.
9078 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
9079 Julian Brown <julian@codesourcery.com>
9081 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
9083 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
9085 * oacc-host.c (host_openacc_async_construct): Add device parameter.
9086 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
9089 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
9091 * configure.tgt (nvptx*-*-*): Add "accel" directory.
9092 * config/nvptx/libgomp-plugin.c: Move ...
9093 * config/accel/libgomp-plugin.c: ... to here.
9094 * config/nvptx/lock.c: Move ...
9095 * config/accel/lock.c: ... to here.
9096 * config/nvptx/mutex.c: Move ...
9097 * config/accel/mutex.c: ... to here.
9098 * config/nvptx/mutex.h: Move ...
9099 * config/accel/mutex.h: ... to here.
9100 * config/nvptx/oacc-async.c: Move ...
9101 * config/accel/oacc-async.c: ... to here.
9102 * config/nvptx/oacc-cuda.c: Move ...
9103 * config/accel/oacc-cuda.c: ... to here.
9104 * config/nvptx/oacc-host.c: Move ...
9105 * config/accel/oacc-host.c: ... to here.
9106 * config/nvptx/oacc-init.c: Move ...
9107 * config/accel/oacc-init.c: ... to here.
9108 * config/nvptx/oacc-mem.c: Move ...
9109 * config/accel/oacc-mem.c: ... to here.
9110 * config/nvptx/oacc-plugin.c: Move ...
9111 * config/accel/oacc-plugin.c: ... to here.
9112 * config/nvptx/omp-lock.h: Move ...
9113 * config/accel/omp-lock.h: ... to here.
9114 * config/nvptx/openacc.f90: Move ...
9115 * config/accel/openacc.f90: ... to here.
9116 * config/nvptx/pool.h: Move ...
9117 * config/accel/pool.h: ... to here.
9118 * config/nvptx/proc.c: Move ...
9119 * config/accel/proc.c: ... to here.
9120 * config/nvptx/ptrlock.c: Move ...
9121 * config/accel/ptrlock.c: ... to here.
9122 * config/nvptx/ptrlock.h: Move ...
9123 * config/accel/ptrlock.h: ... to here.
9124 * config/nvptx/sem.c: Move ...
9125 * config/accel/sem.c: ... to here.
9126 * config/nvptx/sem.h: Move ...
9127 * config/accel/sem.h: ... to here.
9128 * config/nvptx/thread-stacksize.h: Move ...
9129 * config/accel/thread-stacksize.h: ... to here.
9131 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
9132 Tobias Burnus <tobias@codesourcery.com>
9133 Frederik Harwath <frederik@codesourcery.com>
9134 Thomas Schwinge <thomas@codesourcery.com>
9137 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
9138 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
9139 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
9141 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
9142 Kwok Cheung Yeung <kcy@codesourcery.com>
9144 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
9145 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
9147 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
9149 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
9151 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
9153 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
9154 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
9156 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
9158 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
9159 Add expected warnings about missing reduction clauses.
9160 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
9162 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
9164 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
9167 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
9169 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
9170 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
9171 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
9172 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9173 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9174 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9176 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
9179 * testsuite/libgomp.fortran/allocatable2.f90: Use
9180 unique numbers with 'stop'.
9181 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9182 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9183 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
9184 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
9185 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
9187 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
9189 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
9190 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
9191 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
9192 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
9193 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
9194 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
9196 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9198 * testsuite/libgomp.fortran/target9.f90: New.
9200 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9202 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
9203 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
9204 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
9205 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
9206 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
9207 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
9208 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
9209 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
9210 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
9211 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
9212 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
9213 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
9214 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
9215 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
9216 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
9217 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
9218 * testsuite/libgomp.fortran/associate1.f90: Ditto.
9219 * testsuite/libgomp.fortran/associate2.f90: Ditto.
9220 * testsuite/libgomp.fortran/associate3.f90: Ditto.
9221 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
9222 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
9223 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
9224 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
9225 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
9226 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
9227 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
9228 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
9229 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
9230 * testsuite/libgomp.fortran/character1.f90: Ditto.
9231 * testsuite/libgomp.fortran/character2.f90: Ditto.
9232 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
9233 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
9234 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
9235 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
9236 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
9237 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
9238 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
9239 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
9240 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
9241 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
9242 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
9243 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
9244 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
9245 * testsuite/libgomp.fortran/do1.f90: Ditto.
9246 * testsuite/libgomp.fortran/do2.f90: Ditto.
9247 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
9248 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
9249 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
9250 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
9251 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
9252 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
9253 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
9254 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
9255 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
9256 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
9257 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
9258 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
9259 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
9260 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
9261 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
9262 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
9263 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
9264 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
9265 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
9266 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
9267 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
9268 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
9269 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
9270 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
9271 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
9272 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
9273 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
9274 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
9275 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
9276 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
9277 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
9278 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
9279 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
9280 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
9281 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
9282 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
9283 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
9284 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
9285 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
9286 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
9287 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
9288 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
9289 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
9290 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
9291 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
9292 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
9293 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
9294 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
9295 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
9296 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9297 * testsuite/libgomp.fortran/lib1.f90: Ditto.
9298 * testsuite/libgomp.fortran/lib4.f90: Ditto.
9299 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
9300 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
9301 * testsuite/libgomp.fortran/nested1.f90: Ditto.
9302 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
9303 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
9304 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
9305 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9306 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
9307 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
9308 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9309 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
9310 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
9311 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
9312 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
9313 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
9314 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
9315 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
9316 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9317 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
9318 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9319 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
9320 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
9321 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
9322 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
9323 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
9324 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
9325 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
9326 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9327 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
9328 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
9329 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
9330 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
9331 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
9332 * testsuite/libgomp.fortran/pr28390.f: Ditto.
9333 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
9334 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9335 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
9336 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
9337 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9338 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
9339 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
9340 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
9341 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
9342 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
9343 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
9344 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
9345 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
9346 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
9347 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
9348 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
9349 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
9350 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
9351 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
9352 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
9353 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
9354 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
9355 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
9356 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
9357 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
9358 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9359 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
9360 * testsuite/libgomp.fortran/reference1.f90: Ditto.
9361 * testsuite/libgomp.fortran/reference2.f90: Ditto.
9362 * testsuite/libgomp.fortran/retval1.f90: Ditto.
9363 * testsuite/libgomp.fortran/retval2.f90: Ditto.
9364 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
9365 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
9366 * testsuite/libgomp.fortran/simd1.f90: Ditto.
9367 * testsuite/libgomp.fortran/simd2.f90: Ditto.
9368 * testsuite/libgomp.fortran/simd3.f90: Ditto.
9369 * testsuite/libgomp.fortran/simd4.f90: Ditto.
9370 * testsuite/libgomp.fortran/simd5.f90: Ditto.
9371 * testsuite/libgomp.fortran/simd6.f90: Ditto.
9372 * testsuite/libgomp.fortran/simd7.f90: Ditto.
9373 * testsuite/libgomp.fortran/stack.f90: Ditto.
9374 * testsuite/libgomp.fortran/strassen.f90: Ditto.
9375 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
9376 * testsuite/libgomp.fortran/tabs2.f: Ditto.
9377 * testsuite/libgomp.fortran/target1.f90: Ditto.
9378 * testsuite/libgomp.fortran/target2.f90: Ditto.
9379 * testsuite/libgomp.fortran/target3.f90: Ditto.
9380 * testsuite/libgomp.fortran/target4.f90: Ditto.
9381 * testsuite/libgomp.fortran/target5.f90: Ditto.
9382 * testsuite/libgomp.fortran/target6.f90: Ditto.
9383 * testsuite/libgomp.fortran/target7.f90: Ditto.
9384 * testsuite/libgomp.fortran/target8.f90: Ditto.
9385 * testsuite/libgomp.fortran/task1.f90: Ditto.
9386 * testsuite/libgomp.fortran/task2.f90: Ditto.
9387 * testsuite/libgomp.fortran/task3.f90: Ditto.
9388 * testsuite/libgomp.fortran/task4.f90: Ditto.
9389 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9390 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9391 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9392 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9393 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9394 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
9395 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
9396 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
9397 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
9398 * testsuite/libgomp.fortran/udr1.f90: Ditto.
9399 * testsuite/libgomp.fortran/udr10.f90: Ditto.
9400 * testsuite/libgomp.fortran/udr11.f90: Ditto.
9401 * testsuite/libgomp.fortran/udr12.f90: Ditto.
9402 * testsuite/libgomp.fortran/udr13.f90: Ditto.
9403 * testsuite/libgomp.fortran/udr14.f90: Ditto.
9404 * testsuite/libgomp.fortran/udr15.f90: Ditto.
9405 * testsuite/libgomp.fortran/udr2.f90: Ditto.
9406 * testsuite/libgomp.fortran/udr3.f90: Ditto.
9407 * testsuite/libgomp.fortran/udr4.f90: Ditto.
9408 * testsuite/libgomp.fortran/udr5.f90: Ditto.
9409 * testsuite/libgomp.fortran/udr6.f90: Ditto.
9410 * testsuite/libgomp.fortran/udr7.f90: Ditto.
9411 * testsuite/libgomp.fortran/udr8.f90: Ditto.
9412 * testsuite/libgomp.fortran/udr9.f90: Ditto.
9413 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9414 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9415 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9416 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9417 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9418 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9419 * testsuite/libgomp.fortran/vla7.f90: Ditto.
9420 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9421 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9422 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9424 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9426 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
9427 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
9428 Ditto; add 'dg-do run' for torture testing.
9429 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
9430 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9431 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9432 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9433 * testsuite/libgomp.fortran/pr28390.f: Ditto.
9434 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9435 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
9436 * testsuite/libgomp.fortran/task2.f90: Ditto.
9437 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9438 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9439 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9440 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9441 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9442 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9444 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
9446 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
9447 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
9448 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
9449 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
9450 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
9451 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
9452 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
9453 Use 'stop' not abort().
9454 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
9455 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
9456 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
9457 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
9458 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
9459 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
9460 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
9461 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
9462 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
9463 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
9464 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
9465 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
9466 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
9467 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
9468 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
9469 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
9470 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9472 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9474 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9476 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9478 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9480 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
9482 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
9484 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
9486 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
9488 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
9490 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
9492 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
9494 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
9496 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
9498 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
9499 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
9500 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
9501 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
9502 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9503 Likewise and also add 'dg-do run'.
9504 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9507 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
9508 Tobias Burnus <tobias@codesourcery.com>
9510 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
9511 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
9512 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
9514 2019-10-14 Jakub Jelinek <jakub@redhat.com>
9517 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9520 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9522 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9523 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9525 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
9528 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9531 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
9534 * testsuite/libgomp.fortran/fortran.exp: Conditionally
9536 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9538 2019-10-09 Jakub Jelinek <jakub@redhat.com>
9541 * target.c (gomp_map_vars_internal): Readd the previous
9542 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9543 though do that just in the !not_found_cnt case.
9545 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
9547 * gfortran.dg/gomp/target-simd.f90: New.
9549 2019-10-02 Julian Brown <julian@codesourcery.com>
9550 Cesar Philippidis <cesar@codesourcery.com>
9552 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9553 * target.c (FIELD_TGT_EMPTY): Define.
9554 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
9555 as switch instead of list of ifs.
9556 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9558 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
9560 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9561 include. Replace alloca () with __builtin_alloca ().
9562 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9564 2019-10-01 Jakub Jelinek <jakub@redhat.com>
9566 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9567 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9568 * oacc-parallel.c: Don't include "libgomp_g.h".
9569 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9570 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9571 * aclocal.m4: Regenerated.
9572 * config.h.in: Regenerated.
9573 * configure: Regenerated.
9574 * Makefile.in: Regenerated.
9576 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
9578 * libgomp_g.h: Include stdint.h instead of gstdint.h.
9580 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
9582 * configure: Regenerate.
9584 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
9586 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9587 string is initialized.
9589 2019-09-06 Florian Weimer <fweimer@redhat.com>
9591 * configure: Regenerate.
9593 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
9596 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9597 scanning to conform to the GNU Coding Standards.
9598 * configure: Regenerate.
9600 2019-08-28 Jakub Jelinek <jakub@redhat.com>
9603 * testsuite/libgomp.c/scan-21.c: New test.
9604 * testsuite/libgomp.c/scan-22.c: New test.
9606 2019-08-27 Jakub Jelinek <jakub@redhat.com>
9609 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9611 * testsuite/libgomp.c/scan-12.c: Likewise.
9612 * testsuite/libgomp.c/scan-13.c: Likewise.
9613 * testsuite/libgomp.c/scan-14.c: Likewise.
9614 * testsuite/libgomp.c/scan-15.c: Likewise.
9615 * testsuite/libgomp.c/scan-16.c: Likewise.
9616 * testsuite/libgomp.c/scan-17.c: Likewise.
9617 * testsuite/libgomp.c/scan-18.c: Likewise.
9618 * testsuite/libgomp.c/scan-19.c: Likewise.
9619 * testsuite/libgomp.c/scan-20.c: Likewise.
9620 * testsuite/libgomp.c++/scan-9.C: Likewise.
9621 * testsuite/libgomp.c++/scan-10.C: Likewise.
9622 * testsuite/libgomp.c++/scan-11.C: Likewise.
9623 * testsuite/libgomp.c++/scan-12.C: Likewise.
9624 * testsuite/libgomp.c++/scan-14.C: Likewise.
9625 * testsuite/libgomp.c++/scan-15.C: Likewise.
9626 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
9627 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9628 * testsuite/libgomp.c++/scan-16.C: Likewise.
9630 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
9633 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9634 -std=legacy so invalid code in the test case is accepted.
9636 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9639 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9642 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9644 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9645 perform the lookup in the first loop only if !not_found_cnt, otherwise
9646 perform lookups for it in the second loop guarded with
9647 if (not_found_cnt || has_firstprivate).
9648 * testsuite/libgomp.c/target-37.c: New test.
9649 * testsuite/libgomp.c++/target-22.C: New test.
9651 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9653 * testsuite/libgomp.c/target-18.c (struct S): New type.
9654 (foo): Use use_device_addr clause instead of use_device_ptr clause
9655 where required by OpenMP 5.0, add further tests for both use_device_ptr
9656 and use_device_addr clauses.
9657 * testsuite/libgomp.c++/target-9.C (struct S): New type.
9658 (foo): Use use_device_addr clause instead of use_device_ptr clause
9659 where required by OpenMP 5.0, add further tests for both use_device_ptr
9660 and use_device_addr clauses. Add t and u arguments.
9661 (main): Adjust caller.
9663 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9665 * testsuite/libgomp.c++/loop-13.C: New test.
9666 * testsuite/libgomp.c++/loop-14.C: New test.
9667 * testsuite/libgomp.c++/loop-15.C: New test.
9669 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9672 * testsuite/libgomp.c++/for-27.C: New test.
9674 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
9676 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9677 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9679 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9681 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9683 2019-07-08 Jakub Jelinek <jakub@redhat.com>
9685 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9686 * testsuite/libgomp.c++/scan-16.C: Likewise.
9688 2019-07-06 Jakub Jelinek <jakub@redhat.com>
9690 * testsuite/libgomp.c/scan-19.c: New test.
9691 * testsuite/libgomp.c/scan-20.c: New test.
9693 * testsuite/libgomp.c/scan-11.c: New test.
9694 * testsuite/libgomp.c/scan-12.c: New test.
9695 * testsuite/libgomp.c/scan-13.c: New test.
9696 * testsuite/libgomp.c/scan-14.c: New test.
9697 * testsuite/libgomp.c/scan-15.c: New test.
9698 * testsuite/libgomp.c/scan-16.c: New test.
9699 * testsuite/libgomp.c/scan-17.c: New test.
9700 * testsuite/libgomp.c/scan-18.c: New test.
9701 * testsuite/libgomp.c++/scan-9.C: New test.
9702 * testsuite/libgomp.c++/scan-10.C: New test.
9703 * testsuite/libgomp.c++/scan-11.C: New test.
9704 * testsuite/libgomp.c++/scan-12.C: New test.
9705 * testsuite/libgomp.c++/scan-13.C: New test.
9706 * testsuite/libgomp.c++/scan-14.C: New test.
9707 * testsuite/libgomp.c++/scan-15.C: New test.
9708 * testsuite/libgomp.c++/scan-16.C: New test.
9710 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9712 * testsuite/libgomp.c/scan-9.c: New test.
9713 * testsuite/libgomp.c/scan-10.c: New test.
9715 2019-07-03 Jakub Jelinek <jakub@redhat.com>
9717 * testsuite/libgomp.c++/scan-1.C: New test.
9718 * testsuite/libgomp.c++/scan-2.C: New test.
9719 * testsuite/libgomp.c++/scan-3.C: New test.
9720 * testsuite/libgomp.c++/scan-4.C: New test.
9721 * testsuite/libgomp.c++/scan-5.C: New test.
9722 * testsuite/libgomp.c++/scan-6.C: New test.
9723 * testsuite/libgomp.c++/scan-7.C: New test.
9724 * testsuite/libgomp.c++/scan-8.C: New test.
9725 * testsuite/libgomp.c/scan-1.c: New test.
9726 * testsuite/libgomp.c/scan-2.c: New test.
9727 * testsuite/libgomp.c/scan-3.c: New test.
9728 * testsuite/libgomp.c/scan-4.c: New test.
9729 * testsuite/libgomp.c/scan-5.c: New test.
9730 * testsuite/libgomp.c/scan-6.c: New test.
9731 * testsuite/libgomp.c/scan-7.c: New test.
9732 * testsuite/libgomp.c/scan-8.c: New test.
9734 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9736 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9737 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9740 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9743 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
9745 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9748 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9751 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9753 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9754 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9755 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9756 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9759 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9762 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9764 2019-06-16 Tom de Vries <tdevries@suse.de>
9766 PR tree-optimization/89376
9767 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9769 2019-06-15 Tom de Vries <tdevries@suse.de>
9771 PR tree-optimization/89713
9772 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9773 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9775 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9778 * testsuite/libgomp.c/pr90779.c: New test.
9779 * testsuite/libgomp.fortran/pr90779.f90: New test.
9781 2019-06-15 Tom de Vries <tdevries@suse.de>
9783 PR tree-optimization/90009
9784 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9786 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9788 PR tree-optimization/89713
9789 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9791 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9794 * testsuite/libgomp.c/pr90811.c: New test.
9796 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9798 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9799 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9801 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9803 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9804 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9805 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9806 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9808 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9810 * configure.ac: Call AX_COUNT_CPUS.
9811 Substitute CPU_COUNT.
9812 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9814 * aclocal.m4: Regenerate.
9815 * configure: Regenerate.
9816 * Makefile.in, testsuite/Makefile.in: Regenerate.
9818 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9820 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9822 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9823 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9824 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9826 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9828 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9830 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9833 * work.c (gomp_init_work_share): Instead of aligning final ordered
9834 value to multiples of long long alignment, align to that the
9835 first part (ordered team ids) and if inline_ordered_team_ids
9836 is not on a long long alignment boundary within the structure,
9837 use __alignof__ (long long) - 1 pad size always.
9838 * loop.c (GOMP_loop_start): Fix *mem computation if
9839 inline_ordered_team_ids is not aligned on long long alignment boundary
9840 within the structure.
9841 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9842 * sections.c (GOMP_sections2_start): Likewise.
9844 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9846 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9847 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9850 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9851 HAVE_INTTYPES_H is defined.
9852 (print_uint64_t): New typedef.
9853 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9854 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9855 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9856 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9857 before casting to void *.
9858 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9859 * oacc-mem.c: Don't include config.h nor stdint.h.
9860 * target.c: Don't include config.h.
9861 * oacc-cuda.c: Likewise.
9862 * oacc-host.c: Don't include stdint.h.
9864 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9867 * alloc.c (_GNU_SOURCE): Define.
9869 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9871 * acc_prof.h: New file.
9872 * oacc-profiling.c: Likewise.
9873 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9874 Add these, respectively.
9875 * Makefile.in: Regenerate.
9876 * env.c (initialize_env): Call goacc_profiling_initialize.
9877 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9878 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9879 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9880 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9881 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9882 acc_prof_register, acc_prof_unregister, and acc_register_library.
9883 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9884 GOMP_PLUGIN_goacc_thread.
9885 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9886 prof_callbacks_enabled members.
9887 (goacc_prof_enabled, goacc_profiling_initialize)
9888 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9889 (goacc_profiling_dispatch): Declare.
9890 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9891 (GOACC_PROFILING_SETUP_P): Define.
9892 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9893 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9894 OpenACC Profiling Interface.
9895 * oacc-cuda.c (acc_get_current_cuda_device)
9896 (acc_get_current_cuda_context, acc_get_cuda_stream)
9897 (acc_set_cuda_stream): Likewise.
9898 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9899 (acc_init, acc_set_device_type, acc_get_device_type)
9900 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9901 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9902 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9903 (acc_unmap_data, present_create_copy, delete_copyout)
9904 (update_dev_host): Likewise.
9905 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9906 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9908 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9909 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9911 * libgomp.texi: Update.
9912 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9914 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9915 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9917 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9919 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9921 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9924 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9926 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9927 (struct goacc_asyncqueue_list): Likewise.
9928 (goacc_aq): Likewise.
9929 (goacc_aq_list): Likewise.
9930 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9931 (GOMP_OFFLOAD_openacc_async_test): Remove.
9932 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9933 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9934 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9935 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9936 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9937 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9938 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9939 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9940 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9941 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9942 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9943 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9944 (GOMP_OFFLOAD_openacc_async_test): Declare.
9945 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9946 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9947 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9948 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9949 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9951 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9952 (gomp_acc_insert_pointer): Adjust declaration.
9953 (gomp_copy_host2dev): New declaration.
9954 (gomp_copy_dev2host): Likewise.
9955 (gomp_map_vars_async): Likewise.
9956 (gomp_unmap_tgt): Likewise.
9957 (gomp_unmap_vars_async): Likewise.
9958 (gomp_fini_device): Likewise.
9960 * oacc-async.c (get_goacc_thread): New function.
9961 (get_goacc_thread_device): New function.
9962 (lookup_goacc_asyncqueue): New function.
9963 (get_goacc_asyncqueue): New function.
9964 (acc_async_test): Adjust code to use new async design.
9965 (acc_async_test_all): Likewise.
9966 (acc_wait): Likewise.
9967 (acc_wait_async): Likewise.
9968 (acc_wait_all): Likewise.
9969 (acc_wait_all_async): Likewise.
9970 (goacc_async_free): New function.
9971 (goacc_init_asyncqueues): Likewise.
9972 (goacc_fini_asyncqueues): Likewise.
9973 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9975 (acc_set_cuda_stream): Likewise.
9976 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9977 (host_openacc_register_async_cleanup): Remove.
9978 (host_openacc_async_exec): New function.
9979 (host_openacc_async_test): Adjust parameters.
9980 (host_openacc_async_test_all): Remove.
9981 (host_openacc_async_wait): Remove.
9982 (host_openacc_async_wait_async): Remove.
9983 (host_openacc_async_wait_all): Remove.
9984 (host_openacc_async_wait_all_async): Remove.
9985 (host_openacc_async_set_async): Remove.
9986 (host_openacc_async_synchronize): New function.
9987 (host_openacc_async_serialize): New function.
9988 (host_openacc_async_host2dev): New function.
9989 (host_openacc_async_dev2host): New function.
9990 (host_openacc_async_queue_callback): New function.
9991 (host_openacc_async_construct): New function.
9992 (host_openacc_async_destruct): New function.
9993 (struct gomp_device_descr host_dispatch): Remove initialization of old
9994 interface, add initialization of new async sub-struct.
9995 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9996 (goacc_attach_host_thread_to_device): Remove old async code usage.
9997 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9998 (goacc_fini_asyncqueues): Likewise.
9999 (goacc_async_copyout_unmap_vars): Likewise.
10000 (goacc_async_free): Likewise.
10001 (get_goacc_asyncqueue): Likewise.
10002 (lookup_goacc_asyncqueue): Likewise.
10003 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
10005 (present_create_copy): Adjust code to use new async design.
10006 (delete_copyout): Likewise.
10007 (update_dev_host): Likewise.
10008 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
10010 (gomp_acc_remove_pointer): Adjust code to use new async design.
10011 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
10013 (GOACC_enter_exit_data): Likewise.
10014 (goacc_wait): Likewise.
10015 (GOACC_update): Likewise.
10016 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
10017 when called, warn as obsolete in comment.
10018 * target.c (goacc_device_copy_async): New function.
10019 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
10020 add goacc_device_copy_async case.
10021 (gomp_copy_dev2host): Likewise.
10022 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
10023 (gomp_map_pointer): Likewise.
10024 (gomp_map_fields_existing): Likewise.
10025 (gomp_map_vars_internal): New always_inline function, renamed from
10027 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
10028 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
10029 passing goacc_asyncqueue argument.
10030 (gomp_unmap_tgt): Remove static, add attribute_hidden.
10031 (gomp_unref_tgt): New function.
10032 (gomp_unmap_vars_internal): New always_inline function, renamed from
10034 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
10035 (gomp_unmap_vars_async): Implement by calling
10036 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
10037 (gomp_fini_device): New function.
10038 (gomp_exit_data): Adjust gomp_copy_dev2host call.
10039 (gomp_load_plugin_for_device): Remove old interface, adjust to load
10040 new async interface.
10041 (gomp_target_fini): Adjust code to call gomp_fini_device.
10043 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
10044 (struct ptx_stream): Remove.
10045 (struct nvptx_thread): Remove current_stream field.
10046 (cuda_map_create): Remove.
10047 (cuda_map_destroy): Remove.
10048 (map_init): Remove.
10049 (map_fini): Remove.
10051 (map_push): Remove.
10052 (struct goacc_asyncqueue): Define.
10053 (struct nvptx_callback): Define.
10054 (struct ptx_free_block): Define.
10055 (struct ptx_device): Remove null_stream, active_streams, async_streams,
10056 stream_lock, and next fields.
10057 (enum ptx_event_type): Remove.
10058 (struct ptx_event): Remove.
10059 (ptx_event_lock): Remove.
10060 (ptx_events): Remove.
10061 (init_streams_for_device): Remove.
10062 (fini_streams_for_device): Remove.
10063 (select_stream_for_async): Remove.
10064 (nvptx_init): Remove ptx_events and ptx_event_lock references.
10065 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
10067 (nvptx_open_device): Add free_blocks initialization, remove
10068 init_streams_for_device call.
10069 (nvptx_close_device): Remove fini_streams_for_device call, add
10070 free_blocks destruct code.
10071 (event_gc): Remove.
10072 (event_add): Remove.
10073 (nvptx_exec): Adjust parameters and code.
10074 (nvptx_free): Likewise.
10075 (nvptx_host2dev): Remove.
10076 (nvptx_dev2host): Remove.
10077 (nvptx_set_async): Remove.
10078 (nvptx_async_test): Remove.
10079 (nvptx_async_test_all): Remove.
10080 (nvptx_wait): Remove.
10081 (nvptx_wait_async): Remove.
10082 (nvptx_wait_all): Remove.
10083 (nvptx_wait_all_async): Remove.
10084 (nvptx_get_cuda_stream): Remove.
10085 (nvptx_set_cuda_stream): Remove.
10086 (GOMP_OFFLOAD_alloc): Adjust code.
10087 (GOMP_OFFLOAD_free): Likewise.
10088 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
10089 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
10090 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
10091 (GOMP_OFFLOAD_openacc_async_wait): Remove.
10092 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
10093 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
10094 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
10095 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
10096 (cuda_free_argmem): New function.
10097 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
10098 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
10099 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
10100 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
10101 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
10102 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
10103 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
10104 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
10105 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
10106 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
10107 (cuda_callback_wrapper): New function.
10108 (cuda_memcpy_sanity_check): New function.
10109 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
10110 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
10111 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
10112 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
10114 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
10117 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
10119 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
10121 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
10123 2019-03-27 Kevin Buettner <kevinb@redhat.com>
10125 * team.c (gomp_team_start): Initialize pool->threads[0].
10127 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
10129 * testsuite/libgomp.oacc-c++/c++.exp: Specify
10130 "-foffload=$offload_target".
10131 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10132 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10133 * testsuite/lib/libgomp.exp
10134 (check_effective_target_openacc_nvidia_accel_configured): Remove,
10135 as (conceptually) merged into
10136 check_effective_target_openacc_nvidia_accel_selected. Adjust all
10139 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
10140 * testsuite/libgomp-test-support.exp.in: Adjust.
10141 * testsuite/lib/libgomp.exp: Likewise. Don't populate
10142 openacc_device_types_s.
10143 (offload_target_to_openacc_device_type): New proc.
10144 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
10145 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10146 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10147 * Makefile.in: Regenerate.
10148 * configure: Likewise.
10149 * testsuite/Makefile.in: Likewise.
10151 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
10152 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
10153 instead of OFFLOAD_TARGETS.
10154 * target.c (gomp_target_init): Adjust.
10155 * testsuite/libgomp-test-support.exp.in: Likewise.
10156 * testsuite/lib/libgomp.exp: Likewise. Populate
10157 openacc_device_types_s instead of offload_targets_s_openacc.
10158 (check_effective_target_openacc_nvidia_accel_selected)
10159 (check_effective_target_openacc_host_selected): Adjust.
10160 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
10161 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10162 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10163 * Makefile.in: Regenerate.
10164 * config.h.in: Likewise.
10165 * configure: Likewise.
10166 * testsuite/Makefile.in: Likewise.
10168 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
10169 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
10170 "offloading: supported, but hardware not accessible".
10171 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10172 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10174 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
10177 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
10179 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
10180 and related adjustment.
10182 2019-01-30 Jakub Jelinek <jakub@redhat.com>
10185 * testsuite/libgomp.c++/pr88988.C: New test.
10187 2019-01-28 Jakub Jelinek <jakub@redhat.com>
10189 PR middle-end/89002
10190 * testsuite/libgomp.c/pr89002.c: New test.
10192 2019-01-28 Richard Biener <rguenther@suse.de>
10195 PR tree-optimization/86865
10196 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
10198 2019-01-24 Tom de Vries <tdevries@suse.de>
10200 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
10201 once instantiated_devices drops to 0.
10203 2019-01-23 Tom de Vries <tdevries@suse.de>
10206 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
10208 (nvptx_exec): Don't call map_push if mapnum == 0.
10209 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
10211 2019-01-23 Tom de Vries <tdevries@suse.de>
10215 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
10216 (map_fini): Remove "assert (!s->map->active)".
10217 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
10219 2019-01-23 Tom de Vries <tdevries@suse.de>
10222 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
10223 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
10225 2019-01-15 Tom de Vries <tdevries@suse.de>
10228 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
10231 2019-01-12 Tom de Vries <tdevries@suse.de>
10233 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
10234 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
10235 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
10236 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
10238 2019-01-12 Tom de Vries <tdevries@suse.de>
10240 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
10242 2019-01-12 Tom de Vries <tdevries@suse.de>
10244 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
10245 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
10246 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
10248 2019-01-12 Tom de Vries <tdevries@suse.de>
10251 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
10252 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
10254 2019-01-12 Tom de Vries <tdevries@suse.de>
10257 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
10258 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
10260 2019-01-12 Tom de Vries <tdevries@suse.de>
10262 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
10263 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
10264 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
10266 2019-01-12 Tom de Vries <tdevries@suse.de>
10268 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
10269 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
10270 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
10272 2019-01-12 Tom de Vries <tdevries@suse.de>
10274 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
10275 resources diagnostic.
10277 2019-01-12 Tom de Vries <tdevries@suse.de>
10279 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
10280 vector length to be 128.
10281 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
10282 length 2097152 to be reduced to 1024 instead of 32.
10284 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
10285 James Norris <jnorris@codesourcery.com>
10287 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
10288 Library Routines", and "Environment Variables".
10290 2019-01-11 Tom de Vries <tdevries@suse.de>
10292 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
10295 2019-01-11 Tom de Vries <tdevries@suse.de>
10297 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
10299 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
10300 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
10301 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
10302 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
10304 2019-01-11 Tom de Vries <tdevries@suse.de>
10306 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
10309 2019-01-10 Nathan Sidwell <nathan@acm.org>
10310 Julian Brown <julian@codesourcery.com>
10313 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
10314 * testsuite/libgomp.oacc-c++/pr71959.C: New.
10316 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
10318 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
10321 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
10323 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
10324 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10327 2019-01-09 Tom de Vries <tdevries@suse.de>
10330 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
10331 #define instead of "const int".
10332 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
10333 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
10334 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
10335 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
10337 2019-01-09 Tom de Vries <tdevries@suse.de>
10339 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
10342 2019-01-07 Tom de Vries <tdevries@suse.de>
10344 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
10345 GOMP_OPENACC_DIM argument.
10347 2019-01-03 Tom de Vries <tdevries@suse.de>
10349 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
10350 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
10352 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10354 Update copyright years.
10356 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10358 * libgomp.texi: Bump @copying's copyright year.
10360 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10362 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
10363 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
10364 (GOACC_declare): Redefine the "device" argument to "flags".
10366 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10367 Cesar Philippidis <cesar@codesourcery.com>
10369 * target.c (struct gomp_coalesce_chunk): New structure.
10370 (struct gomp_coalesce_buf): Update the chunks member to use that
10371 type. Adjust all users.
10373 2018-12-19 Tom de Vries <tdevries@suse.de>
10375 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
10376 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
10377 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
10379 2018-12-19 Tom de Vries <tdevries@suse.de>
10381 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
10382 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
10383 gcc/testsuite/gcc.dg/goacc.
10384 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
10386 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10387 Chung-Lin Tang <cltang@codesourcery.com>
10389 * oacc-mem.c (acc_present_or_create): Remove definition and change
10390 to alias of acc_create.
10391 (acc_present_or_copyin): Remove definition and change to alias of
10393 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
10394 of acc_present_or_create.
10395 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
10396 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10397 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10398 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10399 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10400 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10401 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10402 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10403 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10404 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10405 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10406 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10407 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10408 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10409 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10410 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10412 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10415 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
10416 "identical parameters".
10417 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
10418 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
10421 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
10422 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
10425 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
10426 (nvptx_wait_async): Unseen async-argument is a no-op.
10427 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
10428 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
10429 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10430 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10431 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10432 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
10433 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
10434 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
10435 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
10437 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
10438 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10440 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
10442 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
10443 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10444 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10446 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10449 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
10450 (acc_set_cuda_stream): Clarify.
10451 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10453 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
10455 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
10456 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
10457 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
10458 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10460 2018-12-14 Tom de Vries <tdevries@suse.de>
10462 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
10463 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
10464 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
10465 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
10466 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
10468 2018-12-13 Tom de Vries <tdevries@suse.de>
10470 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
10471 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
10472 * fortran.c (omp_display_affinity_): ... here.
10473 * libgomp.h (gomp_print_string): Declare.
10474 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
10475 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10478 2018-12-13 Jakub Jelinek <jakub@redhat.com>
10481 * testsuite/libgomp.c++/for-24.C (results): Include it in
10482 omp declare target region.
10483 (main): Use map (always, tofrom: results) instead of
10484 map (tofrom: results).
10486 2018-12-12 Jakub Jelinek <jakub@redhat.com>
10489 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
10490 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
10492 * testsuite/libgomp.c-c++-common/for-16.c: New test.
10494 2018-12-12 Andreas Schwab <schwab@suse.de>
10496 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
10499 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
10502 * testsuite/libgomp.fortran/async_io_8.f90: New test.
10504 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
10505 Jakub Jelinek <jakub@redhat.com>
10507 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
10508 devicep->host2dev_func.
10510 2018-12-08 Jakub Jelinek <jakub@redhat.com>
10513 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
10514 tls_runtime effective target.
10515 (t): New threadprivate variable.
10516 (main): Set t in threads which execute iterations of the worksharing
10517 loop. Propagate that to the task after the loop and don't abort
10518 if the current taskgroup hasn't been cancelled.
10520 2018-12-02 Jakub Jelinek <jakub@redhat.com>
10522 * testsuite/libgomp.c/task-reduction-3.c: New test.
10524 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10526 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
10529 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10530 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10532 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
10534 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10536 2018-10-19 Richard Biener <rguenther@suse.de>
10538 PR tree-optimization/88182
10539 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10541 2018-11-26 Jakub Jelinek <jakub@redhat.com>
10543 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10544 (RUNTEST): Don't define.
10545 (RUNTESTDEFAULTFLAGS): Add.
10546 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10547 (distclean-am): Depend on distclean-DEJAGNU.
10548 (check-am): If -j% option is present in MFLAGS and if
10549 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10550 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10551 * testsuite/Makefile.in: Regenerated.
10553 2018-11-26 Richard Biener <rguenther@suse.de>
10555 PR tree-optimization/88182
10556 * testsuite/libgomp.c++/pr88182.C: New testcase.
10558 2018-11-20 Jakub Jelinek <jakub@redhat.com>
10561 * config/mingw32/affinity-fmt.c: New file.
10563 2018-11-09 Jakub Jelinek <jakub@redhat.com>
10565 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10566 (gomp_display_affinity): Use __builtin_choose_expr to handle
10567 properly handle argument having integral, or pointer or some other
10568 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
10569 with uint64_t type instead of %llx and unsigned long long.
10571 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10572 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10574 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10576 * affinity.c: Include <string.h>, <stdio.h>.
10577 (gomp_display_affinity_place): Remove cpusetp.
10578 * teams.c: Include <limits.h>.
10580 2018-11-08 Jakub Jelinek <jakub@redhat.com>
10582 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10583 in_reduction clause for s[0].
10585 * affinity.c (gomp_display_affinity_place): New function.
10586 * affinity-fmt.c: New file.
10587 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10588 * config/linux/affinity.c (gomp_display_affinity_place): New function.
10589 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10590 Move these functions to ...
10591 * config/nvptx/teams.c: ... here. New file.
10592 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10594 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10596 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10597 and _aligned_malloc.
10598 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10599 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10600 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10601 gomp_affinity_format_len): New variables.
10602 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10603 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
10604 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10605 modifiers. Display (non-default) chunk sizes. Print
10606 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10607 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
10608 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10609 * fortran.c: Include stdio.h and string.h.
10610 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10611 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10612 (omp_set_affinity_format_, omp_get_affinity_format_,
10613 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10614 omp_pause_resource_all_): New functions.
10615 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10617 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10619 * teams.c: ... here. New file.
10620 * libgomp_g.h: Include gstdint.h.
10621 (GOMP_loop_nonmonotonic_runtime_start,
10622 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10623 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10624 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10625 GOMP_parallel_loop_nonmonotonic_runtime,
10626 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10627 GOMP_loop_ull_nonmonotonic_runtime_start,
10628 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10629 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10630 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10631 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10632 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10633 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10634 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10635 GOMP_teams_reg): Declare.
10636 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10637 gomp_aligned_alloc uses fallback implementation.
10638 (gomp_aligned_alloc, gomp_aligned_free): Declare.
10639 (enum gomp_schedule_type): Add GFS_MONOTONIC.
10640 (struct gomp_doacross_work_share): Add extra field.
10641 (struct gomp_work_share): Add task_reductions field.
10642 (struct gomp_taskgroup): Add workshare and reductions fields.
10643 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10644 (gomp_thread_handle): New typedef.
10645 (gomp_display_affinity_place, gomp_set_affinity_format,
10646 gomp_display_string, gomp_display_affinity,
10647 gomp_display_affinity_thread): Declare.
10648 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10649 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10650 gomp_workshare_task_reduction_register): Declare.
10651 (gomp_team_start): Add taskgroup argument.
10652 (gomp_pause_host): Declare.
10653 (gomp_init_work_share, gomp_work_share_start): Change bool argument
10655 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10656 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10657 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10658 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10659 GOMP_loop_ull_doacross_start,
10660 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10661 GOMP_loop_maybe_nonmonotonic_runtime_next,
10662 GOMP_loop_maybe_nonmonotonic_runtime_start,
10663 GOMP_loop_nonmonotonic_runtime_next,
10664 GOMP_loop_nonmonotonic_runtime_start,
10665 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10666 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10667 GOMP_loop_ull_nonmonotonic_runtime_next,
10668 GOMP_loop_ull_nonmonotonic_runtime_start,
10669 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10670 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10671 GOMP_taskgroup_reduction_register,
10672 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10673 GOMP_teams_reg and GOMP_taskwait_depend.
10674 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10675 omp_{capture,display}_affinity{,_}, and
10676 omp_[gs]et_affinity_format{,_}.
10677 * loop.c: Include string.h.
10678 (GOMP_loop_runtime_next): Add ialias.
10679 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10680 (gomp_loop_static_start, gomp_loop_dynamic_start,
10681 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10682 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10683 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10684 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10685 or gomp_doacross_init callers.
10686 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10687 GOMP_loop_doacross_start): New functions.
10688 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10689 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10690 Mask off GFS_MONOTONIC bit.
10691 (GOMP_loop_maybe_nonmonotonic_runtime_next,
10692 GOMP_loop_maybe_nonmonotonic_runtime_start,
10693 GOMP_loop_nonmonotonic_runtime_next,
10694 GOMP_loop_nonmonotonic_runtime_start,
10695 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10696 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10698 (gomp_parallel_loop_start): Pass NULL as taskgroup to
10700 * loop_ull.c: Include string.h.
10701 (GOMP_loop_ull_runtime_next): Add ialias.
10702 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10703 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10704 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10705 gomp_loop_ull_ordered_dynamic_start,
10706 gomp_loop_ull_ordered_guided_start,
10707 gomp_loop_ull_doacross_static_start,
10708 gomp_loop_ull_doacross_dynamic_start,
10709 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10710 and gomp_doacross_ull_init callers.
10711 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10712 GOMP_loop_ull_doacross_start): New functions.
10713 (GOMP_loop_ull_runtime_start,
10714 GOMP_loop_ull_ordered_runtime_start,
10715 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10716 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10717 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10718 GOMP_loop_ull_nonmonotonic_runtime_next,
10719 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10720 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10721 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10722 (omp_pause_resource_t, omp_depend_t): New typedefs.
10723 (enum omp_lock_hint_t): Renamed to ...
10724 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
10725 enumerators using numbers and omp_lock_hint_* as their aliases.
10726 (omp_lock_hint_t): New typedef. Rename to ...
10727 (omp_sync_hint_t): ... this.
10728 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10729 omp_sync_hint_t instead of omp_lock_hint_t.
10730 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10731 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10733 (omp_target_is_present, omp_target_disassociate_ptr):
10734 Change first argument from void * to const void *.
10735 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10736 from void * to const void *.
10737 (omp_target_associate_ptr): Change first and second arguments from
10738 void * to const void *.
10739 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10740 omp_pause_hard): New parameters.
10741 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10742 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10744 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10745 omp_pause_hard): New parameters.
10746 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10747 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10749 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10750 EXTRA argument. If not needed to prepare array, if extra is 0,
10751 clear ws->doacross, otherwise allocate just doacross structure and
10752 extra payload. If array is needed, allocate also extra payload.
10753 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10754 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10756 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10758 (GOMP_parallel): Likewise. Formatting fix.
10759 (GOMP_parallel_reductions): New function.
10760 (GOMP_cancellation_point): If taskgroup has workshare
10761 flag set, check cancelled of prev taskgroup if any.
10762 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10763 on prev taskgroup if any.
10764 * sections.c: Include string.h.
10765 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10766 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10767 (GOMP_sections2_start): New function.
10768 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10769 Pass NULL as taskgroup to gomp_team_start.
10770 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10771 gomp_work_share_start callers.
10772 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10773 If taskgroup has workshare flag set, check cancelled on prev
10774 taskgroup if any. Guard all cancellation tests with
10775 gomp_cancel_var test.
10776 (omp_target_is_present, omp_target_disassociate_ptr):
10777 Change ptr argument from void * to const void *.
10778 (omp_target_memcpy): Change src argument from void * to const void *.
10779 (omp_target_memcpy_rect): Likewise.
10780 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10781 instead of char * where needed.
10782 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10783 from void * to const void *.
10784 (omp_pause_resource, omp_pause_resource_all): New functions.
10785 * task.c (gomp_task_handle_depend): Handle new depend array format
10786 in addition to the old. Handle mutexinoutset kinds the same as
10787 inout for now, handle unspecified kinds.
10788 (gomp_create_target_task): If taskgroup has workshare flag set, check
10789 cancelled on prev taskgroup if any. Guard all cancellation tests with
10790 gomp_cancel_var test. Handle new depend array format count in
10791 addition to the old.
10792 (GOMP_task): Likewise. Adjust function comment.
10793 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10794 cancelled on prev taskgroup if any. Guard all cancellation tests with
10795 gomp_cancel_var test.
10796 (GOMP_taskwait_depend): New function.
10797 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10798 format in addition to the old. Handle mutexinoutset kinds the same as
10799 inout for now, handle unspecified kinds. Fix a function comment typo.
10800 (gomp_taskgroup_init): New function.
10801 (GOMP_taskgroup_start): Use it.
10802 (gomp_reduction_register, gomp_create_artificial_team,
10803 GOMP_taskgroup_reduction_register,
10804 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10805 gomp_parallel_reduction_register,
10806 gomp_workshare_task_reduction_register,
10807 gomp_workshare_taskgroup_start,
10808 GOMP_workshare_task_reduction_unregister): New functions.
10809 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10810 check cancelled on prev taskgroup if any. Guard all cancellation
10811 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10812 by calling GOMP_taskgroup_reduction_register.
10813 * team.c (gomp_thread_attr): Remove comment.
10814 (struct gomp_thread_start_data): Add handle field.
10815 (gomp_thread_start): Call pthread_detach.
10816 (gomp_new_team): Adjust gomp_init_work_share caller.
10817 (gomp_free_pool_helper): Call pthread_detach.
10818 (gomp_team_start): Add taskgroup argument, initialize implicit
10819 tasks' taskgroup field to that. Don't call
10820 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10821 (gomp_team_end): Determine nesting by thr->ts.level != 0
10822 rather than thr->ts.team != NULL.
10823 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10824 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10825 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10826 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10827 if more than 1 allocate also extra payload at the end of array. Never
10828 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10829 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10830 return true instead of ws.
10831 * Makefile.in: Regenerated.
10832 * configure: Regenerated.
10833 * config.h.in: Regenerated.
10834 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10836 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10837 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10838 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10839 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10840 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10841 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10842 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10843 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10844 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10845 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10846 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10847 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10848 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10849 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10850 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10851 define a different N(test), don't define N(f0) to N(f14), but instead
10852 define N(f20) to N(f34) using != comparisons.
10853 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10854 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10855 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10856 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10857 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10858 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10859 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10860 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10861 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10862 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10863 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10864 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10865 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10866 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10867 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10868 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10869 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10870 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10871 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10872 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10873 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10874 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10875 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10876 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10877 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10878 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10879 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10880 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10881 * testsuite/libgomp.c++/depend-1.C: New test.
10882 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10883 * testsuite/libgomp.c++/depobj-1.C: New test.
10884 * testsuite/libgomp.c++/for-16.C: New test.
10885 * testsuite/libgomp.c++/for-21.C: New test.
10886 * testsuite/libgomp.c++/for-22.C: New test.
10887 * testsuite/libgomp.c++/for-23.C: New test.
10888 * testsuite/libgomp.c++/for-24.C: New test.
10889 * testsuite/libgomp.c++/for-25.C: New test.
10890 * testsuite/libgomp.c++/for-26.C: New test.
10891 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10892 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10893 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10894 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10895 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10896 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10897 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10898 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10899 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10900 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10901 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10902 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10903 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10904 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10905 * testsuite/libgomp.c/task-reduction-1.c: New test.
10906 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10907 * testsuite/libgomp.c/task-reduction-2.c: New test.
10908 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10909 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10910 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10911 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10912 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10913 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10914 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10915 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10916 * testsuite/libgomp.c/teams-1.c: New test.
10917 * testsuite/libgomp.c/teams-2.c: New test.
10918 * testsuite/libgomp.c/thread-limit-4.c: New test.
10919 * testsuite/libgomp.c/thread-limit-5.c: New test.
10920 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10922 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10924 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10925 acc_memcpy_to/from_device functions, now with async parameter.
10926 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10927 (acc_memcpy_from_device): Likewise.
10928 (acc_memcpy_to_device_async): New API function.
10929 (acc_memcpy_from_device_async): Likewise.
10930 (present_create_copy): Add async parameter and async setting/unsetting.
10931 (acc_create): Adjust present_create_copy call.
10932 (acc_copyin): Likewise.
10933 (acc_present_or_create): Likewise.
10934 (acc_present_or_copyin): Likewise.
10935 (acc_create_async): New API function.
10936 (acc_copyin_async): New API function.
10937 (delete_copyout): Add async parameter and async setting/unsetting.
10938 (acc_delete): Adjust delete_copyout call.
10939 (acc_copyout): Likewise.
10940 (acc_delete_async): New API function.
10941 (acc_copyout_async): Likewise.
10942 (update_dev_host): Add async parameter and async setting/unsetting.
10943 (acc_update_device): Adjust update_dev_host call.
10944 (acc_update_self): Likewise.
10945 (acc_update_device_async): New API function.
10946 (acc_update_self_async): Likewise.
10947 * openacc.h (acc_copyin_async): Declare new API function.
10948 (acc_create_async): Likewise.
10949 (acc_copyout_async): Likewise.
10950 (acc_delete_async): Likewise.
10951 (acc_update_device_async): Likewise.
10952 (acc_update_self_async): Likewise.
10953 (acc_memcpy_to_device_async): Likewise.
10954 (acc_memcpy_from_device_async): Likewise.
10955 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10956 (acc_copyin_async_64_h): New subroutine.
10957 (acc_copyin_async_array_h): New subroutine.
10958 (acc_create_async_32_h): New subroutine.
10959 (acc_create_async_64_h): New subroutine.
10960 (acc_create_async_array_h): New subroutine.
10961 (acc_copyout_async_32_h): New subroutine.
10962 (acc_copyout_async_64_h): New subroutine.
10963 (acc_copyout_async_array_h): New subroutine.
10964 (acc_delete_async_32_h): New subroutine.
10965 (acc_delete_async_64_h): New subroutine.
10966 (acc_delete_async_array_h): New subroutine.
10967 (acc_update_device_async_32_h): New subroutine.
10968 (acc_update_device_async_64_h): New subroutine.
10969 (acc_update_device_async_array_h): New subroutine.
10970 (acc_update_self_async_32_h): New subroutine.
10971 (acc_update_self_async_64_h): New subroutine.
10972 (acc_update_self_async_array_h): New subroutine.
10973 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10974 (acc_copyin_async_64_h): New subroutine.
10975 (acc_copyin_async_array_h): New subroutine.
10976 (acc_create_async_32_h): New subroutine.
10977 (acc_create_async_64_h): New subroutine.
10978 (acc_create_async_array_h): New subroutine.
10979 (acc_copyout_async_32_h): New subroutine.
10980 (acc_copyout_async_64_h): New subroutine.
10981 (acc_copyout_async_array_h): New subroutine.
10982 (acc_delete_async_32_h): New subroutine.
10983 (acc_delete_async_64_h): New subroutine.
10984 (acc_delete_async_array_h): New subroutine.
10985 (acc_update_device_async_32_h): New subroutine.
10986 (acc_update_device_async_64_h): New subroutine.
10987 (acc_update_device_async_array_h): New subroutine.
10988 (acc_update_self_async_32_h): New subroutine.
10989 (acc_update_self_async_64_h): New subroutine.
10990 (acc_update_self_async_array_h): New subroutine.
10991 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10992 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10993 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10994 acc_memcpy_to_device_async*, acc_update_device_async*, and
10995 acc_update_self_async* entries.
10996 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10997 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10998 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
11000 2018-10-31 Joseph Myers <joseph@codesourcery.com>
11003 * Makefile.am: Include multilib.am
11004 (AUTOMAKE_OPTIONS): Add info-in-builddir.
11005 (CLEANFILES): Remove libgomp.info.
11006 * configure.ac: Remove AC_PREREQ.
11007 * testsuite/Makefile.am (RUNTEST): Remove quotes.
11008 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
11011 2018-10-29 Joseph Myers <joseph@codesourcery.com>
11012 Julian Brown <julian@codesourcery.com>
11014 * testsuite/libgomp.oacc-c++/this.C: New.
11016 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
11018 * plugin/plugin-nvptx.c (struct cuda_map): New.
11019 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
11020 h_tail with (cuda_map *) map.
11021 (cuda_map_create): New function.
11022 (cuda_map_destroy): New function.
11023 (map_init): Update to use a linked list of cuda_map objects.
11024 (map_fini): Likewise.
11025 (map_pop): Likewise.
11026 (map_push): Likewise. Return CUdeviceptr instead of void.
11027 (init_streams_for_device): Remove stales references to ptx_stream
11029 (select_stream_for_async): Likewise.
11030 (nvptx_exec): Update call to map_init.
11032 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
11033 Julian Brown <julian@codesourcery.com>
11035 PR middle-end/86336
11036 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
11038 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
11039 Thomas Koenig <tkoenig@gcc.gnu.org>
11042 * testsuite/libgomp.fortran/async_io_1.f90: New test.
11043 * testsuite/libgomp.fortran/async_io_2.f90: New test.
11044 * testsuite/libgomp.fortran/async_io_3.f90: New test.
11045 * testsuite/libgomp.fortran/async_io_4.f90: New test.
11046 * testsuite/libgomp.fortran/async_io_5.f90: New test.
11047 * testsuite/libgomp.fortran/async_io_6.f90: New test.
11048 * testsuite/libgomp.fortran/async_io_7.f90: New test.
11050 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
11051 Tom de Vries <tdevries@suse.de>
11054 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
11055 (cuOccupancyMaxPotentialBlockSize): Declare.
11056 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
11057 CUDA_ONE_CALL_MAYBE_NULL.
11058 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
11059 CUoccupancyB2DSize and declare
11060 cuOccupancyMaxPotentialBlockSize.
11061 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
11062 default num_gangs and num_workers when the driver supports it.
11064 2018-08-08 Tom de Vries <tdevries@suse.de>
11066 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
11067 CUDA_ONE_CALL_MAYBE_NULL.
11068 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
11069 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
11070 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
11073 2018-08-08 Tom de Vries <tdevries@suse.de>
11075 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
11076 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
11079 2018-08-08 Tom de Vries <tdevries@suse.de>
11081 * plugin/plugin-nvptx.c
11082 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
11083 (nvptx_open_device): Use
11084 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
11086 2018-08-08 Tom de Vries <tdevries@suse.de>
11088 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
11089 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
11091 2018-08-07 Tom de Vries <tdevries@suse.de>
11093 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
11094 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
11095 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
11096 corresponding call in CUDA_ONE_CALL. Add def/undef of
11097 CUDA_ONE_CALL_MAYBE_NULL.
11098 (CUDA_CALL_EXISTS): Define.
11100 2018-08-07 Tom de Vries <tdevries@suse.de>
11102 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
11103 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
11104 corresponding undefs right after.
11106 2018-08-04 Tom de Vries <tdevries@suse.de>
11108 * plugin/configfrag.ac: For --without-cuda-driver, set
11109 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
11110 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
11111 * configure: Regenerate.
11113 2018-08-02 Tom de Vries <tdevries@suse.de>
11116 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
11117 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
11118 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11120 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
11121 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
11122 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
11124 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
11125 Thomas Schwinge <thomas@codesourcery.com>
11127 * config/nvptx/oacc-parallel.c: Truncate.
11129 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
11130 James Norris <jnorris@codesourcery.com>
11132 * plugin/plugin-nvptx.c (struct map): Removed.
11133 (map_init, map_pop): Remove use of struct map.
11134 (map_push): Likewise and change argument list.
11135 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
11137 2018-08-01 Tom de Vries <tdevries@suse.de>
11139 * plugin/cuda-lib.def: New file. Factor out of ...
11140 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
11141 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
11144 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
11146 Revert 'AsyncI/O patch committed'.
11147 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
11148 Thomas Koenig <tkoenig@gcc.gnu.org>
11151 * testsuite/libgomp.fortran/async_io_1.f90: New test.
11152 * testsuite/libgomp.fortran/async_io_2.f90: New test.
11153 * testsuite/libgomp.fortran/async_io_3.f90: New test.
11154 * testsuite/libgomp.fortran/async_io_4.f90: New test.
11155 * testsuite/libgomp.fortran/async_io_5.f90: New test.
11156 * testsuite/libgomp.fortran/async_io_6.f90: New test.
11157 * testsuite/libgomp.fortran/async_io_7.f90: New test.
11159 2018-07-30 Tom de Vries <tdevries@suse.de>
11161 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
11162 (nvptx_exec): Ensure worker and vector default dims don't exceed
11163 targ_fn->max_threads_per_block.
11165 2018-07-30 Tom de Vries <tdevries@suse.de>
11167 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
11168 (nvptx_open_device): Init default_dims for device.
11169 (nvptx_exec): Use default_dims from device.
11171 2018-07-26 Jakub Jelinek <jakub@redhat.com>
11174 * testsuite/libgomp.c++/for-15.C (results): Include it in
11175 omp declare target region.
11176 (main): Use map (always, tofrom: results) instead of
11177 map (tofrom: results).
11179 PR middle-end/86660
11180 * testsuite/libgomp.c/pr86660.c: New test.
11182 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
11183 Tom de Vries <tdevries@suse.de>
11185 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
11186 sufficient resources to launch a kernel, and give a hint on how to fix
11189 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
11190 Tom de Vries <tdevries@suse.de>
11192 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
11193 max_threads_per_block and max_threads_per_multiprocessor fields.
11194 (nvptx_open_device): Initialize new fields.
11195 (nvptx_exec): Use num_sms, and new fields.
11197 2018-07-26 Tom de Vries <tdevries@suse.de>
11199 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
11200 to correct locations. Remove xfail.
11202 2018-07-26 Tom de Vries <tdevries@suse.de>
11204 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
11205 acc_wait. Move acc_async_test calls to correct locations. Remove
11208 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
11209 Thomas Koenig <tkoenig@gcc.gnu.org>
11212 * testsuite/libgomp.fortran/async_io_1.f90: New test.
11213 * testsuite/libgomp.fortran/async_io_2.f90: New test.
11214 * testsuite/libgomp.fortran/async_io_3.f90: New test.
11215 * testsuite/libgomp.fortran/async_io_4.f90: New test.
11216 * testsuite/libgomp.fortran/async_io_5.f90: New test.
11217 * testsuite/libgomp.fortran/async_io_6.f90: New test.
11218 * testsuite/libgomp.fortran/async_io_7.f90: New test.
11220 2018-07-17 Jakub Jelinek <jakub@redhat.com>
11222 PR middle-end/86542
11223 * testsuite/libgomp.c++/pr86542.C: New test.
11225 PR middle-end/86539
11226 * testsuite/libgomp.c++/pr86539.C: New test.
11228 2018-07-11 Jakub Jelinek <jakub@redhat.com>
11231 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
11232 (results): Make sure the variable is not inside declare target region.
11233 (qux): Remove unused function.
11235 2018-07-10 Jakub Jelinek <jakub@redhat.com>
11238 * testsuite/libgomp.c++/for-15.C: New test.
11240 2018-06-26 Jakub Jelinek <jakub@redhat.com>
11243 * testsuite/libgomp.c++/pr86291.C: New test.
11245 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
11247 * libgomp.texi (Top): Move www.openmp.org to https.
11248 (Enabling OpenMP): Ditto.
11249 (omp_get_active_level): Ditto.
11250 (omp_get_ancestor_thread_num): Ditto.
11251 (omp_get_cancellation): Ditto.
11252 (omp_get_default_device): Ditto.
11253 (omp_get_dynamic): Ditto.
11254 (omp_get_level): Ditto.
11255 (omp_get_max_active_levels): Ditto.
11256 (omp_get_max_task_priority): Ditto.
11257 (omp_get_max_threads): Ditto.
11258 (omp_get_nested): Ditto.
11259 (omp_get_num_devices): Ditto.
11260 (omp_get_num_procs): Ditto.
11261 (omp_get_num_teams): Ditto.
11262 (omp_get_num_threads): Ditto.
11263 (omp_get_proc_bind): Ditto.
11264 (omp_get_schedule): Ditto.
11265 (omp_get_team_num): Ditto.
11266 (omp_get_team_size): Ditto.
11267 (omp_get_thread_limit): Ditto.
11268 (omp_get_thread_num): Ditto.
11269 (omp_in_parallel): Ditto.
11270 (omp_in_final): Ditto.
11271 (omp_is_initial_device): Ditto.
11272 (omp_set_default_device): Ditto.
11273 (omp_set_dynamic): Ditto.
11274 (omp_set_max_active_levels): Ditto.
11275 (omp_set_nested): Ditto.
11276 (omp_set_num_threads): Ditto.
11277 (omp_set_schedule): Ditto.
11278 (omp_init_lock): Ditto.
11279 (omp_set_lock): Ditto.
11280 (omp_test_lock): Ditto.
11281 (omp_unset_lock): Ditto.
11282 (omp_destroy_lock): Ditto.
11283 (omp_init_nest_lock): Ditto.
11284 (omp_set_nest_lock): Ditto.
11285 (omp_test_nest_lock): Ditto.
11286 (omp_unset_nest_lock): Ditto.
11287 (omp_destroy_nest_lock): Ditto.
11288 (omp_get_wtick): Ditto.
11289 (omp_get_wtime): Ditto.
11290 (OMP_CANCELLATION): Ditto.
11291 (OMP_DISPLAY_ENV): Ditto.
11292 (OMP_DEFAULT_DEVICE): Ditto.
11293 (OMP_DYNAMIC): Ditto.
11294 (OMP_MAX_ACTIVE_LEVELS): Ditto.
11295 (OMP_MAX_TASK_PRIORITY): Ditto.
11296 (OMP_NESTED): Ditto.
11297 (OMP_NUM_THREADS): Ditto.
11298 (OMP_PROC_BIND): Ditto.
11299 (OMP_PLACES): Ditto.
11300 (OMP_STACKSIZE): Ditto.
11301 (OMP_SCHEDULE): Ditto.
11302 (OMP_THREAD_LIMIT): Ditto.
11303 (OMP_WAIT_POLICY): Ditto.
11305 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
11306 James Norris <jnorris@codesourcery.com>
11307 Julian Brown <julian@codesourcery.com>
11308 Thomas Schwinge <thomas@codesourcery.com>
11309 Tom de Vries <tom@codesourcery.com>
11311 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
11312 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
11313 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
11314 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
11315 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11316 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11317 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
11318 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
11319 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
11320 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
11322 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11324 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11326 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
11328 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
11330 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11332 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
11334 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
11336 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
11338 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
11340 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
11342 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
11344 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
11346 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
11348 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
11350 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
11352 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
11354 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
11356 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
11358 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
11360 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
11362 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
11364 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
11366 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
11368 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
11370 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
11372 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
11374 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
11375 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
11376 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
11377 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
11378 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
11379 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
11380 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
11381 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
11382 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
11384 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
11386 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
11387 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
11388 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
11390 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
11391 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
11392 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
11394 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
11396 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
11398 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
11400 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
11402 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
11404 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
11406 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
11408 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
11410 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
11412 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
11414 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
11416 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
11418 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
11420 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
11422 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11423 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
11424 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
11425 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
11426 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
11427 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
11428 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
11430 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
11431 Thomas Schwinge <thomas@codesourcery.com>
11432 Cesar Philippidis <cesar@codesourcery.com>
11434 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
11435 (gomp_acc_remove_pointer): Update declaration.
11436 (gomp_acc_declare_allocate): Declare.
11437 (gomp_remove_var): Declare.
11438 * libgomp.map (OACC_2.5): Define.
11439 * oacc-mem.c (acc_map_data): Update refcount.
11440 (acc_unmap_data): Likewise.
11441 (present_create_copy): Likewise.
11442 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
11443 (acc_copyin): Likewise.
11444 (FLAG_FINALIZE): Define.
11445 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
11446 (acc_delete_finalize): New function.
11447 (acc_delete_finalize_async): New function.
11448 (acc_copyout_finalize): New function.
11449 (acc_copyout_finalize_async): New function.
11450 (gomp_acc_insert_pointer): Update refcounts.
11451 (gomp_acc_remove_pointer): Return if data is not present on the
11453 * oacc-parallel.c (find_pset): Rename to find_pointer.
11454 (find_pointer): Add support for GOMP_MAP_POINTER.
11455 (handle_ftn_pointers): New function.
11456 (GOACC_parallel_keyed): Update refcounts of variables.
11457 (GOACC_enter_exit_data): Add support for finalized data mappings.
11458 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
11460 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
11461 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
11462 for GOMP_MAP_FORCE_FROM.
11463 * openacc.f90 (module openacc_internal): Add
11464 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
11465 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
11466 acc_copyout_finalize and acc_delete_finalize.
11467 (acc_copyout_finalize_32_h): New subroutine.
11468 (acc_copyout_finalize_64_h): New subroutine.
11469 (acc_copyout_finalize_array_h): New subroutine.
11470 (acc_delete_finalize_32_h): New subroutine.
11471 (acc_delete_finalize_64_h): New subroutine.
11472 (acc_delete_finalize_array_h): New subroutine.
11473 * openacc.h (acc_copyout_finalize): Declare.
11474 (acc_copyout_finalize_async): Declare.
11475 (acc_delete_finalize): Declare.
11476 (acc_delete_finalize_async): Declare.
11477 * openacc_lib.h (acc_copyout_finalize): New interface.
11478 (acc_delete_finalize): New interface.
11479 * target.c (gomp_map_vars): Update dynamic_refcount.
11480 (gomp_remove_var): New function.
11481 (gomp_unmap_vars): Use it.
11482 (gomp_unload_image_from_device): Likewise.
11483 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
11484 case to utilize OpenACC 2.5 data clause semantics.
11485 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11486 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11487 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11488 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11489 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11490 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11491 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11492 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11493 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11494 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11495 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11496 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
11497 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
11498 utilize OpenACC 2.5 data clause semantics.
11499 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11500 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11501 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11502 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11503 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11504 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11505 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11506 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11507 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11509 2018-05-21 Janus Weil <janus@gcc.gnu.org>
11513 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
11514 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
11515 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
11516 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
11517 * testsuite/libgomp.fortran/task2.f90: Ditto.
11518 * testsuite/libgomp.fortran/vla1.f90: Ditto.
11519 * testsuite/libgomp.fortran/vla2.f90: Ditto.
11520 * testsuite/libgomp.fortran/vla3.f90: Ditto.
11521 * testsuite/libgomp.fortran/vla4.f90: Ditto.
11522 * testsuite/libgomp.fortran/vla5.f90: Ditto.
11523 * testsuite/libgomp.fortran/vla6.f90: Ditto.
11524 * testsuite/libgomp.fortran/vla8.f90: Ditto.
11525 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11526 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11528 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
11531 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11533 2018-05-09 Tom de Vries <tom@codesourcery.com>
11536 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11537 to GOACC_enter_exit_data.
11539 2018-05-09 Tom de Vries <tom@codesourcery.com>
11542 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11543 (async_synchronous_p): New function.
11544 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11546 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11547 async_valid_stream_id_p.
11548 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11549 * oacc-parallel.c (GOACC_parallel_keyed): Same.
11551 2018-05-07 Tom de Vries <tom@codesourcery.com>
11554 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11555 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11557 2018-05-03 Tom de Vries <tom@codesourcery.com>
11560 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11561 extra_tool_flags if it contains an -foffload=-fdump-* flag.
11562 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11563 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11565 2018-05-02 Tom de Vries <tom@codesourcery.com>
11568 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11569 GOMP_OPENACC_DIM ...
11570 * env.c (parse_gomp_openacc_dim): ... here. New function.
11571 (initialize_env): Call parse_gomp_openacc_dim.
11572 (goacc_default_dims): Define.
11573 * libgomp.h (goacc_default_dims): Declare.
11574 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11575 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11576 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11577 GOMP_PLUGIN_acc_default_dim.
11578 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11579 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11581 2018-05-02 Tom de Vries <tom@codesourcery.com>
11584 * testsuite/libgomp.c++/udr-9.C: Update.
11585 * testsuite/libgomp.c++/atomic-16.C: Remove.
11586 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11587 * testsuite/libgomp.c++/loop-13.C: Remove.
11588 * testsuite/libgomp.c++/loop-14.C: Remove.
11589 * testsuite/libgomp.c++/loop-15.C: Remove.
11590 * testsuite/libgomp.c++/monotonic-1.C: Remove.
11591 * testsuite/libgomp.c++/monotonic-2.C: Remove.
11592 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11593 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11594 * testsuite/libgomp.c++/ordered-1.C: Remove.
11595 * testsuite/libgomp.c++/pr45784.C: Remove.
11596 * testsuite/libgomp.c++/pr64824.C: Remove.
11597 * testsuite/libgomp.c++/pr64868.C: Remove.
11598 * testsuite/libgomp.c++/pr66199-1.C: Remove.
11599 * testsuite/libgomp.c++/pr66199-2.C: Remove.
11600 * testsuite/libgomp.c++/pr66199-3.C: Remove.
11601 * testsuite/libgomp.c++/pr66199-4.C: Remove.
11602 * testsuite/libgomp.c++/pr66199-5.C: Remove.
11603 * testsuite/libgomp.c++/pr66199-6.C: Remove.
11604 * testsuite/libgomp.c++/pr66199-7.C: Remove.
11605 * testsuite/libgomp.c++/pr66199-8.C: Remove.
11606 * testsuite/libgomp.c++/pr66199-9.C: Remove.
11607 * testsuite/libgomp.c++/pr69389.C: Remove.
11608 * testsuite/libgomp.c++/simd10.C: Remove.
11609 * testsuite/libgomp.c++/simd11.C: Remove.
11610 * testsuite/libgomp.c++/simd12.C: Remove.
11611 * testsuite/libgomp.c++/simd13.C: Remove.
11612 * testsuite/libgomp.c++/target-1.C: Remove.
11613 * testsuite/libgomp.c++/target-3.C: Remove.
11614 * testsuite/libgomp.c++/target-4.C: Remove.
11615 * testsuite/libgomp.c++/target-5.C: Remove.
11616 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11617 * testsuite/libgomp.c++/taskloop-1.C: Remove.
11618 * testsuite/libgomp.c++/taskloop-2.C: Remove.
11619 * testsuite/libgomp.c++/taskloop-3.C: Remove.
11620 * testsuite/libgomp.c++/taskloop-4.C: Remove.
11621 * testsuite/libgomp.c++/udr-9.C: Remove.
11622 * testsuite/libgomp.c++/for-10.C: Remove.
11623 * testsuite/libgomp.c++/for-11.C: Remove.
11624 * testsuite/libgomp.c++/for-12.C: Remove.
11625 * testsuite/libgomp.c++/for-13.C: Remove.
11626 * testsuite/libgomp.c++/for-14.C: Remove.
11627 * testsuite/libgomp.c++/for-9.C: Remove.
11628 * testsuite/libgomp.c/atomic-18.c: Move ...
11629 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11630 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11631 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11632 * testsuite/libgomp.c/loop-13.c: Move ...
11633 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11634 * testsuite/libgomp.c/loop-14.c: Move ...
11635 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11636 * testsuite/libgomp.c/loop-15.c: Remove.
11637 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11638 * testsuite/libgomp.c/monotonic-1.c: Move ...
11639 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11640 * testsuite/libgomp.c/monotonic-2.c: Move ...
11641 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11642 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11643 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11644 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11645 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11646 * testsuite/libgomp.c/ordered-4.c: Move ...
11647 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11648 * testsuite/libgomp.c/pr45784.c: Move ...
11649 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11650 * testsuite/libgomp.c/pr64824.c: Move ...
11651 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11652 * testsuite/libgomp.c/pr64868.c: Move ...
11653 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11654 * testsuite/libgomp.c/pr66199-1.c: Move ...
11655 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11656 * testsuite/libgomp.c/pr66199-2.c: Move ...
11657 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11658 * testsuite/libgomp.c/pr66199-3.c: Move ...
11659 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11660 * testsuite/libgomp.c/pr66199-4.c: Move ...
11661 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11662 * testsuite/libgomp.c/pr66199-5.c: Move ...
11663 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11664 * testsuite/libgomp.c/pr66199-6.c: Move ...
11665 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11666 * testsuite/libgomp.c/pr66199-7.c: Move ...
11667 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11668 * testsuite/libgomp.c/pr66199-8.c: Move ...
11669 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11670 * testsuite/libgomp.c/pr66199-9.c: Move ...
11671 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11672 * testsuite/libgomp.c/pr69389.c: Move ...
11673 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11674 * testsuite/libgomp.c/simd-14.c: Move ...
11675 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11676 * testsuite/libgomp.c/simd-15.c: Move ...
11677 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11678 * testsuite/libgomp.c/simd-16.c: Move ...
11679 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11680 * testsuite/libgomp.c/simd-17.c: Move ...
11681 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11682 * testsuite/libgomp.c/target-1.c: Move ...
11683 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11684 * testsuite/libgomp.c/target-10.c: Move ...
11685 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11686 * testsuite/libgomp.c/target-13.c: Move ...
11687 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11688 * testsuite/libgomp.c/target-2.c: Move ...
11689 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11690 * testsuite/libgomp.c/taskgroup-1.c: Move ...
11691 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11692 * testsuite/libgomp.c/taskloop-1.c: Move ...
11693 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11694 * testsuite/libgomp.c/taskloop-2.c: Move ...
11695 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11696 * testsuite/libgomp.c/taskloop-3.c: Move ...
11697 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11698 * testsuite/libgomp.c/taskloop-4.c: Move ...
11699 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11700 * testsuite/libgomp.c/udr-1.c: Move ...
11701 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11702 * testsuite/libgomp.c/for-1.c: Move ...
11703 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11704 * testsuite/libgomp.c/for-1.h: Move ...
11705 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11706 * testsuite/libgomp.c/for-2.c: Move ...
11707 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11708 * testsuite/libgomp.c/for-2.h: Move ...
11709 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11710 * testsuite/libgomp.c/for-3.c: Move ...
11711 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11712 * testsuite/libgomp.c/for-4.c: Move ...
11713 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11714 * testsuite/libgomp.c/for-5.c: Move ...
11715 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11716 * testsuite/libgomp.c/for-6.c: Move ...
11717 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11719 2018-05-02 Tom de Vries <tom@codesourcery.com>
11722 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11723 __builtin_goacc_parlevel_{id,size}.
11724 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11725 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11726 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11727 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11728 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11729 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11730 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11731 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11732 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11733 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11734 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11735 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11736 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11737 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11738 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11739 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11740 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11741 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11742 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11743 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11744 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11745 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11746 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11748 2018-05-02 Tom de Vries <tom@codesourcery.com>
11751 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11753 2018-05-02 Tom de Vries <tom@codesourcery.com>
11756 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11758 2018-04-29 Julian Brown <julian@codesourcery.com>
11759 Tom de Vries <tom@codesourcery.com>
11762 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11763 arbitrary order for iterations of atomic subtract check.
11765 2018-04-28 Tom de Vries <tom@codesourcery.com>
11768 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11769 atomic capture results obtained in parallel loop to an array, instead of
11772 2018-04-26 Tom de Vries <tom@codesourcery.com>
11775 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11776 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11777 (process_GOMP_NVPTX_JIT): New function.
11778 (link_ptx): Use process_GOMP_NVPTX_JIT.
11780 2018-04-26 Richard Biener <rguenther@suse.de>
11781 Tom de Vries <tom@codesourcery.com>
11784 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11786 2018-04-26 Tom de Vries <tom@codesourcery.com>
11789 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11790 recursion depth from 25 to 23.
11791 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11793 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11795 * configure: Regenerated.
11797 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11798 Tom de Vries <tom@codesourcery.com>
11801 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11803 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11806 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11807 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11808 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11809 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11810 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11811 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11813 PR libfortran/85166
11814 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11816 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11818 2018-04-19 Jakub Jelinek <jakub@redhat.com>
11820 * configure: Regenerated.
11822 2018-04-18 David Malcolm <dmalcolm@redhat.com>
11825 * configure: Regenerate.
11827 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11828 Tom de Vries <tom@codesourcery.com>
11830 PR middle-end/84955
11831 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11832 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11834 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11838 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11839 test from gfortran.dg to here.
11841 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11843 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11844 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11846 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11848 PR middle-end/84955
11849 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11850 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11852 2018-04-05 Tom de Vries <tom@codesourcery.com>
11855 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11857 2018-03-26 Tom de Vries <tom@codesourcery.com>
11859 PR tree-optimization/85063
11860 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11861 * testsuite/libgomp.c/switch-conversion.c: New test.
11862 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11863 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11865 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11868 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11869 call abort by STOP n.
11870 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11871 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11872 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11873 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11874 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11875 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11876 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11877 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11878 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11879 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11880 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11881 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11882 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11883 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11884 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11885 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11886 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11887 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11888 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11889 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11890 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11891 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11892 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11893 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11894 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11895 * testsuite/libgomp.fortran/character1.f90: Likewise.
11896 * testsuite/libgomp.fortran/character2.f90: Likewise.
11897 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11898 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11899 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11900 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11901 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11902 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11903 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11904 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11905 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11906 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11907 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11908 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11909 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11910 * testsuite/libgomp.fortran/do1.f90: Likewise.
11911 * testsuite/libgomp.fortran/do2.f90: Likewise.
11912 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11913 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11914 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11915 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11916 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11917 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11918 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11919 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11920 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11921 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11922 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11923 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11924 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11925 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11926 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11927 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11928 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11929 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11930 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11931 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11932 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11933 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11934 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11935 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11936 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11937 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11938 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11939 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11940 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11941 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11942 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11943 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11944 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11945 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11946 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11947 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11948 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11949 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11950 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11951 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11952 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11953 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11954 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11955 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11956 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11957 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11958 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11959 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11960 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11961 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11962 * testsuite/libgomp.fortran/lib2.f: Likewise.
11963 * testsuite/libgomp.fortran/lib3.f: Likewise.
11964 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11965 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11966 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11967 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11968 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11969 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11970 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11971 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11972 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11973 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11974 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11975 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11976 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11977 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11978 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11979 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11980 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11981 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11982 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11983 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11984 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11985 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11986 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11987 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11988 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11989 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11990 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11991 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11992 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11993 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11994 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11995 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11996 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11997 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11998 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11999 * testsuite/libgomp.fortran/pr28390.f: Likewise.
12000 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
12001 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
12002 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
12003 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
12004 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
12005 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
12006 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
12007 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
12008 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
12009 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
12010 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
12011 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
12012 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
12013 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
12014 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
12015 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
12016 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
12017 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
12018 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
12019 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
12020 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
12021 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
12022 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
12023 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
12024 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
12025 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
12026 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
12027 * testsuite/libgomp.fortran/reference1.f90: Likewise.
12028 * testsuite/libgomp.fortran/reference2.f90: Likewise.
12029 * testsuite/libgomp.fortran/retval1.f90: Likewise.
12030 * testsuite/libgomp.fortran/retval2.f90: Likewise.
12031 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
12032 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
12033 * testsuite/libgomp.fortran/simd1.f90: Likewise.
12034 * testsuite/libgomp.fortran/simd2.f90: Likewise.
12035 * testsuite/libgomp.fortran/simd3.f90: Likewise.
12036 * testsuite/libgomp.fortran/simd4.f90: Likewise.
12037 * testsuite/libgomp.fortran/simd5.f90: Likewise.
12038 * testsuite/libgomp.fortran/simd6.f90: Likewise.
12039 * testsuite/libgomp.fortran/simd7.f90: Likewise.
12040 * testsuite/libgomp.fortran/stack.f90: Likewise.
12041 * testsuite/libgomp.fortran/strassen.f90: Likewise.
12042 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
12043 * testsuite/libgomp.fortran/tabs2.f: Likewise.
12044 * testsuite/libgomp.fortran/target1.f90: Likewise.
12045 * testsuite/libgomp.fortran/target2.f90: Likewise.
12046 * testsuite/libgomp.fortran/target3.f90: Likewise.
12047 * testsuite/libgomp.fortran/target4.f90: Likewise.
12048 * testsuite/libgomp.fortran/target5.f90: Likewise.
12049 * testsuite/libgomp.fortran/target6.f90: Likewise.
12050 * testsuite/libgomp.fortran/target7.f90: Likewise.
12051 * testsuite/libgomp.fortran/target8.f90: Likewise.
12052 * testsuite/libgomp.fortran/task1.f90: Likewise.
12053 * testsuite/libgomp.fortran/task2.f90: Likewise.
12054 * testsuite/libgomp.fortran/task3.f90: Likewise.
12055 * testsuite/libgomp.fortran/task4.f90: Likewise.
12056 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
12057 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
12058 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
12059 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
12060 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
12061 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
12062 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
12063 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
12064 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
12065 * testsuite/libgomp.fortran/udr1.f90: Likewise.
12066 * testsuite/libgomp.fortran/udr10.f90: Likewise.
12067 * testsuite/libgomp.fortran/udr11.f90: Likewise.
12068 * testsuite/libgomp.fortran/udr12.f90: Likewise.
12069 * testsuite/libgomp.fortran/udr13.f90: Likewise.
12070 * testsuite/libgomp.fortran/udr14.f90: Likewise.
12071 * testsuite/libgomp.fortran/udr15.f90: Likewise.
12072 * testsuite/libgomp.fortran/udr2.f90: Likewise.
12073 * testsuite/libgomp.fortran/udr3.f90: Likewise.
12074 * testsuite/libgomp.fortran/udr4.f90: Likewise.
12075 * testsuite/libgomp.fortran/udr5.f90: Likewise.
12076 * testsuite/libgomp.fortran/udr6.f90: Likewise.
12077 * testsuite/libgomp.fortran/udr7.f90: Likewise.
12078 * testsuite/libgomp.fortran/udr8.f90: Likewise.
12079 * testsuite/libgomp.fortran/udr9.f90: Likewise.
12080 * testsuite/libgomp.fortran/vla1.f90: Likewise.
12081 * testsuite/libgomp.fortran/vla2.f90: Likewise.
12082 * testsuite/libgomp.fortran/vla3.f90: Likewise.
12083 * testsuite/libgomp.fortran/vla4.f90: Likewise.
12084 * testsuite/libgomp.fortran/vla5.f90: Likewise.
12085 * testsuite/libgomp.fortran/vla6.f90: Likewise.
12086 * testsuite/libgomp.fortran/vla7.f90: Likewise.
12087 * testsuite/libgomp.fortran/vla8.f90: Likewise.
12088 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
12089 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
12090 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
12091 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
12092 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12093 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12094 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12095 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12096 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12097 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12098 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12099 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
12100 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12101 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
12102 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12103 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
12104 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
12105 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
12106 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
12107 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
12108 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
12109 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
12110 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
12111 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
12112 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
12113 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
12114 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
12115 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
12116 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12117 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
12118 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12119 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12120 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12121 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12122 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12123 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12124 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12125 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12126 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
12127 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12128 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
12129 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12130 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
12131 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
12132 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
12133 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
12134 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12135 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12136 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
12137 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
12138 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
12139 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
12140 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
12141 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12142 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
12143 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
12144 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
12145 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
12146 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
12147 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
12148 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12149 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12150 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12151 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12152 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
12153 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
12154 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
12155 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12156 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
12157 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
12158 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
12159 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
12160 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
12161 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
12162 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12163 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
12164 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
12165 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12166 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12167 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12168 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12169 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12170 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
12171 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
12172 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
12173 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
12174 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
12175 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
12176 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
12177 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
12178 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
12179 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
12180 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
12181 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
12183 2018-03-20 Richard Biener <rguenther@suse.de>
12185 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
12186 parallelizable loop.
12188 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12191 * configure: Regenerate.
12193 2018-02-16 Jakub Jelinek <jakub@redhat.com>
12196 * libgomp.fortran/pr84418-1.f90: New test.
12197 * libgomp.fortran/pr84418-2.f90: New test.
12199 2018-02-14 Jakub Jelinek <jakub@redhat.com>
12202 * testsuite/libgomp.fortran/threadprivate4.f90: Add
12203 -std=f2003 -fall-intrinsics into dg-additional-options.
12205 2018-02-08 Martin Jambor <mjambor@suse.cz>
12207 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
12210 2018-02-08 Martin Jambor <mjambor@suse.cz>
12212 * testsuite/libgomp.hsa.c/staticvar.c: New test.
12214 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12216 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
12217 [__cplusplus]: Declare extern "C".
12219 2018-02-07 Tom de Vries <tom@codesourcery.com>
12222 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
12224 2018-01-29 Christoph Spiel <cspiel@freenet.de>
12225 Jakub Jelinek <jakub@redhat.com>
12228 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
12229 instead of omp_lock_t.
12231 2018-01-25 Tom de Vries <tom@codesourcery.com>
12234 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
12236 2018-01-24 Tom de Vries <tom@codesourcery.com>
12239 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
12241 2018-01-24 Tom de Vries <tom@codesourcery.com>
12244 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
12246 2018-01-19 Tom de Vries <tom@codesourcery.com>
12247 Cesar Philippidis <cesar@codesourcery.com>
12250 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
12251 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
12253 2018-01-03 Jakub Jelinek <jakub@redhat.com>
12255 Update copyright years.
12257 * libgomp.texi: Bump @copying's copyright year.
12259 2017-12-30 Tom de Vries <tom@codesourcery.com>
12262 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
12263 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
12265 2017-12-27 Tom de Vries <tom@codesourcery.com>
12268 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
12269 (test_nonstatic): Fix return type to workaround PR83046.
12271 2017-12-05 Jakub Jelinek <jakub@redhat.com>
12274 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
12275 j suffix instead of i.
12276 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
12279 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
12281 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
12282 call to acc_wait (1).
12284 2017-11-24 Jakub Jelinek <jakub@redhat.com>
12287 * testsuite/libgomp.fortran/pr81304.f90: New test.
12289 2017-11-23 Jakub Jelinek <jakub@redhat.com>
12292 * libgomp.fortran/pr81841.f90: New test.
12294 2017-11-22 Jakub Jelinek <jakub@redhat.com>
12297 * target.c (gomp_target_init): Compute lengths just once and
12298 use them in both malloc size and subsequent copying.
12300 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12302 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
12303 * acinclude.m4: Add cet.m4.
12304 * configure: Regenerate.
12305 * Makefile.in: Likewise.
12306 * testsuite/Makefile.in: Likewise.
12308 2017-11-15 Tom de Vries <tom@codesourcery.com>
12310 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
12311 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
12312 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
12313 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
12314 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
12315 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
12317 2017-11-14 Tom de Vries <tom@codesourcery.com>
12319 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
12320 non-nvidia devices.
12322 2017-11-07 Jakub Jelinek <jakub@redhat.com>
12325 * testsuite/libgomp.c++/pr82835.C: New test.
12327 2017-11-06 Martin Liska <mliska@suse.cz>
12329 * testsuite/libgomp.c++/loop-2.C: Return a value
12330 for functions with non-void return type, or change type to void,
12331 or add -Wno-return-type for test.
12332 * testsuite/libgomp.c++/loop-4.C: Likewise.
12333 * testsuite/libgomp.c++/parallel-1.C: Likewise.
12334 * testsuite/libgomp.c++/shared-1.C: Likewise.
12335 * testsuite/libgomp.c++/single-1.C: Likewise.
12336 * testsuite/libgomp.c++/single-2.C: Likewise.
12338 2017-10-31 Tom de Vries <tom@codesourcery.com>
12340 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
12341 "do {} while (false)".
12342 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
12343 after HSA_DEBUG call.
12345 2017-10-28 Jakub Jelinek <jakub@redhat.com>
12347 * target.c (struct gomp_coalesce_buf): New type.
12348 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
12349 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
12350 (gomp_copy_host2dev): Add CBUF argument, if copying into
12351 the cached ranges, memcpy into buffer instead of copying
12353 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
12354 Add CBUF argument, pass it through to other calls.
12355 (gomp_map_vars): Aggregate copies from host to device if small enough
12356 and with small enough gaps in between into memcpy into a buffer and
12357 fewer host to device copies from the buffer.
12358 (gomp_update): Adjust gomp_copy_host2dev caller.
12360 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
12362 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
12364 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12365 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12366 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12367 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12369 2017-10-16 Tom de Vries <tom@codesourcery.com>
12371 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
12372 openacc_nvidia_accel_selected.
12373 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
12374 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
12375 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
12376 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
12377 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
12378 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
12379 openacc_nvidia_accel_selected. Skip for shared memory device.
12380 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
12381 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
12383 2017-10-09 Martin Jambor <mjambor@suse.cz>
12386 * testsuite/libgomp.hsa.c/pr82416.c: New test.
12388 2017-10-07 Tom de Vries <tom@codesourcery.com>
12390 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
12391 Remove acc_device_nvidia references.
12392 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
12395 2017-10-05 Tom de Vries <tom@codesourcery.com>
12397 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
12398 vector_length(32) clause from acc parallel directive.
12399 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
12401 2017-10-04 Tom de Vries <tom@codesourcery.com>
12403 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
12404 (main): Reduce sum of arr elements. Assert that hres is exactly
12405 representable in 32-bit floating point.
12406 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
12407 (main): Reduce sum of arr elements. Assert that hres and hmres are
12408 exactly representable in 32-bit floating point.
12409 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
12411 2017-09-28 Tom de Vries <tom@codesourcery.com>
12413 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
12415 * testsuite/libgomp.c++/pr69393.C: Same.
12416 * testsuite/libgomp.c++/taskloop-1.C: Same.
12417 * testsuite/libgomp.c++/taskloop-3.C: Same.
12418 * testsuite/libgomp.c++/taskloop-4.C: Same.
12419 * testsuite/libgomp.c/for-4.c: Same.
12420 * testsuite/libgomp.c/pr66199-3.c: Same.
12421 * testsuite/libgomp.c/pr66199-4.c: Same.
12422 * testsuite/libgomp.c/pr66199-6.c: Same.
12423 * testsuite/libgomp.c/taskloop-1.c: Same.
12424 * testsuite/libgomp.c/taskloop-3.c: Same.
12425 * testsuite/libgomp.c/taskloop-4.c: Same.
12426 * testsuite/libgomp.fortran/aligned1.f03: Same.
12427 * testsuite/libgomp.fortran/condinc1.f: Same.
12428 * testsuite/libgomp.fortran/condinc3.f90: Same.
12429 * testsuite/libgomp.fortran/crayptr1.f90: Same.
12430 * testsuite/libgomp.fortran/crayptr2.f90: Same.
12431 * testsuite/libgomp.fortran/crayptr3.f90: Same.
12432 * testsuite/libgomp.fortran/omp_cond1.f: Same.
12433 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
12434 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
12435 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
12436 * testsuite/libgomp.fortran/recursion1.f90: Same.
12437 * testsuite/libgomp.fortran/target2.f90: Same.
12438 * testsuite/libgomp.fortran/target5.f90: Same.
12439 * testsuite/libgomp.fortran/task3.f90: Same.
12441 2017-09-28 Tom de Vries <tom@codesourcery.com>
12443 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
12444 vector_length(32) clause from acc parallel directive.
12445 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
12447 2017-09-27 Tom de Vries <tom@codesourcery.com>
12449 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
12450 Remove acc_device_nvidia references.
12452 2017-09-16 Tom de Vries <tom@codesourcery.com>
12455 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
12457 2017-09-14 Tom de Vries <tom@codesourcery.com>
12459 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
12460 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
12461 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
12462 * testsuite/libgomp.c/c.exp: Include test-cases from
12463 libgomp.c-c++-common.
12464 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
12467 2017-09-14 Jakub Jelinek <jakub@redhat.com>
12470 * testsuite/libgomp.c++/pr81314.C: New test.
12472 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
12474 * libgomp.texi (Top): www.openacc.org now uses https.
12475 (Enabling OpenACC): Ditto.
12476 (acc_get_num_devices): Ditto.
12477 (acc_set_device_type): Ditto.
12478 (acc_get_device_type): Ditto.
12479 (acc_set_device_num): Ditto.
12480 (acc_get_device_num): Ditto.
12481 (acc_async_test): Ditto.
12482 (acc_async_test_all): Ditto.
12484 (acc_wait_all): Ditto.
12485 (acc_wait_all_async): Ditto.
12486 (acc_wait_async): Ditto.
12488 (acc_shutdown): Ditto.
12489 (acc_on_device): Ditto.
12490 (acc_malloc): Ditto.
12492 (acc_copyin): Ditto.
12493 (acc_present_or_copyin): Ditto.
12494 (acc_create): Ditto.
12495 (acc_present_or_create): Ditto.
12496 (acc_copyout): Ditto.
12497 (acc_delete): Ditto.
12498 (acc_update_device): Ditto.
12499 (acc_update_self): Ditto.
12500 (acc_map_data): Ditto.
12501 (acc_unmap_data): Ditto.
12502 (acc_deviceptr): Ditto.
12503 (acc_hostptr): Ditto.
12504 (acc_is_present): Ditto.
12505 (acc_memcpy_to_device): Ditto.
12506 (acc_memcpy_from_device): Ditto.
12507 (acc_get_current_cuda_device): Ditto.
12508 (acc_get_current_cuda_context): Ditto.
12509 (acc_get_cuda_stream): Ditto.
12510 (acc_set_cuda_stream): Ditto.
12511 (ACC_DEVICE_TYPE): Ditto.
12512 (ACC_DEVICE_NUM): Ditto.
12513 (OpenACC Library Interoperability): Ditto.
12515 2017-08-09 Jakub Jelinek <jakub@redhat.com>
12518 * testsuite/libgomp.c/pr81687-1.c: New test.
12519 * testsuite/libgomp.c/pr81687-2.c: New test.
12521 2017-08-07 Jakub Jelinek <jakub@redhat.com>
12524 * testsuite/libgomp.c/pr69389.c: New test.
12525 * testsuite/libgomp.c++/pr69389.C: New test.
12527 2017-08-07 Tom de Vries <tom@codesourcery.com>
12529 PR middle-end/78266
12530 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12531 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12533 2017-07-27 Jakub Jelinek <jakub@redhat.com>
12536 * testsuite/libgomp.c/pr45784.c: New test.
12537 * testsuite/libgomp.c++/pr45784.C: New test.
12539 2017-07-19 Tom de Vries <tom@codesourcery.com>
12541 * testsuite/libgomp.oacc-c/vec.c: New test.
12543 2017-07-03 Tom de Vries <tom@codesourcery.com>
12545 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12547 2017-06-27 Tom de Vries <tom@codesourcery.com>
12549 * plugin/plugin-nvptx.c (notify_var): New function.
12550 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12552 2017-06-27 Tom de Vries <tom@codesourcery.com>
12554 * env.c (parse_unsigned_long_1): Factor out of ...
12555 (parse_unsigned_long): ... here.
12556 (parse_int_1): Factor out of ...
12557 (parse_int): ... here.
12558 (parse_int_secure): New function.
12559 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12560 * secure_getenv.h: Factor out of ...
12561 * plugin/plugin-hsa.c: ... here.
12562 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12564 2017-06-21 Jakub Jelinek <jakub@redhat.com>
12567 * testsuite/libgomp.c++/pr81130.C: New test.
12569 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12571 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12573 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12574 dg-xfail-run-if default args.
12576 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12578 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12579 * testsuite/libgomp.c/pr39591-3.c: Likewise.
12581 2017-05-30 Jakub Jelinek <jakub@redhat.com>
12584 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12585 (gomp_affinity_init_level): Use it. Always analyze the core and thread
12586 sibling lists, depending on level just pick up what CPUs to put
12587 together into a place vs. whether add multiple ordered places.
12589 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
12591 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12592 * libgomp.map (OACC_2.0.1): Add these.
12593 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12594 for "acc_wait", and "acc_wait_all", respectively.
12595 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12596 for "acc_wait", and "acc_wait_all", respectively.
12597 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12598 * libgomp.texi (acc_wait, acc_wait_all): Update.
12599 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12600 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12601 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12603 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12604 acc_present_or_copyin and acc_present_or_create procedures,
12606 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12607 generally different variants of OpenACC Runtime Library functions.
12608 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12610 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12611 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12613 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12614 of preprocessor definitions.
12615 * libgomp.h (strong_alias): Guard by "#ifdef
12616 HAVE_ATTRIBUTE_ALIAS".
12617 * oacc-mem.c: Provide "acc_pcreate" as alias for
12618 "acc_present_or_create", and "acc_pcopyin" as alias for
12619 "acc_present_or_copyin".
12620 * libgomp.map: New version "OACC_2.0.1".
12621 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12622 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12623 its content into...
12624 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12627 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12628 when disabling nvptx offloading.
12630 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
12632 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12633 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12634 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12636 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12637 * testsuite/lib/libgomp.exp
12638 (check_effective_target_openacc_nvidia_accel_configured): New
12640 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12641 (check_effective_target_c++): New procs.
12642 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12643 (check_effective_target_c++): Likewise.
12645 2017-05-22 Jakub Jelinek <jakub@redhat.com>
12647 PR middle-end/80809
12648 * testsuite/libgomp.c/pr80809-2.c: New test.
12649 * testsuite/libgomp.c/pr80809-3.c: New test.
12651 PR middle-end/80809
12652 * testsuite/libgomp.c/pr80809-1.c: New test.
12654 PR middle-end/80853
12655 * testsuite/libgomp.c/pr80853.c: New test.
12657 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
12659 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12660 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12661 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12662 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12663 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12665 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12666 Debug output for failure.
12668 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12670 * testsuite/lib/libgomp.exp: Load scanlang.exp.
12672 2017-04-27 Jakub Jelinek <jakub@redhat.com>
12675 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12676 bootstrap compare failures.
12678 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
12680 * testsuite/libgomp.c/target-36.c: New testcase.
12682 2017-04-13 Jakub Jelinek <jakub@redhat.com>
12684 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12687 2017-04-11 Jakub Jelinek <jakub@redhat.com>
12690 * testsuite/libgomp.c/pr80394.c: New test.
12692 2017-04-04 Jakub Jelinek <jakub@redhat.com>
12695 * config/posix/thread-stacksize.h: New file.
12696 * config/darwin/thread-stacksize.h: New file.
12697 * config/nvptx/thread-stacksize.h: New file.
12698 * env.c: Include thread-stacksize.h.
12699 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12700 instead of 0. Call pthread_attr_setstacksize even if
12701 GOMP_DEFAULT_STACKSIZE is non-zero.
12703 2017-03-30 Jakub Jelinek <jakub@redhat.com>
12705 * env.c (initialize_env): Initialize stacksize to 0.
12707 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
12710 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12712 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12715 * testsuite/libgomp.c/pr79940.c: New test.
12717 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12719 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12721 Add __float128 options.
12723 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
12725 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12726 hppa*-*-* dg-skip-if directive.
12728 2017-02-09 Jakub Jelinek <jakub@redhat.com>
12730 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12731 dg-skip-if directive into a comment.
12733 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12734 Chung-Lin Tang <cltang@codesourcery.com>
12736 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12737 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12738 add additional case.
12739 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12740 "openacc_nvidia_accel_selected".
12741 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12742 Add num_workers(8) clause.
12744 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
12746 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12748 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12749 include complex.h on hppa*-*-hpux*.
12750 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12752 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
12754 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12756 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12757 GOMP_OFFLOAD_openacc_exec. Adjust all users.
12758 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12759 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
12760 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12761 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
12762 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12763 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
12764 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12765 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
12767 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12769 * libgomp-plugin.h: #include <stdbool.h>.
12770 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12771 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12772 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12773 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12774 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12775 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12776 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12777 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12778 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12779 (GOMP_OFFLOAD_openacc_async_test)
12780 (GOMP_OFFLOAD_openacc_async_test_all)
12781 (GOMP_OFFLOAD_openacc_async_wait)
12782 (GOMP_OFFLOAD_openacc_async_wait_async)
12783 (GOMP_OFFLOAD_openacc_async_wait_all)
12784 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12785 (GOMP_OFFLOAD_openacc_async_set_async)
12786 (GOMP_OFFLOAD_openacc_create_thread_data)
12787 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12788 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12789 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12790 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12791 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12792 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12794 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12795 (GOMP_OFFLOAD_unload_image): Fix argument types.
12797 2017-01-26 Jakub Jelinek <jakub@redhat.com>
12799 * testsuite/lib/libgomp.exp
12800 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12801 check_compile invocation. Fix up removal of executable. Drop
12802 bogus "2>&1" argument.
12804 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12807 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
12808 Martin Jambor <mjambor@suse.cz>
12810 * plugin/hsa.h: Moved to top level include.
12811 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12813 2017-01-21 Jakub Jelinek <jakub@redhat.com>
12816 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12817 of cat to get version from BASE-VER file.
12818 * testsuite/Makefile.in: Regenerated.
12820 2017-01-19 Jakub Jelinek <jakub@redhat.com>
12822 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12825 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12827 * plugin/hsa.h: Add GCC runtime library exception.
12828 * plugin/hsa_ext_finalize.h: Likewise.
12830 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12831 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12832 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12833 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12834 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12835 library to link ptx plugin against.
12836 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12837 (CUDA_CALLS): Define.
12838 (cuda_lib, cuda_lib_inited): New variables.
12839 (init_cuda_lib): New function.
12840 (CUDA_CALL_PREFIX): Define.
12841 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12842 (CUDA_CALL): Use FN instead of (FN).
12843 (CUDA_CALL_NOCHECK): Define.
12844 (cuda_error, fini_streams_for_device, select_stream_for_async,
12845 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12846 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12847 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12848 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12850 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12852 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12853 Use CUDA_CALL_NOCHECK.
12854 * plugin/cuda/cuda.h: New file.
12855 * config.h.in: Regenerated.
12856 * configure: Regenerated.
12859 * configure.ac: Add GCC_BASE_VER.
12860 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12861 get version from BASE-VER file.
12862 * testsuite/Makefile.in: Regenerated.
12863 * configure: Regenerated.
12864 * Makefile.in: Regenerated.
12866 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12869 * Makefile.am: Make fincludedir multilib-aware.
12870 * Makefile.in: Regenerate.
12872 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12874 Update copyright years.
12876 * libgomp.texi: Bump @copying's copyright year.
12878 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12880 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12881 pthread_spinlock_t instead of gomp_mutex_t lock.
12882 (gomp_get_thread_pool): Likewise.
12883 (gomp_release_thread_pool): Likewise.
12884 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12887 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12889 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12890 thread pool in case nthreads == 1.
12892 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12894 * config/nvptx/env.c: Delete.
12895 * icv.c: Move definitions of ICV variables back ...
12896 * env.c: ...here. Do not compile environment-related functionality if
12897 LIBGOMP_OFFLOADED_ONLY is set.
12899 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12901 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12902 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12903 * configure: Regenerate.
12904 * config.h.in: Likewise.
12906 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12908 * Makefile.in: Regenerate with automake-1.11.6.
12909 * aclocal.m4: Likewise.
12910 * configure: Likewise.
12911 * testsuite/Makefile.in: Likewise.
12913 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
12915 * config/nvptx/critical.c: Delete to use generic implementation.
12917 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12919 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12920 ../../affinity.c as fallback.
12921 * config/nvptx/affinity.c: Delete to use fallback implementation.
12923 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
12924 Jakub Jelinek <jakub@redhat.com>
12925 Dmitry Melnik <dm@ispras.ru>
12927 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12928 * Makefile.in. Regenerate.
12929 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12930 (LIBGOMP_USE_PTHREADS): ...here; new define.
12931 * configure: Regenerate.
12932 * config.h.in: Likewise.
12933 * config/posix/affinity.c: Move to...
12934 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12935 interface by LIBGOMP_USE_PTHREADS.
12936 * critical.c: Split out GOMP_atomic_{start,end} into...
12937 * atomic.c: ...here (new file).
12938 * env.c: Split out ICV definitions into...
12939 * icv.c: ...here (new file) and...
12940 * icv-device.c: ...here. New file.
12941 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12942 (gomp_destroy_lock_30): Ditto.
12943 (gomp_set_lock_30): Ditto.
12944 (gomp_unset_lock_30): Ditto.
12945 (gomp_test_lock_30): Ditto.
12946 (gomp_init_nest_lock_30): Ditto.
12947 (gomp_destroy_nest_lock_30): Ditto.
12948 (gomp_set_nest_lock_30): Ditto.
12949 (gomp_unset_nest_lock_30): Ditto.
12950 (gomp_test_nest_lock_30): Ditto.
12952 * config/nvptx/lock.c: New.
12953 * config/nvptx/bar.c: New.
12954 * config/nvptx/bar.h: New.
12955 * config/nvptx/doacross.h: New.
12956 * config/nvptx/error.c: New.
12957 * config/nvptx/icv-device.c: New.
12958 * config/nvptx/mutex.h: New.
12959 * config/nvptx/pool.h: New.
12960 * config/nvptx/proc.c: New.
12961 * config/nvptx/ptrlock.h: New.
12962 * config/nvptx/sem.h: New.
12963 * config/nvptx/simple-bar.h: New.
12964 * config/nvptx/target.c: New.
12965 * config/nvptx/task.c: New.
12966 * config/nvptx/team.c: New.
12967 * config/nvptx/time.c: New.
12968 * config/posix/simple-bar.h: New.
12969 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12970 (gomp_num_teams_var): Declare.
12971 (struct gomp_thread_pool): Change threads_dock member to
12972 gomp_simple_barrier_t.
12973 [__nvptx__] (gomp_thread): New implementation.
12974 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12975 (gomp_thread_destructor): Ditto.
12976 (gomp_init_thread_affinity): Ditto.
12977 * team.c: Guard uses of Pthreads-specific interfaces by
12978 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12979 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12980 * config/nvptx/alloc.c: Delete.
12981 * config/nvptx/barrier.c: Ditto.
12982 * config/nvptx/fortran.c: Ditto.
12983 * config/nvptx/iter.c: Ditto.
12984 * config/nvptx/iter_ull.c: Ditto.
12985 * config/nvptx/loop.c: Ditto.
12986 * config/nvptx/loop_ull.c: Ditto.
12987 * config/nvptx/ordered.c: Ditto.
12988 * config/nvptx/parallel.c: Ditto.
12989 * config/nvptx/priority_queue.c: Ditto.
12990 * config/nvptx/sections.c: Ditto.
12991 * config/nvptx/single.c: Ditto.
12992 * config/nvptx/splay-tree.c: Ditto.
12993 * config/nvptx/work.c: Ditto.
12994 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12995 -foffload=-lgfortran in addition to -lgfortran.
12996 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12997 * plugin/plugin-nvptx.c: Include <limits.h>.
12998 (struct targ_fn_descriptor): Add new fields.
12999 (struct ptx_device): Ditto. Set them...
13000 (nvptx_open_device): ...here.
13001 (nvptx_adjust_launch_bounds): New.
13002 (nvptx_host2dev): Allow NULL 'nvthd'.
13003 (nvptx_dev2host): Ditto.
13004 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
13005 (link_ptx): Adjust log sizes.
13006 (nvptx_host2dev): Allow NULL 'nvthd'.
13007 (nvptx_dev2host): Ditto.
13008 (nvptx_set_clocktick): New. Use it...
13009 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
13011 (GOMP_OFFLOAD_dev2dev): New.
13012 (nvptx_adjust_launch_bounds): New.
13013 (nvptx_stacks_size): New.
13014 (nvptx_stacks_alloc): New.
13015 (nvptx_stacks_free): New.
13016 (GOMP_OFFLOAD_run): New.
13017 (GOMP_OFFLOAD_async_run): New (stub).
13019 2016-11-23 Martin Jambor <mjambor@suse.cz>
13021 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
13022 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
13023 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
13025 2016-11-23 Martin Liska <mliska@suse.cz>
13026 Martin Jambor <mjambor@suse.cz>
13028 * plugin/hsa.h: New file.
13029 * plugin/hsa_ext_finalize.h: New file.
13030 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
13031 header file unistd.h, and functions secure_getenv, __secure_getenv,
13032 getuid, geteuid, getgid and getegid.
13033 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
13035 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
13036 Handle various cases of secure_getenv presence, add an implementation
13037 when we can test effective UID and GID.
13038 (struct hsa_runtime_fn_info): New structure.
13039 (hsa_runtime_fn_info hsa_fns): New variable.
13040 (hsa_runtime_lib): Likewise.
13041 (support_cpu_devices): Likewise.
13042 (init_enviroment_variables): Load newly introduced ENV
13044 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
13045 (hsa_fatal): Likewise.
13046 (DLSYM_FN): New macro.
13047 (init_hsa_runtime_functions): New function.
13048 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
13049 structure. Depending on environment, also allow CPU devices.
13050 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
13051 (get_kernarg_memory_region): Likewise.
13052 (GOMP_OFFLOAD_init_device): Likewise.
13053 (destroy_hsa_program): Likewise.
13054 (init_basic_kernel_info): New function.
13055 (GOMP_OFFLOAD_load_image): Use it.
13056 (create_and_finalize_hsa_program): Call hsa run-time functions via
13058 (create_single_kernel_dispatch): Likewise.
13059 (release_kernel_dispatch): Likewise.
13060 (init_single_kernel): Likewise.
13061 (parse_target_attributes): Allow up multiple HSA grid dimensions.
13062 (get_group_size): New function.
13063 (run_kernel): Likewise.
13064 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
13065 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
13067 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
13068 * testsuite/libgomp-test-support.exp.in: Likewise.
13069 * Makefile.in: Regenerated.
13070 * aclocal.m4: Likewise.
13071 * config.h.in: Likewise.
13072 * configure: Likewise.
13073 * testsuite/Makefile.in: Likewise.
13075 2016-11-15 Martin Jambor <mjambor@suse.cz>
13076 Alexander Monakov <amonakov@ispras.ru>
13078 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
13079 mapping clauses to target constructs.
13080 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
13082 2016-11-15 Matthias Klose <doko@ubuntu.com>
13084 * configure: Regenerate.
13086 2016-11-10 Jakub Jelinek <jakub@redhat.com>
13088 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
13089 * omp_lib.h.in (openmp_version): Likewise.
13090 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
13092 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
13094 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
13095 (fib_wrapper): Add map(from: x) clause.
13096 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
13097 (e_53_2): Likewise.
13098 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
13099 (accum): Add map(tmp) clause.
13100 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
13101 (accum): Add map(tofrom: tmp) clause.
13102 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
13103 (gramSchmidt): Likewise.
13104 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
13105 map(tofrom: sum) clause.
13106 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
13107 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
13108 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
13109 only allowed on the loop iterator.
13110 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
13111 * testsuite/libgomp.fortran/taskloop2.f90: New test.
13112 * testsuite/libgomp.fortran/taskloop4.f90: New test.
13113 * testsuite/libgomp.fortran/doacross1.f90: New test.
13114 * testsuite/libgomp.fortran/doacross3.f90: New test.
13115 * testsuite/libgomp.fortran/taskloop1.f90: New test.
13116 * testsuite/libgomp.fortran/taskloop3.f90: New test.
13117 * testsuite/libgomp.fortran/doacross2.f90: New test.
13118 * testsuite/libgomp.c/doacross-1.c (main): Add missing
13119 #pragma omp atomic read.
13120 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13121 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
13123 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
13124 Nathan Sidwell <nathan@acm.org>
13126 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
13127 to determine default geometry.
13128 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
13131 2016-11-01 Jakub Jelinek <jakub@redhat.com>
13133 * hashtab.h: Use standard GPLv3 with runtime exception
13136 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
13138 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
13139 size when allocating new thread.
13141 2016-09-14 Marek Polacek <polacek@redhat.com>
13143 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
13145 2016-08-19 Jakub Jelinek <jakub@redhat.com>
13148 * testsuite/libgomp.fortran/pr71014.f90: New test.
13150 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
13152 PR middle-end/70895
13153 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
13154 firstprivate clauses.
13155 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
13157 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13158 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
13159 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
13160 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13161 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13162 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
13163 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13164 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13165 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13166 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13167 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13168 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
13170 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
13173 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
13175 2016-08-08 Jakub Jelinek <jakub@redhat.com>
13178 * testsuite/libgomp.c++/pr58706.C: New test.
13180 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
13182 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
13183 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
13184 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
13186 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
13187 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
13189 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
13191 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
13192 test, and don't hardcode -O0.
13194 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
13196 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
13198 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
13200 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
13203 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
13205 PR middle-end/71734
13206 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
13207 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
13209 2016-07-01 Jakub Jelinek <jakub@redhat.com>
13212 * testsuite/libgomp.fortran/associate3.f90: New test.
13214 2016-06-17 Jakub Jelinek <jakub@redhat.com>
13216 * testsuite/libgomp.c++/target-21.C: New test.
13218 2016-06-16 Jakub Jelinek <jakub@redhat.com>
13220 * testsuite/libgomp.c++/target-20.C: New test.
13222 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
13223 Cesar Philippidis <cesar@codesourcery.com>
13225 PR middle-end/71373
13226 * libgomp.oacc-c/nested-function-1.c: New file.
13227 * libgomp.oacc-c/nested-function-2.c: Likewise.
13228 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
13229 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
13230 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
13232 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
13235 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
13236 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
13237 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
13239 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
13241 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
13242 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
13244 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
13247 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
13249 2016-05-26 Jakub Jelinek <jakub@redhat.com>
13251 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
13252 instead of invalid schedule(static, 0).
13253 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13255 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
13257 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
13258 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
13259 parameter, use to set async stream around call to gomp_unmap_vars,
13260 call gomp_unmap_vars() with 'do_copyfrom' set to true.
13261 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
13262 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
13263 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
13264 (event_add): Add int parameter, initialize 'val' field when
13265 adding new ptx_event struct.
13266 (nvptx_evec): Adjust event_add() call arguments.
13267 (nvptx_host2dev): Likewise.
13268 (nvptx_dev2host): Likewise.
13269 (nvptx_wait_async): Likewise.
13270 (nvptx_wait_all_async): Likewise.
13271 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
13272 pass to event_add() call.
13273 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
13275 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
13276 call openacc.register_async_cleanup_func() hook.
13277 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
13278 * target.c (gomp_copy_from_async): Delete function.
13279 (gomp_map_vars): Remove async_refcount.
13280 (gomp_unmap_vars): Likewise.
13281 (gomp_load_image_to_device): Likewise.
13282 (omp_target_associate_ptr): Likewise.
13283 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
13284 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
13285 (gomp_copy_from_async): Remove.
13287 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
13289 * target.c (gomp_device_copy): New function.
13290 (gomp_copy_host2dev): Likewise.
13291 (gomp_copy_dev2host): Likewise.
13292 (gomp_free_device_memory): Likewise.
13293 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
13294 (gomp_map_pointer): Likewise.
13295 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
13296 NULL value from alloc_func plugin hook.
13297 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
13298 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
13299 (gomp_unmap_vars): Likewise.
13300 (gomp_update): Adjust to call gomp_copy_dev2host and
13301 gomp_copy_host2dev functions.
13302 (gomp_unload_image_from_device): Handle false value from
13303 unload_image_func plugin hook.
13304 (gomp_init_device): Handle false value from init_device_func
13306 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
13307 (omp_target_free): Adjust to call gomp_free_device_memory.
13308 (omp_target_memcpy): Handle return values from host2dev_func,
13309 dev2host_func, and dev2dev_func plugin hooks.
13310 (omp_target_memcpy_rect_worker): Likewise.
13311 (gomp_target_fini): Handle false value from fini_device_func
13313 * libgomp.h (struct gomp_device_descr): Adjust return type of
13314 init_device_func, fini_device_func, unload_image_func, free_func,
13315 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
13316 * oacc-init.c (acc_shutdown_1): Handle false value from
13317 fini_device_func plugin hook.
13318 * oacc-host.c (host_init_device): Change return type to bool.
13319 (host_fini_device): Likewise.
13320 (host_unload_image): Likewise.
13321 (host_free): Likewise.
13322 (host_dev2host): Likewise.
13323 (host_host2dev): Likewise.
13324 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
13325 (acc_memcpy_to_device): Likewise.
13326 (acc_memcpy_from_device): Likewise.
13327 (delete_copyout): Add libfnname parameter, handle free_func
13328 hook fatal error case.
13329 (acc_delete): Adjust delete_copyout call.
13330 (acc_copyout): Likewise.
13331 (update_dev_host): Move gomp_mutex_unlock to after
13332 host2dev/dev2host hook calls.
13334 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
13335 to 'hsa_error_msg', for clarity.
13336 (hsa_fatal): Likewise.
13337 (hsa_error): New function.
13338 (init_hsa_context): Change return type to bool, adjust to return
13340 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
13342 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
13343 return false on error.
13344 (get_agent_info): Adjust to return NULL on error.
13345 (destroy_hsa_program): Change return type to bool, adjust to
13346 return false on error.
13347 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
13348 (destroy_module): Change return type to bool, adjust to
13349 return false on error.
13350 (GOMP_OFFLOAD_unload_image): Likewise.
13351 (GOMP_OFFLOAD_fini_device): Likewise.
13352 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
13353 (GOMP_OFFLOAD_free): Change to return false when called.
13354 (GOMP_OFFLOAD_dev2host): Likewise.
13355 (GOMP_OFFLOAD_host2dev): Likewise.
13356 (GOMP_OFFLOAD_dev2dev): Likewise.
13358 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
13359 (CUDA_CALL): Likewise.
13360 (CUDA_CALL_ASSERT): Likewise.
13361 (map_init): Change return type to bool, use CUDA_CALL* macros.
13362 (map_fini): Likewise.
13363 (init_streams_for_device): Change return type to bool, adjust
13365 (fini_streams_for_device): Change return type to bool, adjust
13367 (select_stream_for_async): Release stream_lock before calls to
13368 GOMP_PLUGIN_fatal, adjust call to map_init.
13369 (nvptx_init): Use CUDA_CALL* macros.
13370 (nvptx_attach_host_thread_to_device): Change return type to bool,
13371 use CUDA_CALL* macros.
13372 (nvptx_open_device): Use CUDA_CALL* macros.
13373 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
13375 (nvptx_get_num_devices): Use CUDA_CALL* macros.
13376 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
13377 (nvptx_exec): Use CUDA_CALL* macros.
13378 (nvptx_alloc): Use CUDA_CALL* macros.
13379 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
13380 (nvptx_host2dev): Likewise.
13381 (nvptx_dev2host): Likewise.
13382 (nvptx_wait): Use CUDA_CALL* macros.
13383 (nvptx_wait_async): Likewise.
13384 (nvptx_wait_all): Likewise.
13385 (nvptx_wait_all_async): Likewise.
13386 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
13387 use CUDA_CALL* macros, adjust call to map_fini.
13388 (GOMP_OFFLOAD_init_device): Change return type to bool,
13389 adjust code accordingly.
13390 (GOMP_OFFLOAD_fini_device): Likewise.
13391 (GOMP_OFFLOAD_load_image): Adjust calls to
13392 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
13393 use CUDA_CALL* macros.
13394 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
13396 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
13397 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
13398 handle error return.
13399 (GOMP_OFFLOAD_dev2host): Likewise.
13400 (GOMP_OFFLOAD_host2dev): Likewise.
13401 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
13402 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
13404 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
13406 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
13407 (acc_free): Likewise.
13408 (acc_memcpy_to_device): Likewise.
13409 (acc_memcpy_from_device): Likewise.
13410 (acc_deviceptr): Likewise.
13411 (acc_hostptr): Likewise.
13412 (acc_is_present): Likewise.
13413 (acc_map_data): Likewise.
13414 (acc_unmap_data): Likewise.
13415 (present_create_copy): Likewise.
13416 (delete_copyout): Likewise.
13417 (update_dev_host): Likewise.
13418 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
13419 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
13420 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
13421 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13422 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
13423 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
13424 it only runs on nvptx targets.
13425 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13426 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13427 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13428 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13429 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13430 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13431 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13432 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13433 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13434 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13435 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13436 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13437 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13438 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13439 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13440 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13441 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13442 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13443 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13444 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13445 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13446 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13447 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13449 2016-05-23 Martin Jambor <mjambor@suse.cz>
13451 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
13453 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
13455 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
13456 to gomp_init_targets_once.
13457 (acc_set_device_type): Remove !cached_base_dev condition on call to
13458 gomp_init_targets_once, move call to before acc_device_lock acquire,
13460 (acc_get_device_num): Remove !cached_base_dev condition on call to
13461 gomp_init_targets_once.
13462 (acc_set_device_num): Likewise.
13464 2016-05-16 Martin Jambor <mjambor@suse.cz>
13466 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
13468 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
13470 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
13471 expected partitioning.
13473 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
13475 PR middle-end/70626
13476 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
13477 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
13478 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
13480 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
13482 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
13485 2016-04-19 Jakub Jelinek <jakub@redhat.com>
13487 PR middle-end/70680
13488 * testsuite/libgomp.c/pr70680-1.c: New test.
13489 * testsuite/libgomp.c/pr70680-2.c: New test.
13491 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13493 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13494 pass parameter variables to subroutines.
13496 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13498 PR middle-end/70643
13499 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
13501 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
13504 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
13505 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13507 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
13509 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
13510 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
13511 GOACC_declare prototype.
13513 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
13514 Merge this file, and...
13515 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
13516 ... this file, and...
13517 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
13518 ... this file, and...
13519 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13520 ... this file, and...
13521 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13522 ... this file, and...
13523 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13524 ... this file, and...
13525 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13526 ... this file, and...
13527 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13528 ... this file, and...
13529 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13530 ... this file, and...
13531 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13532 ... this file, and...
13533 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13534 ... this file, and...
13535 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13536 ... this file, and...
13537 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13538 ... this file into...
13539 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13542 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13543 Make failure observable.
13545 2016-04-12 Jakub Jelinek <jakub@redhat.com>
13547 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13549 * target.c (gomp_target_fallback_firstprivate,
13550 gomp_target_unshare_firstprivate): Removed.
13551 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13552 before waiting for dependencies.
13553 (gomp_target_task_fn): Don't copy firstprivate vars here.
13554 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13555 firstprivate_copies here.
13556 (gomp_create_target_task): Don't initialize firstprivate_copies field.
13557 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13558 explicit/implicit firstprivate.
13560 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
13564 PR tree-optimization/70373
13565 PR middle-end/70533
13566 PR middle-end/70534
13567 PR middle-end/70535
13568 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13570 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13572 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13574 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13576 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13578 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13580 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13582 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13584 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13586 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13587 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13588 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13589 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13591 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13593 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13595 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13597 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13599 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13600 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13601 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13602 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13603 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13604 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13606 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13607 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13608 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13609 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13610 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13611 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13612 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13613 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13614 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13615 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13616 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13617 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13618 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13619 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13620 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13622 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
13623 James Norris <jnorris@codesourcery.com>
13624 Nathan Sidwell <nathan@codesourcery.com>
13625 Julian Brown <julian@codesourcery.com>
13626 Cesar Philippidis <cesar@codesourcery.com>
13627 Chung-Lin Tang <cltang@codesourcery.com>
13628 Tom de Vries <tom@codesourcery.com>
13630 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13631 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13632 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13633 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13634 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13635 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13636 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13637 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13638 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13640 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13642 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13644 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13645 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13646 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13647 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13649 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13651 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13652 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13653 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13654 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13655 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13656 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13657 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13658 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13659 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13660 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13662 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13663 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13664 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13666 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13668 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13670 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13672 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13674 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13675 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13676 ... this new file. Update.
13677 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13678 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13679 ... this new file. Update.
13680 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13681 file. Incorporate...
13682 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13684 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13686 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13688 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13690 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
13692 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13693 set-torture-options.
13695 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
13697 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13699 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13700 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13701 -fno-builtin-acc_on_device instead of -O0.
13702 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13704 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13705 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13707 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13708 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13709 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13710 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13711 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13712 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13713 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13714 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13715 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13716 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13717 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13718 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13719 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13720 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13721 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13722 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13723 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13724 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13726 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13728 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13731 2016-03-24 Martin Liska <mliska@suse.cz>
13733 * plugin/plugin-hsa.c (packet_store_release): New function
13734 that is taken from the HSA runtime manual.
13735 (GOMP_OFFLOAD_run): Use the function.
13737 2016-03-23 Jakub Jelinek <jakub@redhat.com>
13740 * testsuite/libgomp.c++/pr70376.C: New test.
13742 2016-03-23 Tom de Vries <tom@codesourcery.com>
13744 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13745 initialization of lresult and lvresult.
13746 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13748 2016-03-23 James Norris <jnorris@codesourcery.com>
13749 Daichi Fukuoka <dc-fukuoka@sgi.com>
13752 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13753 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13754 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13755 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13757 2016-03-23 Martin Liska <mliska@suse.cz>
13760 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13761 argument just in case a dispatched kernel uses that argument.
13763 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
13765 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13766 -ftree-parallelize-loops/-fopenacc changes.
13767 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13769 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13771 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13773 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13775 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13776 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13778 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13780 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13781 always_ld_library_path the path to libgcc_s.
13783 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13786 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13788 2016-03-09 Tom de Vries <tom@codesourcery.com>
13790 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13791 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13792 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13794 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13795 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13796 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13797 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13799 2016-03-07 Martin Jambor <mjambor@suse.cz>
13801 * testsuite/lib/libgomp.exp
13802 (check_effective_target_hsa_offloading_selected_nocache): New.
13803 (check_effective_target_hsa_offloading_selected): Likewise.
13804 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13805 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13806 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13807 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13808 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13809 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13810 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13811 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13812 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13813 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13814 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13815 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13816 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13817 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13818 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13819 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13820 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13822 2016-03-07 Martin Jambor <mjambor@suse.cz>
13824 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13825 non-shared memory accelerators.
13826 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13827 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13828 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13829 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13830 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13831 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13832 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13833 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13834 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13836 2016-03-07 Martin Jambor <mjambor@suse.cz>
13838 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13841 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13844 * testsuite/libgomp.c++/pr69555-1.C: New test.
13845 * testsuite/libgomp.c++/pr69555-2.C: New test.
13847 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13848 Martin Jambor <mjambor@suse.cz>
13850 * testsuite/lib/libgomp.exp
13851 (check_effective_target_offload_device_shared_as): New proc.
13852 * testsuite/libgomp.c++/declare_target-1.C: New test.
13854 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13857 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13859 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13861 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13862 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13864 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13865 -ftree-parallelize-loops/-fopenacc changes.
13866 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13867 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13869 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13871 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13873 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13875 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13877 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13879 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13881 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13882 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13884 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13885 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13887 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13888 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13891 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13893 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13895 2016-02-19 Jakub Jelinek <jakub@redhat.com>
13898 * testsuite/libgomp.c/pr69805.c: New test.
13900 2016-02-16 Tom de Vries <tom@codesourcery.com>
13903 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13905 2016-02-09 Tom de Vries <tom@codesourcery.com>
13907 PR tree-optimization/69599
13908 * testsuite/libgomp.c/omp-nested-3.c: New test.
13909 * testsuite/libgomp.c/pr46032-2.c: New test.
13910 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13911 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13913 2016-02-09 Tom de Vries <tom@codesourcery.com>
13916 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13918 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13920 * testsuite/libgomp.c/target-31.c: Fix testcase.
13922 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13924 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13926 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13927 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13928 reduction and map clauses.
13929 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13931 2016-02-02 James Norris <jnorris@codesourcery.com>
13933 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13935 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13937 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13938 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13940 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13943 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13945 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13946 (hsa_kmt_lib): Set variables.
13947 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13948 always_ld_library_path.
13949 * Makefile.in: Regenerate.
13950 * configure: Likewise.
13951 * testsuite/Makefile.in: Likewise.
13953 * plugin/configfrag.ac (offload_additional_options)
13954 (offload_additional_lib_paths): Don't amend for hsa offloading.
13955 * configure: Regenerate.
13957 * plugin/configfrag.ac: Don't configure for offloading target if
13958 we don't build the corresponding plugin.
13959 * configure: Regenerate.
13961 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13963 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13964 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13966 2016-01-26 Tom de Vries <tom@codesourcery.com>
13968 PR tree-optimization/69110
13969 * testsuite/libgomp.c/pr69110.c: New test.
13971 2016-01-25 Richard Biener <rguenther@suse.de>
13974 * testsuite/libgomp.c++/pr69393.C: New testcase.
13976 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13978 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13979 function wasn't mapped to the device with non-shared memory.
13981 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13983 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13985 2016-01-19 Martin Jambor <mjambor@suse.cz>
13986 Martin Liska <mliska@suse.cz>
13988 * plugin/Makefrag.am: Add HSA plugin requirements.
13989 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13990 (HSA_RUNTIME_LIB): Likewise.
13991 (HSA_RUNTIME_CPPFLAGS): Likewise.
13992 (HSA_RUNTIME_INCLUDE): New substitution.
13993 (HSA_RUNTIME_LIB): Likewise.
13994 (HSA_RUNTIME_LDFLAGS): Likewise.
13995 (hsa-runtime): New configure option.
13996 (hsa-runtime-include): Likewise.
13997 (hsa-runtime-lib): Likewise.
13998 (PLUGIN_HSA): New substitution variable.
13999 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
14001 (PLUGIN_HSA_CPPFLAGS): Likewise.
14002 (PLUGIN_HSA_LDFLAGS): Likewise.
14003 (PLUGIN_HSA_LIBS): Likewise.
14004 Check that we have access to HSA run-time.
14005 * libgomp-plugin.h (offload_target_type): New element
14006 OFFLOAD_TARGET_TYPE_HSA.
14007 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
14009 (bool gomp_create_target_task): Updated.
14010 (gomp_device_descr): Extra parameter of run_func and async_run_func,
14011 new field can_run_func.
14012 * libgomp_g.h (GOMP_target_ext): Update prototype.
14013 * oacc-host.c (host_run): Added a new parameter args.
14014 * target.c (calculate_firstprivate_requirements): New function.
14015 (copy_firstprivate_data): Likewise.
14016 (gomp_target_fallback_firstprivate): Use them.
14017 (gomp_target_unshare_firstprivate): New function.
14018 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
14020 (GOMP_target): Do host fallback for all shared memory devices. Do not
14021 pass any args to plugins.
14022 (GOMP_target_ext): Introduce device-specific argument parameter args.
14023 Allow host fallback if device shares memory. Do not remap data if
14024 device has shared memory.
14025 (gomp_target_task_fn): Likewise. Also treat shared memory devices
14026 like host fallback for mappings.
14027 (GOMP_target_data): Treat shared memory devices like host fallback.
14028 (GOMP_target_data_ext): Likewise.
14029 (GOMP_target_update): Likewise.
14030 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
14031 gomp_create_target_task.
14032 (GOMP_target_enter_exit_data): Likewise.
14033 (omp_target_alloc): Treat shared memory devices like host fallback.
14034 (omp_target_free): Likewise.
14035 (omp_target_is_present): Likewise.
14036 (omp_target_memcpy): Likewise.
14037 (omp_target_memcpy_rect): Likewise.
14038 (omp_target_associate_ptr): Likewise.
14039 (gomp_load_plugin_for_device): Also load can_run.
14040 * task.c (GOMP_PLUGIN_target_task_completion): Free
14041 firstprivate_copies.
14042 (gomp_create_target_task): Accept new argument args and store it to
14044 * plugin/plugin-hsa.c: New file.
14046 2016-01-18 Tom de Vries <tom@codesourcery.com>
14048 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
14049 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
14050 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
14051 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
14052 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
14053 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
14054 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
14055 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
14056 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
14057 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
14058 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
14060 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
14062 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
14063 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
14064 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
14065 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
14066 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
14067 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
14068 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
14069 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
14071 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
14073 2016-01-15 Jakub Jelinek <jakub@redhat.com>
14075 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
14077 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
14079 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
14081 2016-01-12 James Norris <jnorris@codesourcery.com>
14083 * libgomp.texi: Updates for OpenACC.
14085 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
14087 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
14089 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
14092 * testsuite/libgomp.fortran/pr66680.f90: New test.
14094 2016-01-07 Jakub Jelinek <jakub@redhat.com>
14096 PR middle-end/68960
14097 * testsuite/libgomp.c/pr68960.c: New test.
14099 2016-01-06 Nathan Sidwell <nathan@acm.org>
14101 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
14102 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
14104 2016-01-04 Jakub Jelinek <jakub@redhat.com>
14106 Update copyright years.
14108 * libgomp.texi: Bump @copying's copyright year.
14110 2015-12-31 Nathan Sidwell <nathan@acm.org>
14112 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
14113 dg-additional-options syntax.
14114 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
14115 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
14116 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
14117 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
14118 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
14119 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
14120 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
14121 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
14122 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
14123 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
14124 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
14125 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
14126 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
14127 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
14128 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
14129 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
14130 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
14131 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
14133 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
14135 * libgomp.h (REFCOUNT_LINK): Define.
14136 (struct splay_tree_key_s): Add link_key.
14137 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
14138 Replace target address of the pointer with target address of newly
14139 mapped object in the splay tree. Set link pointer on target to the
14140 device address of the mapped object.
14141 (gomp_unmap_vars): Restore target address of the pointer in the splay
14142 tree for REFCOUNT_LINK objects after unmapping.
14143 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
14144 declare target link" objects.
14145 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
14146 "omp declare target link" objects, which were mapped for the image.
14147 (gomp_exit_data): Restore target address of the pointer in the splay
14148 tree for REFCOUNT_LINK objects after unmapping.
14149 * testsuite/libgomp.c/target-link-1.c: New file.
14151 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
14153 * libgomp.h (gomp_device_state): New enum.
14154 (struct gomp_device_descr): Replace is_initialized with state.
14155 (gomp_fini_device): Remove declaration.
14156 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
14157 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
14158 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
14159 (acc_set_device_type): Use state instead of is_initialized.
14160 (acc_set_device_num): Likewise.
14161 * target.c (resolve_device): Use state instead of is_initialized.
14162 Do not initialize finalized device.
14163 (gomp_map_vars): Do nothing if device is finalized.
14164 (gomp_unmap_vars): Likewise.
14165 (gomp_update): Likewise.
14166 (GOMP_offload_register_ver): Use state instead of is_initialized.
14167 (GOMP_offload_unregister_ver): Likewise.
14168 (gomp_init_device): Likewise.
14169 (gomp_unload_device): Likewise.
14170 (gomp_fini_device): Remove.
14171 (gomp_get_target_fn_addr): Do nothing if device is finalized.
14172 (GOMP_target): Go to host fallback if device is finalized.
14173 (GOMP_target_ext): Likewise.
14174 (gomp_exit_data): Do nothing if device is finalized.
14175 (gomp_target_task_fn): Go to host fallback if device is finalized.
14176 (gomp_target_fini): New static function.
14177 (gomp_target_init): Use state instead of is_initialized.
14178 Call gomp_target_fini at exit.
14180 2015-12-09 Tom de Vries <tom@codesourcery.com>
14182 PR tree-optimization/68716
14183 * testsuite/libgomp.c/omp-nested-2.c: New test.
14185 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
14187 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
14188 target openacc_nvidia_accel_selected.
14189 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
14190 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
14191 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
14192 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
14194 2015-12-01 Julian Brown <julian@codesourcery.com>
14195 James Norris <James_Norris@mentor.com>
14197 * oacc-parallel.c (GOACC_host_data): New function.
14198 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
14199 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
14200 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
14201 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
14202 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
14203 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
14204 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
14206 2015-11-30 James Norris <jnorris@codesourcery.com>
14207 Cesar Philippidis <cesar@codesourcery.com>
14210 * libgomp.oacc-fortran/routine-5.f90: New test.
14211 * libgomp.oacc-fortran/routine-7.f90: New test.
14212 * libgomp.oacc-fortran/routine-9.f90: New test.
14214 2015-11-30 Tom de Vries <tom@codesourcery.com>
14216 PR tree-optimization/46032
14217 * testsuite/libgomp.c/pr46032.c: New test.
14219 2015-11-27 Jakub Jelinek <jakub@redhat.com>
14222 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
14223 (gomp_create_target_task): Call it before freeing
14224 GOMP_TARGET_TASK_DATA tasks.
14227 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
14228 in between case label and OpenMP standalone directives.
14229 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
14231 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
14233 * configure: Regenerate.
14235 2015-11-26 Jakub Jelinek <jakub@redhat.com>
14237 * testsuite/libgomp.c/target-35.c: New test.
14239 2015-11-22 James Norris <jnorris@codesourcery.com>
14240 Cesar Philippidis <cesar@codesourcery.com>
14242 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
14243 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
14244 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
14245 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
14246 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
14248 2015-11-20 Jakub Jelinek <jakub@redhat.com>
14250 PR middle-end/68221
14251 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
14252 * testsuite/libgomp.c/reduction-12.c: Likewise.
14253 * testsuite/libgomp.c++/reduction-11.C: Likewise.
14254 * testsuite/libgomp.c++/reduction-12.C: Likewise.
14256 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
14258 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
14259 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
14260 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
14261 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
14262 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
14264 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14265 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14267 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
14269 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
14270 worker & gang cases.
14271 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
14273 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
14275 * config/nvptx/priority_queue.c: New file.
14277 2015-11-14 Jakub Jelinek <jakub@redhat.com>
14279 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
14282 2015-11-14 Jakub Jelinek <jakub@redhat.com>
14283 Aldy Hernandez <aldyh@redhat.com>
14284 Ilya Verbin <ilya.verbin@intel.com>
14286 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
14287 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
14288 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
14289 iterators or IV by chunk size.
14290 * parallel.c (gomp_resolve_num_threads): Don't assume that
14291 if thr->ts.team is non-NULL, then pool must be non-NULL.
14292 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
14293 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
14294 GOMP_PLUGIN_target_task_completion.
14295 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
14296 * Makefile.in: Regenerate.
14297 * libgomp.h: Shuffle prototypes and forward definitions around so
14298 priority queues can be defined.
14299 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
14300 (enum gomp_target_task_state): New enum.
14301 (struct gomp_target_task): Add state, tgt, task and team fields.
14302 (gomp_create_target_task): Change return type to bool, add
14304 (gomp_target_task_fn): Change return type to bool.
14305 (struct gomp_device_descr): Add async_run_func.
14306 (struct gomp_task): Remove children, next_child, prev_child,
14307 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
14309 (struct gomp_taskgroup): Remove children.
14310 Add taskgroup_queue.
14311 (struct gomp_team): Change task_queue type to a priority queue.
14312 (splay_compare): Define inline.
14313 (priority_queue_offset): New.
14314 (priority_node_to_task): New.
14315 (task_to_priority_node): New.
14316 * oacc-mem.c: Do not include splay-tree.h.
14317 * priority_queue.c: New file.
14318 * priority_queue.h: New file.
14319 * splay-tree.c: Do not include splay-tree.h.
14320 (splay_tree_foreach_internal): New.
14321 (splay_tree_foreach): New.
14322 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
14323 (splay_tree_callback): Define typedef.
14324 * target.c (splay_compare): Move to libgomp.h.
14325 (GOMP_target): Don't adjust *thr in any way around running offloaded
14327 (GOMP_target_ext): Likewise. Handle target nowait.
14328 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
14329 return value from gomp_create_target_task, if false, fallthrough
14330 as if no dependencies exist.
14331 (gomp_target_task_fn): Change return type to bool, return true
14332 if the task should have another part scheduled later. Handle
14334 (gomp_load_plugin_for_device): Initialize async_run.
14335 * task.c (gomp_init_task): Initialize children_queue.
14336 (gomp_clear_parent_in_list): New.
14337 (gomp_clear_parent_in_tree): New.
14338 (gomp_clear_parent): Handle priorities.
14339 (GOMP_task): Likewise.
14340 (priority_queue_move_task_first,
14341 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
14343 (gomp_create_target_task): Use priority queues. Change return type
14344 to bool, add state argument, return false if for async
14345 {{enter,exit} data,update} constructs no dependencies need to be
14346 waited for, handle target nowait. Set task->fn to NULL instead of
14347 gomp_target_task_fn.
14348 (verify_children_queue): Remove.
14349 (priority_list_upgrade_task): New.
14350 (priority_queue_upgrade_task): New.
14351 (verify_task_queue): Remove.
14352 (priority_list_downgrade_task): New.
14353 (priority_queue_downgrade_task): New.
14354 (gomp_task_run_pre): Use priority queues.
14355 Abstract code out to priority_queue_downgrade_task.
14356 (gomp_task_run_post_handle_dependers): Use priority queues.
14357 (gomp_task_run_post_remove_parent): Likewise.
14358 (gomp_task_run_post_remove_taskgroup): Likewise.
14359 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
14361 (GOMP_taskwait): Likewise.
14362 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
14363 priority-queue_upgrade_task.
14364 (GOMP_taskgroup_start): Use priority queues.
14365 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
14366 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
14368 * taskloop.c (GOMP_taskloop): Handle priorities.
14369 * team.c (gomp_new_team): Call priority_queue_init.
14370 (free_team): Call priority_queue_free.
14371 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
14372 team created for target nowait in implicit parallel region.
14373 (gomp_team_start): For nested check, test thr->ts.level instead of
14374 thr->ts.team != NULL.
14375 * testsuite/libgomp.c/doacross-3.c: New test.
14376 * testsuite/libgomp.c/ordered-5.c: New test.
14377 * testsuite/libgomp.c/priority.c: New test.
14378 * testsuite/libgomp.c/target-31.c: New test.
14379 * testsuite/libgomp.c/target-32.c: New test.
14380 * testsuite/libgomp.c/target-33.c: New test.
14381 * testsuite/libgomp.c/target-34.c: New test.
14383 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14385 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
14387 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
14388 loop is sequential.
14390 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14392 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
14393 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
14395 2015-11-12 James Norris <jnorris@codesourcery.com>
14396 Joseph Myers <joseph@codesourcery.com>
14398 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
14399 * oacc-parallel.c (GOACC_declare): New function.
14400 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
14401 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
14402 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
14403 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
14404 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
14406 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
14408 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
14410 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
14412 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
14413 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
14415 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14417 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
14418 inadvertent commit.
14420 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14422 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
14423 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
14424 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
14425 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
14426 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
14428 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
14430 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
14431 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
14433 2015-11-05 Jakub Jelinek <jakub@redhat.com>
14434 Ilya Verbin <ilya.verbin@intel.com>
14436 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
14437 GOMP_loop_nonmonotonic_dynamic_start,
14438 GOMP_loop_nonmonotonic_guided_next,
14439 GOMP_loop_nonmonotonic_guided_start,
14440 GOMP_loop_ull_nonmonotonic_dynamic_next,
14441 GOMP_loop_ull_nonmonotonic_dynamic_start,
14442 GOMP_loop_ull_nonmonotonic_guided_next,
14443 GOMP_loop_ull_nonmonotonic_guided_start,
14444 GOMP_parallel_loop_nonmonotonic_dynamic,
14445 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
14446 (GOMP_target_41): Renamed to ...
14447 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14449 (GOMP_target_data_41): Renamed to ...
14450 (GOMP_target_data_ext): ... this.
14451 (GOMP_target_update_41): Renamed to ...
14452 (GOMP_target_update_ext): ... this.
14453 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
14454 GOMP_target_data_ext and GOMP_target_update_ext instead of
14455 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
14456 Export GOMP_loop_nonmonotonic_dynamic_next,
14457 GOMP_loop_nonmonotonic_dynamic_start,
14458 GOMP_loop_nonmonotonic_guided_next,
14459 GOMP_loop_nonmonotonic_guided_start,
14460 GOMP_loop_ull_nonmonotonic_dynamic_next,
14461 GOMP_loop_ull_nonmonotonic_dynamic_start,
14462 GOMP_loop_ull_nonmonotonic_guided_next,
14463 GOMP_loop_ull_nonmonotonic_guided_start,
14464 GOMP_parallel_loop_nonmonotonic_dynamic and
14465 GOMP_parallel_loop_nonmonotonic_guided.
14466 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
14467 GOMP_parallel_loop_nonmonotonic_guided,
14468 GOMP_loop_nonmonotonic_dynamic_start,
14469 GOMP_loop_nonmonotonic_guided_start,
14470 GOMP_loop_nonmonotonic_dynamic_next,
14471 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
14472 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
14473 GOMP_loop_ull_nonmonotonic_guided_start,
14474 GOMP_loop_ull_nonmonotonic_dynamic_next,
14475 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
14476 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
14478 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
14479 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
14480 Use gomp_map_val function.
14481 (gomp_target_fallback_firstprivate): New static function.
14482 (GOMP_target_41): Renamed to ...
14483 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14484 arguments. Move firstprivate fallback handling into a new
14486 (GOMP_target_data_41): Renamed to ...
14487 (GOMP_target_data_ext): ... this.
14488 (GOMP_target_update_41): Renamed to ...
14489 (GOMP_target_update_ext): ... this.
14490 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
14491 gomp_map_0len_lookup instead of gomp_map_lookup.
14492 (omp_target_is_present): Use gomp_map_0len_lookup instead of
14494 * testsuite/libgomp.c/target-28.c: Likewise.
14495 * testsuite/libgomp.c/monotonic-1.c: New test.
14496 * testsuite/libgomp.c/monotonic-2.c: New test.
14497 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
14498 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
14499 * testsuite/libgomp.c/pr66199-5.c: New test.
14500 * testsuite/libgomp.c/pr66199-6.c: New test.
14501 * testsuite/libgomp.c/pr66199-7.c: New test.
14502 * testsuite/libgomp.c/pr66199-8.c: New test.
14503 * testsuite/libgomp.c/pr66199-9.c: New test.
14504 * testsuite/libgomp.c/reduction-11.c: New test.
14505 * testsuite/libgomp.c/reduction-12.c: New test.
14506 * testsuite/libgomp.c/reduction-13.c: New test.
14507 * testsuite/libgomp.c/reduction-14.c: New test.
14508 * testsuite/libgomp.c/reduction-15.c: New test.
14509 * testsuite/libgomp.c/target-12.c (main): Adjust for
14510 omp_target_is_present change for one-past-last element.
14511 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
14512 the same var is both mapped and privatized.
14513 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
14514 handling of zero-length array sections.
14515 * testsuite/libgomp.c/target-28.c: New test.
14516 * testsuite/libgomp.c/target-29.c: New test.
14517 * testsuite/libgomp.c/target-30.c: New test.
14518 * testsuite/libgomp.c/target-teams-1.c: New test.
14519 * testsuite/libgomp.c++/member-6.C: New test.
14520 * testsuite/libgomp.c++/member-7.C: New test.
14521 * testsuite/libgomp.c++/monotonic-1.C: New test.
14522 * testsuite/libgomp.c++/monotonic-2.C: New test.
14523 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
14524 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
14525 * testsuite/libgomp.c++/pr66199-3.C: New test.
14526 * testsuite/libgomp.c++/pr66199-4.C: New test.
14527 * testsuite/libgomp.c++/pr66199-5.C: New test.
14528 * testsuite/libgomp.c++/pr66199-6.C: New test.
14529 * testsuite/libgomp.c++/pr66199-7.C: New test.
14530 * testsuite/libgomp.c++/pr66199-8.C: New test.
14531 * testsuite/libgomp.c++/pr66199-9.C: New test.
14532 * testsuite/libgomp.c++/reduction-11.C: New test.
14533 * testsuite/libgomp.c++/reduction-12.C: New test.
14534 * testsuite/libgomp.c++/target-13.C: New test.
14535 * testsuite/libgomp.c++/target-14.C: New test.
14536 * testsuite/libgomp.c++/target-15.C: New test.
14537 * testsuite/libgomp.c++/target-16.C: New test.
14538 * testsuite/libgomp.c++/target-17.C: New test.
14539 * testsuite/libgomp.c++/target-18.C: New test.
14540 * testsuite/libgomp.c++/target-19.C: New test.
14542 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14544 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14545 and reduction copy.
14546 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14547 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14548 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14549 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14550 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14551 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14552 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14553 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14554 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14555 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14556 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14557 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14558 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14559 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14561 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14563 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14564 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14565 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14566 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14567 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14568 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14569 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14570 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14572 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
14574 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14575 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14576 (GOMP_OFFLOAD_openacc_parallel): Likewise.
14577 * oacc-host.c (host_openacc_exec): Likewise.
14578 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14580 2015-11-03 Julian Brown <julian@codesourcery.com>
14581 Thomas Schwinge <thomas@codesourcery.com>
14583 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14584 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14585 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14587 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14588 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14590 2015-11-03 James Norris <jnorris@codesourcery.com>
14592 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14594 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14596 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14597 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14598 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14599 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14600 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14602 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
14604 * openacc.h (enum acc_device_t): Reformat. Ensure layout
14606 (enum acc_async_t): Reformat.
14607 (acc_on_device): Declare compatible with builtin and provide C++
14609 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14611 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
14612 Cesar Philippidis <cesar@codesourcery.com>
14614 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14615 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14616 ... this. Add a description of the test at the top of the file.
14617 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14618 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14619 ... this. Add a description of the test at the top of the file.
14621 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
14623 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14624 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14625 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14626 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14627 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14628 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14630 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
14632 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14635 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
14638 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14640 2015-10-27 James Norris <jnorris@codesourcery.com>
14642 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14643 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14645 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
14647 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14648 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14650 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14651 acc_device_nvidia usage.
14652 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14653 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14654 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14656 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14657 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14660 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14664 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14665 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14667 2015-10-23 Tom de Vries <tom@codesourcery.com>
14670 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14672 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
14674 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14676 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14678 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
14679 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
14681 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14682 to 0 when mapnum is 0.
14684 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
14686 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14687 Cast to int from int32_t.
14689 2015-10-13 Jakub Jelinek <jakub@redhat.com>
14690 Aldy Hernandez <aldyh@redhat.com>
14691 Ilya Verbin <ilya.verbin@intel.com>
14693 * config/linux/affinity.c (omp_get_place_num_procs,
14694 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14695 * config/linux/doacross.h: New file.
14696 * config/posix/affinity.c (omp_get_place_num_procs,
14697 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14698 * config/posix/doacross.h: New file.
14699 * env.c: Include gomp-constants.h.
14700 (struct gomp_task_icv): Rename run_sched_modifier to
14701 run_sched_chunk_size.
14702 (gomp_max_task_priority_var): New variable.
14703 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14704 (handle_omp_display_env): Change _OPENMP value from 201307 to
14705 201511. Print OMP_MAX_TASK_PRIORITY.
14706 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14707 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14708 chunk_size and run_sched_modifier to run_sched_chunk_size.
14709 (omp_get_max_task_priority, omp_get_initial_device,
14710 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14711 omp_get_partition_place_nums): New functions.
14712 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14713 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14715 (omp_get_num_places_, omp_get_place_num_procs_,
14716 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14717 omp_get_place_proc_ids_8_, omp_get_place_num_,
14718 omp_get_partition_num_places_, omp_get_partition_place_nums_,
14719 omp_get_partition_place_nums_8_, omp_get_initial_device_,
14720 omp_get_max_task_priority_): New functions.
14721 * libgomp_g.h (GOMP_loop_doacross_static_start,
14722 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14723 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14724 GOMP_loop_ull_doacross_dynamic_start,
14725 GOMP_loop_ull_doacross_guided_start,
14726 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14727 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14728 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14729 GOMP_target_data_41, GOMP_target_update_41,
14730 GOMP_target_enter_exit_data): New prototypes.
14731 (GOMP_task): Add prototype argument.
14732 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14733 (struct gomp_doacross_work_share): New type.
14734 (struct gomp_work_share): Add doacross field.
14735 (struct gomp_task_icv): Rename run_sched_modifier to
14736 run_sched_chunk_size.
14737 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14738 GOMP_TASK_UNDEFERRED. Add comments.
14739 (struct gomp_task_depend_entry): Add comments.
14740 (struct gomp_task): Likewise.
14741 (struct gomp_taskgroup): Likewise.
14742 (struct gomp_target_task): New type.
14743 (struct gomp_team): Add comment.
14744 (gomp_get_place_proc_ids_8, gomp_doacross_init,
14745 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14746 gomp_create_target_task, gomp_target_task_fn): New prototypes.
14747 (struct target_var_desc): New type.
14748 (struct target_mem_desc): Adjust comment. Use struct
14749 target_var_desc instead of splay_tree_key for list.
14750 (REFCOUNT_INFINITY): Define.
14751 (struct splay_tree_key_s): Remove copy_from field.
14752 (struct gomp_device_descr): Add dev2dev_func field.
14753 (enum gomp_map_vars_kind): New enum.
14754 (gomp_map_vars): Add one argument.
14755 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14756 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14757 omp_get_place_num_procs, omp_get_place_num_procs_,
14758 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14759 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14760 omp_get_place_num_, omp_get_partition_num_places,
14761 omp_get_partition_num_places_, omp_get_partition_place_nums,
14762 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14763 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14764 omp_target_free, omp_target_is_present, omp_target_memcpy,
14765 omp_target_memcpy_rect, omp_target_associate_ptr and
14766 omp_target_disassociate_ptr.
14767 (GOMP_4.0.2): Renamed to ...
14768 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14769 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14770 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14771 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14772 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14773 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14774 GOMP_loop_ull_doacross_guided_start,
14775 GOMP_loop_ull_doacross_runtime_start,
14776 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14777 GOMP_doacross_ull_wait.
14778 * libgomp.texi: Document omp_get_max_task_priority.
14779 Rename modifier argument to chunk_size for omp_set_schedule and
14780 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14781 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14782 to run_sched_chunk_size renaming.
14783 (GOMP_loop_ordered_runtime_start): Likewise.
14784 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14785 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14786 GOMP_parallel_loop_runtime_start): New functions.
14787 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14788 to run_sched_chunk_size renaming.
14789 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14790 GOMP_loop_doacross_guided_start): New functions or aliases.
14791 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14792 run_sched_modifier to run_sched_chunk_size renaming.
14793 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14794 (gomp_loop_ull_doacross_static_start,
14795 gomp_loop_ull_doacross_dynamic_start,
14796 gomp_loop_ull_doacross_guided_start,
14797 GOMP_loop_ull_doacross_runtime_start): New functions.
14798 (GOMP_loop_ull_doacross_static_start,
14799 GOMP_loop_ull_doacross_dynamic_start,
14800 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14801 * oacc-mem.c (acc_map_data, present_create_copy,
14802 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14804 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14805 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14806 instead of false to gomp_map_vars.
14807 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14808 * omp.h.in (omp_lock_hint_t): New type.
14809 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14810 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14811 omp_get_place_num, omp_get_partition_num_places,
14812 omp_get_partition_place_nums, omp_get_initial_device,
14813 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14814 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14815 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14817 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14818 (omp_lock_hint_none, omp_lock_hint_uncontended,
14819 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14820 omp_lock_hint_speculative): New parameters.
14821 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14822 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14823 omp_get_place_num, omp_get_partition_num_places,
14824 omp_get_partition_place_nums, omp_get_initial_device,
14825 omp_get_max_task_priority): New interfaces.
14826 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14828 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14829 (omp_lock_hint_none, omp_lock_hint_uncontended,
14830 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14831 omp_lock_hint_speculative): New parameters.
14832 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14833 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14834 omp_get_place_num, omp_get_partition_num_places,
14835 omp_get_partition_place_nums, omp_get_initial_device,
14836 omp_get_max_task_priority): New functions and subroutines.
14837 * ordered.c: Include stdarg.h and string.h.
14838 (MAX_COLLAPSED_BITS): Define.
14839 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14840 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14841 GOMP_doacross_ull_wait): New functions.
14842 * target.c: Include errno.h.
14843 (resolve_device): If device is not initialized, call
14844 gomp_init_device on it.
14845 (gomp_map_lookup): New function.
14846 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14847 Don't bump refcount if REFCOUNT_INFINITY. Handle
14848 GOMP_MAP_ALWAYS_TO_P.
14849 (get_kind): Rename is_openacc argument to short_mapkind.
14850 (gomp_map_pointer): Use gomp_map_lookup.
14851 (gomp_map_fields_existing): New function.
14852 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14853 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14854 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14855 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14856 Adjust for tgt->list changed type and copy_from living in there.
14857 (gomp_copy_from_async): Adjust for tgt->list changed type and
14858 copy_from living in there.
14859 (gomp_unmap_vars): Likewise.
14860 (gomp_update): Likewise. Rename is_openacc argument to
14861 short_mapkind. Don't fail if object is not mapped.
14862 (gomp_load_image_to_device): Initialize refcount to
14864 (gomp_target_fallback): New function.
14865 (gomp_get_target_fn_addr): Likewise.
14866 (GOMP_target): Adjust gomp_map_vars caller, use
14867 gomp_get_target_fn_addr and gomp_target_fallback.
14868 (GOMP_target_41): New function.
14869 (gomp_target_data_fallback): New function.
14870 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14871 (GOMP_target_data_41): New function.
14872 (GOMP_target_update): Adjust gomp_update caller.
14873 (GOMP_target_update_41): New function.
14874 (gomp_exit_data, GOMP_target_enter_exit_data,
14875 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14876 omp_target_is_present, omp_target_memcpy,
14877 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14878 omp_target_associate_ptr, omp_target_disassociate_ptr,
14879 gomp_load_plugin_for_device): New functions.
14880 * task.c: Include gomp-constants.h. Include taskloop.c
14881 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14882 (gomp_task_handle_depend): New function.
14883 (GOMP_task): Use it. Add priority argument. Use
14884 gomp-constant.h constants instead of hardcoded numbers.
14885 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14886 (gomp_create_target_task): New function.
14887 (verify_children_queue, verify_taskgroup_queue,
14888 verify_task_queue): New functions.
14889 (gomp_task_run_pre): Call verify_*_queue functions.
14890 If an upcoming tied task is about to leave the sibling or
14891 taskgroup queues in an invalid state, adjust appropriately.
14892 Remove taskgroup argument. Add comments.
14893 (gomp_task_run_post_handle_dependers): Add comments.
14894 (gomp_task_run_post_remove_parent): Likewise.
14895 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14896 (GOMP_taskwait): Likewise. Add comments.
14897 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14898 problem such that the first non parent_depends_on task does not
14899 end up at the end of the children queue.
14900 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14901 GOMP_TASK_UNDEFERRED.
14902 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14903 * taskloop.c: New file.
14904 * testsuite/lib/libgomp.exp
14905 (check_effective_target_offload_device_nonshared_as): New proc.
14906 * testsuite/libgomp.c/affinity-2.c: New test.
14907 * testsuite/libgomp.c/doacross-1.c: New test.
14908 * testsuite/libgomp.c/doacross-2.c: New test.
14909 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14910 Add map clause to target.
14911 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14912 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14913 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14914 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14915 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14917 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14918 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14919 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14920 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14921 not defined. Use those where needed.
14922 * testsuite/libgomp.c/for-4.c: New test.
14923 * testsuite/libgomp.c/for-5.c: New test.
14924 * testsuite/libgomp.c/for-6.c: New test.
14925 * testsuite/libgomp.c/linear-1.c: New test.
14926 * testsuite/libgomp.c/ordered-4.c: New test.
14927 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14928 only allowed on the loop iterator.
14929 * testsuite/libgomp.c/pr66199-3.c: New test.
14930 * testsuite/libgomp.c/pr66199-4.c: New test.
14931 * testsuite/libgomp.c/reduction-7.c: New test.
14932 * testsuite/libgomp.c/reduction-8.c: New test.
14933 * testsuite/libgomp.c/reduction-9.c: New test.
14934 * testsuite/libgomp.c/reduction-10.c: New test.
14935 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14937 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14938 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14939 * testsuite/libgomp.c/target-11.c: New test.
14940 * testsuite/libgomp.c/target-12.c: New test.
14941 * testsuite/libgomp.c/target-13.c: New test.
14942 * testsuite/libgomp.c/target-14.c: New test.
14943 * testsuite/libgomp.c/target-15.c: New test.
14944 * testsuite/libgomp.c/target-16.c: New test.
14945 * testsuite/libgomp.c/target-17.c: New test.
14946 * testsuite/libgomp.c/target-18.c: New test.
14947 * testsuite/libgomp.c/target-19.c: New test.
14948 * testsuite/libgomp.c/target-20.c: New test.
14949 * testsuite/libgomp.c/target-21.c: New test.
14950 * testsuite/libgomp.c/target-22.c: New test.
14951 * testsuite/libgomp.c/target-23.c: New test.
14952 * testsuite/libgomp.c/target-24.c: New test.
14953 * testsuite/libgomp.c/target-25.c: New test.
14954 * testsuite/libgomp.c/target-26.c: New test.
14955 * testsuite/libgomp.c/target-27.c: New test.
14956 * testsuite/libgomp.c/taskloop-1.c: New test.
14957 * testsuite/libgomp.c/taskloop-2.c: New test.
14958 * testsuite/libgomp.c/taskloop-3.c: New test.
14959 * testsuite/libgomp.c/taskloop-4.c: New test.
14960 * testsuite/libgomp.c++/ctor-13.C: New test.
14961 * testsuite/libgomp.c++/doacross-1.C: New test.
14962 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14963 Replace offload_device with offload_device_nonshared_as.
14964 * testsuite/libgomp.c++/for-12.C: New test.
14965 * testsuite/libgomp.c++/for-13.C: New test.
14966 * testsuite/libgomp.c++/for-14.C: New test.
14967 * testsuite/libgomp.c++/linear-1.C: New test.
14968 * testsuite/libgomp.c++/member-1.C: New test.
14969 * testsuite/libgomp.c++/member-2.C: New test.
14970 * testsuite/libgomp.c++/member-3.C: New test.
14971 * testsuite/libgomp.c++/member-4.C: New test.
14972 * testsuite/libgomp.c++/member-5.C: New test.
14973 * testsuite/libgomp.c++/ordered-1.C: New test.
14974 * testsuite/libgomp.c++/reduction-5.C: New test.
14975 * testsuite/libgomp.c++/reduction-6.C: New test.
14976 * testsuite/libgomp.c++/reduction-7.C: New test.
14977 * testsuite/libgomp.c++/reduction-8.C: New test.
14978 * testsuite/libgomp.c++/reduction-9.C: New test.
14979 * testsuite/libgomp.c++/reduction-10.C: New test.
14980 * testsuite/libgomp.c++/reference-1.C: New test.
14981 * testsuite/libgomp.c++/simd14.C: New test.
14982 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14983 * testsuite/libgomp.c++/target-5.C: New test.
14984 * testsuite/libgomp.c++/target-6.C: New test.
14985 * testsuite/libgomp.c++/target-7.C: New test.
14986 * testsuite/libgomp.c++/target-8.C: New test.
14987 * testsuite/libgomp.c++/target-9.C: New test.
14988 * testsuite/libgomp.c++/target-10.C: New test.
14989 * testsuite/libgomp.c++/target-11.C: New test.
14990 * testsuite/libgomp.c++/target-12.C: New test.
14991 * testsuite/libgomp.c++/taskloop-1.C: New test.
14992 * testsuite/libgomp.c++/taskloop-2.C: New test.
14993 * testsuite/libgomp.c++/taskloop-3.C: New test.
14994 * testsuite/libgomp.c++/taskloop-4.C: New test.
14995 * testsuite/libgomp.c++/taskloop-5.C: New test.
14996 * testsuite/libgomp.c++/taskloop-6.C: New test.
14997 * testsuite/libgomp.c++/taskloop-7.C: New test.
14998 * testsuite/libgomp.c++/taskloop-8.C: New test.
14999 * testsuite/libgomp.c++/taskloop-9.C: New test.
15000 * testsuite/libgomp.fortran/affinity1.f90: New test.
15001 * testsuite/libgomp.fortran/affinity2.f90: New test.
15003 2015-10-13 Tom de Vries <tom@codesourcery.com>
15005 PR tree-optimization/67476
15006 * testsuite/libgomp.c/autopar-3.c: New test.
15007 * testsuite/libgomp.c/autopar-4.c: New test.
15008 * testsuite/libgomp.c/autopar-5.c: New test.
15009 * testsuite/libgomp.c/autopar-6.c: New test.
15010 * testsuite/libgomp.c/autopar-7.c: New test.
15011 * testsuite/libgomp.c/autopar-8.c: New test.
15013 2015-10-12 James Norris <jnorris@codesourcery.com>
15015 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
15018 2015-10-09 David Malcolm <dmalcolm@redhat.com>
15020 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
15021 using load_gcc_lib.
15023 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
15025 * oacc-ptx.h: Remove file, moving its content into...
15026 * config/nvptx/fortran.c: ... here...
15027 * config/nvptx/oacc-init.c: ..., here...
15028 * config/nvptx/oacc-parallel.c: ..., and here.
15029 * config/nvptx/openacc.f90: New file.
15030 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
15031 (link_ptx): Don't link in predefined bits of PTX code.
15033 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
15034 Bernd Schmidt <bernds@codesourcery.com>
15036 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
15037 (struct targ_ptx_obj): New.
15038 (nvptx_tdata): Move earlier, change data format.
15039 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
15041 (GOMP_OFFLOAD_load_image): Adjust.
15043 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
15045 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
15046 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15047 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15048 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15049 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15050 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15051 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15052 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15053 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15054 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15055 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15056 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15057 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15058 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15059 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15060 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15061 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15062 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15063 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15064 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15065 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15066 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15067 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15068 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15069 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15070 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15071 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15072 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15073 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15074 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15075 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15076 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15077 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15078 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15079 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15080 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15081 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15082 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15083 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15084 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15085 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15086 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15087 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15088 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15089 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15090 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15091 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15092 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15093 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15094 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15095 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15096 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15097 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15098 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15099 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15100 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15101 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15102 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15103 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15104 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15105 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15106 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15107 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15109 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
15111 * oacc-init.c (acc_on_device): Force optimization level.
15113 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
15115 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
15116 (cuda_errlist): Delete.
15117 (cuda_error): Reimplement.
15119 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
15121 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
15123 * libgomp.map (GOACC_parallel_keyed): New.
15124 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
15126 (GOACC_parallel_keyed): New interface. Lose geometry arguments
15127 and take keyed varargs list. Adjust call to exec_func.
15128 (GOACC_parallel): Force host fallback.
15129 * libgomp_g.h (GOACC_parallel): Remove.
15130 (GOACC_parallel_keyed): Declare.
15131 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
15132 (struct targ_gn_descriptor): Replace name field with launch field.
15133 (nvptx_exec): Lose separate geometry args, take array. Process
15134 dynamic dimensions and adjust.
15135 (struct nvptx_tdata): Replace fn_names field with fn_descs.
15136 (GOMP_OFFLOAD_load_image): Adjust for change in function table
15138 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
15140 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
15143 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
15146 * oacc-int.h (goacc_host_init): Add declaration.
15147 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
15148 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
15150 2015-09-08 Aditya Kumar <hiraditya@msn.com>
15151 Sebastian Pop <s.pop@samsung.com>
15153 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
15155 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
15156 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
15157 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
15158 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
15159 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
15161 2015-09-03 Jakub Jelinek <jakub@redhat.com>
15163 * configure.tgt: Add missing ;; in between nvptx and rtems
15166 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15168 * config/posix/pool.h (gomp_adjust_thread_attr): New.
15169 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
15170 (gomp_thread_pool_reservoir): Add priority member.
15171 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
15173 (parse_thread_pools): Likewise.
15174 * team.c (gomp_team_start): Call configuration provided
15175 gomp_adjust_thread_attr(). Destroy thread attributes if
15177 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
15179 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15181 * config/posix/pool.h: New.
15182 * config/rtems/pool.h: Likewise.
15183 * config/rtems/proc.c: Likewise.
15184 * libgomp.h (gomp_thread_destructor): Declare.
15185 * team.c: Include configuration provided "pool.h".
15186 (gomp_get_thread_pool): Define in configuration.
15187 (gomp_team_end): Call configuration defined
15188 gomp_release_thread_pool().
15190 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15192 * config/rtems/bar.c: New.
15193 * config/rtems/bar.h: Likewise.
15194 * config/rtems/mutex.c: Likewise.
15195 * config/rtems/mutex.h: Likewise.
15196 * config/rtems/sem.c: Likewise.
15197 * config/rtems/sem.h: Likewise.
15198 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
15199 <sys/lock.h> header file.
15200 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
15201 supported by Newlib.
15202 * configure: Regenerate.
15204 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15206 * team.c (gomp_new_thread_pool): Delete and move content to ...
15207 (gomp_get_thread_pool): ... new function. Allocate and
15208 initialize thread pool on demand.
15209 (get_last_team): Use gomp_get_thread_pool().
15210 (gomp_team_start): Delete thread pool initialization.
15212 2015-09-03 Tom de Vries <tom@codesourcery.com>
15214 PR tree-optimization/65637
15215 * testsuite/libgomp.c/autopar-2.c: New test.
15217 2015-08-29 Tom de Vries <tom@codesourcery.com>
15219 PR tree-optimization/46193
15220 * testsuite/libgomp.c/pr46193.c: New test.
15222 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
15225 * libgomp.map: Add 4.0.2 version.
15226 * target.c (offload_image_descr): Add version field.
15227 (gomp_load_image_to_device): Add version argument. Adjust plugin
15228 call. Improve load mismatch diagnostic.
15229 (gomp_unload_image_from_device): Add version argument. Adjust plugin
15231 (GOMP_offload_regster): Make stub function, move bulk to ...
15232 (GOMP_offload_register_ver): ... here. Process version argument.
15233 (GOMP_offload_unregister): Make stub function, move bulk to ...
15234 (GOMP_offload_unregister_ver): ... here. Process version argument.
15235 (gomp_init_device): Process version field.
15236 (gomp_unload_device): Process version field.
15237 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
15238 macros. Check plugin version.
15239 * libgomp.h (gomp_device_descr): Add version function field. Adjust
15240 loader and unloader types.
15241 * oacc-host.c: Include gomp-constants.h.
15242 (host_version): New.
15243 (host_load_image, host_unload_image): Adjust.
15244 (host_dispatch): Add host_version.
15245 * plugin/plugin-nvptx.c: Include gomp-constants.h.
15246 (GOMP_OFFLOAD_version): New.
15247 (GOMP_OFFLOAD_load_image): Add version arg and check it.
15248 (GOMP_OFFLOAD_unload_image): Likewise.
15249 * plugin/plugin-host.c: Include gomp-constants.h.
15250 (GOMP_OFFLOAD_version): New.
15251 (GOMP_OFFLOAD_load_image): Add version arg.
15252 (GOMP_OFFLOAD_unload_image): Likewise.
15254 2015-08-24 Tom de Vries <tom@codesourcery.com>
15256 PR tree-optimization/65468
15257 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
15259 2015-08-24 Tom de Vries <tom@codesourcery.com>
15261 PR tree-optimization/65468
15262 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
15264 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
15268 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
15269 (gomp_iter_guided_next): Idem.
15270 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
15271 (gomp_iter_ull_guided_next): Idem.
15272 * config/linux/wait.h (do_spin): Idem.
15274 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15276 * libgomp-plugin.h (enum offload_target_type): Remove
15277 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
15278 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
15279 * openacc.h (enum acc_device_t): Likewise.
15280 * openacc_lib.h: Likewise.
15281 * oacc-init.c (name_of_acc_device_t): Don't handle it.
15282 (acc_on_device): Just use __builtin_acc_on_device.
15283 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
15284 of acc_on_device builtin.
15285 * plugin/plugin-host.h: Remove file.
15286 * plugin/plugin-host.c: Likewise, but salvage some content into...
15287 * oacc-host.c: ... this file.
15288 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
15289 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
15290 * Makefile.in: Regenerate.
15291 * configure: Likewise.
15292 * testsuite/lib/libgomp.exp
15293 (check_effective_target_openacc_host_nonshm_selected): Remove.
15294 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
15295 ACC_DEVICE_TYPE=host_nonshm.
15296 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15297 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15298 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15299 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15300 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15301 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15303 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15304 Jakub Jelinek <jakub@redhat.com>
15306 * config/nvptx/affinity.c: New file.
15307 * config/nvptx/alloc.c: Likewise.
15308 * config/nvptx/bar.c: Likewise.
15309 * config/nvptx/barrier.c: Likewise.
15310 * config/nvptx/critical.c: Likewise.
15311 * config/nvptx/env.c: Likewise.
15312 * config/nvptx/error.c: Likewise.
15313 * config/nvptx/fortran.c: Likewise.
15314 * config/nvptx/iter.c: Likewise.
15315 * config/nvptx/iter_ull.c: Likewise.
15316 * config/nvptx/libgomp-plugin.c: Likewise.
15317 * config/nvptx/lock.c: Likewise.
15318 * config/nvptx/loop.c: Likewise.
15319 * config/nvptx/loop_ull.c: Likewise.
15320 * config/nvptx/mutex.c: Likewise.
15321 * config/nvptx/oacc-async.c: Likewise.
15322 * config/nvptx/oacc-cuda.c: Likewise.
15323 * config/nvptx/oacc-host.c: Likewise.
15324 * config/nvptx/oacc-init.c: Likewise.
15325 * config/nvptx/oacc-mem.c: Likewise.
15326 * config/nvptx/oacc-parallel.c: Likewise.
15327 * config/nvptx/oacc-plugin.c: Likewise.
15328 * config/nvptx/omp-lock.h: Likewise.
15329 * config/nvptx/ordered.c: Likewise.
15330 * config/nvptx/parallel.c: Likewise.
15331 * config/nvptx/proc.c: Likewise.
15332 * config/nvptx/ptrlock.c: Likewise.
15333 * config/nvptx/sections.c: Likewise.
15334 * config/nvptx/sem.c: Likewise.
15335 * config/nvptx/single.c: Likewise.
15336 * config/nvptx/splay-tree.c: Likewise.
15337 * config/nvptx/target.c: Likewise.
15338 * config/nvptx/task.c: Likewise.
15339 * config/nvptx/team.c: Likewise.
15340 * config/nvptx/time.c: Likewise.
15341 * config/nvptx/work.c: Likewise.
15342 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
15343 * configure: Regenerate.
15344 * configure.tgt (config_path): Set to "nvptx" for target
15347 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15349 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
15351 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
15353 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
15354 (cuda_errlist): Constify.
15355 (errmsg): Move into ...
15356 (cuda_error): ... here. Make smaller.
15357 (_XSTR, _STR): Delete.
15358 (cuda_synames): Delete.
15359 (verify_device_library): Delete.
15360 (nvptx_init): Don't call it.
15362 2015-07-28 Tom de Vries <tom@codesourcery.com>
15364 * testsuite/libgomp.c/uns-outer-4.c: New test.
15366 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
15368 * testsuite/libgomp.c/pr66714.c: New test.
15370 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
15373 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
15374 (fib_ref): New function.
15375 (fib): Correct corner cases in the recursion.
15376 (main): Replace the non-simd loop with fib_ref call.
15377 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
15379 (fibonacci): Lower the parameter N to 30. Correct accordingly check
15380 for the last array element value. Replace the non-simd loop with
15381 fib_ref call. Remove redundant b_ref array. Remove the comparison
15382 of the last array element with according Fibonacci sequence element.
15383 (fib): Correct corner cases in the recursion.
15385 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
15387 * target.c (gomp_offload_image_to_device): Rename to ...
15388 (gomp_load_image_to_device): ... here.
15389 (GOMP_offload_register): Adjust call.
15390 (gomp_init_device): Likewise.
15391 (gomp_unload_image_from_device): New. Broken out of ...
15392 (GOMP_offload_unregister): ... here. Call it.
15393 (gomp_unload_device): New.
15394 * libgomp.h (gomp_unload_device): Declare.
15395 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
15398 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
15400 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
15402 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
15404 (goacc_waits): Move !num_waits handling to ...
15405 (GOACC_wait): ... here, the only caller that might have zero waits.
15407 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
15408 (struct ptx_image_data): Move earlier, add fns field.
15409 (struct ptx_device): Add images and image_lock fields.
15410 (ptx_images, ptx_image_lock): Delete.
15411 (nvptx_open_device): Initialize images and image_lock fields.
15412 (nvptx_close_device): Destroy image_lock.
15413 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
15414 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
15417 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15419 * target.c (GOMP_offload_register): Use int for device type arg.
15420 (GOMP_offload_unregister): Likewise.
15422 * target.c (struct_offload_image_descr): Constify host_table.
15423 (gomp_offload_image_to_device): Likewise.
15424 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
15426 * libgomp.h (gomp_device_descr): Constify target data arguments.
15427 * target.c (struct offload_image_descr): Constify target_data.
15428 (gomp_offload_image_to_device): Likewise.
15429 (GOMP_offload_register): Likewise.
15430 (GOMP_offload_unregister): Likewise.
15431 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
15432 GOMP_OFFLOAD_unload_image): Constify target data.
15433 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
15434 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
15436 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
15438 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
15439 Workaround driver library const error.
15440 (struct nvptx_tdata, nvptx_tdata_t): New.
15441 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
15444 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
15446 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
15447 of EPS parameter from integer to real.
15448 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
15449 type of EPS parameter from integer to real.
15451 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
15453 * team.c (get_last_team): New.
15454 (gomp_new_team): Recycle last non-nested team if possible.
15455 (gomp_team_end): Move team work share list free lock destruction
15457 (free_team): ... here.
15459 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
15461 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
15462 and ref from int to double. Replaced their comparison with
15463 an inequality of their difference and EPS.
15464 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
15465 comparison of pri and a reference number with an inequality of their
15466 difference and EPS.
15467 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
15468 the comparison of sum and sum_ref with an inequality of their
15469 difference and EPS.
15470 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
15471 the comparison of pri and a reference number with an inequality of
15472 their difference and EPS.
15474 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
15476 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
15477 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
15478 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
15479 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
15480 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
15481 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
15482 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
15483 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
15484 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
15485 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
15486 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
15487 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
15488 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
15490 (vec_mult): Likewise. Add #pragma omp taskwait.
15491 (main): Adjust caller.
15492 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
15493 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
15494 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
15495 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
15496 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
15497 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
15498 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
15499 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
15500 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
15501 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
15502 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
15503 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
15504 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
15505 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
15506 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
15507 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
15508 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
15509 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
15510 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
15511 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
15512 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
15513 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
15514 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
15515 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
15516 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
15517 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
15518 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15519 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15520 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15521 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15522 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15523 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15524 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15525 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15526 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15527 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15528 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15529 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15530 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15531 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15532 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15533 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15534 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15535 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15536 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15537 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15538 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15539 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15540 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15541 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15542 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15543 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15544 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15545 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15546 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15547 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15548 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15549 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15550 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15551 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15552 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15553 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15554 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15555 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15556 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15557 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15558 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15559 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15560 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15561 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15562 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15563 (vec_mult): Add !$omp taskwait.
15564 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15565 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15566 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15567 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15568 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15569 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15570 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15571 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15572 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15573 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15574 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15575 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15576 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15577 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15578 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15579 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15580 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15581 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15582 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15583 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15584 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15585 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15586 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15587 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15588 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15589 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15590 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15591 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15592 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15593 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15594 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15595 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15596 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15597 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15598 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15599 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15600 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15601 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15602 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15603 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15604 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15605 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15606 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15607 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15608 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15609 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15610 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15611 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15612 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15613 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15614 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15615 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15616 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15617 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15618 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15619 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15620 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15621 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15622 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15623 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15624 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15625 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15626 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15627 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15628 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15629 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15630 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15632 2015-07-10 Tom de Vries <tom@codesourcery.com>
15634 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15635 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15637 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15640 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15641 in a 64-bit configuration.
15642 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15643 offloading testing if no such device is available.
15644 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15645 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15647 2015-07-08 Tom de Vries <tom@codesourcery.com>
15649 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15651 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15653 2015-07-07 Tom de Vries <tom@codesourcery.com>
15655 PR tree-optimization/66642
15656 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15657 iteration count case.
15658 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15659 function, factor out of ...
15660 (main): ... here. Test low iteration count case.
15662 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
15664 * libgomp.h (gomp_thread_pool): Comment last_team field.
15666 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
15668 * testsuite/libgomp.c++/pr66702-1.C: Require
15669 vect_simd_clones effective target.
15670 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15672 2015-06-30 Tom de Vries <tom@codesourcery.com>
15674 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15675 already set. Use DEFAULT_CFLAGS in dg-runtest.
15676 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15679 2015-06-30 Tom de Vries <tom@codesourcery.com>
15681 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15682 already set. Use DEFAULT_CFLAGS in dg-runtest.
15683 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15684 * testsuite/libgomp.c++/pr64824.C: Same.
15685 * testsuite/libgomp.c++/pr64868.C: Same.
15686 * testsuite/libgomp.c++/pr66199-1.C: Same.
15687 * testsuite/libgomp.c++/pr66199-2.C: Same.
15688 * testsuite/libgomp.c++/target-2.C: Same.
15689 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15690 -std=<standard> option.
15691 * testsuite/libgomp.c++/udr-11.C: Same.
15692 * testsuite/libgomp.c++/udr-12.C: Same.
15693 * testsuite/libgomp.c++/udr-13.C: Same.
15694 * testsuite/libgomp.c++/udr-14.C: Same.
15695 * testsuite/libgomp.c++/udr-15.C: Same.
15696 * testsuite/libgomp.c++/udr-16.C: Same.
15697 * testsuite/libgomp.c++/udr-17.C: Same.
15698 * testsuite/libgomp.c++/udr-18.C: Same.
15699 * testsuite/libgomp.c++/udr-19.C: Same.
15700 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15701 * testsuite/libgomp.c++/simd-1.C: Same.
15702 * testsuite/libgomp.c++/simd-2.C: Same.
15703 * testsuite/libgomp.c++/simd-3.C: Same.
15704 * testsuite/libgomp.c++/simd-4.C: Same.
15705 * testsuite/libgomp.c++/simd-5.C: Same.
15706 * testsuite/libgomp.c++/simd-6.C: Same.
15707 * testsuite/libgomp.c++/simd-7.C: Same.
15708 * testsuite/libgomp.c++/simd-8.C: Same.
15709 * testsuite/libgomp.c++/simd-9.C: Same.
15710 * testsuite/libgomp.c++/simd10.C: Same.
15711 * testsuite/libgomp.c++/simd11.C: Same.
15712 * testsuite/libgomp.c++/simd12.C: Same.
15713 * testsuite/libgomp.c++/simd13.C: Same.
15715 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15717 PR middle-end/66702
15718 * testsuite/libgomp.c++/pr66702-1.C: New test.
15719 * testsuite/libgomp.c++/pr66702-2.C: New test.
15721 2015-06-30 Tom de Vries <tom@codesourcery.com>
15723 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15724 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15725 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15726 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15728 2015-06-30 Tom de Vries <tom@codesourcery.com>
15730 PR tree-optimization/66652
15731 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15732 using restrict pointers.
15733 (main): Add arguments to calls to f.
15734 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15736 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
15738 * configure.ac: Fix check for header <sys/sysctl.h>.
15739 * configure: Regenerate.
15740 * config.h.in: Likewise.
15742 2015-06-23 Tom de Vries <tom@codesourcery.com>
15744 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15746 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15748 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
15750 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15754 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15755 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15757 2015-06-15 Tom de Vries <tom@codesourcery.com>
15759 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
15760 dg-additional-options for any remaining options.
15761 * testsuite/libgomp.c/atomic-2.c: Same.
15762 * testsuite/libgomp.c/atomic-4.c: Same.
15763 * testsuite/libgomp.c/atomic-5.c: Same.
15764 * testsuite/libgomp.c/atomic-6.c: Same.
15765 * testsuite/libgomp.c/autopar-1.c: Same.
15766 * testsuite/libgomp.c/copyin-1.c: Same.
15767 * testsuite/libgomp.c/copyin-2.c: Same.
15768 * testsuite/libgomp.c/copyin-3.c: Same.
15769 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15770 * testsuite/libgomp.c/nestedfn-5.c: Same.
15771 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15772 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15773 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15774 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15775 * testsuite/libgomp.c/pr32362-1.c: Same.
15776 * testsuite/libgomp.c/pr32362-2.c: Same.
15777 * testsuite/libgomp.c/pr32362-3.c: Same.
15778 * testsuite/libgomp.c/pr39591-1.c: Same.
15779 * testsuite/libgomp.c/pr39591-2.c: Same.
15780 * testsuite/libgomp.c/pr39591-3.c: Same.
15781 * testsuite/libgomp.c/pr58392.c: Same.
15782 * testsuite/libgomp.c/pr58756.c: Same.
15783 * testsuite/libgomp.c/simd-1.c: Same.
15784 * testsuite/libgomp.c/simd-10.c: Same.
15785 * testsuite/libgomp.c/simd-11.c: Same.
15786 * testsuite/libgomp.c/simd-12.c: Same.
15787 * testsuite/libgomp.c/simd-13.c: Same.
15788 * testsuite/libgomp.c/simd-14.c: Same.
15789 * testsuite/libgomp.c/simd-15.c: Same.
15790 * testsuite/libgomp.c/simd-2.c: Same.
15791 * testsuite/libgomp.c/simd-3.c: Same.
15792 * testsuite/libgomp.c/simd-4.c: Same.
15793 * testsuite/libgomp.c/simd-5.c: Same.
15794 * testsuite/libgomp.c/simd-6.c: Same.
15795 * testsuite/libgomp.c/simd-7.c: Same.
15796 * testsuite/libgomp.c/simd-8.c: Same.
15797 * testsuite/libgomp.c/simd-9.c: Same.
15799 2015-06-15 Tom de Vries <tom@codesourcery.com>
15801 * testsuite/libgomp.c/pr35625.c: Fix typo.
15803 2015-06-15 Tom de Vries <tom@codesourcery.com>
15805 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15807 * testsuite/libgomp.c/atomic-3.c: Same.
15808 * testsuite/libgomp.c/debug-1.c: Same.
15809 * testsuite/libgomp.c/nqueens-1.c: Same.
15810 * testsuite/libgomp.c/pr26171.c: Same.
15811 * testsuite/libgomp.c/pr48591.c: Same.
15812 * testsuite/libgomp.c/pr64824.c: Same.
15813 * testsuite/libgomp.c/pr64868.c: Same.
15814 * testsuite/libgomp.c/pr66133.c: Same.
15815 * testsuite/libgomp.c/pr66199-1.c: Same.
15816 * testsuite/libgomp.c/pr66199-2.c: Same.
15817 * testsuite/libgomp.c/target-8.c: Same.
15819 2015-06-15 Tom de Vries <tom@codesourcery.com>
15821 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15823 * testsuite/libgomp.c/for-1.c: Same.
15824 * testsuite/libgomp.c/for-2.c: Same.
15825 * testsuite/libgomp.c/for-3.c: Same.
15826 * testsuite/libgomp.c/pr35625.c: Same.
15827 * testsuite/libgomp.c/pr39154.c: Same.
15828 * testsuite/libgomp.c/simd-16.c: Same.
15829 * testsuite/libgomp.c/simd-17.c: Same.
15831 2015-06-13 Tom de Vries <tom@codesourcery.com>
15833 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15835 2015-06-13 Tom de Vries <tom@codesourcery.com>
15837 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15838 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15839 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15841 (main): Use N instead of hardcoded constants.
15843 2015-06-05 Tom de Vries <tom@codesourcery.com>
15845 merge from gomp4 branch:
15846 2015-05-28 Tom de Vries <tom@codesourcery.com>
15848 PR tree-optimization/65443
15849 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15850 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15851 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15853 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15855 * testsuite/libgomp.graphite/bounds.c: Adjust for
15856 cleanup-tree-dump removal.
15857 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15858 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15859 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15860 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15861 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15862 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15863 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15864 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15865 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15866 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15868 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
15870 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15871 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15872 (futex_wake) [!__x86_64__]: Ditto.
15874 2015-05-28 Julian Brown <julian@codesourcery.com>
15876 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15877 function comment. Only call gomp_fatal if new argument is true.
15878 (acc_dev_num_out_of_range): New function.
15879 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15880 acc_dev_num_out_of_range as appropriate.
15881 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15882 (acc_get_device_num, acc_set_device_num): Update calls to
15884 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15887 2015-05-28 Julian Brown <julian@codesourcery.com>
15890 * oacc-init.c (plugin/plugin-host.h): Include.
15891 (acc_on_device): Check whether we're in an offloaded region for
15893 plugin. Don't use __builtin_acc_on_device.
15894 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15895 nonshm_exec flag in thread-local data.
15896 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15897 data for host_nonshm plugin.
15898 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15899 for host_nonshm plugin.
15900 * plugin/plugin-host.h: New.
15902 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15904 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15906 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15908 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15910 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15911 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15914 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15916 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15918 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15920 * target.c (gomp_map_pointer): New function abstracting out
15921 GOMP_MAP_POINTER handling.
15922 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15923 gomp_map_pointer().
15925 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15927 PR middle-end/66199
15928 * testsuite/libgomp.c/pr66199-1.c: New test.
15929 * testsuite/libgomp.c/pr66199-2.c: New test.
15930 * testsuite/libgomp.c++/pr66199-1.C: New test.
15931 * testsuite/libgomp.c++/pr66199-2.C: New test.
15932 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15933 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15935 2015-05-19 Julian Brown <julian@codesourcery.com>
15937 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15940 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15942 PR middle-end/66133
15943 * testsuite/libgomp.c/pr66133.c: New test.
15945 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15947 * Makefile.in: Regenerated with automake-1.11.6.
15948 * aclocal.m4: Likewise.
15949 * config.h.in: Likewise.
15950 * configure: Likewise.
15951 * testsuite/Makefile.in: Likewise.
15953 2015-05-08 Jason Merrill <jason@redhat.com>
15955 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15958 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15960 2015-05-06 Julian Brown <julian@codesourcery.com>
15962 * oacc-init.c (acc_device_lock): Add explanatory comment.
15963 (resolve_device): Add comment about locking requirement.
15964 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15965 gomp_init_device and gomp_fini_device calls.
15966 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15967 (acc_get_device_num, acc_set_device_num): Add locking around
15968 resolve_device and gomp_init_device calls.
15970 2015-05-06 Julian Brown <julian@codesourcery.com>
15972 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15973 goacc_thread_lock on error paths.
15974 * oacc-mem.c (lookup_host): Remove locking from function. Note
15975 locking requirement for caller in function comment.
15976 (lookup_dev): Likewise.
15977 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15978 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15979 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15982 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15986 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15987 don't expect "0x" prefix for "%p" format specifier, don't expect
15988 "(nil)" for NULL pointer.
15989 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15990 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15991 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15992 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15993 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15994 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15995 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15996 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15997 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15998 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15999 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16000 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16001 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16002 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16003 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16004 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16005 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16006 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16007 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16008 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16009 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16010 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16011 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16012 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16013 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16014 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16015 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16016 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16017 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
16018 accurately specify what we're looking for.
16019 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16020 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16021 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16022 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16023 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16025 2015-04-30 James Norris <jnorris@codesourcery.com>
16028 * testsuite/lib/libgomp.exp
16029 (check_effective_target_openacc_host_selected)
16030 (check_effective_target_openacc_host_nonshm_selected): New
16032 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
16034 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16035 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16036 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16037 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16038 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16039 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16040 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16041 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16042 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16043 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16044 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16045 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16046 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16047 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16048 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16049 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16050 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16051 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16052 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16053 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16054 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16055 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16056 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16057 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16058 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16059 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16060 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16061 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16062 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16063 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16064 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16065 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16066 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16067 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16068 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16069 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16070 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16071 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16072 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16073 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16074 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16075 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16076 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16078 2015-04-08 Julian Brown <julian@codesourcery.com>
16080 * libgomp.h (target_mem_desc: Remove mem_map field.
16081 (acc_dispatch_t): Remove open_device_func, close_device_func,
16082 get_device_num_func, set_device_num_func, target_data members.
16083 Change create_thread_data_func argument to device number instead of
16085 * oacc-async.c (assert.h): Include.
16086 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
16087 (acc_wait_all, acc_wait_all_async): Use current host thread's
16088 active device, not base_dev.
16089 * oacc-cuda.c (acc_get_current_cuda_device)
16090 (acc_get_current_cuda_context, acc_get_cuda_stream)
16091 (acc_set_cuda_stream): Likewise.
16092 * oacc-host.c (host_dispatch): Don't set open_device_func,
16093 close_device_func, get_device_num_func or set_device_num_func.
16094 * oacc-init.c (base_dev, init_key): Remove.
16095 (cached_base_dev): New.
16096 (name_of_acc_device_t): New.
16097 (acc_init_1): Initialise default-numbered device, not zeroth.
16098 (acc_shutdown_1): Close all devices of a given type.
16099 (goacc_destroy_thread): Don't use base_dev.
16100 (lazy_open, lazy_init, lazy_init_and_open): Remove.
16101 (goacc_attach_host_thread_to_device): New.
16102 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
16103 (acc_get_num_devices): Don't use base_dev.
16104 (acc_set_device_type): Reimplement.
16105 (acc_get_device_type): Don't use base_dev.
16106 (acc_get_device_num): Tweak logic.
16107 (acc_set_device_num): Likewise.
16108 (acc_on_device): Use acc_get_device_type.
16109 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
16110 (goacc_lazy_initialize): Reimplement with acc_init and
16111 goacc_attach_host_thread_to_device.
16112 * oacc-int.h (goacc_thread): Add base_dev field.
16113 (base_dev): Remove extern declaration.
16114 (goacc_attach_host_thread_to_device): Add prototype.
16115 * oacc-mem.c (acc_malloc): Use current thread's device instead of
16117 (acc_free): Likewise.
16118 (acc_memcpy_to_device): Likewise.
16119 (acc_memcpy_from_device): Likewise.
16120 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
16121 goacc_lazy_initialize (throughout).
16122 (GOACC_parallel): Use tgt_offset to locate target functions.
16123 * target.c (gomp_map_vars): Don't set tgt->mem_map.
16124 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
16125 (gomp_load_plugin_for_device): Remove open_device, close_device,
16126 get_device_num, set_device_num openacc hook initialisation. Don't set
16127 openacc.target_data.
16128 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
16129 (GOMP_OFFLOAD_openacc_close_device)
16130 (GOMP_OFFLOAD_openacc_get_device_num)
16131 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
16132 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
16134 * plugin/plugin-nvptx.c (ptx_inited): Remove.
16135 (instantiated_devices, ptx_dev_lock): New.
16136 (struct ptx_image_data): New.
16137 (ptx_devices, ptx_images, ptx_image_lock): New.
16138 (fini_streams_for_device): Reorder cuStreamDestroy call.
16139 (nvptx_get_num_devices): Remove forward declaration.
16140 (nvptx_init): Change return type to bool.
16141 (nvptx_fini): Remove.
16142 (nvptx_attach_host_thread_to_device): New.
16143 (nvptx_open_device): Return struct ptx_device* instead of void*.
16144 (nvptx_close_device): Change argument type to struct ptx_device*,
16145 return type to void.
16146 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
16147 (kernel_target_data, kernel_host_table): Remove static globals.
16148 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
16149 (GOMP_OFFLOAD_init_device): Reimplement.
16150 (GOMP_OFFLOAD_fini_device): Likewise.
16151 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
16152 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
16153 (GOMP_OFFLOAD_host2dev): Use ORD argument.
16154 (GOMP_OFFLOAD_openacc_open_device)
16155 (GOMP_OFFLOAD_openacc_close_device)
16156 (GOMP_OFFLOAD_openacc_set_device_num)
16157 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
16158 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
16162 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
16164 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
16166 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
16167 * libgomp.h (struct gomp_memory_mapping): Remove.
16168 (struct target_mem_desc): Change type of mem_map from
16169 gomp_memory_mapping * to splay_tree_s *.
16170 (struct gomp_device_descr): Remove register_image_func, get_table_func.
16171 Add load_image_func, unload_image_func.
16172 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
16173 Remove offload_regions_registered.
16174 (gomp_init_tables): Remove.
16175 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16177 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
16178 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
16179 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
16180 offload_regions_registered.
16181 Initialize load_image_func, unload_image_func, mem_map.root.
16182 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
16183 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
16184 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
16185 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
16186 gomp_memory_mapping *. Use dev's lock and splay_tree.
16187 (lookup_dev): Use dev's lock.
16188 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
16189 (acc_is_present): Likewise.
16190 (acc_map_data): Likewise.
16191 (acc_unmap_data): Likewise. Use dev's lock.
16192 (present_create_copy): Likewise.
16193 (delete_copyout): Pass dev to lookup_host instead of mem_map.
16194 (update_dev_host): Likewise.
16195 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
16196 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
16197 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
16198 (GOMP_OFFLOAD_get_table): Remove
16199 (GOMP_OFFLOAD_load_image): New function.
16200 (GOMP_OFFLOAD_unload_image): New function.
16201 * target.c (register_lock): New mutex for offload image registration.
16202 (num_devices): Do not guard with PLUGIN_SUPPORT.
16203 (gomp_realloc_unlock): New static function.
16204 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
16206 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
16207 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
16208 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
16210 (gomp_unmap_vars): Likewise.
16211 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
16212 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
16213 (gomp_offload_image_to_device): New static function.
16214 (GOMP_offload_register): Add mutex lock.
16215 Call gomp_offload_image_to_device for all initialized devices.
16216 Replace gomp_realloc with gomp_realloc_unlock.
16217 (GOMP_offload_unregister): New function.
16218 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
16219 get_table_func from the plugin with calls to init_device_func and
16220 gomp_offload_image_to_device.
16221 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16223 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
16224 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
16225 (GOMP_target_data): Do not call gomp_init_tables.
16226 (GOMP_target_update): Likewise. Remove argument from gomp_update.
16227 (gomp_load_plugin_for_device): Replace register_image and get_table
16228 with load_image and unload_image in DLSYM ().
16229 (gomp_register_images_for_device): Remove function.
16230 (gomp_target_init): Do not initialize current_device.mem_map.*,
16231 current_device.offload_regions_registered.
16232 Remove call to gomp_register_images_for_device.
16233 Do not free offload_images and num_offload_images.
16235 2015-03-30 Jakub Jelinek <jakub@redhat.com>
16238 * testsuite/libgomp.fortran/pr65597.f90: New test.
16240 2015-03-27 Tom de Vries <tom@codesourcery.com>
16243 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
16244 (init, check): New function.
16245 (foo): Change return type to void.
16246 (main): Call init and check.
16248 2015-03-27 Tom de Vries <tom@codesourcery.com>
16251 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
16252 (foo): Use M for non-inner loops to scale down test-case.
16254 2015-03-25 Kai Tietz <ktietz@redhat.com>
16257 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
16258 (GOACC_data_start): Likewise.
16259 * target.c (gomp_map_vars): Likewise.
16261 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
16263 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
16266 2015-03-19 Jakub Jelinek <jakub@redhat.com>
16268 * testsuite/libgomp.c/target-10.c: New test.
16269 * testsuite/libgomp.c++/target-4.C: New test.
16271 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
16273 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
16274 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
16276 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
16278 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
16279 * configure.ac (*-*-rtems*): Assume Pthread is supported.
16280 (pthread.h): Check for this header file.
16281 * configure: Regenerate.
16283 2015-02-25 Tom de Vries <tom@codesourcery.com>
16285 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
16286 (check_reduction_op, check_reduction_macro, max, min):
16288 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
16290 (main): Use new functions.
16292 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
16294 * target.c (gomp_load_plugin_for_device): Use const char * instead of
16295 char * for variables holding dlerror return values.
16296 (DLSYM_OPT): Ditto.
16298 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
16300 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
16302 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
16303 Cesar Philippidis <cesar@codesourcery.com>
16305 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
16306 GOACC_ctaid, and GOACC_nctaid routines.
16308 2015-02-11 Jakub Jelinek <jakub@redhat.com>
16311 * testsuite/libgomp.c/atomic-18.c: New test.
16312 * testsuite/libgomp.c++/atomic-16.C: New test.
16314 2015-02-04 Jakub Jelinek <jakub@redhat.com>
16318 * testsuite/libgomp.c/pr64824.c: New test.
16319 * testsuite/libgomp.c/pr64868.c: New test.
16320 * testsuite/libgomp.c++/pr64824.C: New test.
16321 * testsuite/libgomp.c++/pr64868.C: New test.
16323 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
16326 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
16327 Link with -lpthread.
16328 * config/aix/plugin-suffix.h: Delete.
16330 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
16333 * configure.tgt (*-*-aix*): Use config_path "aix posix".
16334 (*-*-darwin*): Use config_path "bsd darwin posix".
16335 (*-*-hpux*): Use config_path "hpux posix".
16336 * target.c: Add include of plugin-suffix.h and use
16337 SONAME_SUFFIX macro.
16338 * config/aix/plugin-suffix.h: New file.
16339 * config/darwin/plugin-suffix.h: New file.
16340 * config/hpux/plugin-suffix.h: New file.
16341 * config/posix/plugin-suffix.h: New file.
16343 2015-01-23 Jakub Jelinek <jakub@redhat.com>
16345 PR middle-end/64734
16346 * libgomp.c/pr64734.c: New test.
16348 2015-01-23 Tom de Vries <tom@codesourcery.com>
16351 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
16353 2015-01-23 Tom de Vries <tom@codesourcery.com>
16356 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
16359 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
16362 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
16363 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
16364 formal parameter. Update all users.
16365 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
16366 Document unused formal parameter.
16368 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
16370 * oacc-parallel.c: Don't include <alloca.h>.
16371 (GOACC_parallel): Use gomp_alloca instead of alloca.
16373 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
16375 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
16377 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
16378 James Norris <jnorris@codesourcery.com>
16379 Tom de Vries <tom@codesourcery.com>
16380 Julian Brown <julian@codesourcery.com>
16381 Cesar Philippidis <cesar@codesourcery.com>
16382 Nathan Sidwell <nathan@codesourcery.com>
16383 Tobias Burnus <burnus@net-b.de>
16385 * Makefile.am (search_path): Add $(top_srcdir)/../include.
16386 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
16387 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
16388 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
16389 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
16390 Include $(top_srcdir)/plugin/Makefrag.am.
16391 (nodist_libsubinclude_HEADERS): Add openacc.h.
16392 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
16393 openacc.f90, openacc.mod, openacc_kinds.mod.
16394 (omp_lib.mod): Generalize into...
16395 (%.mod): ... this new rule.
16396 (openacc_kinds.mod, openacc.mod): New rules.
16397 * plugin/configfrag.ac: New file.
16398 * configure.ac: Move plugin/offloading support into it. Include
16399 it. Instantiate testsuite/libgomp-test-support.pt.exp.
16400 * plugin/Makefrag.am: New file.
16401 * testsuite/Makefile.am (OFFLOAD_TARGETS)
16402 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
16404 (libgomp-test-support.exp): New rule.
16405 (all-local): Depend on it.
16406 * Makefile.in: Regenerate.
16407 * testsuite/Makefile.in: Regenerate.
16408 * config.h.in: Likewise.
16409 * configure: Likewise.
16410 * configure.tgt: Harden shell syntax.
16411 * env.c: Include "oacc-int.h".
16412 (parse_acc_device_type): New function.
16413 (gomp_debug_var, goacc_device_type, goacc_device_num): New
16415 (initialize_env): Initialize those. Call
16416 goacc_runtime_initialize.
16417 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
16418 (gomp_fatal): Call gomp_vfatal.
16419 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
16420 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
16421 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
16422 (splay_tree_node, splay_tree, splay_tree_key)
16423 (struct target_mem_desc, struct splay_tree_key_s)
16424 (struct gomp_memory_mapping, struct acc_dispatch_t)
16425 (struct gomp_device_descr, gomp_acc_insert_pointer)
16426 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
16427 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
16428 (gomp_free_memmap, gomp_fini_device): New declarations.
16429 (gomp_vdebug, gomp_debug): New macros.
16430 Include "splay-tree.h".
16431 * libgomp.map (OACC_2.0): New symbol version. Use for
16432 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
16433 acc_set_device_type_h_, acc_get_device_type,
16434 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
16435 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
16436 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
16437 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
16438 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
16439 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
16440 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
16441 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
16442 acc_copyin_array_h_, acc_present_or_copyin,
16443 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
16444 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
16445 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
16446 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
16447 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
16448 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
16449 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
16450 acc_update_device, acc_update_device_32_h_,
16451 acc_update_device_64_h_, acc_update_device_array_h_,
16452 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
16453 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
16454 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
16455 acc_is_present_64_h_, acc_is_present_array_h_,
16456 acc_memcpy_to_device, acc_memcpy_from_device,
16457 acc_get_current_cuda_device, acc_get_current_cuda_context,
16458 acc_get_cuda_stream, acc_set_cuda_stream.
16459 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
16460 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
16461 GOACC_update, GOACC_wait, GOACC_get_thread_num,
16462 GOACC_get_num_threads.
16463 (GOMP_PLUGIN_1.0): New symbol version. Use for
16464 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
16465 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
16466 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
16467 GOMP_PLUGIN_acc_thread.
16468 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
16469 environment variable.
16470 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
16471 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
16472 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
16473 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
16474 (splay_tree_remove): New declarations.
16475 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
16476 (splay_tree_remove, splay_tree_lookup): Move into...
16477 * splay-tree.c: ... this new file.
16478 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
16479 (splay_tree_node, splay_tree, splay_tree_key)
16480 (struct target_mem_desc, struct splay_tree_key_s)
16481 (struct gomp_device_descr): Don't declare.
16482 (num_devices_openmp): New variable.
16483 (gomp_get_num_devices ): Use it.
16484 (gomp_init_targets_once): New function.
16485 (gomp_get_num_devices ): Use it.
16486 (get_kind, gomp_copy_from_async, gomp_free_memmap)
16487 (gomp_fini_device, gomp_register_image_for_device): New functions.
16488 (gomp_map_vars): Add devaddrs parameter.
16489 (gomp_update): Add mm parameter.
16490 (gomp_init_device): Move most of it into...
16491 (gomp_init_tables): ... this new function.
16492 (gomp_register_images_for_device): Remove function.
16493 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
16494 Make them hidden instead of static.
16495 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
16496 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
16497 (GOMP_target_end_data, GOMP_target_update)
16498 (gomp_load_plugin_for_device, gomp_target_init): Update for
16500 * oacc-async.c: New file.
16501 * oacc-cuda.c: Likewise.
16502 * oacc-host.c: Likewise.
16503 * oacc-init.c: Likewise.
16504 * oacc-int.h: Likewise.
16505 * oacc-mem.c: Likewise.
16506 * oacc-parallel.c: Likewise.
16507 * oacc-plugin.c: Likewise.
16508 * oacc-plugin.h: Likewise.
16509 * oacc-ptx.h: Likewise.
16510 * openacc.f90: Likewise.
16511 * openacc.h: Likewise.
16512 * openacc_lib.h: Likewise.
16513 * plugin/plugin-host.c: Likewise.
16514 * plugin/plugin-nvptx.c: Likewise.
16515 * libgomp-plugin.c: Likewise.
16516 * libgomp-plugin.h: Likewise.
16517 * libgomp_target.h: Remove file after merging content into the
16518 former file. Update all users.
16519 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16520 (offload_targets_s, offload_targets_s_openacc): New variables.
16521 (check_effective_target_openacc_nvidia_accel_present)
16522 (check_effective_target_openacc_nvidia_accel_selected): New
16524 (libgomp_init): Update for OpenACC changes.
16525 * testsuite/libgomp-test-support.exp.in: New file.
16526 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16527 * testsuite/libgomp.oacc-c/c.exp: Likewise.
16528 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16529 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16530 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16531 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16532 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16533 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16534 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16535 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16536 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16537 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16538 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16539 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16540 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16541 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16542 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16543 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16544 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16545 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16546 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16547 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16548 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16549 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16550 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16551 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16552 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16553 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16554 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16555 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16556 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16557 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16558 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16559 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16560 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16561 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16562 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16563 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16564 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16565 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16566 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16567 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16568 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16569 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16570 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16571 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16572 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16573 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16574 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16575 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16576 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16577 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16578 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16579 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16580 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16581 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16582 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16583 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16584 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16585 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16586 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16587 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16588 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16589 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16590 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16591 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16592 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16593 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16594 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16595 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16596 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16597 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16598 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16599 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16600 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16601 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16602 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16603 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16604 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16605 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16606 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16607 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16608 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16609 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16610 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16611 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16612 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16613 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16614 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16615 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16616 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16617 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16618 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16619 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16620 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16621 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16622 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16623 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16624 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16625 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16626 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16627 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16628 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16629 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16630 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16631 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16632 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16633 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16634 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16635 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16636 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16637 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16638 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16639 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16640 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16641 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16642 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16643 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16644 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16645 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16646 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16647 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16648 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16649 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16650 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16651 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16652 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16653 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16654 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16655 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16656 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16657 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16658 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16659 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16660 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16661 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16662 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16663 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16664 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16665 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16667 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16668 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16669 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16670 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16671 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16672 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16673 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16674 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16675 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16676 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16677 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16678 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16679 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16680 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16681 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16682 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16683 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16684 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16685 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16686 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16687 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16688 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16689 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16690 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16691 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16692 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16693 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16694 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16695 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16696 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16697 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16698 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16699 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16700 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16701 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16702 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16703 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16704 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16705 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16706 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16707 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16708 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16709 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16710 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16711 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16712 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16713 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16714 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16715 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16716 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16717 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16718 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16719 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16720 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16721 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16722 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16723 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16724 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16725 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16726 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16728 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
16729 Julian Brown <julian@codesourcery.com>
16730 David Malcolm <dmalcolm@redhat.com>
16732 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16733 to "GNU Offloading and Multi Processing Runtime Library". Change
16735 * configure: Regenerate.
16736 * libgomp.texi: Update.
16738 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
16740 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16742 * configure: Regenerate.
16744 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16745 "intelmic" in $offload_targets.
16747 2015-01-05 Jakub Jelinek <jakub@redhat.com>
16749 Update copyright years.
16751 * libgomp.texi: Bump @copying's copyright year.
16753 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16755 * testsuite/lib/libgomp.exp: Load target-utils.exp.
16756 Move load of target-supports.exp earlier.
16758 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
16760 * testsuite/libgomp.c/target-9.c: New test.
16762 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
16764 * config.h.in: Regenerate.
16765 * configure: Regenerate.
16766 * configure.ac: Add GCC_CHECK_EMUTLS.
16767 * libgomp.h: Add check for USE_EMUTLS: this case
16768 is equal to HAVE_TLS.
16769 * team.c: Likewise.
16771 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
16773 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16775 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16776 Ilya Verbin <ilya.verbin@intel.com>
16778 * testsuite/libgomp.c/target-critical-1.c: New test.
16780 2014-11-26 Jakub Jelinek <jakub@redhat.com>
16782 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16783 to dg-options unless expensive testing is on.
16784 (TESTITERS): Define to N if not defined.
16785 (main): Use TESTITERS instead of N.
16786 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16787 dg-additional-options depending on whether expensive testing is on.
16788 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16789 Decrease N to 100000 and CHUNKSZ to 10000.
16791 2014-11-24 Jakub Jelinek <jakub@redhat.com>
16794 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16795 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16797 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
16799 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16801 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16804 * configure: Regenerated.
16806 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
16808 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16809 vect_simd_clones effective target.
16810 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16812 2014-11-14 Jakub Jelinek <jakub@redhat.com>
16814 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16815 of 32 as block_size.
16816 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16817 instead of 32 as block_size.
16819 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16820 Ilya Verbin <ilya.verbin@intel.com>
16822 * Makefile.in: Regenerate.
16823 * configure: Regenerate.
16824 * configure.ac: Set up offload_additional_options,
16825 offload_additional_lib_paths and offload_targets.
16826 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16827 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16828 * testsuite/Makefile.in: Regenerate.
16829 * testsuite/lib/libgomp.exp (libgomp_init): Append
16830 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16831 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16832 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16834 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16835 Ilya Verbin <ilya.verbin@intel.com>
16836 Kirill Yukhin <kirill.yukhin@intel.com>
16837 Ilya Tocar <ilya.tocar@intel.com>
16839 * testsuite/lib/libgomp.exp
16840 (check_effective_target_offload_device): New.
16841 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16842 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16843 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16844 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16845 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16846 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16847 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16848 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16849 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16850 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16851 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16852 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16853 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16854 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16855 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16856 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16857 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16858 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16859 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16860 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16861 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16862 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16863 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16864 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16865 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16866 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16867 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16868 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16869 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16870 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16871 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16872 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16873 * testsuite/libgomp.c/target-7.c: Fix test.
16874 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16875 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16876 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16877 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16878 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16879 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16880 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16881 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16882 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16883 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16884 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16885 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16886 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16887 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16888 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16889 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16890 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16891 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16892 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16893 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16894 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16895 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16896 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16897 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16898 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16899 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16900 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16901 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16902 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16903 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16904 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16906 2014-11-13 Jakub Jelinek <jakub@redhat.com>
16907 Ilya Verbin <ilya.verbin@intel.com>
16908 Thomas Schwinge <thomas@codesourcery.com>
16909 Andrey Turetskiy <andrey.turetskiy@intel.com>
16911 * libgomp.map (GOMP_4.0.1): New symbol version.
16912 Add GOMP_offload_register.
16913 * libgomp_target.h: New file.
16914 * splay-tree.h: New file.
16915 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16916 (gomp_target_init): New forward declaration.
16917 (gomp_is_initialized): New static variable.
16918 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16919 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16921 (offload_images, num_offload_images, devices, num_devices): New static
16923 (splay_compare): New static function.
16924 (struct gomp_device_descr): New structure.
16925 (gomp_get_num_devices): Call gomp_target_init.
16926 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16927 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16928 (GOMP_offload_register): New function.
16929 (GOMP_target): Arrange for host callback to be performed in a separate
16930 initial thread and contention group, inheriting ICVs from
16931 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16932 Add device initialization and lookup for target function in splay tree.
16933 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16934 (GOMP_target_end_data): Call gomp_unmap_vars.
16935 (GOMP_target_update): Add device initialization and call gomp_update.
16936 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16937 (gomp_target_init): New static functions.
16939 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16940 Thomas Schwinge <thomas@codesourcery.com>
16941 Ilya Verbin <ilya.verbin@intel.com>
16942 Andrey Turetskiy <andrey.turetskiy@intel.com>
16944 * config.h.in: Regenerate.
16945 * configure: Regenerate.
16946 * configure.ac: Check for libdl, required for plugin support.
16947 (PLUGIN_SUPPORT): Define if plugins are supported.
16948 (enable_offload_targets): Support Intel MIC targets.
16949 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16951 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16954 * configure: Regenerate.
16956 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16958 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16960 2014-10-06 Marek Polacek <polacek@redhat.com>
16962 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16963 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16964 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16965 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16967 2014-10-06 Marek Polacek <polacek@redhat.com>
16969 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16970 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16971 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16972 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16973 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16974 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16975 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16976 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16977 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16978 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16979 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16980 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16981 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16982 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16983 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16984 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16985 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16986 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16989 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16992 * testsuite/libgomp.c/pr61200.c: New test.
16994 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16997 * testsuite/libgomp.c++/pr63248.C: New test.
16999 2014-08-04 Jakub Jelinek <jakub@redhat.com>
17001 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
17002 is not zero, but taskgroup->children is NULL and there are
17003 any task->children, schedule those instead of waiting.
17004 * testsuite/libgomp.c/depend-6.c: New test.
17005 * testsuite/libgomp.c/depend-7.c: New test.
17006 * testsuite/libgomp.c/depend-8.c: New test.
17007 * testsuite/libgomp.c/depend-9.c: New test.
17008 * testsuite/libgomp.c/depend-10.c: New test.
17010 2014-08-01 Jakub Jelinek <jakub@redhat.com>
17012 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
17013 (struct gomp_taskwait): New type.
17014 (struct gomp_task): Add taskwait and parent_depends_on, remove
17015 in_taskwait and taskwait_sem fields.
17016 (gomp_finish_task): Don't destroy taskwait_sem.
17017 * task.c (gomp_init_task): Don't init in_taskwait, instead init
17018 taskwait and parent_depends_on.
17019 (GOMP_task): For if (0) tasks with depend clause that depend on
17020 earlier tasks don't defer them, instead call
17021 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
17022 Initialize redundant_out field, for redundant out entries just
17023 move them at the end of linked list instead of removing them
17024 completely, and set redundant_out flag instead of redundant.
17025 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
17027 (gomp_task_run_post_handle_dependers): If parent is in
17028 gomp_task_maybe_wait_for_dependencies and newly runnable task
17029 is not parent_depends_on, queue it in parent->children linked
17030 list after all runnable tasks with parent_depends_on set.
17031 Adjust for addition of taskwait indirection.
17032 (gomp_task_run_post_remove_parent): If parent is in
17033 gomp_task_maybe_wait_for_dependencies and task to be removed
17034 is parent_depends_on, decrement n_depend and if needed awake
17035 parent. Adjust for addition of taskwait indirection.
17036 (GOMP_taskwait): Adjust for addition of taskwait indirection.
17037 (gomp_task_maybe_wait_for_dependencies): New function.
17038 * testsuite/libgomp.c/depend-5.c: New test.
17040 2014-07-13 Tobias Burnus <burnus@net-b.de>
17042 * testsuite/libgomp.fortran/pr34020.f90: Make compile
17043 with TS 18508/Fortran 2015.
17045 2014-07-06 Marek Polacek <polacek@redhat.com>
17048 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
17050 2014-07-03 Jakub Jelinek <jakub@redhat.com>
17052 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
17053 matches regex $lang_source_re, add $lang_include_flags to options.
17054 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
17055 * testsuite/libgomp.c++/c++.exp: Likewise.
17056 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
17057 and lang_include_flags instead of adding -fintrinsic-modules-path= to
17059 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
17061 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
17063 * testsuite/libgomp.fortran/fortran.exp: Explain
17064 gfortran-dg-runtest usage.
17066 2014-06-25 Jakub Jelinek <jakub@redhat.com>
17068 * testsuite/libgomp.fortran/simd5.f90: New test.
17069 * testsuite/libgomp.fortran/simd6.f90: New test.
17070 * testsuite/libgomp.fortran/simd7.f90: New test.
17072 2014-06-24 Jakub Jelinek <jakub@redhat.com>
17074 * testsuite/libgomp.c/for-2.c: Define SC to static for
17075 #pragma omp for simd testing.
17076 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
17077 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
17079 * testsuite/libgomp.c/simd-14.c: New test.
17080 * testsuite/libgomp.c/simd-15.c: New test.
17081 * testsuite/libgomp.c/simd-16.c: New test.
17082 * testsuite/libgomp.c/simd-17.c: New test.
17083 * testsuite/libgomp.c++/for-10.C: Define SC to static for
17084 #pragma omp for simd testing.
17085 * testsuite/libgomp.c++/simd10.C: New test.
17086 * testsuite/libgomp.c++/simd11.C: New test.
17087 * testsuite/libgomp.c++/simd12.C: New test.
17088 * testsuite/libgomp.c++/simd13.C: New test.
17090 * testsuite/libgomp.fortran/aligned1.f03: New test.
17091 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
17092 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
17093 tasks with !$omp parallel !$omp single.
17094 * testsuite/libgomp.fortran/target8.f90: New test.
17095 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
17096 not to use trim in the combiner, instead call elemental function.
17097 (fn): New elemental function.
17098 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
17100 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
17102 * testsuite/libgomp.fortran/udr12.f90: New test.
17103 * testsuite/libgomp.fortran/udr13.f90: New test.
17104 * testsuite/libgomp.fortran/udr14.f90: New test.
17105 * testsuite/libgomp.fortran/udr15.f90: New test.
17107 2014-06-18 Jakub Jelinek <jakub@redhat.com>
17109 * omp_lib.f90.in (openmp_version): Set to 201307.
17110 * omp_lib.h.in (openmp_version): Likewise.
17111 * testsuite/libgomp.c/target-8.c: New test.
17112 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
17113 and inbranch clauses.
17114 * testsuite/libgomp.fortran/depend-3.f90: New test.
17115 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
17117 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17118 * testsuite/libgomp.fortran/target1.f90: New test.
17119 * testsuite/libgomp.fortran/target2.f90: New test.
17120 * testsuite/libgomp.fortran/target3.f90: New test.
17121 * testsuite/libgomp.fortran/target4.f90: New test.
17122 * testsuite/libgomp.fortran/target5.f90: New test.
17123 * testsuite/libgomp.fortran/target6.f90: New test.
17124 * testsuite/libgomp.fortran/target7.f90: New test.
17126 2014-06-10 Jakub Jelinek <jakub@redhat.com>
17129 * testsuite/libgomp.fortran/allocatable9.f90: New test.
17130 * testsuite/libgomp.fortran/allocatable10.f90: New test.
17131 * testsuite/libgomp.fortran/allocatable11.f90: New test.
17132 * testsuite/libgomp.fortran/allocatable12.f90: New test.
17133 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
17134 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
17135 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
17136 * testsuite/libgomp.fortran/associate1.f90: New test.
17137 * testsuite/libgomp.fortran/associate2.f90: New test.
17138 * testsuite/libgomp.fortran/procptr1.f90: New test.
17140 2014-06-06 Jakub Jelinek <jakub@redhat.com>
17142 * testsuite/libgomp.fortran/simd1.f90: New test.
17143 * testsuite/libgomp.fortran/udr1.f90: New test.
17144 * testsuite/libgomp.fortran/udr2.f90: New test.
17145 * testsuite/libgomp.fortran/udr3.f90: New test.
17146 * testsuite/libgomp.fortran/udr4.f90: New test.
17147 * testsuite/libgomp.fortran/udr5.f90: New test.
17148 * testsuite/libgomp.fortran/udr6.f90: New test.
17149 * testsuite/libgomp.fortran/udr7.f90: New test.
17150 * testsuite/libgomp.fortran/udr8.f90: New test.
17151 * testsuite/libgomp.fortran/udr9.f90: New test.
17152 * testsuite/libgomp.fortran/udr10.f90: New test.
17153 * testsuite/libgomp.fortran/udr11.f90: New test.
17155 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
17157 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
17158 vect_simd_clones effective target.
17159 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
17161 2014-05-21 Jakub Jelinek <jakub@redhat.com>
17163 PR middle-end/61252
17164 * testsuite/libgomp.c++/simd-9.C: New test.
17166 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
17168 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
17169 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
17170 texts according to their @menu entry positions.
17172 2014-05-11 Jakub Jelinek <jakub@redhat.com>
17174 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
17175 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
17176 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
17177 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
17178 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
17179 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
17180 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
17181 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
17182 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
17183 * testsuite/libgomp.fortran/depend-1.f90: New test.
17184 * testsuite/libgomp.fortran/depend-2.f90: New test.
17185 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
17186 * testsuite/libgomp.fortran/simd1.f90: New test.
17187 * testsuite/libgomp.fortran/simd2.f90: New test.
17188 * testsuite/libgomp.fortran/simd3.f90: New test.
17189 * testsuite/libgomp.fortran/simd4.f90: New test.
17190 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
17192 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17194 * testsuite/libgomp.c/simd-10.c: New test.
17195 * testsuite/libgomp.c/simd-11.c: New test.
17196 * testsuite/libgomp.c/simd-12.c: New test.
17197 * testsuite/libgomp.c/simd-13.c: New test.
17199 2014-04-24 Jakub Jelinek <jakub@redhat.com>
17201 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
17202 atomic type clauses in any order and optional comma in between.
17203 * testsuite/libgomp.c++/atomic-15.C: Likewise.
17204 * testsuite/libgomp.c/atomic-17.c: Likewise.
17206 * testsuite/libgomp.c/simd-7.c: New test.
17207 * testsuite/libgomp.c/simd-8.c: New test.
17208 * testsuite/libgomp.c/simd-9.c: New test.
17209 * testsuite/libgomp.c/loop-16.c: New test.
17211 2014-04-02 Richard Henderson <rth@redhat.com>
17213 * config/linux/futex.h (futex_wait): Get error value from errno.
17214 (futex_wake): Likewise.
17216 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17219 * testsuite/libgomp.c++/udr-11.C: New test.
17220 * testsuite/libgomp.c++/udr-12.C: New test.
17221 * testsuite/libgomp.c++/udr-13.C: New test.
17222 * testsuite/libgomp.c++/udr-14.C: New test.
17223 * testsuite/libgomp.c++/udr-15.C: New test.
17224 * testsuite/libgomp.c++/udr-16.C: New test.
17225 * testsuite/libgomp.c++/udr-17.C: New test.
17226 * testsuite/libgomp.c++/udr-18.C: New test.
17227 * testsuite/libgomp.c++/udr-19.C: New test.
17229 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17231 Update copyright years
17233 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17235 * hashtab.h: Use the standard form for the copyright notice.
17237 2014-01-02 Tobias Burnus <burnus@net-b.de>
17239 * libgomp.texi: Bump @copying's copyright year.
17241 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
17243 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
17244 alloca () with __builtin_alloca ().
17245 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
17246 * testsuite/libgomp.c/lock-3.c: Likewise.
17247 * testsuite/libgomp.c/pr48591.c: Likewise.
17249 2013-12-17 Jakub Jelinek <jakub@redhat.com>
17252 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
17255 2013-12-16 Jakub Jelinek <jakub@redhat.com>
17258 * testsuite/libgomp.c/pr58756.c: New test.
17260 2013-12-12 Jakub Jelinek <jakub@redhat.com>
17263 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
17266 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
17268 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
17270 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
17271 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
17272 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
17273 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
17276 * libgomp_g.h: Include <stddef.h> for size_t.
17278 * libgomp.spec.in: Update comment about libgomp's dependencies.
17279 * configure.ac: Likewise.
17280 * configure: Regenerate.
17282 2013-10-16 Tobias Burnus <burnus@net-b.de>
17284 * libgomp.texi: (Runtime Library Routines): Update references for
17285 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
17286 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
17287 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
17288 (Environment Variables): Update references for OpenMP 4.0. Add
17289 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
17290 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
17293 2013-10-14 Jakub Jelinek <jakub@redhat.com>
17295 * env.c (parse_bind_var): Initialize value to avoid
17296 (false positive) warning.
17298 2013-10-12 Jakub Jelinek <jakub@redhat.com>
17301 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
17303 (gomp_init_num_threads): Move i variable declaration into
17304 #ifdef CPU_ALLOC_SIZE block.
17305 * config/linux/affinity.c (gomp_affinity_init_level): Test
17306 gomp_places_list_len == 0 rather than gomp_places_list == 0
17307 when checking for topology reading error.
17308 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
17309 * env.c (parse_affinity): Add ignore argument, if true, don't populate
17310 gomp_places_list, only parse env var and always return false.
17311 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
17312 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
17313 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
17314 and either of these variables were parsed correctly into a places
17317 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
17318 Jakub Jelinek <jakub@redhat.com>
17320 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
17321 of 5 loopfn matches.
17322 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17323 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17324 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
17325 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17326 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17327 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17328 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17329 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17331 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
17333 * Makefile.am (omp_lib.mod): Streamline rule.
17334 * Makefile.in: Regenerate.
17336 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
17339 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
17340 * testsuite/libgomp.fortran/lib1.f90: Likewise.
17341 * testsuite/libgomp.fortran/lib2.f: Likewise.
17342 * testsuite/libgomp.fortran/lib3.f: Likewise.
17344 * configure.ac: Typo fix.
17345 * configure: Regenerate.
17347 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
17348 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17350 * omp.h.in: Don't touch the user's namespace.
17352 2013-10-11 Jakub Jelinek <jakub@redhat.com>
17353 Tobias Burnus <burnus@net-b.de>
17354 Richard Henderson <rth@redhat.com>
17356 * target.c: New file.
17357 * Makefile.am (libgomp_la_SOURCES): Add target.c.
17358 * Makefile.in: Regenerated.
17359 * libgomp_g.h (GOMP_task): Add depend argument.
17360 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17361 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17362 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
17363 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17364 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17365 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
17366 GOMP_taskgroup_start, GOMP_taskgroup_end,
17367 GOMP_parallel_sections): New prototypes.
17368 * fortran.c (omp_is_initial_device): Add ialias_redirect.
17369 (omp_is_initial_device_): New function.
17370 (ULP, STR1, STR2, ialias_redirect): Removed.
17371 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
17372 omp_set_default_device_8_, omp_get_default_device_,
17373 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
17375 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17376 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17377 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
17379 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
17380 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
17381 omp_set_default_device, omp_set_default_device_,
17382 omp_set_default_device_8_, omp_get_default_device,
17383 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
17384 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
17385 omp_get_team_num_): Export @@OMP_4.0.
17386 * team.c (struct gomp_thread_start_data): Add place field.
17387 (gomp_thread_start): Clear thr->thread_pool and
17388 thr->task before returning. Use gomp_team_barrier_wait_final
17389 instead of gomp_team_barrier_wait. Initialize thr->place.
17390 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
17391 team_cancelled and task_queued_count fields.
17392 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
17393 before calling pthread_exit.
17394 (gomp_free_thread): No longer static. Use
17395 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
17396 (gomp_team_start): Add flags argument. Set
17397 thr->thread_pool->threads_busy to nthreads immediately after creating
17398 new pool. Use gomp_managed_threads_lock instead of
17399 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
17400 (gomp_team_end): Use gomp_managed_threads_lock instead of
17401 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
17402 of gomp_team_barrier_wait. If team->team_cancelled, call
17403 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
17404 rather than thr->ts.work_share.
17405 (initialize_team): Don't call gomp_sem_init here.
17406 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
17408 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
17409 * env.c (gomp_global_icv): Add default_device_var, target_data and
17410 bind_var initializers.
17411 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17412 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17413 gomp_places_list_len): New variables.
17414 (parse_bind_var, parse_one_place, parse_places_var): New functions.
17415 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
17417 (gomp_cancel_var): New global variable.
17418 (parse_int): New function.
17419 (handle_omp_display_env): New function.
17420 (initialize_env): Use it. Initialize default_device_var.
17421 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
17422 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
17423 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
17424 been successfully parsed (and call gomp_init_affinity in that case).
17425 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17426 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17427 omp_get_team_num, omp_is_initial_device): New functions.
17428 * libgomp.h: Include stdlib.h.
17429 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
17431 (struct target_mem_desc): Forward declare.
17432 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
17433 and thread_limit_var fields.
17434 (gomp_get_num_devices): New prototype.
17435 (gomp_cancel_var): New extern decl.
17436 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
17437 team_cancelled and task_queued_count fields. Add comments about
17438 task_{,queued_,running_}count.
17439 (gomp_cancel_kind): New enum.
17440 (gomp_work_share_end_cancel): New prototype.
17441 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
17442 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
17444 (struct gomp_taskgroup): New type.
17445 (struct gomp_task_depend_entry,
17446 struct gomp_dependers_vec): New types.
17447 (gomp_finish_task): Free depend_hash if non-NULL.
17448 (struct gomp_team_state): Add place_partition_off
17449 and place_partition_len fields.
17450 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17451 gomp_places_list_len): New extern decls.
17452 (struct gomp_thread): Add place field.
17453 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17454 (gomp_init_thread_affinity): Add place argument.
17455 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17456 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17457 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17458 gomp_affinity_init_level, gomp_affinity_print_place): New
17460 (gomp_team_start): Add flags argument.
17461 (gomp_thread_limit_var, gomp_remaining_threads_count,
17462 gomp_remaining_threads_lock): Remove.
17463 (gomp_managed_threads_lock): New variable.
17464 (struct gomp_thread_pool): Add threads_busy field.
17465 (gomp_free_thread): New prototype.
17466 * task.c: Include hashtab.h.
17467 (hash_entry_type): New typedef.
17468 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
17469 (gomp_init_task): Clear dependers, depend_hash, depend_count,
17470 copy_ctors_done and taskgroup fields.
17471 (GOMP_task): Add depend argument, handle depend clauses. If
17472 gomp_team_barrier_cancelled or if it's taskgroup has been
17473 cancelled, don't queue or start new tasks. Set copy_ctors_done
17474 field if needed. Initialize taskgroup field. If copy_ctors_done
17475 and already cancelled, don't discard the task. If taskgroup is
17476 non-NULL, enqueue the task into taskgroup queue. Increment
17477 num_children field in taskgroup. Increment task_queued_count.
17478 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
17479 gomp_task_run_post_remove_taskgroup): New inline functions.
17480 (gomp_task_run_post_handle_depend_hash,
17481 gomp_task_run_post_handle_dependers,
17482 gomp_task_run_post_handle_depend): New functions.
17483 (GOMP_taskwait): Use them. If more than one new tasks
17484 have been queued, wake other threads if needed.
17485 (gomp_barrier_handle_tasks): Likewise. If
17486 gomp_team_barrier_cancelled, don't start any new tasks, just free
17488 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
17490 (omp_proc_bind_kind, omp_proc_bind_false,
17491 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17492 omp_proc_bind_spread): New params.
17493 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17494 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17495 omp_get_team_num, omp_is_initial_device): New interfaces.
17496 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
17497 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
17498 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
17499 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
17500 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
17501 useless use omp_lib_kinds.
17502 * omp.h.in (omp_proc_bind_t): New typedef.
17503 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17504 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17505 omp_get_team_num, omp_is_initial_device): New prototypes.
17506 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
17507 through to gomp_team_start.
17508 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
17509 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
17510 Adjust gomp_parallel_loop_start callers.
17511 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17512 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17513 GOMP_loop_end_cancel): New functions.
17514 (GOMP_parallel_end): Add ialias_redirect.
17515 * hashtab.h: New file.
17516 * libgomp.texi (Environment Variables): Minor cleanup,
17517 update section refs to OpenMP 4.0rc2.
17518 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17519 environment variables.
17520 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17521 team->work_shares_to_free to thr->ts.work_share before calling
17523 (gomp_work_share_end_cancel): New function.
17524 * config/linux/proc.c: Include errno.h.
17525 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17526 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17527 sizeof (cpu_set_t) to determine number of iterations. Fix up check
17528 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
17529 gomp_cpuset_size is sizeof (cpu_set_t).
17530 (gomp_init_num_threads): Initialize gomp_cpuset_size,
17531 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17532 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17533 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
17534 contain any logical CPUs.
17535 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17536 is NULL. Use gomp_cpusetp instead of &cpuset and pass
17537 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17538 pthread_getaffinity_np. Check gomp_places_list instead of
17539 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
17540 * config/linux/bar.c (gomp_barrier_wait_end,
17541 gomp_barrier_wait_last): Use BAR_* defines.
17542 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
17543 from state where needed. Set work_share_cancelled to 0 on last
17545 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17546 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17548 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17549 Add cpusetsize argument.
17550 (gomp_cpuset_size, gomp_cpusetp): Declare.
17551 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17552 (affinity_counter): Remove.
17553 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17554 if CPU_ALLOC_SIZE isn't defined.
17555 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17556 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17557 bind current thread to the first place.
17558 (gomp_init_thread_affinity): Rewritten. Add place argument, just
17559 pthread_setaffinity_np to gomp_places_list[place].
17560 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17561 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17562 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17563 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17564 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17565 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17566 (gomp_barrier_t): Add awaited_final field.
17567 (gomp_barrier_init): Initialize awaited_final field.
17568 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17569 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17571 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
17573 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17574 gomp_team_barrier_cancelled): New inline functions.
17575 (gomp_barrier_last_thread,
17576 gomp_team_barrier_set_task_pending,
17577 gomp_team_barrier_clear_task_pending,
17578 gomp_team_barrier_set_waiting_for_tasks,
17579 gomp_team_barrier_waiting_for_tasks,
17580 gomp_team_barrier_done): Use BAR_* defines.
17581 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17582 (gomp_barrier_wait_end): Use BAR_* defines.
17583 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17584 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17586 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17587 gomp_team_barrier_cancel): New functions.
17588 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17590 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17591 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17592 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17593 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17594 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17595 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17596 (gomp_barrier_t): Add cancellable field.
17597 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17598 gomp_team_barrier_cancel): New prototypes.
17599 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17600 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17601 gomp_team_barrier_cancelled): New inline functions.
17602 (gomp_barrier_wait_start, gomp_barrier_last_thread,
17603 gomp_team_barrier_set_task_pending,
17604 gomp_team_barrier_clear_task_pending,
17605 gomp_team_barrier_set_waiting_for_tasks,
17606 gomp_team_barrier_waiting_for_tasks,
17607 gomp_team_barrier_done): Use BAR_* defines.
17608 * barrier.c (GOMP_barrier_cancel): New function.
17609 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17610 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17611 omp_proc_bind_spread): New params.
17612 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17613 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17614 omp_get_team_num, omp_is_initial_device): New externals.
17615 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17617 (gomp_resolve_num_threads): Adjust for thread_limit now being in
17618 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17619 infinity. If not nested, just return minimum of max_num_threads
17620 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17621 to the returned value. Otherwise, don't update atomically
17622 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17623 (GOMP_parallel_end): Adjust for thread_limit now being in
17624 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17625 infinity. Adjust threads_busy in the pool rather than
17626 gomp_remaining_threads_count. Remember team->nthreads and call
17627 gomp_team_end before adjusting threads_busy, if not nested
17628 afterwards, just set it to 1 non-atomically. Add ialias.
17629 (GOMP_parallel_start): Adjust gomp_team_start caller.
17630 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17631 * testsuite/libgomp.c/affinity-1.c: New test.
17632 * testsuite/libgomp.c/atomic-15.c: New test.
17633 * testsuite/libgomp.c/atomic-16.c: New test.
17634 * testsuite/libgomp.c/atomic-17.c: New test.
17635 * testsuite/libgomp.c/cancel-for-1.c: New test.
17636 * testsuite/libgomp.c/cancel-for-2.c: New test.
17637 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17638 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17639 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17640 * testsuite/libgomp.c/cancel-sections-1.c: New test.
17641 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17642 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17643 * testsuite/libgomp.c/depend-1.c: New test.
17644 * testsuite/libgomp.c/depend-2.c: New test.
17645 * testsuite/libgomp.c/depend-3.c: New test.
17646 * testsuite/libgomp.c/depend-4.c: New test.
17647 * testsuite/libgomp.c/for-1.c: New test.
17648 * testsuite/libgomp.c/for-1.h: New file.
17649 * testsuite/libgomp.c/for-2.c: New test.
17650 * testsuite/libgomp.c/for-2.h: New file.
17651 * testsuite/libgomp.c/for-3.c: New test.
17652 * testsuite/libgomp.c/pr58392.c: New test.
17653 * testsuite/libgomp.c/simd-1.c: New test.
17654 * testsuite/libgomp.c/simd-2.c: New test.
17655 * testsuite/libgomp.c/simd-3.c: New test.
17656 * testsuite/libgomp.c/simd-4.c: New test.
17657 * testsuite/libgomp.c/simd-5.c: New test.
17658 * testsuite/libgomp.c/simd-6.c: New test.
17659 * testsuite/libgomp.c/target-1.c: New test.
17660 * testsuite/libgomp.c/target-2.c: New test.
17661 * testsuite/libgomp.c/target-3.c: New test.
17662 * testsuite/libgomp.c/target-4.c: New test.
17663 * testsuite/libgomp.c/target-5.c: New test.
17664 * testsuite/libgomp.c/target-6.c: New test.
17665 * testsuite/libgomp.c/target-7.c: New test.
17666 * testsuite/libgomp.c/taskgroup-1.c: New test.
17667 * testsuite/libgomp.c/thread-limit-1.c: New test.
17668 * testsuite/libgomp.c/thread-limit-2.c: New test.
17669 * testsuite/libgomp.c/thread-limit-3.c: New test.
17670 * testsuite/libgomp.c/udr-1.c: New test.
17671 * testsuite/libgomp.c/udr-2.c: New test.
17672 * testsuite/libgomp.c/udr-3.c: New test.
17673 * testsuite/libgomp.c++/affinity-1.C: New test.
17674 * testsuite/libgomp.c++/atomic-10.C: New test.
17675 * testsuite/libgomp.c++/atomic-11.C: New test.
17676 * testsuite/libgomp.c++/atomic-12.C: New test.
17677 * testsuite/libgomp.c++/atomic-13.C: New test.
17678 * testsuite/libgomp.c++/atomic-14.C: New test.
17679 * testsuite/libgomp.c++/atomic-15.C: New test.
17680 * testsuite/libgomp.c++/cancel-for-1.C: New test.
17681 * testsuite/libgomp.c++/cancel-for-2.C: New test.
17682 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17683 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17684 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17685 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17686 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17687 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17688 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17689 * testsuite/libgomp.c++/cancel-test.h: New file.
17690 * testsuite/libgomp.c++/for-9.C: New test.
17691 * testsuite/libgomp.c++/for-10.C: New test.
17692 * testsuite/libgomp.c++/for-11.C: New test.
17693 * testsuite/libgomp.c++/simd-1.C: New test.
17694 * testsuite/libgomp.c++/simd-2.C: New test.
17695 * testsuite/libgomp.c++/simd-3.C: New test.
17696 * testsuite/libgomp.c++/simd-4.C: New test.
17697 * testsuite/libgomp.c++/simd-5.C: New test.
17698 * testsuite/libgomp.c++/simd-6.C: New test.
17699 * testsuite/libgomp.c++/simd-7.C: New test.
17700 * testsuite/libgomp.c++/simd-8.C: New test.
17701 * testsuite/libgomp.c++/target-1.C: New test.
17702 * testsuite/libgomp.c++/target-2.C: New test.
17703 * testsuite/libgomp.c++/target-2-aux.cc: New file.
17704 * testsuite/libgomp.c++/target-3.C: New test.
17705 * testsuite/libgomp.c++/taskgroup-1.C: New test.
17706 * testsuite/libgomp.c++/udr-1.C: New test.
17707 * testsuite/libgomp.c++/udr-2.C: New test.
17708 * testsuite/libgomp.c++/udr-3.C: New test.
17709 * testsuite/libgomp.c++/udr-4.C: New test.
17710 * testsuite/libgomp.c++/udr-5.C: New test.
17711 * testsuite/libgomp.c++/udr-6.C: New test.
17712 * testsuite/libgomp.c++/udr-7.C: New test.
17713 * testsuite/libgomp.c++/udr-8.C: New test.
17714 * testsuite/libgomp.c++/udr-9.C: New test.
17716 2013-09-20 Jakub Jelinek <jakub@redhat.com>
17719 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17722 2013-09-20 Alan Modra <amodra@gmail.com>
17724 * configure: Regenerate.
17726 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17728 * testsuite/libgomp.c/sections-2.c: New test.
17730 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
17732 * testsuite/libgomp.fortran/strassen.f90:
17733 Add dg-skip-if aarch64_tiny.
17735 2013-06-20 Iain Sandoe <iain@codesourcery.com>
17736 Cesar Philippidis <cesar@codesourcery.com>
17738 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17739 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17740 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17741 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17742 * testsuite/libgomp.graphite/graphite.exp: Likewise.
17743 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17744 Use dg-runtest rather than gfortran-dg-runtest.
17746 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
17748 * testsuite/libgomp.c/icv-2.c: Extend current handling of
17749 Linux-based x86 systems to cover all GNU systems.
17750 * testsuite/libgomp.c/lock-3.c: Likewise.
17751 * testsuite/libgomp.c/pr48591.c: Likewise.
17753 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
17755 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17756 GNU/Hurd, as done for Linux-based systems.
17758 * config/posix/ptrlock.h: Fix comment.
17760 2013-05-27 Tobias Burnus <burnus@net-b.de>
17763 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17764 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17765 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17766 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17767 omp_destroy_nest_lock): Correct arguments to match the one in
17769 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17770 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17771 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17772 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17774 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17776 * testsuite/libgomp.c/loop-13.c: New test.
17777 * testsuite/libgomp.c/loop-14.c: New test.
17778 * testsuite/libgomp.c/loop-15.c: New test.
17779 * testsuite/libgomp.c++/loop-13.C: New test.
17780 * testsuite/libgomp.c++/loop-14.C: New test.
17781 * testsuite/libgomp.c++/loop-15.C: New test.
17783 2013-02-06 Jakub Jelinek <jakub@redhat.com>
17785 PR middle-end/56217
17786 * testsuite/libgomp.c++/pr56217.C: New test.
17788 2013-02-01 Alan Modra <amodra@gmail.com>
17790 * task.c (GOMP_task, GOMP_taskwait): Comment.
17792 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17793 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17796 * config/linux/wait.h (do_spin): Use atomic load for addr.
17797 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17798 for intptr and ptrlock.
17799 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17802 2013-01-22 Alan Modra <amodra@gmail.com>
17806 * task.c (GOMP_task): Revert 2011-12-09 change.
17807 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17808 barrier to read task->children..
17809 (gomp_barrier_handle_tasks): ..and matching atomic store with
17810 release barrier here when setting parent->children to NULL.
17812 2013-01-16 Jakub Jelinek <jakub@redhat.com>
17813 Tobias Burnus <burnus@net-b.de>
17816 * testsuite/libgomp.fortran/fortran.exp: Use
17817 -fintrinsic-modules-path= instead of
17818 -fintrinsic-modules-path.
17820 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17822 Update copyright years.
17824 2012-12-19 Tobias Burnus <burnus@net-b.de>
17826 * testsuite/libgomp.fortran/fortran.exp: Set
17827 -fintrinsic-modules-path.
17829 2012-12-19 Tobias Burnus <burnus@net-b.de>
17831 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17832 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17834 2012-11-21 Jakub Jelinek <jakub@redhat.com>
17837 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17838 if pool had any threads_used.
17840 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17842 * testsuite/libgomp.c++/pr24455.C: Use
17843 -Wl,-undefined,dynamic_lookup on darwin.
17845 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
17847 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17849 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17851 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17853 2012-10-23 Ian Bolton <ian.bolton@arm.com>
17854 Jim MacArthur <jim.macarthur@arm.com>
17855 Marcus Shawcroft <marcus.shawcroft@arm.com>
17856 Nigel Stephens <nigel.stephens@arm.com>
17857 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17858 Richard Earnshaw <rearnsha@arm.com>
17859 Sofiane Naci <sofiane.naci@arm.com>
17860 Stephen Thomas <stephen.thomas@arm.com>
17861 Tejas Belagod <tejas.belagod@arm.com>
17862 Yufeng Zhang <yufeng.zhang@arm.com>
17864 * configure.tgt: Add AArch64.
17866 2012-10-04 Jason Merrill <jason@redhat.com>
17868 * testsuite/libgomp.c++/tls-init1.C: New.
17870 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
17872 * configure: Regenerated.
17874 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17876 * config/linux/mips/futex.h (sys_futex0): Change to static
17877 function with noinline, nomips16 attributes under MIPS16. Adjust
17878 asm statement to place 'li v0,SYS_futex' immediately before
17881 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17883 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17884 conflict with index.html on case-insensitive file systems.
17886 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17888 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17889 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17891 2012-07-02 Richard Guenther <rguenther@suse.de>
17892 Michael Matz <matz@suse.de>
17893 Tobias Grosser <tobias@grosser.es>
17894 Sebastian Pop <sebpop@gmail.com>
17896 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17897 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17898 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17899 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17901 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17903 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17905 2012-06-22 Richard Guenther <rguenther@suse.de>
17907 Merge from graphite branch
17908 2012-01-13 Tobias Grosser <tobias@grosser.es>
17910 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17911 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17913 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17915 PR middle-end/53580
17916 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17917 use GOMP_barrier () call instead.
17918 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17919 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17920 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17921 call GOMP_barrier instead.
17922 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17924 2012-06-06 Jakub Jelinek <jakub@redhat.com>
17927 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17928 argument to memset call.
17930 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17932 * configure: Regenerated.
17934 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17936 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17938 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17941 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17943 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17945 PR middle-end/52547
17946 * testsuite/libgomp.c/pr52547.c: New test.
17948 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17950 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17952 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17954 * configure.tgt (mips-sgi-irix6*): Remove.
17956 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17958 * configure.tgt (alpha*-dec-osf*): Remove.
17960 * config/osf/sem.h: Remove.
17961 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17963 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17965 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17967 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17970 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17971 Remove ENABLE_SYMVERS_SOL2.
17972 * configure: Regenerate.
17973 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17974 (PREPROCESS): New variable.
17975 (libgomp.ver): New target.
17976 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17977 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17978 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17980 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17981 * Makefile.in: Regenerate.
17983 2012-02-14 Walter Lee <walt@tilera.com>
17985 * configure.tgt: Handle tilegx and tilepro.
17986 * config/linux/tile/futex.h: New file.
17988 2012-02-08 Richard Guenther <rguenther@suse.de>
17990 PR tree-optimization/46886
17991 * testsuite/libgomp.c/pr46886.c: New testcase.
17993 2012-01-25 Matthias Klose <doko@ubuntu.com>
17995 * config/linux/arm: Remove empty directory.
17996 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17998 2011-12-09 Alan Modra <amodra@gmail.com>
18001 * task.c (GOMP_taskwait): Don't access task->children outside of
18002 task_lock mutex region.
18003 (GOMP_task): Likewise.
18005 2011-12-06 Jakub Jelinek <jakub@redhat.com>
18008 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
18010 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
18011 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
18012 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
18013 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
18014 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
18016 2011-12-02 Alan Modra <amodra@gmail.com>
18018 * config/linux/affinity.c: Use atomic rather than sync builtin.
18019 * config/linux/lock.c: Likewise.
18020 * config/linux/ptrlock.h: Likewise.
18021 * config/linux/ptrlock.c: Likewise.
18022 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
18023 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
18024 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
18025 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
18026 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
18027 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
18028 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
18029 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
18030 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
18031 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
18033 2011-11-30 Alan Modra <amodra@gmail.com>
18036 * config/linux/bar.h: Use atomic rather than sync builtins.
18037 * config/linux/bar.c: Likewise. Add missing acquire
18038 synchronisation on generation field.
18039 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
18042 2011-11-30 Alan Modra <amodra@gmail.com>
18044 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
18045 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
18046 * config/linux/mutex.h: Use atomic rather than sync builtins.
18047 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
18048 * config/linux/omp-lock.h: Comment fix.
18049 * config/linux/arm/mutex.h: Delete.
18050 * config/linux/powerpc/mutex.h: Delete.
18051 * config/linux/ia64/mutex.h: Delete.
18052 * config/linux/mips/mutex.h: Delete.
18054 2011-11-30 Alan Modra <amodra@gmail.com>
18057 * config/linux/sem.h: Rewrite.
18058 * config/linux/sem.c: Rewrite.
18060 2011-11-28 Richard Henderson <rth@redhat.com>
18062 * libgomp.h (enum memmodel): New.
18064 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
18066 * configure: Regenerate.
18068 2011-10-10 Matthias Klose <doko@ubuntu.com>
18070 * config/posix95: Remove empty directory.
18072 2011-08-26 Jakub Jelinek <jakub@redhat.com>
18074 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
18076 2011-08-19 Jakub Jelinek <jakub@redhat.com>
18079 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
18080 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
18082 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18084 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
18086 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18089 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
18091 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
18093 * config/linux/proc.h: New.
18094 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
18095 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
18096 (gomp_init_num_threads): Update call to cpuset_popcount.
18097 (get_num_procs): Ditto.
18098 * config/linux/affinity.c (gomp_init_affinity): Call
18099 gomp_cpuset_popcount.
18101 2011-08-02 Jakub Jelinek <jakub@redhat.com>
18105 * omp.h.in (omp_in_final): New prototype.
18106 * omp_lib.f90.in (omp_in_final): New interface.
18107 (omp_integer_kind, omp_logical_kind): Remove
18108 and replace all its uses in the module with 4.
18109 (openmp_version): Change to 201107.
18110 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
18111 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
18112 kind for the parameters.
18113 (omp_in_final): New external.
18114 (openmp_version): Change to 201107.
18115 * task.c (omp_in_final): New function.
18116 (gomp_init_task): Initialize final_task.
18117 (GOMP_task): Remove unused attribute from flags. Handle final
18119 (GOMP_taskyield): New function.
18120 (omp_in_final): Return true if if (false) or final (true) task
18121 or descendant of final (true).
18122 * fortran.c (omp_in_final_): New function.
18123 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
18124 (GOMP_3.0): Export GOMP_taskyield.
18125 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
18127 (parse_unsigned_long_list): New function.
18128 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
18129 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
18130 even if parse_affinity returned false.
18131 * config/linux/affinity.c (gomp_init_affinity): Handle
18132 gomp_cpu_affinity_len == 0.
18133 * libgomp_g.h (GOMP_taskyield): New prototype.
18134 * libgomp.h (struct gomp_task): Add final_task field.
18135 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
18136 * team.c (gomp_team_start): Override new task's nthreads_var icv
18137 if list form OMP_NUM_THREADS has been used and it has value for
18138 the new nesting level.
18140 * testsuite/libgomp.c/atomic-11.c: New test.
18141 * testsuite/libgomp.c/atomic-12.c: New test.
18142 * testsuite/libgomp.c/atomic-13.c: New test.
18143 * testsuite/libgomp.c/atomic-14.c: New test.
18144 * testsuite/libgomp.c/reduction-6.c: New test.
18145 * testsuite/libgomp.c/task-5.c: New test.
18146 * testsuite/libgomp.c++/atomic-2.C: New test.
18147 * testsuite/libgomp.c++/atomic-3.C: New test.
18148 * testsuite/libgomp.c++/atomic-4.C: New test.
18149 * testsuite/libgomp.c++/atomic-5.C: New test.
18150 * testsuite/libgomp.c++/atomic-6.C: New test.
18151 * testsuite/libgomp.c++/atomic-7.C: New test.
18152 * testsuite/libgomp.c++/atomic-8.C: New test.
18153 * testsuite/libgomp.c++/atomic-9.C: New test.
18154 * testsuite/libgomp.c++/task-8.C: New test.
18155 * testsuite/libgomp.c++/reduction-4.C: New test.
18156 * testsuite/libgomp.fortran/allocatable7.f90: New test.
18157 * testsuite/libgomp.fortran/allocatable8.f90: New test.
18158 * testsuite/libgomp.fortran/crayptr3.f90: New test.
18159 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
18160 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
18161 * testsuite/libgomp.fortran/pointer1.f90: New test.
18162 * testsuite/libgomp.fortran/pointer2.f90: New test.
18163 * testsuite/libgomp.fortran/task4.f90: New test.
18165 2011-08-02 Tobias Burnus <burnus@net-b.de>
18167 * libgomp.texi: Update OpenMP spec references to 3.1.
18168 (omp_in_final,OMP_PROC_BIND): New sections.
18169 (OMP_NUM_THREADS): Document that the value can be now a list.
18170 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
18172 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
18174 * config/linux/x86/futex.h: Check __x86_64__ instead of
18177 2011-07-29 Jakub Jelinek <jakub@redhat.com>
18179 PR middle-end/49897
18180 PR middle-end/49898
18181 * testsuite/libgomp.c/pr49897-1.c: New test.
18182 * testsuite/libgomp.c/pr49897-2.c: New test.
18183 * testsuite/libgomp.c/pr49898-1.c: New test.
18184 * testsuite/libgomp.c/pr49898-2.c: New test.
18186 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
18188 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
18189 for ia32 instead of ilp32.
18191 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
18192 * testsuite/libgomp.c/atomic-6.c: Likewise.
18194 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
18196 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
18197 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
18199 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18202 * config/osf/sem.h: New file.
18203 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
18205 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18208 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
18211 2011-07-15 Jakub Jelinek <jakub@redhat.com>
18213 * config/linux/wait.h (do_spin): New inline, largely copied
18214 from do_wait, just don't do futex_wait here, instead return true if
18216 (do_wait): Implement using do_spin.
18217 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
18219 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18220 __sync_bool_compare_and_swap, pass the oldval to
18221 gomp_mutex_lock_slow.
18222 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
18223 If all mutex contenders are just spinning and not sleeping, don't
18224 change state to 2 unnecessarily. Optimize the loop when state has
18225 already become 2 to use just one atomic operation per loop instead
18227 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
18229 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18230 __sync_bool_compare_and_swap, pass the oldval to
18231 gomp_mutex_lock_slow.
18233 2011-06-22 Jakub Jelinek <jakub@redhat.com>
18236 * iter.c (gomp_iter_static_next): For chunk size 0
18237 only use n ceil/ nthreads size for the first
18238 n % nthreads threads in the team instead of
18239 all threads except for the last few ones which
18240 get less work or none at all.
18241 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
18242 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
18243 chunk argument, set run_sched_modifier to 0 for static
18244 resp. 1 for other kinds. If chunk argument is 0
18245 and not static, set value to 1.
18247 2011-05-19 Jakub Jelinek <jakub@redhat.com>
18250 * testsuite/libgomp.c++/pr49043.C: New test.
18253 * testsuite/libgomp.c++/pr48869.C: New test.
18255 2011-05-06 Jakub Jelinek <jakub@redhat.com>
18258 * fortran.c: Include limits.h.
18260 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
18262 (omp_set_num_threads_8_, omp_set_schedule_8_,
18263 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
18264 omp_get_team_size_8_): Use TO_INT macro.
18265 * testsuite/libgomp.fortran/pr48894.f90: New test.
18267 2011-04-13 Jakub Jelinek <jakub@redhat.com>
18269 PR middle-end/48591
18270 * testsuite/libgomp.c/pr48591.c: New test.
18272 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18275 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
18276 * configure: Regenerate.
18278 2011-02-27 Jakub Jelinek <jakub@redhat.com>
18281 * testsuite/libgomp.fortran/task3.f90: New test.
18283 2011-02-24 Tobias Burnus <burnus@net-b.de>
18285 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
18287 2011-02-23 Jakub Jelinek <jakub@redhat.com>
18290 * libgomp.texi (omp_get_wtime): Don't say time in the past
18291 must be Unix Epoch.
18293 2011-02-18 Jakub Jelinek <jakub@redhat.com>
18296 * testsuite/libgomp.fortran/fortran.exp: Check for both
18297 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
18298 but $blddir != "", still append ${blddir}/${lang_library_path}
18299 to ld_library_path.
18301 2011-02-16 Tobias Burnus <burnus@net-b.de>
18304 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
18305 of libquadmath.a before adding its libpath to ldflags.
18307 2011-02-14 Jakub Jelinek <jakub@redhat.com>
18310 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
18311 to FUTEX_WAIT futex syscall.
18312 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
18314 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18316 * configure: Regenerate.
18318 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
18321 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
18323 2011-01-16 Gerald Pfeifer
18325 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
18327 2010-12-14 Jakub Jelinek <jakub@redhat.com>
18330 * libgomp.fortran/allocatable6.f90: New test.
18332 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18334 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
18335 * configure: Regenerate.
18337 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
18341 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
18342 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
18343 * aclocal.m4: Regenerate.
18344 * configure: Regenerate.
18345 * Makefile.in: Regenerate.
18346 * testsuite/Makefile.in: Regenerate.
18348 2010-12-02 Jakub Jelinek <jakub@redhat.com>
18351 * libgomp.fortran/pr46753.f90: New test.
18354 * env.c (initialize_env): Default to spin count 300000
18355 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
18359 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
18360 at the end if sync builtins aren't supported.
18362 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18364 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
18366 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18368 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
18370 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
18372 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
18374 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18375 Tobias Burnus <burnus@net-b.de>
18379 * configure: Regenerate.
18381 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
18383 * config/linux/futex.h: New.
18384 * config/linux/arm/mutex.h: New.
18385 * configure.tgt (arm*-*-linux*): Add config path.
18387 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
18389 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18391 2010-09-23 Tobias Burnus <burnus@net-b.de>
18393 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
18394 Change Fortran datatype to LOGICAL.
18395 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
18396 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
18398 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18400 * configure: Regenerate.
18402 2010-07-26 Jakub Jelinek <jakub@redhat.com>
18404 * libgomp.texi: Add function keyword to a couple of Fortran
18405 interfaces, use integer instead of int for Fortran.
18407 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
18409 * libgomp.texi: Fix spelling and pasto problems throughout.
18410 Adjust prototypes to match code.
18412 2010-07-24 Tobias Burnus <burnus@net-b.de>
18414 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
18415 silence -fwhole-file warning.
18417 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18419 * configure.tgt (*-*-solaris2.[56]*): Removed.
18421 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18423 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
18424 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
18425 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
18426 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
18427 targetting solaris2*.
18428 * configure: Regenerate.
18429 * config.h.in: Regenerate.
18431 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
18432 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
18433 Add libgomp_version_dep.
18434 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
18436 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
18437 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
18438 * Makefile.in: Regenerate.
18440 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
18441 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18442 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
18443 to common block, protected by
18444 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18446 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
18448 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
18450 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
18453 * configure: Regenerate.
18455 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18458 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
18459 * configure: Regenerate.
18460 * Makefile.in: Regenerate.
18461 * testsuite/Makefile.in: Regenerate.
18463 2010-04-26 Jakub Jelinek <jakub@redhat.com>
18466 * testsuite/libgomp.c/pr43893.c: New test.
18467 * testsuite/libgomp.c++/pr43893.C: New test.
18469 2010-04-21 Jakub Jelinek <jakub@redhat.com>
18471 PR middle-end/43570
18472 * testsuite/libgomp.fortran/vla8.f90: New test.
18474 2010-04-20 Jakub Jelinek <jakub@redhat.com>
18477 * config/linux/affinity.c (gomp_init_affinity): Decrease
18478 gomp_available_cpus if affinity mask confines the process to fewer
18480 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
18481 non-NULL, just return gomp_available_cpus.
18484 * sections.c (gomp_sections_init): Initialize ws->mode.
18486 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18488 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
18489 not unused bar variable.
18490 * configure: Regenerate.
18492 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18494 * Makefile.in: Regenerate.
18495 * aclocal.m4: Regenerate.
18496 * testsuite/Makefile.in: Regenerate.
18498 2010-03-22 Jakub Jelinek <jakub@redhat.com>
18501 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
18502 (initialize_env): Adjust callers.
18503 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
18504 when the argument is 0.
18506 * testsuite/libgomp.c/pr42942.c: New test.
18508 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
18510 PR middle-end/42644
18511 PR middle-end/42130
18512 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18513 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
18515 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18517 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
18518 * testsuite/libgomp.c++/task-6.C: Likewise.
18520 2010-01-28 Steve Ellcey <sje@cup.hp.com>
18522 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18524 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
18526 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18527 * configure: Regenerate.
18529 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18532 * testsuite/libgomp.fortran/allocatable5.f90: New test.
18534 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
18536 * configure.ac: Test for executability of GFORTRAN.
18537 * configure: Regenerate.
18539 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18541 * configure: Regenerate.
18543 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18546 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18548 2010-01-03 Richard Guenther <rguenther@suse.de>
18550 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18552 2009-12-23 Sebastian Pop <sebpop@gmail.com>
18554 * testsuite/libgomp.graphite/pr4118.c: New.
18556 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18558 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18559 for darwin, protect the test with require-effective-target tls_runtime.
18560 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18562 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18565 * testsuite/lib/libgomp.exp: Provide -B options to allow for
18566 link spec %s substitutions for static libraries.
18568 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
18571 * libgomp.graphite/force-parallel-2.c: Reduce array size.
18573 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18575 * Makefile.in: Regenerate.
18576 * configure: Regenerate.
18577 * testsuite/Makefile.in: Regenerate.
18579 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
18581 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18582 settings for LC_ALL and LANG.
18584 2009-11-25 Jakub Jelinek <jakub@redhat.com>
18587 * testsuite/libgomp.fortran/pr42162.f90: New test.
18589 2009-11-13 Jakub Jelinek <jakub@redhat.com>
18591 PR middle-end/42029
18592 * testsuite/libgomp.c/pr42029.c: New test.
18594 2009-10-26 Jakub Jelinek <jakub@redhat.com>
18596 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18597 *s. Accept ld version without text in ()s.
18598 * configure: Regenerated.
18600 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
18602 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18604 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18607 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18608 or a hyphen (happens with fortran language disabled).
18609 * configure: Regenerate.
18611 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18613 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18614 use sed script portable to Solaris /bin/sed for extracting ld
18616 * configure: Regenerate.
18618 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
18620 * testsuite/libgomp.graphite/bounds.c: New test.
18622 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18624 * Makefile.am (libgomp_la_LINK): New.
18625 * Makefile.in: Regenerate.
18627 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18629 * configure.ac (AC_PREREQ): Bump to 2.64.
18631 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18633 * Makefile.am (install-html, install-pdf): Remove.
18634 * Makefile.in: Regenerate.
18636 * Makefile.in: Regenerate.
18637 * aclocal.m4: Regenerate.
18638 * config.h.in: Regenerate.
18639 * configure: Regenerate.
18640 * testsuite/Makefile.in: Regenerate.
18642 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18644 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18645 * Makefile.in: Regenerate.
18647 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
18649 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18650 * Makefile.in: Regenerate.
18652 2009-08-19 Tobias Burnus <burnus@net-b.de>
18655 omp_lib.h.in: Fix -std=f95 errors.
18657 2009-08-14 David Edelsohn <edelsohn@gnu.org>
18659 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18660 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18661 * testsuite/libgomp.graphite/graphite.exp: New.
18663 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
18665 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18668 2009-08-04 David Daney <ddaney@caviumnetworks.com>
18670 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18671 needed memory barrier semantics.
18672 * config/linux/mips/mutex.h: New file.
18674 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18676 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18678 2009-07-16 Joseph Myers <joseph@codesourcery.com>
18680 * configure: Regenerate.
18682 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
18687 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18688 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18689 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18691 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18693 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18694 options when choosing a multilib.
18696 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
18698 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18699 ld_library_path. Use add_path. Add just find_libgcc_s to
18700 ld_library_path, not every libgcc multilib directory.
18701 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18702 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18703 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18705 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18707 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
18709 * Makefile.am (LTLDFLAGS): Define.
18711 * Makefile.in: Regenerate.
18713 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
18716 * testsuite/libgomp.fortran/fortran.exp: Don't link with
18717 libgfortranbegin, check existence of libgfortran.a instead of
18718 libgfortranbegin.a.
18720 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18723 * team.c (gomp_thread_start): Destroy thr->release semaphore.
18724 (gomp_free_pool_helper): Likewise.
18726 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
18727 Jakub Jelinek <jakub@redhat.com>
18730 * testsuite/libgomp.fortran/workshare2.f90: New test.
18732 2009-04-09 Nick Clifton <nickc@redhat.com>
18734 * iter.c: Change copyright header to refer to version 3 of the
18735 GNU General Public License with version 3.1 of the GCC Runtime
18736 Library Exception and to point readers at the COPYING3 and
18737 COPYING3.RUNTIME files and the FSF's license web page.
18738 * alloc.c: Likewise.
18739 * barrier.c: Likewise.
18740 * config/bsd/proc.c: Likewise.
18741 * config/linux/affinity.c: Likewise.
18742 * config/linux/alpha/futex.h: Likewise.
18743 * config/linux/bar.c: Likewise.
18744 * config/linux/bar.h: Likewise.
18745 * config/linux/ia64/futex.h: Likewise.
18746 * config/linux/ia64/mutex.h: Likewise.
18747 * config/linux/lock.c: Likewise.
18748 * config/linux/mips/futex.h: Likewise.
18749 * config/linux/mutex.c: Likewise.
18750 * config/linux/mutex.h: Likewise.
18751 * config/linux/powerpc/futex.h: Likewise.
18752 * config/linux/proc.c: Likewise.
18753 * config/linux/ptrlock.c: Likewise.
18754 * config/linux/ptrlock.h: Likewise.
18755 * config/linux/s390/futex.h: Likewise.
18756 * config/linux/sem.c: Likewise.
18757 * config/linux/sem.h: Likewise.
18758 * config/linux/sparc/futex.h: Likewise.
18759 * config/linux/wait.h: Likewise.
18760 * config/linux/x86/futex.h: Likewise.
18761 * config/mingw32/proc.c: Likewise.
18762 * config/mingw32/time.c: Likewise.
18763 * config/posix/affinity.c: Likewise.
18764 * config/posix/bar.c: Likewise.
18765 * config/posix/bar.h: Likewise.
18766 * config/posix/lock.c: Likewise.
18767 * config/posix/mutex.h: Likewise.
18768 * config/posix/proc.c: Likewise.
18769 * config/posix/ptrlock.h: Likewise.
18770 * config/posix/sem.c: Likewise.
18771 * config/posix/sem.h: Likewise.
18772 * config/posix/time.c: Likewise.
18773 * config/posix95/lock.c: Likewise.
18774 * critical.c: Likewise.
18776 * error.c: Likewise.
18777 * fortran.c: Likewise.
18778 * iter_ull.c: Likewise.
18779 * libgomp.h: Likewise.
18780 * libgomp_f.h.in: Likewise.
18781 * libgomp_g.h: Likewise.
18782 * loop.c: Likewise.
18783 * loop_ull.c: Likewise.
18784 * omp.h.in: Likewise.
18785 * omp_lib.f90.in: Likewise.
18786 * omp_lib.h.in: Likewise.
18787 * ordered.c: Likewise.
18788 * parallel.c: Likewise.
18789 * sections.c: Likewise.
18790 * single.c: Likewise.
18791 * task.c: Likewise.
18792 * team.c: Likewise.
18793 * work.c: Likewise.
18795 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18797 * testsuite/config/default.exp: Change copyright header to refer to
18798 version 3 of the GNU General Public License and to point readers
18799 at the COPYING3 file and the FSF's license web page.
18801 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18803 PR middle-end/39573
18804 * libgomp.c++/pr39573.C: New test.
18806 2009-04-01 Jakub Jelinek <jakub@redhat.com>
18809 * testsuite/libgomp.c/pr39591-1.c: New test.
18810 * testsuite/libgomp.c/pr39591-2.c: New test.
18811 * testsuite/libgomp.c/pr39591-3.c: New test.
18813 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
18815 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18816 * testsuite/libgomp.c/atomic-6.c: Ditto.
18818 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18821 * testsuite/libgomp.c/loop-12.c: New test.
18822 * testsuite/libgomp.c/loop-11.c: New test.
18823 * testsuite/libgomp.c++/loop-11.C: New test.
18824 * testsuite/libgomp.c++/loop-12.C: New test.
18825 * testsuite/libgomp.c++/for-8.C: New test.
18827 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18829 * configure: Regenerate.
18831 2009-02-11 Jakub Jelinek <jakub@redhat.com>
18833 PR middle-end/39154
18834 * testsuite/libgomp.c/pr39154.c: New test.
18836 2009-01-30 Ian Lance Taylor <iant@google.com>
18838 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18839 libgomp_ld_is_gold. Get gold version number.
18840 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18841 * configure: Rebuild.
18843 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18845 * testsuite/lib/libgomp.exp: Add -B option for targets that
18846 use libgfortran.a%s in their specs.
18848 2009-01-07 Jakub Jelinek <jakub@redhat.com>
18851 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18852 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18853 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18854 * configure: Regenerated.
18855 * config.h.in: Likewise.
18857 2008-12-28 Jakub Jelinek <jakub@redhat.com>
18860 * testsuite/libgomp.c/pr38650.c: New test.
18861 * testsuite/libgomp.c++/pr38650.C: New test.
18863 2008-12-27 Jakub Jelinek <jakub@redhat.com>
18865 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18867 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
18869 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18871 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18873 * configure: Regenerate.
18875 2008-12-08 Jakub Jelinek <jakub@redhat.com>
18877 PR middle-end/36802
18878 * testsuite/libgomp.c/pr36802-1.c: New test.
18879 * testsuite/libgomp.c/pr36802-2.c: New test.
18880 * testsuite/libgomp.c/pr36802-3.c: New test.
18882 2008-12-01 Janis Johnson <janis187@us.ibm.com>
18885 * config/linux/powerpc/mutex.h: New.
18887 2008-12-01 Jakub Jelinek <jakub@redhat.com>
18890 * testsuite/libgomp.c++/for-7.C: New test.
18893 * testsuite/libgomp.c++/for-6.C: New test.
18895 2008-11-26 Janis Johnson <janis187@us.ibm.com>
18898 * testsuite/lib/libgomp.exp: Include new timeout library files.
18899 (libgomp_target_compile): Set timeout value from new proc.
18901 2008-11-13 Steve Ellcey <sje@cup.hp.com>
18904 * config/linux/ia64/mutex.h: New.
18906 2008-11-04 Tobias Burnus <burnus@net-b.de>
18909 * libgomp.texi (Runtime library routines, environment variables):
18910 Update for OpenMP version 3.0.
18912 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18913 Steve Ellcey <sje@cup.hp.com>
18915 * configure: Regenerate for new libtool.
18916 * Makefile.in: Ditto.
18917 * testsuite/Makefile.in: Ditto.
18919 2008-09-19 Jakub Jelinek <jakub@redhat.com>
18920 Andreas Tobler <a.tobler@schweiz.org>
18922 * config/bsd/proc.c: New file.
18923 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18924 * configure.ac: Check for header <sys/sysctl.h>
18925 * configure: Regenerate.
18926 * config.h.in: Likewise.
18928 2008-09-05 Janis Johnson <janis187@us.ibm.com>
18930 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18932 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18934 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18935 * Makefile.in: Regenerated.
18936 * testsuite/Makefile.in: Regenerated.
18938 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
18940 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18941 depend on blddir if blddir exists.
18942 (libgomp_target_compile): Likewise.
18943 * testsuite/libgomp.c++/c++.exp: Likewise.
18944 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18946 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18948 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18949 Do not list GPL as Invariant Section.
18951 2008-07-28 Ilie Garbacea <ilie@mips.com>
18952 Chao-ying Fu <fu@mips.com>
18954 * configure.tgt: Enable futex for MIPS.
18955 * config/linux/mips/futex.h: New file.
18957 2008-07-16 Jakub Jelinek <jakub@redhat.com>
18959 * team.c (gomp_team_end): Free team immediately if it has
18962 2008-07-08 David Edelsohn <edelsohn@gnu.org>
18964 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18965 * testsuite/libgomp.fortran/fortran.exp: Same.
18966 * testsuite/libgomp.c/c.exp: Same.
18967 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18968 directory to library path first.
18970 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18972 * env.c (parse_stacksize): Add cast to avoid warning.
18973 (parse_spincount): Likewise.
18975 2008-06-27 Jakub Jelinek <jakub@redhat.com>
18977 * testsuite/libgomp.c/loop-10.c: New test.
18978 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18979 * libgomp.c++/loop-6.C (main): Likewise.
18982 * testsuite/libgomp.c/debug-1.c: New test.
18984 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18986 * testsuite/libgomp.c/nqueens-1.c: New test.
18989 * testsuite/libgomp.c++/task-7.C: New function.
18991 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18993 * configure: Regenerate.
18995 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18997 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18998 mutex when HAVE_SYNC_BUILTINS isn't defined.
19000 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19002 * libgomp.texi (omp_test_lock): Fix typo.
19004 2008-06-12 Tobias Burnus <burnus@net-b.de>
19006 * omp_lib.f90.in: Add "implicit none".
19008 2008-06-12 Jakub Jelinek <jakub@redhat.com>
19010 PR middle-end/36506
19011 * testsuite/libgomp.c/reduction-5.c: New test.
19013 2008-06-11 Jakub Jelinek <jakub@redhat.com>
19015 * libgomp.h (struct gomp_task): Add in_tied_task field.
19016 * task.c (gomp_init_task): Initialize it.
19017 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
19018 unconditionally. Don't call gomp_team_barrier_wake if
19019 current task is implicit or if(0) from implicit and number of
19020 running tasks is equal to nthreads - 1.
19023 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
19024 omp_get_team_size_8): Fix pastos.
19027 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
19028 * configure: Regenerated.
19029 * config.h.in: Regenerated.
19030 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
19033 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
19036 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
19037 (GOMP_loop_ull_dynamic_start): Likewise.
19038 (GOMP_loop_ull_guided_start): Likewise.
19039 (GOMP_loop_ull_ordered_static_start): Likewise.
19040 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
19041 (GOMP_loop_ull_ordered_guided_start): Likewise.
19043 2008-06-06 Jakub Jelinek <jakub@redhat.com>
19044 Richard Henderson <rth@redhat.com>
19045 Ulrich Drepper <drepper@redhat.com>
19046 Jakob Blomer <jakob.blomer@ira.uka.de>
19048 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
19049 Substitute also OMP_*LOCK_25*.
19050 * configure: Regenerated.
19051 * config.h.in: Regenerated.
19052 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
19053 ptrlock.c and task.c.
19054 * Makefile.in: Regenerated.
19055 * testsuite/Makefile.in: Regenerated.
19056 * task.c: New file.
19057 * loop_ull.c: New file.
19058 * iter_ull.c: New file.
19059 * libgomp.h: Include ptrlock.h.
19060 (enum gomp_task_kind): New type.
19061 (struct gomp_team): Add task_lock, task_queue, task_count,
19062 task_running_count, single_count fields. Add
19063 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
19064 Remove work_share_lock, generation_mask,
19065 oldest_live_gen, num_live_gen and init_work_shares fields, add
19066 work work_share_list_alloc, work_share_list_free and work_share_chunk
19067 fields. Change work_shares from pointer to pointers into an array.
19068 Change ordered_release field into gomp_sem_t ** from flexible array
19069 member. Add implicit_task and initial_work_shares fields.
19070 Move close to the end of the struct.
19071 (struct gomp_team_state): Add single_count, last_work_share,
19072 active_level and level fields, remove work_share_generation.
19073 (gomp_barrier_handle_tasks): New prototype.
19074 (gomp_finish_task): New inline function.
19075 (struct gomp_work_share): Move chunk_size, end, incr into
19076 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
19077 next_ll fields. Reshuffle fields. Add next_alloc,
19078 next_ws, next_free and inline_ordered_team_ids fields, change
19079 ordered_team_ids into pointer from flexible array member.
19080 Add mode field. Put lock and next into a different cache line
19081 from most of the write-once fields.
19082 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
19083 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
19084 gomp_iter_ull_guided_next): New prototypes.
19085 (gomp_new_icv): New prototype.
19086 (struct gomp_thread): Add thread_pool and task fields.
19087 (struct gomp_thread_pool): New type.
19088 (gomp_new_team): New prototype.
19089 (gomp_team_start): Change type of last argument.
19090 (gomp_new_work_share): Removed.
19091 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
19092 (gomp_work_share_init_done): New static inline.
19093 (gomp_throttled_spin_count_var, gomp_available_cpus,
19094 gomp_managed_threads): New extern decls.
19095 (gomp_init_task): New prototype.
19096 (gomp_spin_count_var): New extern var decl.
19097 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
19098 or no alias support, or if not PIC.
19099 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
19100 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
19101 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
19102 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
19103 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
19104 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
19105 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
19106 gomp_test_nest_lock_25): New prototypes.
19107 (omp_lock_symver, strong_alias): Define.
19108 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
19110 (gomp_end_task): New.
19111 (struct gomp_task_icv, gomp_global_icv): New.
19112 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
19113 (struct gomp_task): New.
19114 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19115 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19117 (gomp_schedule_type): Reorder enum to match
19119 * team.c (struct gomp_thread_start_data): Add thread_pool and task
19121 (gomp_thread_start): Add gomp_team_barrier_wait call.
19122 For non-nested case remove clearing of docked thread thr fields.
19123 Use pool fields instead of global gomp_* variables. Use
19124 gomp_barrier_wait_last when needed. Initialize ts.active_level.
19125 Create tasks for each member thread.
19126 (free_team): Only destroy team barrier, task_lock here and free it.
19127 (gomp_free_thread): Free last_team if non-NULL.
19128 (gomp_team_end): Call gomp_team_barrier_wait instead of
19129 gomp_barrier_wait. For nested case call one extra
19130 gomp_barrier_wait. Move here some destruction from free_team.
19131 Call free_team on pool->last_team if any, rather than freeing
19132 current team. Destroy work_share_list_free_lock ifndef
19133 HAVE_SYNC_BUILTINS.
19134 (gomp_new_icv): New function.
19135 (gomp_threads, gomp_threads_size, gomp_threads_used,
19136 gomp_threads_dock): Removed.
19137 (gomp_thread_destructor): New variable.
19138 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
19140 (gomp_team_start): Create new pool if current thread doesn't have
19141 one. Use pool fields instead of global gomp_* variables.
19142 Initialize thread_pool field for new threads. Clear single_count.
19143 Change last argument from ws to team, don't create
19144 new team, set ts.work_share to &team->work_shares[0] and clear
19145 ts.last_work_share. Don't clear ts.work_share_generation.
19146 If number of threads changed, adjust atomically gomp_managed_threads.
19147 Use gomp_init_task instead of gomp_new_task,
19148 set thr->task to the corresponding implicit_task array entry.
19149 Create tasks for each member thread. Initialize ts.level.
19150 (initialize_team): Call pthread_key_create on
19151 gomp_thread_destructor.
19152 (team_destructor): New function.
19153 (new_team): Removed.
19154 (gomp_new_team): New function.
19155 (free_team): Free gomp_work_share blocks chained through next_alloc,
19156 instead of freeing work_shares and destroying work_share_lock.
19157 (gomp_team_end): Call gomp_fini_work_share. If number of threads
19158 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
19159 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
19160 of gomp_barrier_wait.
19161 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
19162 instead of gomp_barrier_wait. Call gomp_work_share_init_done
19163 if gomp_work_share_start returned true. Don't unlock ws->lock.
19164 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
19165 of gomp_barrier_wait.
19166 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
19167 gomp_work_share_init_done if gomp_work_share_start returned true.
19168 Don't unlock ws->lock.
19169 * work.c: Include stddef.h.
19170 (free_work_share): Use work_share_list_free_lock instead
19171 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
19172 Call gomp_fini_work_share and then either free ws if orphaned, or
19173 put it into work_share_list_free list of the current team.
19174 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
19176 (gomp_work_share_start, gomp_work_share_end,
19177 gomp_work_share_end_nowait): Rewritten.
19178 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
19179 (openmp_version): Set to 200805.
19180 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19181 omp_sched_guided, omp_sched_auto): New parameters.
19182 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19183 omp_set_max_active_levels, omp_get_max_active_levels,
19184 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19185 omp_get_active_level): New interfaces.
19186 * omp_lib.h.in (openmp_version): Set to 200805.
19187 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19188 omp_sched_guided, omp_sched_auto): New parameters.
19189 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19190 omp_set_max_active_levels, omp_get_max_active_levels,
19191 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19192 omp_get_active_level): New externals.
19193 * loop.c: Include limits.h.
19194 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
19196 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
19197 Likewise. Use gomp_icv.
19198 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
19199 ts.static_trip here.
19200 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
19201 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
19202 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
19203 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
19204 don't unlock ws->lock, otherwise lock it.
19205 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
19206 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
19207 (gomp_parallel_loop_start): Call gomp_new_team instead of
19208 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
19209 Adjust gomp_team_start caller. Pass 0 as second argument to
19210 gomp_resolve_num_threads.
19211 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
19212 If adding ws->chunk_size nthreads + 1 times after end won't
19213 overflow, set ws->mode to 1.
19214 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
19215 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
19216 GOMP_loop_ull_ordered_static_start,
19217 GOMP_loop_ull_ordered_dynamic_start,
19218 GOMP_loop_ull_ordered_guided_start,
19219 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
19220 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
19221 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
19222 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
19223 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
19225 * libgomp.map: Export lock routines also @@OMP_2.0.
19226 (GOMP_loop_ordered_dynamic_first,
19227 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
19228 GOMP_loop_ordered_static_first): Remove.
19229 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
19230 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
19231 GOMP_loop_ull_ordered_dynamic_next,
19232 GOMP_loop_ull_ordered_dynamic_start,
19233 GOMP_loop_ull_ordered_guided_next,
19234 GOMP_loop_ull_ordered_guided_start,
19235 GOMP_loop_ull_ordered_runtime_next,
19236 GOMP_loop_ull_ordered_runtime_start,
19237 GOMP_loop_ull_ordered_static_next,
19238 GOMP_loop_ull_ordered_static_start,
19239 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
19240 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
19241 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
19242 (omp_set_schedule, omp_get_schedule,
19243 omp_get_thread_limit, omp_set_max_active_levels,
19244 omp_get_max_active_levels, omp_get_level,
19245 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
19246 omp_set_schedule_, omp_set_schedule_8_,
19247 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19248 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19249 omp_get_max_active_levels_, omp_get_level_,
19250 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19251 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19252 New exports @@OMP_3.0.
19253 * omp.h.in (omp_sched_t): New type.
19254 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19255 omp_set_max_active_levels, omp_get_max_active_levels,
19256 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19257 omp_get_active_level): New prototypes.
19258 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
19259 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
19260 gomp_thread_limit_var, gomp_remaining_threads_count,
19261 gomp_remaining_threads_lock): New variables.
19262 (parse_spincount): New function.
19263 (initialize_env): Call gomp_init_num_threads unconditionally.
19264 Initialize gomp_available_cpus. Call parse_spincount,
19265 initialize gomp_{,throttled_}spin_count_var
19266 depending on presence and value of OMP_WAIT_POLICY and
19267 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
19268 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
19269 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
19270 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
19271 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
19272 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19273 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19274 (gomp_global_icv): New.
19275 (parse_schedule): Use it. Parse "auto".
19276 (omp_set_num_threads): Use gomp_icv.
19277 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
19279 (omp_get_max_threads): Move from parallel.c.
19280 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19281 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
19283 (parse_stacksize, parse_wait_policy): New functions.
19284 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
19285 both wrappers for compatibility and new locks.
19286 (omp_set_schedule, omp_get_schedule,
19287 omp_get_thread_limit, omp_set_max_active_levels,
19288 omp_get_max_active_levels, omp_get_level,
19289 omp_get_ancestor_thread_num, omp_get_team_size,
19290 omp_get_active_level): New ialias_redirect.
19291 (omp_set_schedule_, omp_set_schedule_8_,
19292 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19293 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19294 omp_get_max_active_levels_, omp_get_level_,
19295 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19296 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19298 * parallel.c: Include limits.h.
19299 (gomp_resolve_num_threads): Add count argument. Rewritten.
19300 (GOMP_parallel_start): Call gomp_new_team and pass that as last
19301 argument to gomp_team_start. Pass 0 as second argument to
19302 gomp_resolve_num_threads.
19303 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
19304 if gomp_thread_limit_var != ULONG_MAX.
19305 (omp_in_parallel): Implement using ts.active_level.
19306 (omp_get_max_threads): Move to env.c.
19307 (omp_get_level, omp_get_ancestor_thread_num,
19308 omp_get_team_size, omp_get_active_level): New functions,
19310 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
19311 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
19312 gomp_iter_dynamic_next instead of the _locked variant and don't take
19313 lock around it, otherwise acquire it before calling
19314 gomp_iter_dynamic_next_locked.
19315 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
19316 gomp_iter_dynamic_next instead of the _locked variant and don't take
19318 (GOMP_parallel_sections_start): Call gomp_new_team instead of
19319 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
19320 Adjust gomp_team_start caller. Pass count as second argument to
19321 gomp_resolve_num_threads, don't adjust num_threads after the call.
19323 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
19324 ws->chunk_size by incr.
19325 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
19327 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
19329 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
19330 (omp_check_defines): Check even the compat defines.
19331 * config/linux/ptrlock.c: New file.
19332 * config/linux/ptrlock.h: New file.
19333 * config/linux/wait.h: New file.
19334 * config/posix/ptrlock.c: New file.
19335 * config/posix/ptrlock.h: New file.
19336 * config/linux/bar.h (gomp_team_barrier_wait,
19337 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19338 (gomp_team_barrier_set_task_pending,
19339 gomp_team_barrier_clear_task_pending,
19340 gomp_team_barrier_set_waiting_for_tasks,
19341 gomp_team_barrier_waiting_for_tasks,
19342 gomp_team_barrier_done): New inlines.
19343 (gomp_barrier_t): Rewritten.
19344 (gomp_barrier_state_t): New typedef.
19345 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
19346 gomp_barrier_wait_start): Rewritten.
19347 (gomp_barrier_wait_end): Change second argument to
19348 gomp_barrier_state_t.
19349 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19351 * config/linux/bar.c: Include wait.h instead of libgomp.h and
19353 (gomp_barrier_wait_end): Rewritten.
19354 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19355 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
19356 * config/posix/bar.h (gomp_barrier_t): Add generation field.
19357 (gomp_barrier_state_t): New typedef.
19358 (gomp_team_barrier_wait,
19359 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19360 (gomp_barrier_wait_start): Or all but low 2 bits from generation
19361 into the return value. Return gomp_barrier_state_t.
19362 (gomp_team_barrier_set_task_pending,
19363 gomp_team_barrier_clear_task_pending,
19364 gomp_team_barrier_set_waiting_for_tasks,
19365 gomp_team_barrier_waiting_for_tasks,
19366 gomp_team_barrier_done): New inlines.
19367 (gomp_barrier_wait_end): Change second argument to
19368 gomp_barrier_state_t.
19369 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19371 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
19372 (gomp_barrier_wait_end): Change second argument to
19373 gomp_barrier_state_t.
19374 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19375 gomp_team_barrier_wake): New functions.
19376 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
19378 (gomp_futex_wake, gomp_futex_wait): New variables.
19379 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
19380 * config/linux/lock.c: Rewrite to make locks task owned,
19381 for backwards compatibility provide the old entrypoints
19382 if symbol versioning. Include wait.h instead of libgomp.h and
19384 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
19385 * config/posix95/lock.c: Rewrite to make locks task owned,
19386 for backwards compatibility provide the old entrypoints
19387 if symbol versioning.
19388 * config/posix/lock.c: Rewrite to make locks task owned,
19389 for backwards compatibility provide the old entrypoints
19390 if symbol versioning.
19391 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
19392 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
19393 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
19394 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19395 (sys_futex0): Return error code.
19396 (futex_wake, futex_wait): If ENOSYS was returned, clear
19397 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19398 (cpu_relax, atomic_write_barrier): New static inlines.
19399 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19400 (futex_wake, futex_wait): If ENOSYS was returned, clear
19401 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19402 (cpu_relax, atomic_write_barrier): New static inlines.
19403 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19404 (sys_futex0): Return error code.
19405 (futex_wake, futex_wait): If ENOSYS was returned, clear
19406 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19407 (cpu_relax, atomic_write_barrier): New static inlines.
19408 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19409 (sys_futex0): Return error code.
19410 (futex_wake, futex_wait): If ENOSYS was returned, clear
19411 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19412 (cpu_relax, atomic_write_barrier): New static inlines.
19413 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19414 (sys_futex0): Return error code.
19415 (futex_wake, futex_wait): If ENOSYS was returned, clear
19416 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19417 (cpu_relax, atomic_write_barrier): New static inlines.
19418 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19419 (sys_futex0): Return error code.
19420 (futex_wake, futex_wait): If ENOSYS was returned, clear
19421 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19422 (cpu_relax, atomic_write_barrier): New static inlines.
19423 * config/linux/sem.c: Include wait.h instead of libgomp.h and
19425 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
19426 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
19427 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
19429 (omp_nest_lock_t): Change owner into void *, add lock field.
19430 * config/posix95/omp-lock.h: Include semaphore.h.
19431 (omp_lock_25_t, omp_nest_lock_25_t): New types.
19432 (omp_lock_t): Use sem_t instead of mutex if semaphores
19434 (omp_nest_lock_t): Likewise. Change owner to void *.
19435 * config/posix/omp-lock.h: Include semaphore.h.
19436 (omp_lock_25_t, omp_nest_lock_25_t): New types.
19437 (omp_lock_t): Use sem_t instead of mutex if semaphores
19439 (omp_nest_lock_t): Likewise. Add owner field.
19441 2008-06-06 Jakub Jelinek <jakub@redhat.com>
19443 * testsuite/libgomp.c/collapse-1.c: New test.
19444 * testsuite/libgomp.c/collapse-2.c: New test.
19445 * testsuite/libgomp.c/collapse-3.c: New test.
19446 * testsuite/libgomp.c/icv-1.c: New test.
19447 * testsuite/libgomp.c/icv-2.c: New test.
19448 * testsuite/libgomp.c/lib-2.c: New test.
19449 * testsuite/libgomp.c/lock-1.c: New test.
19450 * testsuite/libgomp.c/lock-2.c: New test.
19451 * testsuite/libgomp.c/lock-3.c: New test.
19452 * testsuite/libgomp.c/loop-4.c: New test.
19453 * testsuite/libgomp.c/loop-5.c: New test.
19454 * testsuite/libgomp.c/loop-6.c: New test.
19455 * testsuite/libgomp.c/loop-7.c: New test.
19456 * testsuite/libgomp.c/loop-8.c: New test.
19457 * testsuite/libgomp.c/loop-9.c: New test.
19458 * testsuite/libgomp.c/nested-3.c: New test.
19459 * testsuite/libgomp.c/nestedfn-6.c: New test.
19460 * testsuite/libgomp.c/sort-1.c: New test.
19461 * testsuite/libgomp.c/task-1.c: New test.
19462 * testsuite/libgomp.c/task-2.c: New test.
19463 * testsuite/libgomp.c/task-3.c: New test.
19464 * testsuite/libgomp.c/task-4.c: New test.
19465 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
19466 to C++ testsuite default compiler options.
19467 * testsuite/libgomp.c++/collapse-1.C: New test.
19468 * testsuite/libgomp.c++/collapse-2.C: New test.
19469 * testsuite/libgomp.c++/ctor-10.C: New test.
19470 * testsuite/libgomp.c++/for-1.C: New test.
19471 * testsuite/libgomp.c++/for-2.C: New test.
19472 * testsuite/libgomp.c++/for-3.C: New test.
19473 * testsuite/libgomp.c++/for-4.C: New test.
19474 * testsuite/libgomp.c++/for-5.C: New test.
19475 * testsuite/libgomp.c++/loop-8.C: New test.
19476 * testsuite/libgomp.c++/loop-9.C: New test.
19477 * testsuite/libgomp.c++/loop-10.C: New test.
19478 * testsuite/libgomp.c++/task-1.C: New test.
19479 * testsuite/libgomp.c++/task-2.C: New test.
19480 * testsuite/libgomp.c++/task-3.C: New test.
19481 * testsuite/libgomp.c++/task-4.C: New test.
19482 * testsuite/libgomp.c++/task-5.C: New test.
19483 * testsuite/libgomp.c++/task-6.C: New test.
19484 * testsuite/libgomp.fortran/allocatable1.f90: New test.
19485 * testsuite/libgomp.fortran/allocatable2.f90: New test.
19486 * testsuite/libgomp.fortran/allocatable3.f90: New test.
19487 * testsuite/libgomp.fortran/allocatable4.f90: New test.
19488 * testsuite/libgomp.fortran/collapse1.f90: New test.
19489 * testsuite/libgomp.fortran/collapse2.f90: New test.
19490 * testsuite/libgomp.fortran/collapse3.f90: New test.
19491 * testsuite/libgomp.fortran/collapse4.f90: New test.
19492 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
19493 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
19494 * testsuite/libgomp.fortran/lib4.f90: New test.
19495 * testsuite/libgomp.fortran/lock-1.f90: New test.
19496 * testsuite/libgomp.fortran/lock-2.f90: New test.
19497 * testsuite/libgomp.fortran/nested1.f90: New test.
19498 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
19499 * testsuite/libgomp.fortran/strassen.f90: New test.
19500 * testsuite/libgomp.fortran/tabs1.f90: New test.
19501 * testsuite/libgomp.fortran/tabs2.f: New test.
19502 * testsuite/libgomp.fortran/task1.f90: New test.
19503 * testsuite/libgomp.fortran/task2.f90: New test.
19504 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
19505 * testsuite/libgomp.fortran/vla5.f90: Likewise.
19506 * testsuite/libgomp.c/pr26943-2.c: Likewise.
19507 * testsuite/libgomp.c/pr26943-3.c: Likewise.
19508 * testsuite/libgomp.c/pr26943-4.c: Likewise.
19510 2008-05-23 Jakub Jelinek <jakub@redhat.com>
19513 * testsuite/libgomp.c++/ctor-11.C: New test.
19514 * testsuite/libgomp.c++/ctor-12.C: New test.
19516 2008-05-15 Janis Johnson <janis187@us.ibm.com>
19518 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19520 2008-05-07 Jakub Jelinek <jakub@redhat.com>
19522 PR middle-end/36106
19523 * testsuite/libgomp.c/atomic-5.c: New test.
19524 * testsuite/libgomp.c/atomic-6.c: New test.
19525 * testsuite/libgomp.c/autopar-1.c: New test.
19527 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19529 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19530 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19531 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19532 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19533 * configure: Regenerate.
19534 * Makefile.in, testsuite/Makefile.in: Likewise.
19536 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
19539 * aclocal.m4: Regenerate.
19540 * configure: Regenerate.
19542 2008-03-18 Jakub Jelinek <jakub@redhat.com>
19544 PR middle-end/35611
19545 * testsuite/libgomp.c/atomic-4.c: New test.
19548 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19549 (gomp_iter_guided_next): Likewise.
19550 * testsuite/libgomp.c/pr35625.c: New test.
19552 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19554 * aclocal.m4: Regenerate.
19555 * configure: Likewise.
19556 * Makefile.in: Likewise.
19557 * testsuite/Makefile.in: Likewise.
19559 2008-03-13 Jakub Jelinek <jakub@redhat.com>
19561 PR middle-end/35185
19562 * testsuite/libgomp.c++/pr35185.C: New test.
19564 2008-03-12 Jakub Jelinek <jakub@redhat.com>
19566 PR middle-end/35549
19567 * testsuite/libgomp.c/pr35549.c: New test.
19569 2008-03-06 Jakub Jelinek <jakub@redhat.com>
19571 * testsuite/libgomp.c/atomic-3.c: New test.
19573 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19576 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
19577 .F08 file suffixes.
19579 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
19582 * configure.ac: Add ACX_HEADER_STRING.
19583 * env.c: Include strings.h.
19584 * aclocal.m4: Regenerate.
19585 * config.h.in: Regenerate.
19586 * configure: Regenerate.
19587 * Makefile.in: Regenerate.
19588 * testsuite/Makefile.in: Regenerate.
19590 2008-02-15 Jakub Jelinek <jakub@redhat.com>
19592 PR middle-end/35196
19593 * testsuite/libgomp.c/pr35196.c: New test.
19595 PR middle-end/35130
19596 * testsuite/libgomp.fortran/pr35130.f90: New test.
19597 * testsuite/libgomp.c/pr35130.c: New test.
19599 2008-01-25 Jakub Jelinek <jakub@redhat.com>
19601 PR middle-end/33880
19602 * testsuite/libgomp.c/pr33880.c: New test.
19603 * testsuite/libgomp.fortran/pr33880.f90: New test.
19605 2008-01-24 David Edelsohn <edelsohn@gnu.org>
19607 * configure: Regenerate.
19609 2008-01-08 Jakub Jelinek <jakub@redhat.com>
19611 * configure.ac: Move futex checking into ../config/futex.m4.
19612 * configure: Rebuilt.
19613 * aclocal.m4: Rebuilt.
19614 * Makefile.in: Rebuilt.
19616 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19617 2007-10-15 ../config/tls.m4 change.
19619 2007-12-19 Jakub Jelinek <jakub@redhat.com>
19622 * testsuite/libgomp.c/pr34513.c: New test.
19623 * testsuite/libgomp.c++/pr34513.C: New test.
19625 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
19628 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19630 2007-12-04 Jakub Jelinek <jakub@redhat.com>
19632 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
19634 2007-12-03 Jakub Jelinek <jakub@redhat.com>
19636 * testsuite/libgomp.c/private-1.c: New test.
19638 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
19639 Paolo Bonzini <bonzini@gnu.org>
19641 * Makefile.am: Use space as vpath separator. Use 'vpath %'
19642 instead of 'VPATH ='.
19643 * Makefile.in: Regenerate.
19645 2007-11-23 Matthias Klose <doko@ubuntu.com>
19647 * configure.ac: Adjust makeinfo version check.
19648 * configure: Regenerate.
19650 2007-11-10 Jakub Jelinek <jakub@redhat.com>
19653 * testsuite/libgomp.fortran/pr34020.f90: New test.
19655 2007-11-06 Jakub Jelinek <jakub@redhat.com>
19658 * testsuite/libgomp.c++/atomic-1.C: New test.
19660 2007-10-25 Jakub Jelinek <jakub@redhat.com>
19663 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19664 Make x and y integers rather than (implicit) reals. Add private (j)
19665 clause to the last omp parallel.
19667 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
19669 * configure: Regenerate following changes to ../config/tls.m4.
19671 2007-09-28 Jakub Jelinek <jakub@redhat.com>
19673 * testsuite/libgomp.fortran/stack.f90: New test.
19675 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
19677 * config/mingw32/proc.c: New file.
19679 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
19681 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19682 (main): Use __get_cpuid to get i386 target fetaures.
19683 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19684 (main): Use __get_cpuid to get x86_64 target fetaures.
19686 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
19689 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19690 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19692 2007-07-12 Jakub Jelinek <jakub@redhat.com>
19695 * testsuite/libgomp.fortran/pr32550.f90: New test.
19696 * testsuite/libgomp.fortran/crayptr2.f90: New test.
19698 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
19700 * aclocal.m4: Regenerated.
19702 2007-07-05 Tobias Burnus <burnus@net-b.de>
19705 * testsuite/libgomp.fortran/pr32359.f90: New.
19707 2007-07-02 Jakub Jelinek <jakub@redhat.com>
19710 * sections.c (GOMP_parallel_sections_start): Only decrease
19711 number of threads to COUNT if dyn_var is true.
19712 * testsuite/libgomp.c/pr32468.c: New test.
19714 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19717 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19719 2007-06-21 Jakub Jelinek <jakub@redhat.com>
19721 PR middle-end/32362
19722 * testsuite/libgomp.c/pr32362-1.c: New test.
19723 * testsuite/libgomp.c/pr32362-2.c: New test.
19724 * testsuite/libgomp.c/pr32362-3.c: New test.
19726 2007-06-07 Jakub Jelinek <jakub@redhat.com>
19728 * team.c (gomp_team_start): Fix setting up thread_attr
19731 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
19733 * configure: Regenerate.
19735 2007-05-23 Steve Ellcey <sje@cup.hp.com>
19737 * Makefile.in: Regenerate.
19738 * configure: Regenerate.
19739 * aclocal.m4: Regenerate.
19740 * testsuite/Makefile.in: Regenerate.
19742 2007-05-04 Jakub Jelinek <jakub@redhat.com>
19744 * config/linux/proc.c: New file.
19747 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19749 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
19751 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19753 2007-04-16 Matthias Klose <doko@debian.org>
19755 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19756 flags if not building with -m64.
19757 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19758 flag for i?86-*-* targets, if current target matches -m64.
19760 2007-04-14 Steve Ellcey <sje@cup.hp.com>
19762 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19763 * Makefile.in: Regenerate.
19765 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19768 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19770 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19772 2007-04-04 Jakub Jelinek <jakub@redhat.com>
19774 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19776 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19777 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19778 (parse_affinity): New function.
19779 (initialize_env): Call it and gomp_init_affinity.
19780 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19781 create new pthread_attr_t and call gomp_init_thread_affinity
19782 on it for each thread before passing the attribute to pthread_create.
19783 * config/linux/affinity.c: New file.
19784 * config/posix/affinity.c: New file.
19785 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19786 * configure: Rebuilt.
19787 * config.h.in: Rebuilt.
19788 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19789 * Makefile.in: Rebuilt.
19791 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19793 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19795 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19796 and use it if found.
19798 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
19800 * testsuite/config/default.exp: New file.
19801 * testsuite/lib/libgomp.exp: New file.
19802 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19803 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19804 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19805 (libgomp_load): Remove.
19806 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19807 always_ld_library_path, not ld_library_path. Set additional_flags
19808 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19809 (target_compile): Do not call libgomp_init. Append lang_library_path
19810 and lang_link_flags to options.
19811 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19812 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19814 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19815 always_ld_library_path. Set LD_LIBRARY_PATH here.
19816 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19817 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19818 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19820 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19821 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19822 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19823 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19824 * testsuite/libgomp.c/atomic-10.c: Ditto.
19826 2007-03-21 Jakub Jelinek <jakub@redhat.com>
19828 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19829 dg-final cleanup-modules line.
19830 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19831 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19832 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19833 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19834 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19835 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19836 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19838 2007-03-18 Andreas Schwab <schwab@suse.de>
19840 * acinclude.m4: Adjust regular expression for ld version
19842 * configure: Regenerate.
19844 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19846 * Makefile.am: Add install-pdf target as copied from
19847 automake v1.10 rules.
19848 * Makefile.in: Regenerate
19850 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19853 * configure: Regenerate.
19856 * testsuite/libgomp.c++/pr30703.C: New test.
19858 2007-02-02 Jakub Jelinek <jakub@redhat.com>
19861 2006-07-05 Eric Christopher <echristo@apple.com>
19862 * configure.ac: Depend addition of -pthread on host OS.
19863 * configure: Regenerate.
19865 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19867 * libgomp.texi: Fix spacing after abbreviations.
19869 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
19872 * configure.ac: Add check for makeinfo
19873 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19874 if an appropriate version of makeinfo is found.
19875 * aclocal.m4: Regenerated.
19876 * configure: Regenerated.
19877 * Makefile.in: Regenerated.
19878 * testsuite/Makefile.in: Regenerated.
19880 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
19883 * libgomp.texi: More about implementation-dependent settings.
19885 2007-01-26 Tobias Burnus <burnus@net-b.de>
19887 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19889 2007-01-24 Jakub Jelinek <jakub@redhat.com>
19891 PR middle-end/30494
19892 * testsuite/libgomp.c/pr30494.c: New test.
19894 2007-01-15 Tom Tromey <tromey@redhat.com>
19896 * configure: Rebuilt.
19897 * configure.ac: Fixed comment.
19899 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
19901 * libgomp.texi: Document implementation specific default values of
19902 environment variables.
19904 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19907 * libgomp.texi: New file.
19908 * configure.ac: Add --enable-generated-files-in-srcdir option.
19909 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19911 * Makefile.in: Regenerated.
19912 * config.h.in: Regenerated.
19913 * testsuite/Makefile.in: Regenerated.
19916 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
19919 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19921 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19923 * configure: Regenerate.
19925 2006-12-04 Jakub Jelinek <jakub@redhat.com>
19928 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19929 start if there shouldn't be any loop iterations.
19930 (gomp_loop_ordered_static_start): Remove start == end test.
19931 * testsuite/libgomp.c/pr29947-1.c: New test.
19932 * testsuite/libgomp.c/pr29947-2.c: New test.
19934 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19936 * configure.tgt: Force initial-exec TLS model on Linux only.
19938 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19940 * configure: Regenerated.
19942 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
19944 * env.c (parse_schedule): Reject out of range values.
19945 (parse_unsigned_long): Reject out of range, negative or zero values.
19947 2006-10-29 Jakub Jelinek <jakub@redhat.com>
19950 * testsuite/libgomp.fortran/pr29629.f90: New test.
19952 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19955 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19956 * config/posix95: New directory.
19957 * config/posix95/omp-lock.h: New file.
19958 * config/posix95/lock.c: Likewise.
19960 2006-10-14 Geoffrey Keating <geoffk@apple.com>
19962 * aclocal.m4: Regenerate.
19963 * configure: Regenerate.
19965 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19967 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19970 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19972 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19974 * configure: Regenerate.
19975 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19977 2006-09-26 Jakub Jelinek <jakub@redhat.com>
19979 PR middle-end/25261
19980 PR middle-end/28790
19981 * testsuite/libgomp.c/nestedfn-4.c: New test.
19982 * testsuite/libgomp.c/nestedfn-5.c: New test.
19983 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19986 * testsuite/libgomp.fortran/condinc1.f: New test.
19987 * testsuite/libgomp.fortran/condinc2.f: New test.
19988 * testsuite/libgomp.fortran/condinc3.f90: New test.
19989 * testsuite/libgomp.fortran/condinc4.f90: New test.
19990 * testsuite/libgomp.fortran/condinc1.inc: New file.
19992 2006-09-18 Tom Tromey <tromey@redhat.com>
19994 * configure: Rebuilt.
19996 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19999 PR preprocessor/14634
20000 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
20002 * configure: Regenerate.
20004 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
20006 * testsuite/libgomp.fortran/reduction3.f90: Change
20007 -2147483648 to -huge(i)-1 to avoid overflow.
20008 * testsuite/libgomp.fortran/reduction4.f90: Change
20009 Z'ffffffff' to not(0) to avoid overflow.
20011 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
20014 * Makefile.am (libsubincludedir): New.
20015 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
20016 * Makefile.in: Regenerate.
20018 2006-08-17 Jakub Jelinek <jakub@redhat.com>
20021 * env.c: Include ctype.h.
20022 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
20023 leading and/or trailing whitespace and compare strings case
20026 2006-07-16 Jakub Jelinek <jakub@redhat.com>
20029 * testsuite/libgomp.fortran/pr28390.f: New test.
20031 2006-07-05 Eric Christopher <echristo@apple.com>
20033 * configure.ac: Depend addition of -pthread on host OS.
20034 * configure: Regenerate.
20036 2006-06-21 Jakub Jelinek <jakub@redhat.com>
20038 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
20039 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
20042 2006-06-20 Jakub Jelinek <jakub@redhat.com>
20046 * configure.ac: If neither --enable-linux-futex nor
20047 --disable-linux-futex is passed, determine the default by checking
20048 for compiling and/or running against NPTL. With --enable-linux-futex,
20049 check if SYS_gettid and SYS_futex are defined.
20050 * configure: Rebuilt.
20052 2006-06-14 Richard Henderson <rth@redhat.com>
20055 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
20056 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
20058 2006-06-09 Richard Henderson <rth@redhat.com>
20060 * env.c (gomp_nthreads_var): Change to unsigned long.
20061 (gomp_run_sched_chunk): Likewise.
20062 (parse_unsigned_long): Rename from parse_num_threads and generalize.
20063 (initialize_env): Initialize gomp_thread_attr.
20064 * libgomp.h (gomp_nthreads_var): Update decl.
20065 (gomp_run_sched_chunk): Likewise.
20066 (gomp_thread_attr): Declare.
20067 * team.c (gomp_thread_attr): Export.
20068 (initialize_team): Don't initialize it.
20070 2006-06-09 Jakub Jelinek <jakub@redhat.com>
20073 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
20074 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
20076 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
20078 * config/mingw32/time.c: New file.
20079 * configure.tgt: Use it.
20081 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
20083 * Makefile.am: Add install-html target. Add install-html to .PHONY
20084 * Makefile.in: Regenerate.
20086 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20089 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
20090 * testsuite/libgomp.c/critical-1.c: Likewise.
20091 * testsuite/libgomp.c/loop-1.c: Likewise.
20092 * testsuite/libgomp.c/loop-2.c: Likewise.
20093 * testsuite/libgomp.c/single-1.c: Likewise.
20094 * testsuite/libgomp.c/ordered-1.c: Likewise.
20095 * testsuite/libgomp.c/ordered-2.c: Likewise.
20097 2006-05-15 Jakub Jelinek <jakub@redhat.com>
20099 PR middle-end/27416
20100 * libgomp.fortran/pr27416-1.f90: New test.
20102 2006-05-03 Jakub Jelinek <jakub@redhat.com>
20105 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
20106 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
20108 2006-05-02 Jakub Jelinek <jakub@redhat.com>
20111 * testsuite/libgomp.c/pr26943-1.c: New test.
20112 * testsuite/libgomp.c/pr26943-2.c: New test.
20113 * testsuite/libgomp.c/pr26943-3.c: New test.
20114 * testsuite/libgomp.c/pr26943-4.c: New test.
20115 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
20116 * testsuite/libgomp.c++/pr26943.C: New test.
20118 2006-05-02 Jakub Jelinek <jakub@redhat.com>
20120 PR middle-end/27337
20121 * testsuite/libgomp.c++/pr27337.C: New test.
20123 2006-04-26 Jakub Jelinek <jakub@redhat.com>
20126 * testsuite/libgomp.c/pr26171.c: New test.
20128 2006-04-25 Richard Henderson <rth@redhat.com>
20131 * configure.ac: Use GCC_CHECK_TLS.
20132 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
20133 * Makefile.in, aclocal.m4, configure: Regenerate.
20135 2006-04-10 Matthias Klose <doko@debian.org>
20137 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
20138 directory names containing underscores.
20140 2006-03-21 Jakub Jelinek <jakub@redhat.com>
20143 * testsuite/libgomp.c++/pr26691.C: New test.
20145 2006-03-13 Jakub Jelinek <jakub@redhat.com>
20147 * testsuite/libgomp.fortran/retval2.f90: New test.
20149 2006-03-09 Diego Novillo <dnovillo@redhat.com>
20151 * testsuite/libgomp.c++: New directory.
20153 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
20155 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
20156 * config/posix/sem.c: Implement the above.
20158 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
20160 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
20161 define HAVE_BROKEN_POSIX_SEMAPHORES.
20162 * configure: Rebuilt.
20163 * config.h.in: Rebuilt.
20165 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
20168 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
20169 for the other pthread check.
20170 * configure: Regenerate.
20171 * config.h.in: Regenerate.
20173 2006-02-15 Jakub Jelinek <jakub@redhat.com>
20177 * Makefile.am (fincludedir): New variable.
20178 (nodist_include_HEADERS): Remove Fortran files.
20179 (nodist_finclude_HEADERS): New variable.
20180 * Makefile.in: Regenerated.
20182 2006-02-13 Jakub Jelinek <jakub@redhat.com>
20184 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
20185 Remove tests for returning assumed character length arrays.
20187 2006-02-12 Roger Sayle <roger@eyesopen.com>
20188 John David Anglin <dave@hiauly1.hia.nrc.ca>
20191 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
20193 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
20195 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
20197 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
20199 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
20200 part of LD_LIBRARY_PATH manually.
20202 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
20205 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
20208 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
20211 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
20212 * configure.ac (PERL): Don't set.
20213 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
20214 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
20215 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
20216 * omp.h.in: Wrap the new configure substitutions with @ characters.
20217 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
20218 * aclocal.m4, configure, Makefile.in: Regenerate.
20219 * mkomp_h.pl: Delete.
20221 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
20224 * configure.ac: Use GCC_HEADER_STDINT.
20225 * libgomp.h: Include gstdint.h.
20226 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
20227 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
20229 2006-01-24 Richard Henderson <rth@redhat.com>
20232 * configure.ac: Add AM_MAINTAINER_MODE.
20233 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
20235 2006-01-24 Diego Novillo <dnovillo@redhat.com>
20237 * Makefile.in: Regenerate.
20238 * testsuite/Makefile.in: Regenerate.
20239 * aclocal.m4: Regenerate.
20241 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
20243 * config/posix/proc.c: Conditional include of sys/loadavg.h for
20245 * configure.ac: Add check for loadavg.h.
20246 (link_gomp): Adjust comment.
20247 * configure: Regenerate.
20248 * config.h.in: Regenerate.
20250 2006-01-21 Steve Ellcey <sje@cup.hp.com>
20253 * configure.ac: Remove check for alloca.h.
20254 * configure: Regenerate.
20255 * config.h.in: Regenerate.
20256 * libgomp.h: define gomp_alloca to be __builtin_alloca.
20257 * team.c: Remove use of alloca.h.
20258 Call gomp_alloca instead of alloca.
20260 2006-01-20 Steve Ellcey <sje@cup.hp.com>
20263 * team.c: Add include of alloca.h.
20264 * configure.ac: Add check for alloca.h.
20265 * configure: Regenerate.
20266 * config.h.in: Regenerate.
20268 2006-01-17 Jakub Jelinek <jakub@redhat.com>
20271 * testsuite/libgomp.fortran/pr25219.f90: New test.
20273 2005-12-05 Uros Bizjak <uros@kss-loka.si>
20275 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
20276 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
20277 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20278 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20279 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
20280 testsuite/libgomp.fortran/threadprivate1.f90,
20281 testsuite/libgomp.fortran/threadprivate2.f90,
20282 testsuite/libgomp.fortran/threadprivate3.f90,
20283 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20284 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20285 testsuite/libgomp.fortran/omp_parse3.f90: Change required
20286 effective-target to TLS runtime.
20288 * testsuite/libgomp.fortran/pr25162.f: Require
20289 effective-target TLS runtime.
20291 2005-12-01 Jakub Jelinek <jakub@redhat.com>
20293 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
20294 * testsuite/libgomp.c/nestedfn-3.c: New test.
20296 2005-11-30 Jakub Jelinek <jakub@redhat.com>
20299 * testsuite/libgomp.fortran/pr25162.f: New test.
20301 2005-11-28 Jakub Jelinek <jakub@redhat.com>
20303 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
20304 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
20306 2005-11-25 Jakub Jelinek <jakub@redhat.com>
20308 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
20309 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
20310 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
20311 single.c, team.c, work.c, config/linux/alpha/futex.h,
20312 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
20313 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
20314 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
20315 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
20316 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
20317 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
20318 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
20321 2005-11-18 Jakub Jelinek <jakub@redhat.com>
20323 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
20324 to nodist_noinst_HEADERS.
20325 * Makefile.in: Rebuilt.
20327 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
20328 add integer count field.
20329 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
20330 omp_nest_lock_t type change.
20331 (omp_init_nest_lock): Likewise. Initialize count to 0.
20332 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
20334 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
20336 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
20337 Increment count if successful and return the new nesting level.
20338 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
20339 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
20340 * testsuite/libgomp.c/lib-1.c: New test.
20341 * testsuite/libgomp.fortran/lib1.f90: New test.
20342 * testsuite/libgomp.fortran/lib2.f: New test.
20343 * testsuite/libgomp.fortran/lib3.f: New test.
20345 2005-11-17 Richard Henderson <rth@redhat.com>
20348 * Makefile.am (nodist_toolexeclib_HEADERS): New.
20349 * configure.ac (link_gomp): New. Substitute it.
20350 (AC_CONFIG_FILES): Add libgomp.spec.
20351 * libgomp.spec.in: New file.
20352 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
20353 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
20355 2005-11-18 Jakub Jelinek <jakub@redhat.com>
20357 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
20358 reduction(-:var) behaving the same as reduction(+:var).
20359 * testsuite/libgomp.c/reduction-4.c: New test.
20361 2005-11-15 Uros Bizjak <uros@kss-loka.si>
20363 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
20364 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
20365 testsuite/libgomp.c/copyin-3.c,
20366 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20367 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20368 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
20369 testsuite/libgomp.c++/pr24455.C,
20370 testsuite/libgomp.fortran/threadprivate1.f90,
20371 testsuite/libgomp.fortran/threadprivate2.f90,
20372 testsuite/libgomp.fortran/threadprivate3.f90,
20373 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20374 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20375 testsuite/libgomp.fortran/omp_parse3.f90: Require
20376 effective-target TLS.
20378 2005-11-14 Diego Novillo <dnovillo@redhat.com>
20382 2005-11-13 Jakub Jelinek <jakub@redhat.com>
20385 * team.c (initialize_team): Pass NULL rather than free as
20386 pthread_key_create destructor. Initialize thread specific data
20387 pointer in initial thread to a static local variable rather than
20390 2005-11-11 Uros Bizjak <uros@kss-loka.si>
20392 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
20393 its location to ld_library_path.
20395 2005-11-10 Diego Novillo <dnovillo@redhat.com>
20397 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
20399 2005-11-10 Diego Novillo <dnovillo@redhat.com>
20401 * testsuite/libgomp.c: Rename from libgomp.dg.
20403 2005-11-09 Diego Novillo <dnovillo@redhat.com>
20405 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
20406 threadprivate variable 'i'.
20408 2005-11-09 Jakub Jelinek <jakub@redhat.com>
20410 * config/linux/s390/futex.h: New file.
20411 * configure.tgt: Use it.
20413 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
20414 before the parallel.
20416 2005-11-08 Jakub Jelinek <jakub@redhat.com>
20419 * testsuite/libgomp.c++/master-1.C: New test.
20421 2005-11-07 Jakub Jelinek <jakub@redhat.com>
20423 * testsuite/libgomp.dg/copyin-3.c: New test.
20425 2005-11-07 Jakub Jelinek <jakub@redhat.com>
20427 * testsuite/libgomp.fortran/retval1.f90: New test.
20428 * testsuite/libgomp.fortran/vla7.f90: New test.
20430 2005-11-06 Jakub Jelinek <jakub@redhat.com>
20432 * testsuite/libgomp.fortran/vla2.f90: New test.
20433 * testsuite/libgomp.fortran/vla3.f90: New test.
20434 * testsuite/libgomp.fortran/vla4.f90: New test.
20435 * testsuite/libgomp.fortran/vla5.f90: New test.
20436 * testsuite/libgomp.fortran/vla6.f90: New test.
20438 2005-11-01 Jakub Jelinek <jakub@redhat.com>
20440 * config/linux/sparc/futex.h: New file.
20441 * configure.tgt: Use it.
20442 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
20444 * critical.c: Include stdlib.h.
20445 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
20446 ignoring return value.
20447 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
20448 LIBGOMP_CHECK_SYNC_BUILTINS check.
20449 * configure: Rebuilt.
20451 2005-10-31 Jakub Jelinek <jakub@redhat.com>
20453 * testsuite/libgomp.fortran/vla1.f90: New test.
20455 2005-10-31 Richard Henderson <rth@redhat.com>
20457 * testsuite/libgomp.fortran/character2.f90: Fix race condition
20458 setting 's' in different threads.
20460 2005-10-31 Jakub Jelinek <jakub@redhat.com>
20462 * libgomp.h (attribute_hidden, ialias): Define.
20463 * config/posix/proc.c (omp_get_num_procs): Add ialias.
20464 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
20465 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
20466 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20467 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20468 omp_test_lock, omp_test_nest_lock): Likewise.
20469 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
20470 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20471 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20472 omp_test_lock, omp_test_nest_lock): Likewise.
20473 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
20474 omp_get_dynamic, omp_get_nested): Likewise.
20475 * parallel.c (omp_get_num_threads, omp_get_max_threads,
20476 omp_get_thread_num, omp_in_parallel): Likewise.
20477 * fortran.c (ialias_redirect): Define.
20478 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
20479 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
20480 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
20481 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
20482 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
20483 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
20484 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
20485 omp_get_wtime): Add ialias_redirect.
20487 2005-10-30 Jakub Jelinek <jakub@redhat.com>
20489 * fortran.c: Include stdlib.h.
20491 2005-10-29 Jakub Jelinek <jakub@redhat.com>
20493 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
20494 * Makefile.in: Regenerated.
20496 2005-10-28 Jakub Jelinek <jakub@redhat.com>
20498 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
20499 * libgomp_f.h.in (omp_check_defines): New function.
20500 * env.c: Include libgomp_f.h.
20501 (initialize_env): Call omp_check_defines.
20503 * testsuite/libgomp.dg/copyin-2.c: New test.
20504 * testsuite/libgomp.c++/copyin-2.C: New test.
20505 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
20507 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
20508 * testsuite/libgomp.fortran/sharing2.f90: New test.
20510 * testsuite/libgomp.dg/copyin-1.c: New test.
20511 * testsuite/libgomp.c++/copyin-1.C: New test.
20513 2005-10-26 Jakub Jelinek <jakub@redhat.com>
20515 * testsuite/libgomp.fortran/crayptr1.f90: New test.
20517 * testsuite/libgomp.fortran/workshare1.f90: New test.
20519 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20521 * libgomp.fortran/sharing1.f90: New test.
20523 2005-10-24 Jakub Jelinek <jakub@redhat.com>
20526 * testsuite/libgomp.c++/loop-7.C: New test.
20528 * testsuite/libgomp.dg/nestedfn-2.c: New test.
20530 * testsuite/libgomp.dg/nestedfn-1.c: New test.
20531 * testsuite/libgomp.fortran/reduction6.f90: New test.
20532 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20534 2005-10-23 Richard Henderson <rth@redhat.com>
20536 * testsuite/libgomp.c++/ctor-1.C: New.
20537 * testsuite/libgomp.c++/ctor-2.C: New.
20538 * testsuite/libgomp.c++/ctor-3.C: New.
20539 * testsuite/libgomp.c++/ctor-4.C: New.
20540 * testsuite/libgomp.c++/ctor-5.C: New.
20541 * testsuite/libgomp.c++/ctor-6.C: New.
20542 * testsuite/libgomp.c++/ctor-7.C: New.
20543 * testsuite/libgomp.c++/ctor-8.C: New.
20544 * testsuite/libgomp.c++/ctor-9.C: New.
20546 2005-10-21 Diego Novillo <dnovillo@redhat.com>
20549 * testsuite/libgomp.c++/pr24455-1.C: New test.
20550 * testsuite/libgomp.c++/pr24455.C: New test.
20551 * testsuite/libgomp.dg/pr24455-1.c: New test.
20552 * testsuite/libgomp.dg/pr24455.c: New test.
20554 2005-10-20 Richard Henderson <rth@redhat.com>
20556 * testsuite/libgomp.c++/loop-6.C: New.
20557 * testsuite/libgomp.dg/loop-3.c: New.
20559 2005-10-20 Jakub Jelinek <jakub@redhat.com>
20561 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20562 explicitly private.
20563 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20566 2005-10-19 Diego Novillo <dnovillo@redhat.com>
20568 * testsuite/libgomp.fortran/jacobi.f: New test.
20570 2005-10-19 Richard Henderson <rth@redhat.com>
20572 * configure.tgt (i?86-linux): Default to with_arch instead of
20573 CFLAGS. Add -mtune to match target_cpu.
20574 (x86_64-linux): Tune to i686.
20576 * fortran.c (omp_test_nest_lock_): Fix typo.
20578 2005-10-19 Jakub Jelinek <jakub@redhat.com>
20580 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20581 gomp_ordered_sync): Do nothing if team->nthreads == 1.
20582 * testsuite/libgomp.dg/ordered-3.c: New test.
20584 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20585 Remove volatile keyword.
20587 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20588 in COMMON block to avoid warnings on 64-bit targets.
20590 2005-10-18 Diego Novillo <dnovillo@redhat.com>
20592 * testsuite/libgomp.dg/shared-3.c: New test.
20594 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20596 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20597 * testsuite/libgomp.fortran/reduction5.f90: New test.
20599 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20601 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20603 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
20604 flush loop now that __sync_synchronize has proper memory barrier.
20605 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20606 Add -ffixed-form to dg-options.
20608 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20610 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20611 from subdirectories.
20612 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20613 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20614 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20615 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20616 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20617 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20618 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20619 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20620 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20621 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20622 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20623 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20624 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20625 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20626 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20627 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20628 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20629 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20630 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20631 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20632 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20633 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20634 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20635 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20636 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20638 2005-10-17 Jakub Jelinek <jakub@redhat.com>
20640 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20641 lang_library_path exists. Use find instead of glob to gather tests.
20642 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20644 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20646 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20647 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20648 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20649 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20650 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20651 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20652 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20653 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20654 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20655 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20656 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20657 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20658 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20660 2005-10-15 Jakub Jelinek <jakub@redhat.com>
20662 * testsuite/libgomp.dg/vla-1.c: New test.
20664 * testsuite/libgomp.fortran/reference2.f90: New test.
20666 * testsuite/libgomp.fortran/character2.f90: Remove explicit
20667 declaration of omp_get_thread_num.
20668 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
20671 * testsuite/libgomp.fortran/reduction1.f90: New test.
20672 * testsuite/libgomp.fortran/reduction2.f90: New test.
20673 * testsuite/libgomp.fortran/reduction3.f90: New test.
20674 * testsuite/libgomp.fortran/reduction4.f90: New test.
20676 2005-10-13 Richard Henderson <rth@redhat.com>
20678 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20679 * Makefile.in: Regenerate.
20680 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20681 * libgomp.h: Include bar.h.
20682 (struct gomp_barrier): Remove.
20683 (struct gomp_team): Add barrier. Replace master_barrier with
20684 master_release. Replace threads with ordered_release.
20685 (struct gomp_thread): Replace barrier with release.
20686 * ordered.c (gomp_ordered_first): Update for ordered_release change.
20687 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20688 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20689 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20690 (GOMP_single_copy_end): Likewise.
20691 * team.c (gomp_threads_dock): New.
20692 (gomp_barrier_init, gomp_barrier_destroy): Remove.
20693 (gomp_thread_start): Use gomp_barrier_wait.
20694 (new_team, free_team): Update for gomp_team changes.
20695 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20696 (gomp_team_end): Use gomp_barrier_wait.
20697 (initialize_team): Update for gomp_thread changes.
20698 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20699 (gomp_work_share_end_nowait): Use atomic ops when available.
20700 * config/linux/bar.c, config/linux/bar.h: New files.
20701 * config/posix/bar.c, config/posix/bar.h: New files.
20703 2005-10-13 Jakub Jelinek <jakub@redhat.com>
20705 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20706 * testsuite/libgomp.dg/single-2.c: New test.
20708 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20709 lang_link_flags): Unset, so that they aren't inherited from previously
20712 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20714 2005-10-12 Richard Henderson <rth@redhat.com>
20716 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20717 (libgomp_init): Use lang_test_file, lang_library_path, and
20718 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
20720 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20721 (lang_test_file, lang_link_flags): New.
20722 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20724 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20725 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20726 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20727 testsuite/libgomp.c++/parallel-1.C,
20728 testsuite/libgomp.c++/reduction-1.C,
20729 testsuite/libgomp.c++/reduction-2.C,
20730 testsuite/libgomp.c++/reduction-3.C,
20731 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20732 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20733 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20734 New files, largely cribbed from the C testsuite.
20736 2005-10-12 Jakub Jelinek <jakub@redhat.com>
20738 * testsuite/libgomp.fortran/character1.f90: New test.
20739 * testsuite/libgomp.fortran/character2.f90: New test.
20741 * testsuite/libgomp.dg/nested-1.c: New test.
20742 * testsuite/libgomp.dg/nested-2.c: New test.
20743 * testsuite/libgomp.fortran/do1.f90: New test.
20744 * testsuite/libgomp.fortran/do2.f90: New test.
20746 * testsuite/libgomp.fortran/reference1.f90: New test.
20748 2005-10-11 Jakub Jelinek <jakub@redhat.com>
20750 * testsuite/libgomp.dg/reduction-1.c: New test.
20751 * testsuite/libgomp.dg/reduction-2.c: New test.
20752 * testsuite/libgomp.dg/reduction-3.c: New test.
20754 2005-10-10 Jakub Jelinek <jakub@redhat.com>
20756 * testsuite/libgomp.dg/atomic-1.c: New test.
20757 * testsuite/libgomp.dg/atomic-2.c: New test.
20759 2005-10-09 Richard Henderson <rth@redhat.com>
20761 * critical.c (atomic_lock): New.
20762 (initialize_critical): Initialize it.
20763 (GOMP_atomic_start, GOMP_atomic_end): New.
20764 * libgomp.map: Export them.
20765 * libgomp_g.h: Declare them.
20767 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20769 2005-10-02 Richard Henderson <rth@redhat.com>
20771 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20772 to XCFLAGS instead of CFLAGS.
20774 2005-09-30 Richard Henderson <rth@redhat.com>
20776 * configure.ac: Determine whether -pthread or -lpthread is needed.
20777 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20778 * Makefile.in, configure: Rebuild.
20780 2005-09-28 Richard Henderson <rth@redhat.com>
20782 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20783 * testsuite/libgomp.dg/omp-single-3.c: New test.
20785 2005-09-28 Diego Novillo <dnovillo@redhat.com>
20787 * testsuite/libgomp.dg/omp-single-2.c: New test.
20788 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20790 2005-09-27 Richard Henderson <rth@redhat.com>
20792 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20793 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20795 2005-09-27 Jakub Jelinek <jakub@redhat.com>
20797 * testsuite/libgomp.dg/omp-loop03.c: New test.
20799 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20801 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20803 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20805 * testsuite/libgomp.dg/omp-single-1.c: New test.
20806 * testsuite/libgomp.dg/shared-1.c: Return 0.
20807 Add prototype for abort.
20808 * testsuite/libgomp.dg/shared-2.c: Likewise.
20810 2005-09-26 Jakub Jelinek <jakub@redhat.com>
20812 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20815 2005-09-26 Diego Novillo <dnovillo@redhat.com>
20817 * testsuite/libgomp.dg/shared-1.c: New test.
20818 * testsuite/libgomp.dg/shared-2.c: New test.
20820 2005-09-24 Richard Henderson <rth@redhat.com>
20822 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20824 2005-09-24 Richard Henderson <rth@redhat.com>
20826 * iter.c (gomp_iter_static_next): Round up when computing number
20827 of iterations. Don't bother distributing a remainder equally.
20829 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20830 Don't call srand. Zero b before testing.
20833 2005-09-24 Jakub Jelinek <jakub@redhat.com>
20835 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20836 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20838 2005-09-23 Jakub Jelinek <jakub@redhat.com>
20840 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20841 without !$omp end do, followed immediately by subroutine end.
20843 2005-09-23 Diego Novillo <dnovillo@redhat.com>
20845 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20847 2005-09-22 Richard Henderson <rth@redhat.com>
20849 * critical.c (GOMP_critical_name_start): Change argument to void**.
20850 Reuse the pointer space if the mutex fits.
20851 (GOMP_critical_name_end): Likewise.
20852 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20853 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20854 (GOMP_critical_name_end): Likewise.
20855 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20856 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20858 2005-09-20 Richard Henderson <rth@redhat.com>
20860 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20861 (create_lock_lock): New.
20862 (initialize_critical): Initialize it.
20863 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20864 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20866 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20868 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20870 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20872 * testsuite/libgomp.dg/omp-loop01.c: New test.
20873 * testsuite/libgomp.dg/omp-loop02.c: New test.
20875 2005-09-20 Jakub Jelinek <jakub@redhat.com>
20877 * configure.ac (AC_PROG_FC): Add.
20878 (USE_FORTRAN): New automake conditional.
20879 * configure: Rebuilt.
20880 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20881 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20882 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20883 Add rules to build them.
20884 * Makefile.in: Rebuilt.
20885 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20886 OMP_NEST_LOCK_KIND.
20887 * libgomp.map: Add Fortran wrappers.
20888 * libgomp_f.h.in: New file.
20889 * omp_lib.h.in: New file.
20890 * omp_lib.f90.in: New file.
20891 * fortran.c: New file.
20892 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20893 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20894 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20895 libgfortran has been built.
20896 * testsuite/libgomp.fortran/fortran.exp: New file.
20897 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20898 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20899 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20900 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20901 * testsuite/libgomp.fortran/omp_hello.f: New test.
20902 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20903 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20904 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20905 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20906 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20907 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20908 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20909 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20911 2005-08-30 Richard Henderson <rth@redhat.com>
20913 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20914 function for when aliases are not usable.
20915 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20916 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20917 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20918 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20919 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20920 GOMP_loop_ordered_guided_next): Likewise.
20921 * ordered.c (GOMP_ordered_start): Likewise.
20923 2005-08-01 Diego Novillo <dnovillo@redhat.com>
20925 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20926 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20927 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20928 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20929 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20930 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20931 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20932 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20933 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20935 2005-07-07 Eric Christopher <echristo@redhat.com>
20936 Diego Novillo <dnovillo@redhat.com>
20938 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20939 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20941 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20942 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20943 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20944 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20945 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20946 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20947 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20949 2005-06-13 Diego Novillo <dnovillo@redhat.com>
20951 * TOPLEVEL.patch: Remove.
20953 2005-05-16 Richard Henderson <rth@redhat.com>
20955 * configure.ac: Test for clock_gettime.
20956 * config.h.in, configure: Rebuild.
20957 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20958 (omp_get_wtime): Use clock_gettime if available.
20959 (omp_get_wtick): Use clock_getres if available.
20961 2005-05-11 Richard Henderson <rth@redhat.com>
20963 * config/linux/ia64/futex.h: New file.
20964 * configure.tgt: Use it.
20966 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20968 2005-05-07 Richard Henderson <rth@redhat.com>
20970 * config/linux/powerpc/futex.h: New file.
20971 * configure.tgt: Use it.
20973 * config/linux/i486/futex.h: Merge ...
20974 * config/linux/x86_64/futex.h: ... into ...
20975 * config/linux/x86/futex.h: ... here.
20976 * configure.tgt: Update to match.
20978 2005-05-06 Richard Henderson <rth@redhat.com>
20980 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20981 * config/linux/i486/futex.h: Likewise.
20982 * config/linux/x86_64/futex.h: Likewise.
20984 * config/linux/lock.c: New file.
20985 * config/linux/omp-lock.h: New file.
20987 * critical.c, env.h: Don't include omp.h
20988 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20989 * config/posix/time.c: Likewise.
20990 * config/posix/omp-lock.h: New file.
20991 * libgomp.h: Include omp-lock.h and omp.h.
20992 * Makefile.am (nodist_include_HEADERS): New.
20994 * configure.ac (PERL): New.
20995 * mkomp_h.pl: New file.
20996 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20998 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
21000 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
21001 build directory. Re-add -march=i486 hack.
21003 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
21004 (libgomp_link_flags): Remove.
21005 (libgomp_initialized): Remove.
21006 (libgomp_init): Don't protect from reinitialization. Copy code
21007 from libstdc++ for getting the multilib set correctly.
21009 2005-05-05 Richard Henderson <rth@redhat.com>
21011 * config/linux/alpha/futex.h: New file.
21012 * configure.tgt (alpha*-*-linux*): Use it.
21014 * config/posix/mutex.c: New file.
21015 * config/posix/sem.c: Use libgomp.h.
21017 * configure.tgt (x86_64-linux): Also test CC for -m32.
21018 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
21020 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
21023 * Makefile.am (SUBDIRS): New.
21024 (libgomp_la_LDFLAGS): Add -lpthread.
21025 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
21026 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
21028 * libgomp_g.h: New file.
21029 * libgomp.h: Split out all public declarations to libgomp_g.h.
21030 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
21031 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
21032 * config/linux/sem.h: Likewise.
21033 * config/posix/sem.h: Likewise.
21035 * Makefile.am (AM_LDFLAGS): New.
21036 (libgomp_version_script): Split out from ...
21037 (libgomp_la_LDFLAGS): ... here.
21038 (libgomp_version_info): New.
21039 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
21040 (LIBGOMP_ENABLE): New.
21041 (LIBGOMP_CHECK_LINKER_FEATURES): New.
21042 (LIBGOMP_ENABLE_SYMVERS): New.
21043 * configure.ac (AC_INIT): Version 1.0.
21044 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
21045 (enable-linux-futex): Likewise. Rename from enable-futex.
21046 (libtool_VERSION): New.
21047 (LIBGOMP_ENABLE_SYMVERS): Use it.
21048 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
21049 * Makefile.in, aclocal.m4, configure: Rebuild.
21051 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
21052 (gomp_mutex_unlock_slow): Fix typo.
21053 * config/linux/sem.c: Similarly.
21054 (gomp_sem_post_slow): Fix typo.
21055 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
21056 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
21057 [__PIC__] (sys_futex0): Don't use tmp output in asm.
21059 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
21060 (libgomp_la_LDFLAGS): Add top_srcdir to path.
21061 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
21062 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
21063 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
21064 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
21065 LDFLAGS. Pull enable_futex check to top-level.
21066 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
21067 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
21069 First attempt at real configury.
21070 * Makefile, config.h: Remove file.
21071 * Makefile.am, Makefile.in: New file.
21072 * acinclude.m4 aclocal.m4: New file.
21073 * configure.ac, configure.tgt, configure: New file.
21075 * config/posix/lock.c: Rename from sys-lock.c.
21076 * config/posix/mutex.h: Rename from sys-mutex.h.
21077 * config/posix/sem.c: Rename from sys-sem.c.
21078 * config/posix/sem.h: Rename from sys-sem.h.
21079 * config/posix/proc.c: Rename from sys-proc.c.
21080 * config/posix/time.c: Rename from sys-proc.c.
21082 * config/linux/mutex.c: New file.
21083 * config/linux/mutex.h: New file.
21084 * config/linux/sem.c: New file.
21085 * config/linux/sem.h: New file.
21086 * config/linux/i486/futex.h: New file.
21087 * config/linux/x86_64/futex.h: New file.
21089 2005-05-04 Richard Henderson <rth@redhat.com>
21091 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
21092 * libgomp.h: Declare them.
21093 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
21094 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
21096 2005-05-04 Richard Henderson <rth@redhat.com>
21098 * libgomp-1 code drop
21100 2005-05-04 Richard Henderson <rth@redhat.com>
21102 * iter.c (gomp_iter_static_next): Return tri-state on 0.
21103 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
21104 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
21105 (gomp_iter_static_next): Update.
21106 (gomp_ordered_static_next): Update.
21107 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
21108 (gomp_loop_ordered_static_start): Likewise. Exit early for a
21109 totally empty range.
21110 (gomp_loop_ordered_static_next): Refine test for calling
21111 gomp_ordered_static_next.
21112 * testsuite/ordered-1.c: Add case for more threads than iterations.
21114 * iter.c (gomp_iter_runtime_next_locked): Remove.
21115 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
21116 gomp_loop_guided_start, gomp_loop_ordered_static_start,
21117 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
21118 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
21119 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
21120 gomp_loop_ordered_guided_next): Downcase name, make static, add
21121 an external alias with the old name.
21122 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
21123 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
21124 switch and call one of the above static functions.
21125 * libgomp.h: Update.
21127 * work.c (gomp_work_share_start): Lock the mutex for !first too.
21128 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
21129 GOMP_loop_guided_start, GOMP_loop_runtime_start,
21130 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
21131 GOMP_loop_ordered_guided_start): Update to match.
21132 * sections.c (GOMP_sections_start): Likewise.
21133 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
21135 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
21136 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
21137 Use bounds check instead of modulus.
21138 (gomp_ordered_sync): Split out of GOMP_ordered_start.
21139 (gomp_ordered_last): Don't sync with ordered_owner here.
21140 (gomp_ordered_next): Likewise.
21141 (gomp_ordered_static_loop_next): Likewise.
21142 * loop.c, libgomp.h: Update to match.
21144 * libgomp.h (GOMP_barrier): Declare.
21146 * testsuite/barrier-1.c: New file.
21147 * testsuite/critical-1.c: New file.
21148 * testsuite/ordered-2.c: New file.
21149 * testsuite/ordered-1.c: New file.
21150 * testsuite/sections-1.c: New file.
21151 * testsuite/single-1.c: New file.
21152 * testsuite/Makefile (TESTS): Add them.
21154 2005-05-04 Richard Henderson <rth@redhat.com>
21156 * libgomp.h (struct gomp_work_share): Add ordered_owner.
21157 * loop.c (GOMP_loop_static_start): If not the startup thread,
21158 acquire the mutex to wait for initialization complete.
21159 (GOMP_loop_ordered_static_start): Likewise.
21160 (GOMP_loop_ordered_runtime_start): Likewise.
21161 (GOMP_loop_ordered_static_first): Remove.
21162 (GOMP_loop_ordered_dynamic_first): Remove.
21163 (GOMP_loop_ordered_guided_first): Remove.
21164 (GOMP_loop_ordered_runtime_first): Remove.
21165 * ordered.c (gomp_ordered_loop_first): Post to own release when
21166 we're the first thread.
21167 (gomp_ordered_loop_last): Wait on release if not owner.
21168 (gomp_ordered_loop_next): Likewise.
21169 (gomp_ordered_static_loop_init): New.
21170 (gomp_ordered_static_loop_next): Use ordered_owner.
21171 (GOMP_ordered_start): Likewise.
21172 * work.c (gomp_new_work_share): Initialize ordered_owner.
21174 2005-05-03 Richard Henderson <rth@redhat.com>
21176 * Makefile (OPT): New.
21179 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
21180 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
21181 * libgomp.h, libgomp.map, NOTES: Update to match.
21183 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
21184 Add initialized and thr members.
21185 (gomp_thread_start): Pause when initially spawned to wait for
21186 the whole team to be created.
21187 (gomp_team_start): Release team members at the end.
21189 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
21190 (f_foo_1): Use GOMP_loop_end.
21191 (f_foo_2): Use GOMP_loop_end_nowait.
21193 * testsuite/loop-2.c: New file.
21194 * testsuite/Makefile (TESTS): Add it.
21196 2005-05-03 Richard Henderson <rth@redhat.com>
21198 * iter.c (gomp_iter_static_next): Fix overflow check typo.
21199 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
21200 * team.c (new_team): Initialize oldest_live_gen to 1 if no
21201 initial work_share.
21203 * testsuite/Makefile: New file.
21204 * testsuite/loop-1.c: New file.
21206 2005-05-03 Richard Henderson <rth@redhat.com>
21208 Initial implementation and checkin.
21210 Copyright (C) 2005-2024 Free Software Foundation, Inc.
21212 Copying and distribution of this file, with or without modification,
21213 are permitted in any medium without royalty provided the copyright
21214 notice and this notice are preserved.