1 2024-03-06 John David Anglin <danglin@gcc.gnu.org>
4 2024-02-01 John David Anglin <danglin@gcc.gnu.org>
6 * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
8 * testsuite/libgomp.c/omp-loop03.c: Likewise.
10 2024-03-04 Jakub Jelinek <jakub@redhat.com>
13 * target.c (gomp_target_rev): Change host_fn type and corresponding
14 cast from void (*)() to void (*) (void *).
16 2024-03-01 Jakub Jelinek <jakub@redhat.com>
17 Tobias Burnus <tburnus@baylibre.com>
20 * testsuite/libgomp.c++/target-lambda-3.C: Moved from
21 gcc/testsuite/g++.dg/gomp/ and fixed is-mapped handling.
22 * testsuite/libgomp.c++/target-lambda-1.C: Modify to also
23 also work without offloading.
24 * testsuite/libgomp.c++/firstprivate-1.C: New test.
25 * testsuite/libgomp.c++/firstprivate-2.C: New test.
26 * testsuite/libgomp.c++/private-1.C: New test.
27 * testsuite/libgomp.c++/private-2.C: New test.
28 * testsuite/libgomp.c++/target-lambda-4.C: New test.
29 * testsuite/libgomp.c++/use_device_ptr-1.C: New test.
31 2024-02-27 Tobias Burnus <tburnus@baylibre.com>
33 * libgomp.texi (OpenACC Runtime Library Routines): Document new 3.3
34 routines that simply map to their C counterpart.
35 * openacc.f90 (openacc): Add them.
36 * openacc_lib.h: Likewise.
37 * testsuite/libgomp.oacc-fortran/acc_host_device_ptr.f90: New test.
38 * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: New test.
39 * testsuite/libgomp.oacc-fortran/acc-memcpy-2.f90: New test.
40 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Crossref to f90 test.
41 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
42 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
44 2024-02-21 Tobias Burnus <tburnus@baylibre.com>
46 * libgomp.texi (OpenMP Context Selectors): Add 'nvptx64' as additional
47 'arch' value for nvptx.
49 2024-02-15 Kwok Cheung Yeung <kcyeung@baylibre.com>
51 * libgomp.texi (OpenMP 5.1): Mark indirect call support as fully
54 2024-02-15 Kwok Cheung Yeung <kcyeung@baylibre.com>
56 * testsuite/libgomp.fortran/declare-target-indirect-1.f90: New.
57 * testsuite/libgomp.fortran/declare-target-indirect-2.f90: New.
58 * testsuite/libgomp.fortran/declare-target-indirect-3.f90: New.
60 2024-02-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
63 * testsuite/libgomp.c/alloc-pinned-1.c [!__linux__] (CHECK_SIZE):
65 * testsuite/libgomp.c/alloc-pinned-2.c [!__linux__] (CHECK_SIZE):
68 2024-02-11 John David Anglin <danglin@gcc.gnu.org>
71 * configure.tgt (hppa*-*-linux*): Define config_path.
73 2024-02-01 John David Anglin <danglin@gcc.gnu.org>
75 * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
77 * testsuite/libgomp.c/omp-loop03.c: Likewise.
79 2024-01-29 Tobias Burnus <tburnus@baylibre.com>
81 * testsuite/libgomp.c/declare-variant-4.h: Use gfx1100/gfx1030
82 function not gfx90a for gfx1100/gfx1030 context selector.
84 2024-01-26 Richard Biener <rguenther@suse.de>
86 * plugin/plugin-gcn.c (suitable_hsa_agent_p): Filter out
87 agents with unsupported ISA.
89 2024-01-26 Richard Biener <rguenther@suse.de>
92 (EF_AMDGPU_MACH::EF_AMDGPU_MACH_UNSUPPORTED): Add.
93 (isa_code): Return that instead of -1.
94 (GOMP_OFFLOAD_init_device): Adjust.
96 2024-01-26 Tobias Burnus <tburnus@baylibre.com>
98 * testsuite/libgomp.c/declare-variant-4.h: Add variant functions
99 for gfx1030 and gfx1100.
100 * testsuite/libgomp.c/declare-variant-4-gfx1030.c: New test.
101 * testsuite/libgomp.c/declare-variant-4-gfx1100.c: New test.
103 2024-01-26 Andrew Stubbs <ams@baylibre.com>
105 * config/gcn/time.c (RTC_TICKS): Configure RDNA3.
106 (omp_get_wtime): Add RDNA3-compatible variant.
107 * plugin/plugin-gcn.c (max_isa_vgprs): Tune for gfx1030 and gfx1100.
109 2024-01-24 Tobias Burnus <tburnus@baylibre.com>
110 Sandra Loosemore <sandra@codesourcery.com>
112 * libgomp.texi (Runtime Library Routines): Document
113 omp_pause_resource, omp_pause_resource_all and
114 omp_target_memcpy{,_rect}{,_async}.
116 2024-01-22 Tobias Burnus <tburnus@baylibre.com>
118 * testsuite/libgomp.c/declare-variant-4-fiji.c: Xfail as fiji
119 support is no longer enabled by default.
120 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
122 2024-01-20 John David Anglin <danglin@gcc.gnu.org>
124 * testsuite/libgomp.fortran/alloc-comp-3.f90: Increase
125 timeout by 2 on hppa*-*-*.
127 2024-01-20 John David Anglin <danglin@gcc.gnu.org>
129 * testsuite/libgomp.c/simd-math-1.c: Don't run on
132 2024-01-17 Jakub Jelinek <jakub@redhat.com>
135 * testsuite/libgomp.c/bitint-1.c: New test.
137 2024-01-11 Julian Brown <julian@codesourcery.com>
139 * libgomp.texi: C/C++ lvalues are supported now for map/to/from.
140 * testsuite/libgomp.c-c++-common/ind-base-4.c: New test.
141 * testsuite/libgomp.c-c++-common/unary-ptr-1.c: New test.
143 2024-01-10 Jakub Jelinek <jakub@redhat.com>
146 * configure.ac (FLOCK): Use $libgomp_abs_srcdir/testsuite/flock
147 instead of \$(abs_top_srcdir)/testsuite/flock.
148 * configure: Regenerated.
150 2024-01-09 Julian Brown <julian@codesourcery.com>
152 * testsuite/libgomp.c++/baseptrs-4.C: Remove commented-out cases that
154 * testsuite/libgomp.c++/baseptrs-6.C: New test.
155 * testsuite/libgomp.c++/ind-base-1.C: New test.
156 * testsuite/libgomp.c++/ind-base-2.C: New test.
157 * testsuite/libgomp.c++/lvalue-tofrom-1.C: New test.
158 * testsuite/libgomp.c++/lvalue-tofrom-2.C: New test.
159 * testsuite/libgomp.c++/map-comma-1.C: New test.
160 * testsuite/libgomp.c++/map-rvalue-ref-1.C: New test.
161 * testsuite/libgomp.c++/struct-ref-1.C: New test.
162 * testsuite/libgomp.c-c++-common/array-field-1.c: New test.
163 * testsuite/libgomp.c-c++-common/array-of-struct-1.c: New test.
164 * testsuite/libgomp.c-c++-common/array-of-struct-2.c: New test.
166 2024-01-09 Jakub Jelinek <jakub@redhat.com>
169 * configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
170 rather than $srcdir/testsuite/flock.
171 * configure: Regenerated.
173 2024-01-08 Thomas Schwinge <thomas@codesourcery.com>
175 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
176 'EF_AMDGPU_MACH_AMDGCN_GFX1100'.
178 2024-01-08 Julian Brown <julian@codesourcery.com>
180 * plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
181 hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
182 hsa_amd_memory_async_copy_rect_fn function pointers.
183 (init_hsa_runtime_functions): Add above functions, with
185 (GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
187 2024-01-08 Tobias Burnus <tobias@codesourcery.com>
189 * plugin/plugin-gcn.c (gcn_gfx1100_s): New const string.
190 (gcn_isa_name_len): Fix length.
191 (isa_hsa_name, isa_code, max_isa_vgprs): Handle gfx1100.
193 2024-01-06 Tobias Burnus <tobias@codesourcery.com>
195 * libgomp.texi (OpenMP Technical Report 12): Fix a typo.
196 (Device Memory Routines): Fix OpenMP 5.1 spec refs; add
197 omp_target_is_accessible.
198 (Environment Display Routine): Uncomment and add
199 omp_display_env description.
200 (OMP_DISPLAY_ENV): Update wording, add 'see also'.
202 2024-01-06 Mark Wielaard <mark@klomp.org>
204 * configure: Regenerate.
206 2024-01-03 Jakub Jelinek <jakub@redhat.com>
208 * libgomp.texi: Bump @copying's copyright year.
210 2023-12-21 Julian Brown <julian@codesourcery.com>
212 * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
214 2023-12-20 Julian Brown <julian@codesourcery.com>
216 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
217 avoid out-of-bounds array checks in CUDA runtime.
218 (GOMP_OFFLOAD_memcpy3d): Likewise.
219 * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
221 2023-12-18 Jakub Jelinek <jakub@redhat.com>
223 * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
224 drop because of that unneeded target selector from other directives
225 and remove the aarch64 specific ones.
227 2023-12-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
229 * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
230 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
232 2023-12-15 Thomas Schwinge <thomas@codesourcery.com>
234 * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
235 'dg-output's to 'target offload_device_nonshared_as'.
237 2023-12-15 Julian Brown <julian@codesourcery.com>
239 * oacc-mem.c (find_group_last, goacc_enter_data_internal,
240 goacc_exit_data_internal, GOACC_enter_exit_data): Add
241 GOMP_MAP_STRUCT_UNORD support.
242 * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
243 Detect incorrect use of variable indexing of arrays of structs.
244 (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
245 GOMP_MAP_STRUCT_UNORD support.
246 * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
247 * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
248 * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
249 * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
251 2023-12-13 Julian Brown <julian@codesourcery.com>
253 * testsuite/libgomp.fortran/map-subarray.f90: New test.
254 * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
255 * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
256 * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
257 * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
258 * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
259 * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
260 * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
261 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
262 descriptor-mapping changes. Remove XFAIL.
264 2023-12-13 Julian Brown <julian@codesourcery.com>
266 * target.c (gomp_map_pointer): Modify zero-length array section
268 (gomp_attach_pointer): Likewise.
269 (gomp_map_fields_existing): Use gomp_map_0len_lookup.
270 (gomp_attach_pointer): Allow attaching null pointers (or Fortran
271 "unassociated" pointers).
272 (gomp_map_vars_internal): Handle zero-sized struct members. Add
273 diagnostic for unmapped struct pointer members.
274 * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
275 * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
276 * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
277 * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
278 * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
279 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
281 * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
282 * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
283 * testsuite/libgomp.c++/class-array-1.C: New test.
284 * testsuite/libgomp.c++/baseptrs-3.C: New test.
285 * testsuite/libgomp.c++/baseptrs-4.C: New test.
286 * testsuite/libgomp.c++/baseptrs-5.C: New test.
287 * testsuite/libgomp.c++/baseptrs-8.C: New test.
288 * testsuite/libgomp.c++/baseptrs-9.C: New test.
289 * testsuite/libgomp.c++/ref-mapping-1.C: New test.
290 * testsuite/libgomp.c++/target-48.C: New test.
291 * testsuite/libgomp.c++/target-49.C: New test.
292 * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
293 * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
295 * testsuite/libgomp.c++/target-this-3.C: Likewise.
296 * testsuite/libgomp.c++/target-this-4.C: Likewise.
297 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
298 * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
300 2023-12-13 Thomas Schwinge <thomas@codesourcery.com>
302 * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
303 vs. '%ld' format string mismatch.
305 2023-12-13 Andrew Stubbs <ams@codesourcery.com>
306 Thomas Schwinge <thomas@codesourcery.com>
308 * allocator.c (MEMSPACE_ALLOC): Add PIN.
309 (MEMSPACE_CALLOC): Add PIN.
310 (MEMSPACE_REALLOC): Add PIN.
311 (MEMSPACE_FREE): Add PIN.
312 (MEMSPACE_VALIDATE): Add PIN.
313 (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
314 (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
315 (omp_aligned_calloc): Likewise.
316 (omp_realloc): Likewise.
317 (omp_free): Likewise.
318 * config/linux/allocator.c: New file.
319 * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
320 (MEMSPACE_CALLOC): Add PIN.
321 (MEMSPACE_REALLOC): Add PIN.
322 (MEMSPACE_FREE): Add PIN.
323 (MEMSPACE_VALIDATE): Add PIN.
324 * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
325 (MEMSPACE_CALLOC): Add PIN.
326 (MEMSPACE_REALLOC): Add PIN.
327 (MEMSPACE_FREE): Add PIN.
328 * libgomp.texi: Switch pinned trait to supported.
329 (MEMSPACE_VALIDATE): Add PIN.
330 * testsuite/libgomp.c/alloc-pinned-1.c: New test.
331 * testsuite/libgomp.c/alloc-pinned-2.c: New test.
332 * testsuite/libgomp.c/alloc-pinned-3.c: New test.
333 * testsuite/libgomp.c/alloc-pinned-4.c: New test.
335 2023-12-11 Lipeng Zhu <lipeng.zhu@intel.com>
337 * testsuite/libgomp.fortran/rwlock_1.f90: New file.
338 * testsuite/libgomp.fortran/rwlock_2.f90: New file.
339 * testsuite/libgomp.fortran/rwlock_3.f90: New file.
341 2023-12-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
343 * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
344 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
346 2023-12-11 Tobias Burnus <tobias@codesourcery.com>
348 * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
350 2023-12-08 Tobias Burnus <tobias@codesourcery.com>
352 * allocator.c (struct fort_alloc_splay_tree_key_s,
353 fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
354 * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
355 * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
356 GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
357 (GOMP_5.1.1): ... here.
358 * libgomp.texi (Impl. Status, Memory management): Update for
359 allocators/allocate directives.
360 * splay-tree.c: Handle splay_tree_static define to declare all
362 (splay_tree_lookup_node): New.
363 * splay-tree.h: Handle splay_tree_decl_only define.
364 (splay_tree_lookup_node): New prototype.
365 * target.c: Define splay_tree_static for 'reverse'.
366 * testsuite/libgomp.fortran/allocators-1.f90: New test.
367 * testsuite/libgomp.fortran/allocators-2.f90: New test.
368 * testsuite/libgomp.fortran/allocators-3.f90: New test.
369 * testsuite/libgomp.fortran/allocators-4.f90: New test.
370 * testsuite/libgomp.fortran/allocators-5.f90: New test.
372 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
374 * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
375 (TEAM_ARENA_FREE): Likewise.
376 (TEAM_ARENA_END): Likewise.
377 (GCN_LOWLAT_HEAP): New.
378 * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
379 (__gcn_lowlat_init): New prototype.
380 (gomp_gcn_enter_kernel): Initialize the low-latency heap.
381 * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
382 (TEAM_ARENA_FREE): Likewise.
383 (TEAM_ARENA_END): Likewise.
384 * plugin/plugin-gcn.c (lowlat_size): New variable.
385 (print_kernel_dispatch): Label the group_segment_size purpose.
386 (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
387 (create_kernel_dispatch): Pass low-latency head allocation to kernel.
388 (run_kernel): Use shadow; don't assume values.
389 * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
390 * config/gcn/allocator.c: New file.
391 * libgomp.texi: Document low-latency implementation details.
393 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
395 * allocator.c (MEMSPACE_VALIDATE): New macro.
396 (omp_init_allocator): Use MEMSPACE_VALIDATE.
397 (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
398 (omp_aligned_calloc): Likewise.
399 (omp_realloc): Likewise.
400 * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
401 (MEMSPACE_VALIDATE): New macro.
402 (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
403 * libgomp.texi: Document low-latency implementation details.
404 * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
405 * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
406 * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
407 * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
408 * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
409 * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
410 * testsuite/libgomp.c/omp_alloc-traits.c: New test.
412 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
413 Kwok Cheung Yeung <kcy@codesourcery.com>
414 Thomas Schwinge <thomas@codesourcery.com>
416 * allocator.c (MEMSPACE_ALLOC): New macro.
417 (MEMSPACE_CALLOC): New macro.
418 (MEMSPACE_REALLOC): New macro.
419 (MEMSPACE_FREE): New macro.
420 (predefined_alloc_mapping): New array. Add _Static_assert to match.
421 (ARRAY_SIZE): New macro.
422 (omp_aligned_alloc): Use MEMSPACE_ALLOC.
423 Implement fall-backs for predefined allocators. Simplify existing
425 (omp_free): Use MEMSPACE_FREE.
426 (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
427 predefined allocators. Simplify existing fall-backs.
428 (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
429 Implement fall-backs for predefined allocators. Simplify existing
431 * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
432 (__nvptx_lowlat_init): New prototype.
433 (gomp_nvptx_main): Call __nvptx_lowlat_init.
434 * libgomp.texi: Update memory space table.
435 * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
436 (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
437 (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
438 * basic-allocator.c: New file.
439 * config/nvptx/allocator.c: New file.
440 * testsuite/libgomp.c/omp_alloc-1.c: New test.
441 * testsuite/libgomp.c/omp_alloc-2.c: New test.
442 * testsuite/libgomp.c/omp_alloc-3.c: New test.
443 * testsuite/libgomp.c/omp_alloc-4.c: New test.
444 * testsuite/libgomp.c/omp_alloc-5.c: New test.
445 * testsuite/libgomp.c/omp_alloc-6.c: New test.
447 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
449 * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
450 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
451 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
452 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
453 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
454 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
455 * testsuite/libgomp.c/declare-variant-4.h: Likewise.
456 * testsuite/libgomp.c/declare-variant-4.c: New.
458 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
460 * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
462 * testsuite/libgomp.c/declare-variant-3.c: New.
463 * testsuite/libgomp.c/declare-variant-3.h: Extend.
465 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
467 * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
468 'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
469 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
470 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
471 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
472 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
473 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
474 * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
475 'scan-offload-tree-dump' to
476 'only_for_offload_target amdgcn-amdhsa'.
477 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
478 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
479 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
480 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
481 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
483 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
485 * testsuite/libgomp.c/declare-variant-3-sm30.c:
486 'dg-additional-options -foffload=nvptx-none'.
487 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
488 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
489 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
490 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
491 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
493 2023-11-29 Thomas Schwinge <thomas@codesourcery.com>
495 * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
496 'scan-offload-ipa-dump's to
497 'only_for_offload_target amdgcn-amdhsa'.
498 * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
499 * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
501 2023-11-24 Tobias Burnus <tobias@codesourcery.com>
503 * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
506 2023-11-22 Thomas Schwinge <thomas@codesourcery.com>
508 * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
509 (f75, f80, f): Add '__attribute__ ((noipa))'.
510 * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
511 (gfx908, gfx90a, f): Likewise.
513 2023-11-15 Andrew Stubbs <ams@codesourcery.com>
514 Andrew Jenner <andrew@codesourcery.com>
516 * plugin/plugin-gcn.c (max_isa_vgprs): New.
517 (run_kernel): CDNA2 devices have more VGPRs.
519 2023-11-10 Tobias Burnus <tobias@codesourcery.com>
521 * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
522 renamed section from TR11.
524 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
526 * config/linux/target-indirect.c: Move to...
527 * target-indirect.c: ...here.
529 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
531 * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
532 * Makefile.in: Regenerate.
533 * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
534 (GOMP_OFFLOAD_load_image): Add extra argument.
535 * libgomp.h (struct indirect_splay_tree_key_s): New.
536 (indirect_splay_tree_node, indirect_splay_tree,
537 indirect_splay_tree_key): New.
538 (indirect_splay_compare): New.
539 * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
540 * libgomp.texi (OpenMP 5.1): Update documentation on indirect
541 calls in target region and on indirect clause.
542 (Other new OpenMP 5.2 features): Add entry for virtual function calls.
543 * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
544 * oacc-host.c (host_load_image): Add extra argument.
545 * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
546 enough, read host indirect functions table and pass to
548 * config/accel/target-indirect.c: New.
549 * config/linux/target-indirect.c: New.
550 * config/gcn/team.c (build_indirect_map): Add prototype.
551 (gomp_gcn_enter_kernel): Initialize support for indirect
552 function calls on GCN target.
553 * config/nvptx/team.c (build_indirect_map): Add prototype.
554 (gomp_nvptx_main): Initialize support for indirect function
555 calls on NVPTX target.
556 * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
557 indirect functions count.
558 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
559 is high enough, build address translation table and copy it to target
561 * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
563 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
564 is high enough, Build address translation table and copy it to target
566 * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
567 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
568 * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
570 2023-11-05 Jakub Jelinek <jakub@redhat.com>
572 * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
575 2023-10-31 Thomas Schwinge <thomas@codesourcery.com>
577 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
578 'acc_map_data' variant.
580 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
582 * oacc-parallel.c (GOACC_data_start): Handle
583 'GOACC_FLAG_LOCAL_DEVICE'.
584 (GOACC_parallel_keyed): Simplify accordingly.
585 * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
587 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
589 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
590 * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
591 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
592 * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
593 * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
595 2023-10-25 Chung-Lin Tang <cltang@codesourcery.com>
597 * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
598 GOACC_FLAG_LOCAL_DEVICE case.
599 * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
601 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
603 * Makefile.am: Handle Darwin rpaths.
604 * Makefile.in: Regenerate.
605 * configure: Regenerate.
606 * configure.ac: Handle Darwin rpaths
608 2023-10-20 Andrew Stubbs <ams@codesourcery.com>
610 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
611 (isa_hsa_name): Recognise gfx1030.
612 (isa_code): Likewise.
613 * team.c (defined): Remove s_endpgm.
615 2023-10-20 Tobias Burnus <tobias@codesourcery.com>
617 * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
620 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
622 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
623 improve wording especially for Fortran; mention -fopenmp-simd.
624 (Enabling OpenACC): Minor cleanup; remove conditional compilation
627 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
629 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
630 Actually document what the function does.
631 (GCC_ACC_NOTIFY): Remove unused env var.
633 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
635 * libgomp.texi: Replace most future tense by present tense.
637 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
639 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
640 dg-additional-options "-fdump-tree-gimple"; fix scan.
642 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
644 * libgomp.texi: Fix some typos.
645 (Memory Management Routines): Document remaining 5.x routines.
646 (Memory allocation): Make clear when the section applies.
648 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
650 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
651 supports the allocate directive for stack variables.
652 * testsuite/libgomp.fortran/allocate-5.f90: New test.
653 * testsuite/libgomp.fortran/allocate-6.f90: New test.
654 * testsuite/libgomp.fortran/allocate-7.f90: New test.
655 * testsuite/libgomp.fortran/allocate-8.f90: New test.
657 2023-10-12 Tobias Burnus <tobias@codesourcery.com>
659 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
661 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
662 clarify MANDATORY behavior.
664 2023-10-12 Zhang, Jun <jun.zhang@intel.com>
666 * env.c (initialize_env): Use do_adjust_default_spincount.
667 * config/linux/x86/spincount.h: New file.
669 2023-10-08 Tobias Burnus <tobias@codesourcery.com>
671 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
673 2023-10-06 Tobias Burnus <tobias@codesourcery.com>
675 * libgomp.texi (Device Memory Routines): New.
677 2023-10-04 Tobias Burnus <tobias@codesourcery.com>
679 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
680 and that other target archs have no 'arch'/'isa' traits implemented.
682 2023-09-20 Tobias Burnus <tobias@codesourcery.com>
684 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
685 implemented for C only.
686 * testsuite/libgomp.c/allocate-4.c: New test.
687 * testsuite/libgomp.c/allocate-5.c: New test.
688 * testsuite/libgomp.c/allocate-6.c: New test.
690 2023-09-20 Jakub Jelinek <jakub@redhat.com>
693 * libgomp.texi: Mark decl attribute was added to the C++ attribute
694 syntax as implemented.
696 2023-09-19 Jakub Jelinek <jakub@redhat.com>
699 * env.c (initialize_env): Don't dereference environ if it is NULL.
702 2023-09-18 Richard Biener <rguenther@suse.de>
704 PR tree-optimization/111294
705 * team.c (gomp_team_start): Assert alloca size to avoid false
706 positive alloc-size diagnostic.
708 2023-09-12 Thomas Schwinge <thomas@codesourcery.com>
709 Chung-Lin Tang <cltang@codesourcery.com>
713 * configure.ac: Revert earlier changes, instead
714 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
715 * Makefile.in: Regenerate.
716 * configure: Likewise.
717 * testsuite/Makefile.in: Likewise.
718 * testsuite/lib/libgomp.exp (libgomp_init): Remove
719 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
720 If '--with-build-sysroot=[...]' was specified, use it for
722 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
723 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
724 (SYSROOT_CFLAGS_FOR_TARGET): Set.
725 * testsuite/libgomp.c++/c++.exp (lang_source_re)
726 (lang_include_flags): Set for build-tree testing.
727 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
728 (lang_include_flags): Likewise.
730 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
732 * libgomp.texi (Memory Management Routines): New; add documentation for
733 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
734 omp_get_default_allocator.
735 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
737 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
739 * target.c (gomp_unload_device): Remove tailing whitespace.
741 2023-09-04 Tobias Burnus <tobias@codesourcery.com>
742 Thomas Schwinge <thomas@codesourcery.com>
744 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
746 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
748 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
750 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
752 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
753 * testsuite/libgomp.fortran/imperfect1.f90: New.
754 * testsuite/libgomp.fortran/imperfect2.f90: New.
755 * testsuite/libgomp.fortran/imperfect3.f90: New.
756 * testsuite/libgomp.fortran/imperfect4.f90: New.
757 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
758 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
759 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
760 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
762 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
764 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
765 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
766 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
767 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
768 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
769 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
770 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
771 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
772 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
773 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
775 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
777 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
778 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
779 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
780 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
781 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
782 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
783 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
784 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
785 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
786 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
787 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
788 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
789 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
791 2023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
793 * testsuite/lib/libgomp.exp: Add effective target.
794 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
797 2023-08-22 Tobias Burnus <tobias@codesourcery.com>
799 * libgomp.texi (OpenMP 5.2 status): Add depobj with
800 destroy-var argument as 'N'. Mark defaultmap with
801 'all' category as 'Y'.
803 2023-08-19 Tobias Burnus <tobias@codesourcery.com>
806 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
808 2023-08-17 Tobias Burnus <tobias@codesourcery.com>
811 * allocator.c (gomp_init_libnuma): Call numa_available; if
812 not available or not returning 0, disable libnuma usage.
814 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
816 * configure: Regenerate.
818 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
820 * configure: Regenerate.
822 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
824 * configure: Regenerate.
826 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
828 * configure: Regenerate.
830 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
832 * configure: Regenerate.
834 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
836 * configure: Regenerate.
838 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
840 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
841 GOMP_OFFLOAD_CAP_SHARED_MEM.
842 (omp_target_memcpy_rect_copy): Likewise for lock condition.
843 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
845 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
846 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
847 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
849 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
851 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
852 GOMP_OFFLOAD_memcpy3d): New prototypes.
853 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
855 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
856 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
857 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
858 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
859 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
860 GOMP_OFFLOAD_memcpy3d): New.
861 * target.c (omp_target_memcpy_rect_worker):
862 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
863 Permit all device-to-device copyies; invoke new plugins for
864 2D and 3D copying when available.
865 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
866 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
867 * testsuite/libgomp.fortran/target-12.f90: Likewise.
868 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
870 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
872 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
873 (Tasking Routines): Document omp_in_explicit_task.
874 (Implementation-defined ICV Initialization): Use @ref not @code.
876 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
878 * libgomp.texi (OpenMP Runtime Library Routines):
879 Split long list by adding sections and moving routines there.
880 (OMP_ALLOCATORS): Fix typo.
882 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
885 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
886 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
888 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
889 test file; tests are in non-rectangular-loop-1.f90.
890 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
891 testcase to use a non-constant step to retain the 'sorry' test.
892 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
894 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
895 Chung-Lin Tang <cltang@codesourcery.com>
897 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
898 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
900 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
902 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
903 the traits. Add crossref to 'Memory allocation'.
904 (Memory allocation): Refer to OMP_ALLOCATOR for the available
905 traits and allocators/mem spaces; document the default value
906 for the pool_size trait.
908 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
910 * allocator.c (omp_init_allocator): Check whether symbol from
911 dlopened libnuma is available before using libnuma for
914 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
916 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
917 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
918 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
920 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
922 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
923 'Memory allocation' section which contains the full status.
924 (TR11): Remove differently worded duplicated entry.
926 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
928 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
929 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
930 add GOMP_MEMKIND_LIBNUMA.
931 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
932 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
933 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
934 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
936 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
937 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
938 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
939 updated for libnuma usage.
940 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
941 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
943 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
945 * allocator.c (omp_init_allocator): Use malloc for
946 omp_high_bw_mem_space when the memkind lib is unavailable
947 instead of returning omp_null_allocator.
948 * libgomp.texi (OpenMP 5.0): Fix typo.
949 (Memory allocation with libmemkind): Document implementation
952 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
954 * libgomp.texi: Use @var for ICV vars.
955 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
956 document which ICV is set and which scope the ICV has; extend/cleanup
958 (Implementation-defined ICV Initialization): New.
959 (nvptx): Document the implementation-defined used per-warp stack size.
961 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
963 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
966 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
968 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
969 as expected dg-output.
971 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
974 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
975 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
976 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
977 * testsuite/libgomp.c/target-19.c: Update expected value.
978 * testsuite/libgomp.c++/target-18.C: Likewise.
979 * testsuite/libgomp.c++/target-19.C: Likewise.
980 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
981 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
982 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
984 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
986 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
987 gomp_init_targets_once was called before using default-device-var.
988 * testsuite/libgomp.c/target-55.c: New test.
989 * testsuite/libgomp.c/target-55a.c: New test.
991 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
993 * env.c (gomp_def_allocator_envvar): New var.
994 (parse_allocator): Handle OpenMP 5.1 syntax.
996 (omp_display_env): Output gomp_def_allocator_envvar
997 for an allocator with traits.
998 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
999 OMP_DISPLAY_AFFINITY): New.
1000 * testsuite/libgomp.c/allocator-1.c: New test.
1001 * testsuite/libgomp.c/allocator-2.c: New test.
1002 * testsuite/libgomp.c/allocator-3.c: New test.
1003 * testsuite/libgomp.c/allocator-4.c: New test.
1004 * testsuite/libgomp.c/allocator-5.c: New test.
1005 * testsuite/libgomp.c/allocator-6.c: New test.
1007 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1009 * target.c (resolve_device): Align a
1010 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
1011 * testsuite/libgomp.c/target-51.c: Adjust.
1013 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1015 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
1017 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
1019 * testsuite/libgomp.c/simd-math-1.c: Remove
1020 '-foffload-options=-lm'.
1021 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
1023 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1026 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1028 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
1029 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1032 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1034 * testsuite/libgomp.c/target-51.c: Fix typo.
1036 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
1038 * env.c (gomp_default_icv_values): Init default_device_var to
1039 an nonconforming value - INT_MIN.
1040 (initialize_env): After env-var parsing, set default_device_var to
1041 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
1042 (omp_display_env): If default_device_var is INT_MIN, call
1043 gomp_init_targets_once.
1044 * icv-device.c (omp_get_default_device): Likewise.
1045 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
1046 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
1047 * target.c (resolve_device): Improve error message device-num < 0
1048 with 'mandatory' and no no-host devices available.
1049 (gomp_target_init): Set default-device-var if INT_MIN.
1050 * testsuite/libgomp.c/target-48.c: New test.
1051 * testsuite/libgomp.c/target-49.c: New test.
1052 * testsuite/libgomp.c/target-50.c: New test.
1053 * testsuite/libgomp.c/target-50a.c: New test.
1054 * testsuite/libgomp.c/target-51.c: New test.
1055 * testsuite/libgomp.c/target-52.c: New test.
1056 * testsuite/libgomp.c/target-53.c: New test.
1057 * testsuite/libgomp.c/target-54.c: New test.
1059 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
1062 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
1063 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
1065 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
1067 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
1068 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
1069 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
1071 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
1072 changed error message.
1073 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1074 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
1075 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1076 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
1077 extend testcase to check that data is copied when needed.
1078 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1079 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1081 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
1082 Tobias Burnus <tobias@codesourcery.com>
1084 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
1085 also for non-offload_device targets; check that it runs
1086 successfully for those and for all until a checkpoint for all
1087 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
1088 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1089 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1090 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1091 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
1092 add missing vars to map clause.
1094 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
1096 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
1097 unified_address requirement as supported.
1098 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
1099 'unified_address' from the not-supported requirements.
1101 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
1102 Tobias Burnus <tobias@codesourcery.com>
1104 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
1105 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
1106 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
1108 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
1109 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
1110 Emit runtime error if memory region not present.
1111 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
1112 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
1113 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
1114 * testsuite/libgomp.fortran/target-present-1.f90: New test.
1115 * testsuite/libgomp.fortran/target-present-2.f90: New test.
1116 * testsuite/libgomp.fortran/target-present-3.f90: New test.
1118 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
1121 * testsuite/lib/libgomp.exp: 'flock' through stdout.
1122 * testsuite/flock: New.
1123 * configure.ac (FLOCK): Point to that if no 'flock' available, but
1125 * configure: Regenerate.
1127 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
1129 * configure.ac (PERL): Remove.
1130 * configure: Regenerate.
1131 * Makefile.in: Likewise.
1132 * testsuite/Makefile.in: Likewise.
1134 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
1136 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
1138 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
1140 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
1142 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
1145 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
1146 * config/nvptx/target.c (GOMP_teams4): Likewise.
1147 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
1148 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
1149 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
1150 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
1152 2023-05-19 Jakub Jelinek <jakub@redhat.com>
1155 * configure.ac (link_gomp): Include also $DL_LIBS.
1156 * configure: Regenerated.
1158 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
1160 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
1162 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
1163 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
1164 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
1165 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
1167 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1170 * configure.ac: Look for 'flock'.
1171 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
1172 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
1173 * testsuite/lib/libgomp.exp: ... but here, instead.
1174 (libgomp_load): Override for parallel testing.
1175 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
1176 * configure: Regenerate.
1177 * Makefile.in: Regenerate.
1178 * testsuite/Makefile.in: Regenerate.
1180 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1181 Thomas Schwinge <thomas@codesourcery.com>
1184 * testsuite/Makefile.am (PWD_COMMAND): New variable.
1185 (%/site.exp): New target.
1186 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
1187 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
1188 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
1190 (check_DEJAGNU_libgomp_targets): New variables.
1191 ($(check_DEJAGNU_libgomp_targets)): New target.
1192 ($(check_DEJAGNU_libgomp_targets)): New dependency.
1193 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
1194 * testsuite/Makefile.in: Regenerate.
1195 * testsuite/lib/libgomp.exp: For parallel testing,
1196 'load_file ../libgomp-test-support.exp'.
1198 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1201 * configure.ac: 'AC_SUBST(CXX)'.
1202 * configure: Regenerate.
1203 * Makefile.in: Likewise.
1204 * testsuite/Makefile.in: Likewise.
1205 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
1206 (GFORTRAN_UNDER_TEST): Set.
1207 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
1208 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
1209 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1210 * testsuite/libgomp.fortran/fortran.exp: Use
1211 'GFORTRAN_UNDER_TEST'.
1212 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1214 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1217 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
1219 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
1220 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1221 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1222 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1224 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
1225 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
1226 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
1229 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
1232 * testsuite/libgomp.c++/target-map-class-1.C: New test.
1233 * testsuite/libgomp.c++/target-map-class-2.C: New test.
1235 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1237 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
1238 'lang_library_path' into a list of 'lang_library_paths'.
1239 * testsuite/libgomp.c++/c++.exp: Adjust.
1240 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1241 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
1243 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1245 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1247 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
1248 at 'lang_test_file_found'.
1249 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
1250 'return' early if not able to test. Simplify 'ld_library_path' setup.
1251 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1252 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1253 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1255 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1257 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
1259 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1260 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1261 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1263 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1265 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
1266 * testsuite/libgomp.c/c.exp: Likewise.
1267 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1268 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1269 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1270 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1271 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1273 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1275 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
1276 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1277 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1278 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1279 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
1281 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1282 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1283 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
1284 'lang_test_file_found' instead of 'lang_test_file'.
1286 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1288 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
1290 * testsuite/libgomp.c++/c++.exp: Likewise.
1291 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1293 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1295 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
1296 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
1298 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1300 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
1301 of 'libstdcxx_includes'.
1302 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1304 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1306 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
1307 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
1308 * libgomp.h (gomp_target_rev): Adjust.
1309 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
1310 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
1311 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
1312 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
1313 (rev_off_host_to_dev_cpy): Remove.
1314 (GOMP_OFFLOAD_run): Adjust.
1316 2023-05-04 Julian Brown <julian@codesourcery.com>
1319 * testsuite/libgomp.fortran/pr109622.f90: Move test...
1320 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
1321 vector length warning.
1322 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
1323 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
1324 missing copyin/copyout variable. Ignore vector length warnings.
1325 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
1326 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
1327 vector length warnings.
1328 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
1330 2023-04-28 Julian Brown <julian@codesourcery.com>
1333 * testsuite/libgomp.fortran/pr109622.f90: New test.
1334 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
1335 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
1337 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
1339 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
1340 * testsuite/libgomp.c/scan-23.c: New test.
1341 * testsuite/libgomp.fortran/scan-2.f90: New test.
1343 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1345 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
1346 weak_undefined options.
1348 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
1350 * libgomp.texi (Offload-Target Specifics): Grammar fix.
1352 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
1355 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
1358 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1361 * target.c (gomp_map_vars_internal): Allow for
1362 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
1363 * oacc-parallel.c (GOACC_parallel_keyed): Pass
1364 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
1365 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
1366 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1368 (gomp_offload_free): Remove.
1369 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1370 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1371 (cuda_free_argmem): Remove.
1372 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1375 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1377 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1378 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1381 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1383 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1384 'GOMP_MAP_IF_PRESENT'.
1385 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1386 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1387 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1388 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1389 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1391 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1393 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1395 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1398 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1400 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1401 another aspect of OpenACC 'async' semantics.
1403 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1405 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1407 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1408 Verify 'acc_ev_alloc', 'acc_ev_free'.
1410 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
1413 * env.c (wait_policy): Initialize to -1.
1414 (initialize_icvs): Initialize icvs->wait_policy to -1.
1415 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1417 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
1419 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1421 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1422 Paul-Antoine Arras <pa@codesourcery.com>
1424 * testsuite/libgomp.c/simd-math-1.c: New testcase.
1426 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
1428 PR middle-end/108546
1429 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1430 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1432 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
1434 * testsuite/libgomp.fortran/alloc-10.f90: Use
1435 '-Wno-complain-wrong-lang'.
1436 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1437 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1438 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1439 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1440 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1441 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1442 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1443 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1444 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1445 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1447 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1449 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1450 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1451 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1452 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1455 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1457 * libgomp.texi: Fix typos - theads -> threads.
1459 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1461 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1462 comment typo and improve its wording.
1464 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1466 * target.c (gomp_target_rev): Dereference ptr
1467 to get device address.
1468 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1469 for unallocated allocatable.
1471 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1473 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1475 (GOMP_target_enter_exit_data): If the next map item is
1476 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1477 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1479 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
1482 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1483 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1484 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1485 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1486 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1487 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1489 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
1491 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1492 offloading compilation.
1494 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1496 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1497 freeing not allocated memory.
1498 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1500 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1502 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1504 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1505 reverse-offload requirement.
1507 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
1509 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1510 (DEFAULT_TEAM_ARENA_SIZE): New define.
1511 (struct heap): Move to this file.
1512 (struct kernargs_abi): Likewise.
1513 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1515 * libgomp.h: Include libgomp-gcn.h.
1516 (TEAM_ARENA_SIZE): Remove.
1517 (team_malloc): Update the error message.
1518 * plugin/plugin-gcn.c (struct kernargs): Move common content to
1519 struct kernargs_abi.
1520 (struct agent_info): Rename team arenas to ephemeral memories.
1521 (struct team_arena_list): Rename ....
1522 (struct ephemeral_memories_list): to this.
1523 (struct heap): Delete.
1524 (team_arena_size): New variable.
1525 (stack_size): New variable.
1526 (print_kernel_dispatch): Update debug messages.
1527 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1528 Read GCN_STACK_SIZE.
1529 (get_team_arena): Rename ...
1530 (configure_ephemeral_memories): ... to this, and set up stacks.
1531 (release_team_arena): Rename ...
1532 (release_ephemeral_memories): ... to this.
1533 (destroy_team_arenas): Rename ...
1534 (destroy_ephemeral_memories): ... to this.
1535 (create_kernel_dispatch): Add num_threads parameter.
1536 Adjust for kernargs_abi refactor and ephemeral memories.
1537 (release_kernel_dispatch): Adjust for ephemeral memories.
1538 (run_kernel): Pass thread-count to create_kernel_dispatch.
1539 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1540 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1542 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
1544 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1546 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1548 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1549 usage, remove unused -fdump-tree-original.
1550 * testsuite/libgomp.fortran/allocate-4.f90: New.
1552 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1554 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1555 (GCN): Add item about 'omp requires'.
1556 (nvptx): Likewise; add item about reverse offload.
1558 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
1561 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1563 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
1565 * libgomp.texi (OpenMP 5.0): Set non-rectangular
1566 loop nest back to 'P' as Fortran support is incomplete.
1568 2023-01-19 Jakub Jelinek <jakub@redhat.com>
1570 PR middle-end/108459
1571 * testsuite/libgomp.c/pr108459.c: New test.
1573 2023-01-17 Martin Liska <mliska@suse.cz>
1575 * Makefile.in: Regenerate.
1576 * configure: Regenerate.
1578 2023-01-07 LIU Hao <lh_mouse@126.com>
1580 PR middle-end/108300
1581 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1584 2023-01-05 Jakub Jelinek <jakub@redhat.com>
1587 * testsuite/libgomp.c++/pr108286.C: New test.
1589 2023-01-02 Jakub Jelinek <jakub@redhat.com>
1591 * libgomp.texi: Bump @copying's copyright year.
1593 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
1596 * config/nvptx/bar.c (generation_to_barrier): Remove.
1597 (futex_wait,futex_wake,do_spin,do_wait): Remove.
1598 (GOMP_WAIT_H): Remove.
1599 (#include "../linux/bar.c"): Remove.
1600 (gomp_barrier_wait_end): New function.
1601 (gomp_barrier_wait): Likewise.
1602 (gomp_barrier_wait_last): Likewise.
1603 (gomp_team_barrier_wait_end): Likewise.
1604 (gomp_team_barrier_wait): Likewise.
1605 (gomp_team_barrier_wait_final): Likewise.
1606 (gomp_team_barrier_wait_cancel_end): Likewise.
1607 (gomp_team_barrier_wait_cancel): Likewise.
1608 (gomp_team_barrier_cancel): Likewise.
1609 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1610 (gomp_barrier_init): Remove init of waiters, lock fields.
1611 (gomp_team_barrier_wake): Remove prototype, add new static inline
1614 2022-12-21 Jakub Jelinek <jakub@redhat.com>
1617 * testsuite/libgomp.c++/pr108180.C: New test.
1619 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
1621 PR libfortran/108056
1622 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1623 accidentally added file.
1625 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
1627 PR libfortran/108056
1628 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1630 2022-12-14 Julian Brown <julian@codesourcery.com>
1632 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1635 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
1637 * libgomp.h (struct target_mem_desc): Predeclare; move
1638 below after 'reverse_splay_tree_node' and add rev_array
1640 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1641 (reverse_splay_tree_node, reverse_splay_tree,
1642 reverse_splay_tree_key): New typedef.
1643 (struct gomp_device_descr): Add mem_map_rev member.
1644 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1645 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1646 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1647 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1648 splay_tree_callback but returning int not void.
1649 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1650 taking splay_tree_callback_stop as argument.
1651 * splay-tree.c (splay_tree_foreach_internal_lazy,
1652 splay_tree_foreach_lazy): New; but early exit if callback returns
1654 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1655 (gomp_map_lookup_rev): New.
1656 (gomp_load_image_to_device): Handle reverse-offload function
1658 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1659 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1660 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1661 gomp_map_cdata_lookup): New auxiliary structs and functions for
1663 (gomp_target_rev): Implement reverse offloading and its mapping.
1664 (gomp_target_init): Init current_device.mem_map_rev.root.
1665 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1666 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1667 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1668 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1669 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1670 mapping of on-device allocated variables.
1672 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
1674 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1675 item about 'align'; mark clause as 'Y' and directive as 'N'.
1676 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1677 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1679 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1681 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1682 allow processing of device-specific values.
1683 (omp_set_teams_thread_limit): Likewise.
1685 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1686 (omp_set_teams_thread_limit): Likewise.
1688 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1690 (omp_set_teams_thread_limit): Likewise.
1691 * icv.c (omp_set_teams_thread_limit): Removed.
1692 (omp_get_teams_thread_limit): Likewise.
1694 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1695 to the limitation of the number of teams.
1696 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1697 the number of teams by twice the number of compute units.
1698 (parse_target_attributes): Limit the number of teams on gcn offload
1700 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1702 (gomp_load_image_to_device): Added a size check for the ICVs struct
1704 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1705 copy back the ICV values from device to host.
1706 (GOMP_target_ext): Update the number of teams and threads in the kernel
1707 args also considering device-specific values.
1708 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1709 of OMP_TEAMS_THREAD_LIMIT from the environment.
1710 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1711 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1712 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1713 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1714 * testsuite/libgomp.fortran/icv-5.f90: New test.
1715 * testsuite/libgomp.fortran/icv-6.f90: New test.
1717 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
1719 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1720 (TR11): Add missing '@tab N @tab'.
1722 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
1724 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1726 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1728 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1729 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1730 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1731 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1732 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1733 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1734 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1736 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
1738 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1740 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1742 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1743 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1744 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1745 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1747 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1749 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1750 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1751 as valid and the code having no reverse-offload code.
1752 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1754 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1756 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1757 and status for Technical Report (TR) 11.
1759 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
1761 * config/gcn/libgomp-gcn.h (struct output):
1762 Remove 'msg_u64' from the union, change
1763 value_u64[2] to value_u64[6].
1764 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1765 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1768 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
1770 * config/gcn/libgomp-gcn.h: New file; contains
1771 struct output, declared previously in plugin-gcn.c.
1772 * config/gcn/target.c: Include it.
1773 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1774 (GOMP_target_ext): Handle reverse offload.
1775 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1776 (struct kernargs): Replace struct def by the one
1777 from libgomp-gcn.h for output_data.
1778 (process_reverse_offload): New.
1779 (console_output): Call it.
1781 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
1782 Andrew Stubbs <ams@codesourcery.com>
1784 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1785 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1787 2022-11-14 Martin Liska <mliska@suse.cz>
1790 2022-11-14 Martin Liska <mliska@suse.cz>
1792 * doc/amd-radeon-gcn.rst: New file.
1793 * doc/conf.py: New file.
1794 * doc/copyright.rst: New file.
1795 * doc/cuda-streams-usage.rst: New file.
1796 * doc/enabling-openacc.rst: New file.
1797 * doc/enabling-openmp.rst: New file.
1798 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1799 * doc/first-invocation-openacc-library-api.rst: New file.
1800 * doc/funding.rst: New file.
1801 * doc/general-public-license-3.rst: New file.
1802 * doc/gnu-free-documentation-license.rst: New file.
1803 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1804 * doc/index.rst: New file.
1805 * doc/indices-and-tables.rst: New file.
1806 * doc/introduction.rst: New file.
1807 * doc/memory-allocation-with-libmemkind.rst: New file.
1808 * doc/nvptx.rst: New file.
1809 * doc/offload-target-specifics.rst: New file.
1810 * doc/openacc-environment-variables.rst: New file.
1811 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1812 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1813 * doc/openacc-environment-variables/accproflib.rst: New file.
1814 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1815 * doc/openacc-introduction.rst: New file.
1816 * doc/openacc-library-and-environment-variables.rst: New file.
1817 * doc/openacc-library-interoperability.rst: New file.
1818 * doc/openacc-profiling-interface.rst: New file.
1819 * doc/openacc-runtime-library-routines.rst: New file.
1820 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1821 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1822 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1823 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1824 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1825 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1826 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1827 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1828 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1829 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1830 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1831 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1832 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1833 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1834 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1835 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1836 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1837 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1838 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1839 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1840 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1841 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1842 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1843 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1844 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1845 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1846 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1847 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1848 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1849 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1850 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1851 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1852 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1853 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1854 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1855 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1856 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1857 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1858 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1859 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1860 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1861 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1862 * doc/openmp-context-selectors.rst: New file.
1863 * doc/openmp-environment-variables.rst: New file.
1864 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1865 * doc/openmp-environment-variables/gompdebug.rst: New file.
1866 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1867 * doc/openmp-environment-variables/gompspincount.rst: New file.
1868 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1869 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1870 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1871 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1872 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1873 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1874 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1875 * doc/openmp-environment-variables/ompnested.rst: New file.
1876 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1877 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1878 * doc/openmp-environment-variables/ompplaces.rst: New file.
1879 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1880 * doc/openmp-environment-variables/ompschedule.rst: New file.
1881 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1882 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1883 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1884 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1885 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1886 * doc/openmp-implementation-specifics.rst: New file.
1887 * doc/openmp-implementation-status.rst: New file.
1888 * doc/openmp-implementation-status/openmp-45.rst: New file.
1889 * doc/openmp-implementation-status/openmp-50.rst: New file.
1890 * doc/openmp-implementation-status/openmp-51.rst: New file.
1891 * doc/openmp-implementation-status/openmp-52.rst: New file.
1892 * doc/openmp-runtime-library-routines.rst: New file.
1893 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1894 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1895 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1896 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1897 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1898 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1899 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1900 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1901 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1902 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1903 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1904 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1905 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1906 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1907 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1908 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1909 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1910 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1911 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1912 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1913 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1914 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1915 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1916 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1917 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1918 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1919 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1920 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1921 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1922 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1923 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1924 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1925 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1926 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1927 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1928 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1929 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1930 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1931 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1932 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1933 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1934 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1935 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1936 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1937 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1938 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1939 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1940 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1941 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1942 * doc/reporting-bugs.rst: New file.
1943 * doc/the-libgomp-abi.rst: New file.
1944 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1945 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1946 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1947 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1949 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1950 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1951 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1952 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1953 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1954 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1955 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1956 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1957 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1958 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1959 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1961 2022-11-14 Martin Liska <mliska@suse.cz>
1964 2022-11-14 Martin Liska <mliska@suse.cz>
1966 * Makefile.in: Support Sphinx based documentation.
1968 2022-11-14 Martin Liska <mliska@suse.cz>
1971 2022-11-14 Martin Liska <mliska@suse.cz>
1973 * libgomp.texi: Removed.
1975 2022-11-14 Martin Liska <mliska@suse.cz>
1978 2022-11-14 Martin Liska <mliska@suse.cz>
1980 * Makefile.in: Support --with-sphinx-build.
1981 * configure.ac: Likewise..
1982 * configure: Regenerate.
1984 2022-11-14 Martin Liska <mliska@suse.cz>
1987 2022-11-09 Martin Liska <mliska@suse.cz>
1989 * Makefile.in: Build info pages conditionally.
1991 2022-11-14 Martin Liska <mliska@suse.cz>
1994 2022-11-14 Martin Liska <mliska@suse.cz>
1996 * doc/amd-radeon-gcn.rst:
1997 Add trailing newline.
1998 * doc/copyright.rst:
1999 Add trailing newline.
2000 * doc/cuda-streams-usage.rst:
2001 Add trailing newline.
2002 * doc/enabling-openacc.rst:
2003 Add trailing newline.
2004 * doc/enabling-openmp.rst:
2005 Add trailing newline.
2006 * doc/first-invocation-nvidia-cublas-library-api.rst:
2007 Add trailing newline.
2008 * doc/first-invocation-openacc-library-api.rst:
2009 Add trailing newline.
2011 Add trailing newline.
2012 * doc/general-public-license-3.rst:
2013 Add trailing newline.
2014 * doc/gnu-free-documentation-license.rst:
2015 Add trailing newline.
2016 * doc/implementation-status-and-implementation-defined-behavior.rst:
2017 Add trailing newline.
2019 Add trailing newline.
2020 * doc/indices-and-tables.rst:
2021 Add trailing newline.
2022 * doc/introduction.rst:
2023 Add trailing newline.
2024 * doc/memory-allocation-with-libmemkind.rst:
2025 Add trailing newline.
2027 Add trailing newline.
2028 * doc/offload-target-specifics.rst:
2029 Add trailing newline.
2030 * doc/openacc-environment-variables.rst:
2031 Add trailing newline.
2032 * doc/openacc-environment-variables/accdevicenum.rst:
2033 Add trailing newline.
2034 * doc/openacc-environment-variables/accdevicetype.rst:
2035 Add trailing newline.
2036 * doc/openacc-environment-variables/accproflib.rst:
2037 Add trailing newline.
2038 * doc/openacc-environment-variables/gccaccnotify.rst:
2039 Add trailing newline.
2040 * doc/openacc-introduction.rst:
2041 Add trailing newline.
2042 * doc/openacc-library-and-environment-variables.rst:
2043 Add trailing newline.
2044 * doc/openacc-library-interoperability.rst:
2045 Add trailing newline.
2046 * doc/openacc-profiling-interface.rst:
2047 Add trailing newline.
2048 * doc/openacc-runtime-library-routines.rst:
2049 Add trailing newline.
2050 * doc/openacc-runtime-library-routines/accasynctest.rst:
2051 Add trailing newline.
2052 * doc/openacc-runtime-library-routines/accasynctestall.rst:
2053 Add trailing newline.
2054 * doc/openacc-runtime-library-routines/accattach.rst:
2055 Add trailing newline.
2056 * doc/openacc-runtime-library-routines/acccopyin.rst:
2057 Add trailing newline.
2058 * doc/openacc-runtime-library-routines/acccopyout.rst:
2059 Add trailing newline.
2060 * doc/openacc-runtime-library-routines/acccreate.rst:
2061 Add trailing newline.
2062 * doc/openacc-runtime-library-routines/accdelete.rst:
2063 Add trailing newline.
2064 * doc/openacc-runtime-library-routines/accdetach.rst:
2065 Add trailing newline.
2066 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2067 Add trailing newline.
2068 * doc/openacc-runtime-library-routines/accfree.rst:
2069 Add trailing newline.
2070 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2071 Add trailing newline.
2072 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2073 Add trailing newline.
2074 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2075 Add trailing newline.
2076 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2077 Add trailing newline.
2078 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2079 Add trailing newline.
2080 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2081 Add trailing newline.
2082 * doc/openacc-runtime-library-routines/accgetproperty.rst:
2083 Add trailing newline.
2084 * doc/openacc-runtime-library-routines/acchostptr.rst:
2085 Add trailing newline.
2086 * doc/openacc-runtime-library-routines/accinit.rst:
2087 Add trailing newline.
2088 * doc/openacc-runtime-library-routines/accispresent.rst:
2089 Add trailing newline.
2090 * doc/openacc-runtime-library-routines/accmalloc.rst:
2091 Add trailing newline.
2092 * doc/openacc-runtime-library-routines/accmapdata.rst:
2093 Add trailing newline.
2094 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2095 Add trailing newline.
2096 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2097 Add trailing newline.
2098 * doc/openacc-runtime-library-routines/accondevice.rst:
2099 Add trailing newline.
2100 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2101 Add trailing newline.
2102 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2103 Add trailing newline.
2104 * doc/openacc-runtime-library-routines/accproflookup.rst:
2105 Add trailing newline.
2106 * doc/openacc-runtime-library-routines/accprofregister.rst:
2107 Add trailing newline.
2108 * doc/openacc-runtime-library-routines/accprofunregister.rst:
2109 Add trailing newline.
2110 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2111 Add trailing newline.
2112 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2113 Add trailing newline.
2114 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2115 Add trailing newline.
2116 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2117 Add trailing newline.
2118 * doc/openacc-runtime-library-routines/accshutdown.rst:
2119 Add trailing newline.
2120 * doc/openacc-runtime-library-routines/accunmapdata.rst:
2121 Add trailing newline.
2122 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2123 Add trailing newline.
2124 * doc/openacc-runtime-library-routines/accupdateself.rst:
2125 Add trailing newline.
2126 * doc/openacc-runtime-library-routines/accwait.rst:
2127 Add trailing newline.
2128 * doc/openacc-runtime-library-routines/accwaitall.rst:
2129 Add trailing newline.
2130 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2131 Add trailing newline.
2132 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2133 Add trailing newline.
2134 * doc/openmp-context-selectors.rst:
2135 Add trailing newline.
2136 * doc/openmp-environment-variables.rst:
2137 Add trailing newline.
2138 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2139 Add trailing newline.
2140 * doc/openmp-environment-variables/gompdebug.rst:
2141 Add trailing newline.
2142 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2143 Add trailing newline.
2144 * doc/openmp-environment-variables/gompspincount.rst:
2145 Add trailing newline.
2146 * doc/openmp-environment-variables/gompstacksize.rst:
2147 Add trailing newline.
2148 * doc/openmp-environment-variables/ompcancellation.rst:
2149 Add trailing newline.
2150 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2151 Add trailing newline.
2152 * doc/openmp-environment-variables/ompdisplayenv.rst:
2153 Add trailing newline.
2154 * doc/openmp-environment-variables/ompdynamic.rst:
2155 Add trailing newline.
2156 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2157 Add trailing newline.
2158 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2159 Add trailing newline.
2160 * doc/openmp-environment-variables/ompnested.rst:
2161 Add trailing newline.
2162 * doc/openmp-environment-variables/ompnumteams.rst:
2163 Add trailing newline.
2164 * doc/openmp-environment-variables/ompnumthreads.rst:
2165 Add trailing newline.
2166 * doc/openmp-environment-variables/ompplaces.rst:
2167 Add trailing newline.
2168 * doc/openmp-environment-variables/ompprocbind.rst:
2169 Add trailing newline.
2170 * doc/openmp-environment-variables/ompschedule.rst:
2171 Add trailing newline.
2172 * doc/openmp-environment-variables/ompstacksize.rst:
2173 Add trailing newline.
2174 * doc/openmp-environment-variables/omptargetoffload.rst:
2175 Add trailing newline.
2176 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2177 Add trailing newline.
2178 * doc/openmp-environment-variables/ompthreadlimit.rst:
2179 Add trailing newline.
2180 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2181 Add trailing newline.
2182 * doc/openmp-implementation-specifics.rst:
2183 Add trailing newline.
2184 * doc/openmp-implementation-status.rst:
2185 Add trailing newline.
2186 * doc/openmp-implementation-status/openmp-45.rst:
2187 Add trailing newline.
2188 * doc/openmp-implementation-status/openmp-50.rst:
2189 Add trailing newline.
2190 * doc/openmp-implementation-status/openmp-51.rst:
2191 Add trailing newline.
2192 * doc/openmp-implementation-status/openmp-52.rst:
2193 Add trailing newline.
2194 * doc/openmp-runtime-library-routines.rst:
2195 Add trailing newline.
2196 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2197 Add trailing newline.
2198 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2199 Add trailing newline.
2200 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2201 Add trailing newline.
2202 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2203 Add trailing newline.
2204 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2205 Add trailing newline.
2206 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2207 Add trailing newline.
2208 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2209 Add trailing newline.
2210 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2211 Add trailing newline.
2212 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2213 Add trailing newline.
2214 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2215 Add trailing newline.
2216 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2217 Add trailing newline.
2218 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2219 Add trailing newline.
2220 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2221 Add trailing newline.
2222 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2223 Add trailing newline.
2224 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2225 Add trailing newline.
2226 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2227 Add trailing newline.
2228 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2229 Add trailing newline.
2230 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2231 Add trailing newline.
2232 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2233 Add trailing newline.
2234 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2235 Add trailing newline.
2236 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2237 Add trailing newline.
2238 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2239 Add trailing newline.
2240 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2241 Add trailing newline.
2242 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2243 Add trailing newline.
2244 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2245 Add trailing newline.
2246 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2247 Add trailing newline.
2248 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2249 Add trailing newline.
2250 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2251 Add trailing newline.
2252 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2253 Add trailing newline.
2254 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2255 Add trailing newline.
2256 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2257 Add trailing newline.
2258 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2259 Add trailing newline.
2260 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2261 Add trailing newline.
2262 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2263 Add trailing newline.
2264 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2265 Add trailing newline.
2266 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2267 Add trailing newline.
2268 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2269 Add trailing newline.
2270 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2271 Add trailing newline.
2272 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2273 Add trailing newline.
2274 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2275 Add trailing newline.
2276 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2277 Add trailing newline.
2278 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2279 Add trailing newline.
2280 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2281 Add trailing newline.
2282 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2283 Add trailing newline.
2284 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2285 Add trailing newline.
2286 * doc/openmp-runtime-library-routines/omptestlock.rst:
2287 Add trailing newline.
2288 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2289 Add trailing newline.
2290 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2291 Add trailing newline.
2292 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2293 Add trailing newline.
2294 * doc/reporting-bugs.rst:
2295 Add trailing newline.
2296 * doc/the-libgomp-abi.rst:
2297 Add trailing newline.
2298 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2299 Add trailing newline.
2300 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2301 Add trailing newline.
2302 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2303 Add trailing newline.
2304 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2305 Add trailing newline.
2306 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2307 Add trailing newline.
2308 * doc/the-libgomp-abi/implementing-for-construct.rst:
2309 Add trailing newline.
2310 * doc/the-libgomp-abi/implementing-master-construct.rst:
2311 Add trailing newline.
2312 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2313 Add trailing newline.
2314 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2315 Add trailing newline.
2316 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2317 Add trailing newline.
2318 * doc/the-libgomp-abi/implementing-private-clause.rst:
2319 Add trailing newline.
2320 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2321 Add trailing newline.
2322 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2323 Add trailing newline.
2324 * doc/the-libgomp-abi/implementing-single-construct.rst:
2325 Add trailing newline.
2326 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2327 Add trailing newline.
2329 2022-11-14 Martin Liska <mliska@suse.cz>
2332 2022-11-09 Martin Liska <mliska@suse.cz>
2334 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2336 2022-11-14 Martin Liska <mliska@suse.cz>
2339 2022-11-14 Martin Liska <mliska@suse.cz>
2341 * doc/conf.py: Add newline at last line.
2343 2022-11-14 Martin Liska <mliska@suse.cz>
2346 2022-11-14 Martin Liska <mliska@suse.cz>
2349 * configure: Regenerate.
2350 * configure.ac: Always set sphinx-build.
2352 2022-11-13 Martin Liska <mliska@suse.cz>
2355 * configure: Regenerate.
2356 * configure.ac: Always set sphinx-build.
2358 2022-11-12 Jakub Jelinek <jakub@redhat.com>
2361 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
2362 unsigned long. Change type of upper from unsigned to unsigned long.
2364 2022-11-10 Martin Liska <mliska@suse.cz>
2366 * doc/conf.py: Add newline at last line.
2368 2022-11-09 Martin Liska <mliska@suse.cz>
2370 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2372 2022-11-09 Martin Liska <mliska@suse.cz>
2374 * doc/amd-radeon-gcn.rst:
2375 Add trailing newline.
2376 * doc/copyright.rst:
2377 Add trailing newline.
2378 * doc/cuda-streams-usage.rst:
2379 Add trailing newline.
2380 * doc/enabling-openacc.rst:
2381 Add trailing newline.
2382 * doc/enabling-openmp.rst:
2383 Add trailing newline.
2384 * doc/first-invocation-nvidia-cublas-library-api.rst:
2385 Add trailing newline.
2386 * doc/first-invocation-openacc-library-api.rst:
2387 Add trailing newline.
2389 Add trailing newline.
2390 * doc/general-public-license-3.rst:
2391 Add trailing newline.
2392 * doc/gnu-free-documentation-license.rst:
2393 Add trailing newline.
2394 * doc/implementation-status-and-implementation-defined-behavior.rst:
2395 Add trailing newline.
2397 Add trailing newline.
2398 * doc/indices-and-tables.rst:
2399 Add trailing newline.
2400 * doc/introduction.rst:
2401 Add trailing newline.
2402 * doc/memory-allocation-with-libmemkind.rst:
2403 Add trailing newline.
2405 Add trailing newline.
2406 * doc/offload-target-specifics.rst:
2407 Add trailing newline.
2408 * doc/openacc-environment-variables.rst:
2409 Add trailing newline.
2410 * doc/openacc-environment-variables/accdevicenum.rst:
2411 Add trailing newline.
2412 * doc/openacc-environment-variables/accdevicetype.rst:
2413 Add trailing newline.
2414 * doc/openacc-environment-variables/accproflib.rst:
2415 Add trailing newline.
2416 * doc/openacc-environment-variables/gccaccnotify.rst:
2417 Add trailing newline.
2418 * doc/openacc-introduction.rst:
2419 Add trailing newline.
2420 * doc/openacc-library-and-environment-variables.rst:
2421 Add trailing newline.
2422 * doc/openacc-library-interoperability.rst:
2423 Add trailing newline.
2424 * doc/openacc-profiling-interface.rst:
2425 Add trailing newline.
2426 * doc/openacc-runtime-library-routines.rst:
2427 Add trailing newline.
2428 * doc/openacc-runtime-library-routines/accasynctest.rst:
2429 Add trailing newline.
2430 * doc/openacc-runtime-library-routines/accasynctestall.rst:
2431 Add trailing newline.
2432 * doc/openacc-runtime-library-routines/accattach.rst:
2433 Add trailing newline.
2434 * doc/openacc-runtime-library-routines/acccopyin.rst:
2435 Add trailing newline.
2436 * doc/openacc-runtime-library-routines/acccopyout.rst:
2437 Add trailing newline.
2438 * doc/openacc-runtime-library-routines/acccreate.rst:
2439 Add trailing newline.
2440 * doc/openacc-runtime-library-routines/accdelete.rst:
2441 Add trailing newline.
2442 * doc/openacc-runtime-library-routines/accdetach.rst:
2443 Add trailing newline.
2444 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2445 Add trailing newline.
2446 * doc/openacc-runtime-library-routines/accfree.rst:
2447 Add trailing newline.
2448 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2449 Add trailing newline.
2450 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2451 Add trailing newline.
2452 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2453 Add trailing newline.
2454 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2455 Add trailing newline.
2456 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2457 Add trailing newline.
2458 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2459 Add trailing newline.
2460 * doc/openacc-runtime-library-routines/accgetproperty.rst:
2461 Add trailing newline.
2462 * doc/openacc-runtime-library-routines/acchostptr.rst:
2463 Add trailing newline.
2464 * doc/openacc-runtime-library-routines/accinit.rst:
2465 Add trailing newline.
2466 * doc/openacc-runtime-library-routines/accispresent.rst:
2467 Add trailing newline.
2468 * doc/openacc-runtime-library-routines/accmalloc.rst:
2469 Add trailing newline.
2470 * doc/openacc-runtime-library-routines/accmapdata.rst:
2471 Add trailing newline.
2472 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2473 Add trailing newline.
2474 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2475 Add trailing newline.
2476 * doc/openacc-runtime-library-routines/accondevice.rst:
2477 Add trailing newline.
2478 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2479 Add trailing newline.
2480 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2481 Add trailing newline.
2482 * doc/openacc-runtime-library-routines/accproflookup.rst:
2483 Add trailing newline.
2484 * doc/openacc-runtime-library-routines/accprofregister.rst:
2485 Add trailing newline.
2486 * doc/openacc-runtime-library-routines/accprofunregister.rst:
2487 Add trailing newline.
2488 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2489 Add trailing newline.
2490 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2491 Add trailing newline.
2492 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2493 Add trailing newline.
2494 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2495 Add trailing newline.
2496 * doc/openacc-runtime-library-routines/accshutdown.rst:
2497 Add trailing newline.
2498 * doc/openacc-runtime-library-routines/accunmapdata.rst:
2499 Add trailing newline.
2500 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2501 Add trailing newline.
2502 * doc/openacc-runtime-library-routines/accupdateself.rst:
2503 Add trailing newline.
2504 * doc/openacc-runtime-library-routines/accwait.rst:
2505 Add trailing newline.
2506 * doc/openacc-runtime-library-routines/accwaitall.rst:
2507 Add trailing newline.
2508 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2509 Add trailing newline.
2510 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2511 Add trailing newline.
2512 * doc/openmp-context-selectors.rst:
2513 Add trailing newline.
2514 * doc/openmp-environment-variables.rst:
2515 Add trailing newline.
2516 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2517 Add trailing newline.
2518 * doc/openmp-environment-variables/gompdebug.rst:
2519 Add trailing newline.
2520 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2521 Add trailing newline.
2522 * doc/openmp-environment-variables/gompspincount.rst:
2523 Add trailing newline.
2524 * doc/openmp-environment-variables/gompstacksize.rst:
2525 Add trailing newline.
2526 * doc/openmp-environment-variables/ompcancellation.rst:
2527 Add trailing newline.
2528 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2529 Add trailing newline.
2530 * doc/openmp-environment-variables/ompdisplayenv.rst:
2531 Add trailing newline.
2532 * doc/openmp-environment-variables/ompdynamic.rst:
2533 Add trailing newline.
2534 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2535 Add trailing newline.
2536 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2537 Add trailing newline.
2538 * doc/openmp-environment-variables/ompnested.rst:
2539 Add trailing newline.
2540 * doc/openmp-environment-variables/ompnumteams.rst:
2541 Add trailing newline.
2542 * doc/openmp-environment-variables/ompnumthreads.rst:
2543 Add trailing newline.
2544 * doc/openmp-environment-variables/ompplaces.rst:
2545 Add trailing newline.
2546 * doc/openmp-environment-variables/ompprocbind.rst:
2547 Add trailing newline.
2548 * doc/openmp-environment-variables/ompschedule.rst:
2549 Add trailing newline.
2550 * doc/openmp-environment-variables/ompstacksize.rst:
2551 Add trailing newline.
2552 * doc/openmp-environment-variables/omptargetoffload.rst:
2553 Add trailing newline.
2554 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2555 Add trailing newline.
2556 * doc/openmp-environment-variables/ompthreadlimit.rst:
2557 Add trailing newline.
2558 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2559 Add trailing newline.
2560 * doc/openmp-implementation-specifics.rst:
2561 Add trailing newline.
2562 * doc/openmp-implementation-status.rst:
2563 Add trailing newline.
2564 * doc/openmp-implementation-status/openmp-45.rst:
2565 Add trailing newline.
2566 * doc/openmp-implementation-status/openmp-50.rst:
2567 Add trailing newline.
2568 * doc/openmp-implementation-status/openmp-51.rst:
2569 Add trailing newline.
2570 * doc/openmp-implementation-status/openmp-52.rst:
2571 Add trailing newline.
2572 * doc/openmp-runtime-library-routines.rst:
2573 Add trailing newline.
2574 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2575 Add trailing newline.
2576 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2577 Add trailing newline.
2578 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2579 Add trailing newline.
2580 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2581 Add trailing newline.
2582 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2583 Add trailing newline.
2584 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2585 Add trailing newline.
2586 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2587 Add trailing newline.
2588 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2589 Add trailing newline.
2590 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2591 Add trailing newline.
2592 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2593 Add trailing newline.
2594 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2595 Add trailing newline.
2596 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2597 Add trailing newline.
2598 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2599 Add trailing newline.
2600 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2601 Add trailing newline.
2602 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2603 Add trailing newline.
2604 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2605 Add trailing newline.
2606 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2607 Add trailing newline.
2608 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2609 Add trailing newline.
2610 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2611 Add trailing newline.
2612 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2613 Add trailing newline.
2614 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2615 Add trailing newline.
2616 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2617 Add trailing newline.
2618 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2619 Add trailing newline.
2620 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2621 Add trailing newline.
2622 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2623 Add trailing newline.
2624 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2625 Add trailing newline.
2626 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2627 Add trailing newline.
2628 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2629 Add trailing newline.
2630 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2631 Add trailing newline.
2632 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2633 Add trailing newline.
2634 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2635 Add trailing newline.
2636 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2637 Add trailing newline.
2638 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2639 Add trailing newline.
2640 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2641 Add trailing newline.
2642 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2643 Add trailing newline.
2644 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2645 Add trailing newline.
2646 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2647 Add trailing newline.
2648 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2649 Add trailing newline.
2650 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2651 Add trailing newline.
2652 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2653 Add trailing newline.
2654 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2655 Add trailing newline.
2656 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2657 Add trailing newline.
2658 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2659 Add trailing newline.
2660 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2661 Add trailing newline.
2662 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2663 Add trailing newline.
2664 * doc/openmp-runtime-library-routines/omptestlock.rst:
2665 Add trailing newline.
2666 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2667 Add trailing newline.
2668 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2669 Add trailing newline.
2670 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2671 Add trailing newline.
2672 * doc/reporting-bugs.rst:
2673 Add trailing newline.
2674 * doc/the-libgomp-abi.rst:
2675 Add trailing newline.
2676 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2677 Add trailing newline.
2678 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2679 Add trailing newline.
2680 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2681 Add trailing newline.
2682 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2683 Add trailing newline.
2684 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2685 Add trailing newline.
2686 * doc/the-libgomp-abi/implementing-for-construct.rst:
2687 Add trailing newline.
2688 * doc/the-libgomp-abi/implementing-master-construct.rst:
2689 Add trailing newline.
2690 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2691 Add trailing newline.
2692 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2693 Add trailing newline.
2694 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2695 Add trailing newline.
2696 * doc/the-libgomp-abi/implementing-private-clause.rst:
2697 Add trailing newline.
2698 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2699 Add trailing newline.
2700 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2701 Add trailing newline.
2702 * doc/the-libgomp-abi/implementing-single-construct.rst:
2703 Add trailing newline.
2704 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2705 Add trailing newline.
2707 2022-11-09 Martin Liska <mliska@suse.cz>
2709 * Makefile.in: Build info pages conditionally.
2711 2022-11-09 Martin Liska <mliska@suse.cz>
2713 * Makefile.in: Support --with-sphinx-build.
2714 * configure.ac: Likewise..
2715 * configure: Regenerate.
2717 2022-11-09 Martin Liska <mliska@suse.cz>
2719 * libgomp.texi: Removed.
2721 2022-11-09 Martin Liska <mliska@suse.cz>
2723 * Makefile.in: Support Sphinx based documentation.
2725 2022-11-09 Martin Liska <mliska@suse.cz>
2727 * doc/amd-radeon-gcn.rst: New file.
2728 * doc/conf.py: New file.
2729 * doc/copyright.rst: New file.
2730 * doc/cuda-streams-usage.rst: New file.
2731 * doc/enabling-openacc.rst: New file.
2732 * doc/enabling-openmp.rst: New file.
2733 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2734 * doc/first-invocation-openacc-library-api.rst: New file.
2735 * doc/funding.rst: New file.
2736 * doc/general-public-license-3.rst: New file.
2737 * doc/gnu-free-documentation-license.rst: New file.
2738 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2739 * doc/index.rst: New file.
2740 * doc/indices-and-tables.rst: New file.
2741 * doc/introduction.rst: New file.
2742 * doc/memory-allocation-with-libmemkind.rst: New file.
2743 * doc/nvptx.rst: New file.
2744 * doc/offload-target-specifics.rst: New file.
2745 * doc/openacc-environment-variables.rst: New file.
2746 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2747 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2748 * doc/openacc-environment-variables/accproflib.rst: New file.
2749 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2750 * doc/openacc-introduction.rst: New file.
2751 * doc/openacc-library-and-environment-variables.rst: New file.
2752 * doc/openacc-library-interoperability.rst: New file.
2753 * doc/openacc-profiling-interface.rst: New file.
2754 * doc/openacc-runtime-library-routines.rst: New file.
2755 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2756 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2757 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2758 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2759 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2760 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2761 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2762 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2763 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2764 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2765 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2766 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2767 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2768 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2769 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2770 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2771 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2772 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2773 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2774 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2775 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2776 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2777 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2778 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2779 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2780 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2781 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2782 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2783 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2784 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2785 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2786 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2787 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2788 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2789 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2790 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2791 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2792 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2793 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2794 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2795 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2796 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2797 * doc/openmp-context-selectors.rst: New file.
2798 * doc/openmp-environment-variables.rst: New file.
2799 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2800 * doc/openmp-environment-variables/gompdebug.rst: New file.
2801 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2802 * doc/openmp-environment-variables/gompspincount.rst: New file.
2803 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2804 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2805 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2806 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2807 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2808 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2809 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2810 * doc/openmp-environment-variables/ompnested.rst: New file.
2811 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2812 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2813 * doc/openmp-environment-variables/ompplaces.rst: New file.
2814 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2815 * doc/openmp-environment-variables/ompschedule.rst: New file.
2816 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2817 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2818 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2819 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2820 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2821 * doc/openmp-implementation-specifics.rst: New file.
2822 * doc/openmp-implementation-status.rst: New file.
2823 * doc/openmp-implementation-status/openmp-45.rst: New file.
2824 * doc/openmp-implementation-status/openmp-50.rst: New file.
2825 * doc/openmp-implementation-status/openmp-51.rst: New file.
2826 * doc/openmp-implementation-status/openmp-52.rst: New file.
2827 * doc/openmp-runtime-library-routines.rst: New file.
2828 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2829 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2830 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2831 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2832 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2833 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2834 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2835 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2836 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2837 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2838 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2839 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2840 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2841 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2842 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2843 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2844 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2845 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2846 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2847 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2848 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2849 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2850 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2851 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2852 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2853 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2854 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2855 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2856 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2857 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2858 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2859 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2860 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2861 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2862 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2863 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2864 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2865 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2866 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2867 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2868 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2869 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2870 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2871 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2872 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2873 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2874 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2875 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2876 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2877 * doc/reporting-bugs.rst: New file.
2878 * doc/the-libgomp-abi.rst: New file.
2879 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2880 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2881 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2882 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2884 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2885 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2886 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2887 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2888 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2889 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2890 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2891 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2892 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2893 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2894 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2896 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2898 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2899 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2901 * plugin/configfrag.ac <enable_offload_targets>
2902 [*-intelmic-* | *-intelmicemul-*]: Remove.
2903 * configure: Regenerate.
2904 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2906 (offload_target_to_openacc_device_type)
2907 [$offload_target = *-intelmic*]: Remove.
2908 (check_effective_target_offload_device_intel_mic)
2909 (check_effective_target_offload_device_any_intel_mic): Remove.
2910 * testsuite/libgomp.c-c++-common/on_device_arch.h
2911 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2912 (any_device_arch_intel_mic): Remove.
2913 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2914 'offload_device_any_intel_mic' XFAIL.
2915 * testsuite/libgomp.fortran/target10.f90: Likewise.
2917 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
2919 * testsuite/libgomp.fortran/target-11.f90: New test.
2920 * testsuite/libgomp.fortran/target-13.f90: New test.
2922 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2926 * oacc-mem.c (goacc_enter_data_internal): Support
2927 OpenACC 'declare create' with Fortran allocatable arrays, part II.
2928 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2930 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2932 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2935 * oacc-mem.c (goacc_enter_data_internal): Support
2936 OpenACC 'declare create' with Fortran allocatable arrays, part I.
2937 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2939 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2942 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2944 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2947 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2949 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2952 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
2953 Thomas Schwinge <thomas@codesourcery.com>
2955 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2957 2022-10-28 Julian Brown <julian@codesourcery.com>
2958 Thomas Schwinge <thomas@codesourcery.com>
2961 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2962 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2963 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2964 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2965 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2967 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
2969 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2970 'ptx_dev->rev_data'.
2972 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
2974 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2975 'static' for this variable.
2976 * config/nvptx/libgomp-nvptx.h: New file.
2977 * config/nvptx/target.c: Include it.
2978 (GOMP_ADDITIONAL_ICVS): Declare extern var.
2979 (GOMP_REV_OFFLOAD_VAR): Declare var.
2980 (GOMP_target_ext): Handle reverse offload.
2981 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2982 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2983 * target.c (gomp_target_rev): ... this new stub function.
2984 * libgomp.h (gomp_target_rev): Declare.
2985 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2986 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2987 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2988 (struct ptx_device): Add rev_data member.
2989 (nvptx_open_device): Remove async_engines query, last used in
2990 r10-304-g1f4c5b9b; add unified-address assert check.
2991 (GOMP_OFFLOAD_get_num_devices): Claim unified address
2993 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2994 offload functions exist. Make offload var available
2996 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2997 (GOMP_OFFLOAD_run): Handle reverse offload.
2999 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
3001 PR tree-optimization/107195
3003 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
3006 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
3008 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
3010 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
3011 on_device_arch_gcn): New.
3012 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
3013 requires-4.c but using heap-allocated memory.
3015 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
3018 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
3020 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
3022 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
3023 '-foffload-options' syntax.
3025 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
3027 * testsuite/libgomp.fortran/task-7.f90: New test.
3028 * testsuite/libgomp.fortran/task-8.f90: New test.
3029 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
3030 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
3031 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
3032 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
3033 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
3035 2022-10-12 Jakub Jelinek <jakub@redhat.com>
3037 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
3038 in deprecation bullet.
3040 2022-10-12 Jakub Jelinek <jakub@redhat.com>
3042 * omp.h.in (omp_in_explicit_task): Declare.
3043 * omp_lib.h.in (omp_in_explicit_task): Likewise.
3044 * omp_lib.f90.in (omp_in_explicit_task): New interface.
3045 * libgomp.map (OMP_5.2): New symbol version, export
3046 omp_in_explicit_task and omp_in_explicit_task_.
3047 * task.c (omp_in_explicit_task): New function.
3048 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
3049 (omp_in_explicit_task_): New function.
3050 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
3051 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
3052 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
3053 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
3055 2022-10-12 Jakub Jelinek <jakub@redhat.com>
3057 * task.c (gomp_create_artificial_team): Fix up handling of invocations
3058 from within explicit task.
3059 * target.c (GOMP_target_ext): Likewise.
3060 * testsuite/libgomp.c/task-7.c: New test.
3061 * testsuite/libgomp.c/task-8.c: New test.
3062 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
3063 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
3065 2022-10-12 Martin Liska <mliska@suse.cz>
3067 * configure: Regenerate.
3069 2022-10-11 Olivier Hainque <hainque@adacore.com>
3070 Olivier Hainque <hainque@adacore.com>
3072 * configure: Regenerate.
3074 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
3076 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
3078 2022-10-04 Jakub Jelinek <jakub@redhat.com>
3080 * libgomp.texi (Support begin/end declare target syntax in C/C++):
3081 Mark as implemented.
3083 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
3086 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
3088 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
3090 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
3091 for C/C++. Remove duplicated 'begin declare target' entry.
3093 2022-09-24 Jakub Jelinek <jakub@redhat.com>
3096 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
3098 2022-09-14 Julian Brown <julian@codesourcery.com>
3100 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
3101 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
3102 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
3103 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
3104 test to here, make "run" test.
3106 2022-09-13 Jakub Jelinek <jakub@redhat.com>
3109 * env.c (get_icv_member_addr): Cast false to void * before assigning
3110 it to icv_addr[1], and comment the whole assignment out.
3112 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
3114 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
3117 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
3119 * libgomp.texi (Offload-Target Specifics: nvptx): Document
3120 that reverse offload requires >= -march=sm_35.
3121 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
3123 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3124 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
3125 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
3126 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
3127 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
3129 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
3131 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
3132 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
3134 2022-09-12 Jakub Jelinek <jakub@redhat.com>
3137 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
3138 (main): Avoid tests for which corresponding non-_ALL suffixed variable
3139 is in the environment, or for OMP_NUM_TEAMS on the device
3140 OMP_NUM_TEAMS_DEV_?.
3142 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
3144 * env.c (initialize_env): Include libiberty environ.h.
3146 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3148 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
3149 function address table '$offload_func_table' if rev_fn_table
3152 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3154 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
3155 .offload_func_table to populate rev_fn_table when requested.
3157 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3159 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
3160 'uint64_t **rev_fn_table' argument.
3161 * oacc-host.c (host_load_image): Likewise.
3162 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
3164 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3165 * target.c (gomp_load_image_to_device): Update call but pass
3168 2022-09-09 Jakub Jelinek <jakub@redhat.com>
3171 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
3172 char * for dest[1] initialization from params[1]. Formatting fixes.
3174 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
3177 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
3179 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
3181 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
3182 section; move OpenMP Context Selectors from ...
3183 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
3186 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
3188 * config/gcn/icv-device.c (omp_get_default_device): Return device-
3190 (omp_get_max_teams): Added for GCN devices.
3191 (omp_set_num_teams): Likewise.
3193 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
3195 (omp_get_max_teams): Added for NVPTX devices.
3196 (omp_set_num_teams): Likewise.
3198 * env.c (struct gomp_icv_list): New struct to store entries of initial
3200 (struct gomp_offload_icv_list): New struct to store entries of device-
3201 specific ICV values that are copied to the device and back.
3202 (struct gomp_default_icv_values): New struct to store default values of
3203 ICVs according to the OpenMP standard.
3204 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
3205 (print_env_var_error): Function that prints an error for invalid values
3207 (parse_unsigned_long_1): Removed getenv. Generalized.
3208 (parse_unsigned_long): Likewise.
3209 (parse_int_1): Likewise.
3210 (parse_int): Likewise.
3211 (parse_int_secure): Likewise.
3212 (parse_unsigned_long_list): Likewise.
3213 (parse_target_offload): Likewise.
3214 (parse_bind_var): Likewise.
3215 (parse_stacksize): Likewise.
3216 (parse_boolean): Likewise.
3217 (parse_wait_policy): Likewise.
3218 (parse_allocator): Likewise.
3219 (omp_display_env): Extended to output different variants of environment
3221 (print_schedule): New helper function for omp_display_env which prints
3222 the values of run_sched_var.
3223 (print_proc_bind): New helper function for omp_display_env which prints
3224 the values of proc_bind_var.
3225 (enum gomp_parse_type): Collection of types used for parsing environment
3227 (ENTRY): Preprocess string lengths of environment variables.
3228 (OMP_VAR_CNT): Preprocess table size.
3229 (OMP_HOST_VAR_CNT): Likewise.
3230 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
3232 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3233 (gomp_set_icv_flag): Sets a flag for a particular ICV.
3234 (print_device_specific_icvs): New helper function for omp_display_env to
3235 print device specific ICV values.
3236 (get_device_num): New helper function for parse_device_specific.
3237 Extracts the device number from an environment variable name.
3238 (get_icv_member_addr): Gets the memory address for a particular member
3240 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3241 (initialize_icvs): New function to initialize a gomp_initial_icvs
3243 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
3244 (startswith): Checks if a string starts with a given prefix.
3245 (initialize_env): Extended to parse the new syntax of environment
3247 * icv-device.c (omp_get_max_teams): Added.
3249 (omp_set_num_teams): Likewise.
3250 * icv.c (omp_set_num_teams): Moved to icv-device.c.
3251 (omp_get_max_teams): Likewise.
3253 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
3254 (GOMP_ADDITIONAL_ICVS): New target-side struct that
3255 holds the designated ICVs of the target device.
3256 * libgomp.h (enum gomp_icvs): Collection of ICVs.
3257 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
3259 (enum gomp_env_suffix): Collection of possible suffixes of environment
3261 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
3263 (struct gomp_default_icv):New struct to hold ICVs for which we need
3264 to store initial values.
3265 (struct gomp_icv_list): Definition of a linked list that is used for
3266 storing ICVs for the devices and also for _DEV, _ALL, and without
3268 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
3270 (struct gomp_offload_icv_list): Definition of a linked list that holds
3271 device-specific ICVs that are copied to devices.
3272 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3273 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3274 * libgomp.texi: Updated.
3275 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
3276 further ICVs from the offload image.
3277 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3278 * target.c (gomp_get_offload_icv_item): Get a list item of
3279 gomp_offload_icv_list.
3280 (get_gomp_offload_icvs): New. Returns the ICV values
3281 depending on the device num and the variable hierarchy.
3282 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
3283 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
3284 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
3285 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
3286 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
3287 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
3288 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
3290 2022-09-08 Jakub Jelinek <jakub@redhat.com>
3292 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
3294 * testsuite/libgomp.c/doacross-4.c: New test.
3295 * testsuite/libgomp.c/doacross-5.c: New test.
3296 * testsuite/libgomp.c/doacross-6.c: New test.
3297 * testsuite/libgomp.c/doacross-7.c: New test.
3299 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
3301 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
3303 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
3305 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
3306 refer to 'requires'.
3307 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
3308 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
3309 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
3310 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
3312 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
3314 PR middle-end/106548
3315 * testsuite/libgomp.c/linear-2.c: New test.
3317 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
3319 * splay-tree.h: Fix splay_* macro unsetting if
3320 splay_tree_prefix is defined.
3322 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
3324 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
3326 2022-07-29 Jakub Jelinek <jakub@redhat.com>
3328 PR middle-end/106449
3329 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
3331 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
3333 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
3335 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
3337 PR middle-end/101551
3338 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
3339 'offloading_enabled' diagnostics issue.
3341 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
3343 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
3344 '_Pragma' diagnostics verification.
3346 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
3348 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
3349 improved warning locations.
3350 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
3352 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
3354 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
3355 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
3356 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3357 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3358 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3360 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3362 * target.c (GOMP_offload_register, GOMP_offload_unregister):
3363 Denote as legacy entry points.
3364 * testsuite/lib/libgomp.exp
3365 (check_effective_target_offload_target_any): New proc.
3366 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
3367 'offload_target_any'.
3368 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3369 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3370 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3372 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3374 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3375 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3377 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3379 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3381 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
3383 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3385 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
3387 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3388 Jakub Jelinek <jakub@redhat.com>
3390 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3392 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3393 Chung-Lin Tang <cltang@codesourcery.com>
3394 Thomas Schwinge <thomas@codesourcery.com>
3396 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3397 omp_requires_mask arg.
3398 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3399 return -1 when device available but omp_requires_mask != 0.
3400 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3401 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3403 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3404 goacc_attach_host_thread_to_device, acc_get_num_devices,
3405 acc_set_device_num, get_property_any): Likewise.
3406 * target.c (omp_requires_mask): New global var.
3407 (gomp_requires_to_name): New.
3408 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3409 (gomp_target_init): Handle omp_requires_mask.
3410 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3411 (OpenMP 5.1): Add a missed item.
3412 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3413 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3414 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3415 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3416 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3417 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3418 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3419 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3420 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3421 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3422 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3423 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3424 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3425 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3426 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3427 * testsuite/libgomp.fortran/requires-1.f90: New test.
3429 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
3431 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3432 with fromto as implemented.
3434 2022-06-28 Martin Liska <mliska@suse.cz>
3436 * acinclude.m4: Fix typo in mold linker detection.
3437 * Makefile.in: Regenerate.
3438 * configure: Regenerate.
3440 2022-06-21 Jakub Jelinek <jakub@redhat.com>
3441 Paul Iannetta <piannetta@kalrayinc.com>
3444 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3446 2022-06-17 Martin Liska <mliska@suse.cz>
3448 * libgomp.texi: Add table header for new features of
3451 2022-06-15 Jakub Jelinek <jakub@redhat.com>
3453 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3454 q to ddress of an automatic variable. Use -5 instead of -1 in
3455 omp_get_mapped_ptr call. Add test with omp_initial_device.
3456 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3457 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
3458 Renumber stop arguments afterwards.
3460 2022-06-13 Jakub Jelinek <jakub@redhat.com>
3462 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3463 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3465 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3466 * target.c (resolve_device): Add remapped argument, handle
3467 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3468 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3469 if remapped, otherwise treat omp_initial_device that way. For
3470 omp_invalid_device, always emit gomp_fatal, even when
3471 OMP_TARGET_OFFLOAD isn't mandatory.
3472 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3473 GOMP_target_update, GOMP_target_update_ext,
3474 GOMP_target_enter_exit_data): Pass true as remapped argument to
3476 (omp_target_alloc, omp_target_free, omp_target_is_present,
3477 omp_target_memcpy_check, omp_target_associate_ptr,
3478 omp_target_disassociate_ptr, omp_get_mapped_ptr,
3479 omp_target_is_accessible): Pass false as remapped argument to
3480 resolve_device. Treat omp_initial_device the same as
3481 gomp_get_num_devices (). Don't bypass resolve_device calls if
3482 device_num is negative.
3483 (omp_pause_resource): Treat omp_initial_device the same as
3484 gomp_get_num_devices (). Call resolve_device.
3485 * icv-device.c (omp_set_default_device): Always set to device_num
3486 even when it is negative.
3487 * libgomp.texi: Document that Conforming device numbers,
3488 omp_initial_device and omp_invalid_device is implemented.
3489 * testsuite/libgomp.c/target-41.c (main): Add test with
3491 * testsuite/libgomp.c/target-45.c: New test.
3492 * testsuite/libgomp.c/target-46.c: New test.
3493 * testsuite/libgomp.c/target-47.c: New test.
3494 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3495 test with omp_initial_device. Use -5 instead of -1 for negative value
3497 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3498 Likewise. Reorder stop numbers.
3500 2022-06-10 Jakub Jelinek <jakub@redhat.com>
3502 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3503 rather than "libmemkind.so".
3505 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
3507 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3508 * plugin/configfrag.ac (--with-cuda-driver)
3509 (--with-cuda-driver-include, --with-cuda-driver-lib)
3510 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3511 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3513 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3514 (cuda_driver_lib): Remove.
3515 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3516 * Makefile.in: Regenerate.
3517 * configure: Likewise.
3518 * testsuite/Makefile.in: Likewise.
3520 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3522 * config/linux/allocator.c: Fix up #include directive.
3524 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3526 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3527 (enum gomp_memkind_kind): New type.
3528 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3530 (struct gomp_memkind_data): New type.
3531 (memkind_data, memkind_data_once): New variables.
3532 (gomp_init_memkind, gomp_get_memkind): New functions.
3533 (omp_init_allocator): Initialize data.memkind, don't fail for
3534 omp_high_bw_mem_space if libmemkind supports it.
3535 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3536 memkind support of LIBGOMP_USE_MEMKIND is defined.
3537 * config/linux/allocator.c: New file.
3539 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
3541 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3542 * testsuite/libgomp.fortran/scope-2.f90: New test.
3544 2022-06-02 David Malcolm <dmalcolm@redhat.com>
3546 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3548 2022-05-31 Jakub Jelinek <jakub@redhat.com>
3550 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3551 scope construct with allocate clause.
3552 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3553 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3555 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
3557 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3558 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3559 explicit 'to' and 'enter' clause.
3560 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3562 2022-05-28 Jakub Jelinek <jakub@redhat.com>
3565 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3566 defined(HAVE__ALIGNED_MALLOC) case.
3567 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3568 handling as last option before fallback instead of first.
3569 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3572 2022-05-27 Jakub Jelinek <jakub@redhat.com>
3574 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3576 * testsuite/libgomp.c/target-41.c: Likewise.
3578 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
3580 * libgomp.texi (Other new OpenMP 5.1 features): Add
3581 'begin declare target'.
3582 (Other new OpenMP 5.2 features): New.
3584 2022-05-25 Jakub Jelinek <jakub@redhat.com>
3586 * task.c (gomp_task_run_post_handle_dependers): If empty_task
3587 is the last task taskwait depend depends on, wake it up.
3588 Similarly if it is the last child of a taskgroup, use atomic
3589 store instead of decrement and awak taskgroup wait if any.
3590 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3592 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
3594 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3595 EF_AMDGPU_MACH_AMDGCN_GFX90a.
3596 (gcn_gfx90a_s): New.
3597 (isa_hsa_name): Support gfx90a.
3598 (isa_code): Likewise.
3600 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
3603 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3604 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3606 2022-05-24 Jakub Jelinek <jakub@redhat.com>
3609 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3610 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3611 * task.c (empty_task): New function.
3612 (gomp_task_run_post_handle_depend_hash): Declare earlier.
3613 (gomp_task_run_post_handle_depend): Declare.
3614 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3616 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3617 (GOMP_taskwait_depend_nowait): New function.
3618 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3620 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
3623 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3624 Support attach for GOMP_MAP_FIRSTPRIVATE.
3625 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3626 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3627 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3629 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3631 * libgomp.map: Added omp_target_memcpy_async and
3632 omp_target_memcpy_rect_async.
3633 * libgomp.texi: Both functions are now supported.
3634 * omp.h.in: Added omp_target_memcpy_async and
3635 omp_target_memcpy_rect_async.
3636 * omp_lib.f90.in: Added interfaces for both new functions.
3637 * omp_lib.h.in: Likewise.
3638 * target.c (ialias_redirect): Added for GOMP_task.
3639 (omp_target_memcpy): Restructured into check and copy part.
3640 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3641 omp_target_memcpy_async that checks requirements.
3642 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3643 omp_target_memcpy_async that performs the memcpy.
3644 (omp_target_memcpy_async_helper): New helper function that is used in
3645 omp_target_memcpy_async for the asynchronous task.
3646 (omp_target_memcpy_async): Added.
3647 (omp_target_memcpy_rect): Restructured into check and copy part.
3648 (omp_target_memcpy_rect_check): New helper function for
3649 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3651 (omp_target_memcpy_rect_copy): New helper function for
3652 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3654 (omp_target_memcpy_rect_async_helper): New helper function that is used
3655 in omp_target_memcpy_rect_async for the asynchronous task.
3656 (omp_target_memcpy_rect_async): Added.
3657 * task.c (ialias): Added for GOMP_task.
3658 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3659 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3660 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3661 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3662 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3663 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3664 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3665 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3667 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
3669 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3670 (OpenMP Context Selectors): Add missing comma.
3671 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3672 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3673 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3674 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3676 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3678 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3679 comment for omp_display_env feature.
3681 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3683 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3684 to document OpenMP context selectors.
3686 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3688 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3689 from bool to unsigned char.
3690 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3691 Ignore dependencies where
3692 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3693 rather than just task->depend[i].is_in && ent->is_in. Remember
3694 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3696 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3697 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3698 rather than just elem.is_in && ent->is_in.
3699 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3700 inoutset depend-kind.
3701 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3702 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3703 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3705 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3707 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3709 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3711 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3712 * testsuite/libgomp.fortran/depend-5.f90: New test.
3713 * testsuite/libgomp.fortran/depend-6.f90: New test.
3714 * testsuite/libgomp.fortran/depend-7.f90: New test.
3716 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3718 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3719 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3720 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3722 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3724 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3726 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3728 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3730 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3732 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3733 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3734 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3735 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3736 * Makefile.in: Regenerate.
3738 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3740 * Makefile.am (libgomp_la_LIBADD): Initialize.
3741 * plugin/configfrag.ac (DL_LIBS): New.
3742 (PLUGIN_GCN_LIBS): Remove.
3743 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3744 * plugin/Makefrag.am (libgomp_la_LIBADD)
3745 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3746 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3747 * Makefile.in: Regenerate.
3748 * config.h.in: Likewise.
3749 * configure: Likewise.
3750 * testsuite/Makefile.in: Likewise.
3752 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3754 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3755 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3756 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3757 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3758 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3759 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3760 * Makefile.in: Regenerate.
3761 * config.h.in: Likewise.
3762 * configure: Likewise.
3764 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3766 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3767 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3768 * Makefile.in: Regenerate.
3769 * config.h.in: Likewise.
3770 * configure: Likewise.
3771 * testsuite/Makefile.in: Likewise.
3773 2022-05-12 Jakub Jelinek <jakub@redhat.com>
3775 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3776 * task.c (gomp_init_task): Initialize depend_all_memory.
3777 (gomp_task_handle_depend): Handle omp_all_memory.
3778 (gomp_task_run_post_handle_depend_hash): Clear
3779 parent->depend_all_memory if equal to current task.
3780 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3781 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3782 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3783 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3785 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3787 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3788 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3789 * Makefile.in: Regenerate.
3790 * configure: Likewise.
3791 * testsuite/Makefile.in: Likewise.
3793 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3795 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3796 consider 'PLUGIN_GCN_CPPFLAGS'.
3797 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3798 'PLUGIN_GCN_LDFLAGS'.
3799 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3801 * Makefile.in: Regenerate.
3802 * configure: Likewise.
3803 * testsuite/Makefile.in: Likewise.
3805 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3807 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3808 (HSA_RUNTIME_LDFLAGS): Remove.
3809 * configure: Regenerate.
3811 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3813 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3814 'append always_ld_library_path ":$hsa_runtime_lib"'.
3815 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3817 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3819 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3820 multi-device testing.
3822 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3824 * libgomp.map: Added omp_target_is_accessible.
3825 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3826 * omp.h.in: Added omp_target_is_accessible.
3827 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3828 * omp_lib.h.in: Likewise.
3829 * target.c (omp_target_is_accessible): Added implementation of
3830 omp_target_is_accessible.
3831 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3832 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3834 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3836 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3838 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3840 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3842 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3844 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3846 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3848 * libgomp.map: Added omp_get_mapped_ptr.
3849 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3850 * omp.h.in: Added omp_get_mapped_ptr.
3851 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3852 * omp_lib.h.in: Likewise.
3853 * target.c (omp_get_mapped_ptr): Added implementation of
3855 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3856 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3857 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3858 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3859 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3860 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3861 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3862 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3864 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3867 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3868 privatization scanning. For GCN offloading compilation, raise
3869 '-mgang-private-size'.
3871 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3874 * work.c (gomp_init_work_share): Don't mask of adjustment for
3875 dynamic long long realignment if struct gomp_work_share has smaller
3876 alignof than long long.
3877 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3878 struct gomp_work_share has smaller alignof than long long or if
3879 sizeof (struct gomp_work_share) is smaller than
3880 INLINE_ORDERED_TEAM_IDS_OFF.
3881 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3882 * sections.c (GOMP_sections2_start): Likewise.
3884 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3885 Thomas Schwinge <thomas@codesourcery.com>
3888 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3890 2022-04-13 Jakub Jelinek <jakub@redhat.com>
3892 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3894 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3896 * plugin/cuda/cuda.h: Remove file.
3897 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3898 "cuda/cuda.h" instead of <cuda.h>.
3899 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3900 'PLUGIN_NVPTX_CPPFLAGS'.
3901 * configure: Regenerate.
3903 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3905 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3907 2022-04-04 Tom de Vries <tdevries@suse.de>
3909 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3910 on_device_arch_nvptx instead of offload_target_nvptx.
3911 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3913 2022-04-01 Tom de Vries <tdevries@suse.de>
3915 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3917 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3919 2022-04-01 Tom de Vries <tdevries@suse.de>
3921 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3924 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3925 Lulu Cheng <chenglulu@loongson.cn>
3927 * configure.tgt: Add LoongArch triplet.
3929 2022-03-28 Tom de Vries <tdevries@suse.de>
3931 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3932 instead of /libexec/.
3933 * configure: Regenerate.
3935 2022-03-25 Tom de Vries <tdevries@suse.de>
3938 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3940 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3941 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3943 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
3945 PR middle-end/104285
3946 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3947 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3948 * testsuite/libgomp.c++/target-same-name-2.C: New test.
3949 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3950 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3951 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3953 2022-03-22 Tom de Vries <tdevries@suse.de>
3957 * testsuite/libgomp.c/pr104783-2.c: New test.
3959 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
3962 * testsuite/libgomp.fortran/associate4.f90: New test.
3964 2022-03-18 Tom de Vries <tdevries@suse.de>
3967 * testsuite/libgomp.c/pr104952-1.c: New test.
3968 * testsuite/libgomp.c/pr104952-2.c: New test.
3970 2022-03-18 Jakub Jelinek <jakub@redhat.com>
3972 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3973 variable next to pl variable.
3975 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3977 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3979 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3980 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3982 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3985 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3986 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3988 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
3990 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3991 omp_set_max_active_levels.
3992 * testsuite/libgomp.fortran/icv-8.f90: New test.
3994 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
3997 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3999 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
4001 * libgomp.texi: Fix typo.
4003 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4005 PR middle-end/100280
4006 PR middle-end/104892
4007 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
4008 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
4009 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4011 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4013 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4014 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4015 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4018 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4020 PR middle-end/104892
4021 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
4023 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
4024 enable '--param=openacc-kernels=decompose' and adjust.
4025 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4027 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4028 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4031 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4034 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
4035 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
4036 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4037 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
4039 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4041 PR middle-end/100280
4042 PR middle-end/104086
4043 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4045 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4047 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
4049 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4052 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
4054 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
4055 trait. Test last index in w and v array. Remove redundant
4056 assignment to V(1). Move alignment checks at the end of
4059 2022-03-10 Tom de Vries <tdevries@suse.de>
4061 * testsuite/libgomp.c/pr104783.c: New test.
4063 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
4066 PR middle-end/102330
4067 PR middle-end/104774
4068 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4070 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4072 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4074 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4076 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4078 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4080 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4082 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4084 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4086 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4088 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4090 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4092 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4094 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4096 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4097 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4098 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4100 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
4103 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
4104 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4105 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4106 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4108 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4111 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
4112 expected diagnostics.
4114 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4116 PR middle-end/104784
4117 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4118 Test with '--param=openacc-kernels=decompose'.
4119 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4121 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4123 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4125 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4127 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4129 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4131 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4133 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4135 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4137 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4139 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4141 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4143 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4145 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4147 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4149 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4151 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4153 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4155 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4157 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4159 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4161 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4163 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4165 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4167 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4169 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4171 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4173 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4175 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4177 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4179 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4181 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4184 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4186 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4187 Test '-fopt-info-omp-all'.
4188 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4190 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4192 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4194 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4196 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4198 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4200 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4202 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4204 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4206 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4208 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4210 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4212 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4214 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4216 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4218 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4220 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4222 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4224 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4226 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4228 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4230 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4232 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4234 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4236 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4238 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4240 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4242 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4244 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4246 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4248 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4250 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4253 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4255 PR middle-end/100280
4256 PR middle-end/104132
4257 PR middle-end/104133
4258 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4261 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4263 PR middle-end/100280
4264 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4265 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4268 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4270 PR middle-end/100280
4271 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4272 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4275 2022-02-28 Tom de Vries <tdevries@suse.de>
4277 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
4278 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
4279 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
4280 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
4281 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
4282 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
4284 2022-02-24 Tom de Vries <tdevries@suse.de>
4286 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
4287 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
4288 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
4289 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
4290 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
4291 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
4292 * testsuite/libgomp.c/declare-variant-3.h: New header file.
4294 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
4296 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
4297 gang-redundant execution.
4299 2022-02-22 Tom de Vries <tdevries@suse.de>
4302 * config/nvptx/bar.c (generation_to_barrier): New function, copied
4303 from config/rtems/bar.c.
4304 (futex_wait, futex_wake): New function.
4305 (do_spin, do_wait): New function, copied from config/linux/wait.h.
4306 (gomp_barrier_wait_end, gomp_barrier_wait_last)
4307 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
4308 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
4309 and replace with include of config/linux/bar.c.
4310 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
4311 (gomp_barrier_init): Init new fields.
4312 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
4314 * testsuite/libgomp.c/pr99555-1.c: Same.
4315 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
4317 2022-02-22 Tom de Vries <tdevries@suse.de>
4320 * testsuite/libgomp.c++/pr96390.C: Add additional-option
4321 -foffload=-Wa,--verify for nvptx.
4322 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
4324 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
4326 * testsuite/libgomp.fortran/depend-4.f90: New test.
4328 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
4331 * testsuite/libgomp.c++/target-virtual-1.C: New test.
4333 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
4335 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
4336 * target.c (copy_firstprivate_data): Copy only if host address is not
4338 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
4339 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
4340 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
4341 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
4342 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
4343 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
4344 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
4345 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
4346 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
4347 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
4349 2022-02-08 Jakub Jelinek <jakub@redhat.com>
4352 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
4354 * testsuite/libgomp.c/pr104385.c: New test.
4356 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4358 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
4359 STOP of previous commit.
4361 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4363 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
4364 from is_64bit_aligned_.
4365 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
4366 and use it, more implicit none, remove unused argument.
4368 2022-02-03 David Seifert <soap@gentoo.org>
4369 Jakub Jelinek <jakub@redhat.com>
4371 * configure.ac: Support --disable-werror.
4372 * configure: Regenerate.
4374 2022-02-01 Tom de Vries <tdevries@suse.de>
4376 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4378 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4379 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4381 2022-02-01 Tom de Vries <tdevries@suse.de>
4383 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4384 num_workers for nvidia accelerator to fix libgomp error 'insufficient
4386 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4388 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4390 2022-02-01 Tom de Vries <tdevries@suse.de>
4392 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4394 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4396 2022-01-31 Martin Liska <mliska@suse.cz>
4398 * acinclude.m4: Detect *_ld_is_mold and use it.
4399 * configure: Regenerate.
4401 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
4403 * libgomp.texi (OpenMP 5.0): Update implementation status.
4405 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
4407 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4408 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4409 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4410 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4411 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4412 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4413 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4414 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4415 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4416 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4417 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4418 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4419 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4420 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4421 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4423 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
4425 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4426 "static") to make the device num available in the offload image.
4428 2022-01-19 Martin Liska <mliska@suse.cz>
4429 Thomas Schwinge <thomas@codesourcery.com>
4431 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4433 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4434 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4436 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4437 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4438 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4439 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4440 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4442 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4444 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4446 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4448 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4450 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4452 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4453 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4454 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4456 2022-01-18 Martin Liska <mliska@suse.cz>
4458 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4460 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4461 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4462 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4463 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4464 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4465 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4466 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4467 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4468 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4469 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4470 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4471 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4472 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4473 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4474 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4476 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
4478 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4479 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4480 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4482 2022-01-17 Julian Brown <julian@codesourcery.com>
4483 Thomas Schwinge <thomas@codesourcery.com>
4485 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4486 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4487 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4489 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4490 Andrew Stubbs <ams@codesourcery.com>
4492 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4493 the number of teams and threads if necessary.
4494 (gcn_exec): Automatically set the number of gangs and workers if
4497 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
4499 * testsuite/libgomp.fortran/allocate-1.c: New test.
4500 * testsuite/libgomp.fortran/allocate-1.f90: New test.
4501 * libgomp.texi: Remove string that says that allocate clause
4502 support is for C/C++ only.
4504 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4506 * testsuite/libgomp.c-c++-common/on_device_arch.h
4507 (any_device_arch, any_device_arch_intel_mic): New.
4508 * testsuite/lib/libgomp.exp
4509 (check_effective_target_offload_device_any_intel_mic): New.
4510 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4511 * testsuite/libgomp.fortran/target10.f90: Likewise.
4513 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4515 PR tree-optimization/102192
4516 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4517 '-Wuninitialized' diagnostics.
4519 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4521 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4522 current '-Wuninitialized' diagnostics.
4523 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4524 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4525 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4526 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4527 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4528 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4529 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4530 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4531 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4532 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4533 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4536 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4538 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4539 for 'offload_device_intel_mic'.
4541 2022-01-13 Julian Brown <julian@codesourcery.com>
4542 Thomas Schwinge <thomas@codesourcery.com>
4544 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4545 offloading execution XFAIL.
4547 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4549 PR middle-end/100280
4550 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4552 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4553 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4556 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4558 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4560 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4562 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4563 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4564 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4565 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4566 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4568 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4569 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4570 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4571 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4573 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
4575 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4576 * testsuite/libgomp.fortran/target10.f90: Likewise.
4578 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
4580 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4581 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4582 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4584 2022-01-03 Jakub Jelinek <jakub@redhat.com>
4586 * libgomp.texi: Bump @copying's copyright year.
4588 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
4590 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4591 * testsuite/libgomp.fortran/atomic-19.f90: New test.
4593 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
4595 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4596 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4597 table, not individual symbols.
4599 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
4601 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4602 "target offload_device_nonshared_as"
4603 * testsuite/libgomp.c++/target-this-3.C: Likewise.
4604 * testsuite/libgomp.c++/target-this-4.C: Likewise.
4606 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4608 * target.c (gomp_map_vars_existing): Make sure attached pointer is
4609 not overwritten during cross-host/device copying.
4610 (gomp_update): Likewise.
4611 (gomp_exit_data): Likewise.
4612 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4613 * testsuite/libgomp.c++/target-12.C: Likewise.
4614 * testsuite/libgomp.c++/target-15.C: Likewise.
4615 * testsuite/libgomp.c++/target-16.C: Likewise.
4616 * testsuite/libgomp.c++/target-17.C: Likewise.
4617 * testsuite/libgomp.c++/target-21.C: Likewise.
4618 * testsuite/libgomp.c++/target-23.C: Likewise.
4619 * testsuite/libgomp.c/target-23.c: Likewise.
4620 * testsuite/libgomp.c/target-29.c: Likewise.
4621 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4623 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4626 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4627 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4628 (goacc_enter_data_internal): Likewise.
4629 * target.c (gomp_map_vars_existing): Update assert condition to
4630 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4631 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4632 parameter, add support for mapping a pointer with NULL target.
4633 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4634 parameter, add support for attaching a pointer with NULL target.
4635 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4636 gomp_attach_pointer, add handling for
4637 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4638 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4639 * testsuite/libgomp.c++/target-23.C: New testcase.
4640 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4641 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4642 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4643 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4644 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4645 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4646 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4648 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4650 * libgomp.texi (OpenMP 5.1): Update status.
4652 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4654 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4656 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4659 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4660 * testsuite/libgomp.fortran/pr90030.f90: New test.
4662 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4663 Thomas Schwinge <thomas@codesourcery.com>
4665 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4668 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4669 Thomas Schwinge <thomas@codesourcery.com>
4671 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4674 2021-11-29 Richard Biener <rguenther@suse.de>
4676 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4679 2021-11-24 Jakub Jelinek <jakub@redhat.com>
4681 PR middle-end/103384
4682 * testsuite/libgomp.c/declare-variant-2.c: New test.
4684 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
4686 * alloc.c (gomp_aligned_alloc): Fix typo.
4688 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4691 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4692 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4693 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4694 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4695 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4696 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4697 gomp_aligned_alloc instead of team_malloc.
4699 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4702 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4703 memalign over posix_memalign over aligned_alloc over fallback
4704 with malloc instead of aligned_alloc over _aligned_alloc over
4705 posix_memalign over memalign over fallback with malloc. For
4706 aligned_alloc, round up size up to multiple of al.
4708 2021-11-16 Jakub Jelinek <jakub@redhat.com>
4710 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4711 construct as implemented.
4713 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
4715 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4717 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4719 * task.c (gomp_create_target_task): Copy args array as well.
4720 * target.c (gomp_target_fallback): Add args argument.
4721 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4722 (GOMP_target): Adjust gomp_target_fallback caller.
4723 (GOMP_target_ext): Likewise.
4724 (gomp_target_task_fn): Likewise.
4725 * config/nvptx/team.c (gomp_nvptx_main): Set
4726 gomp_global_icv.thread_limit_var.
4727 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4729 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4731 * config/nvptx/team.c (__gomp_team_num): Define as
4732 __attribute__((shared)) var.
4733 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4734 * config/nvptx/target.c (__gomp_team_num): Declare as
4735 extern __attribute__((shared)) var.
4736 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4737 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4738 is bigger than num_blocks, use num_teams_lower teams and arrange for
4739 bumping of __gomp_team_num if !first and returning false once we run
4741 * config/nvptx/teams.c (__gomp_team_num): Declare as
4742 extern __attribute__((shared)) var.
4743 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4745 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4747 * testsuite/libgomp.c/teams-5.c: New test.
4749 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4752 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4754 * config/gcn/teams.c: ... here. New file.
4756 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4758 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4759 implicit map handling to allow a "superset" existing map as valid case.
4760 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4761 (get_implicit): New function to extract implicit status.
4762 (gomp_map_fields_existing): Adjust arguments in calls to
4763 gomp_map_vars_existing, and add uses of get_implicit.
4764 (gomp_map_vars_internal): Likewise.
4765 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4767 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4769 * libgomp_g.h (GOMP_teams4): Declare.
4770 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4771 * target.c (GOMP_teams4): New function.
4772 * config/nvptx/target.c (GOMP_teams): Remove.
4773 (GOMP_teams4): New function.
4774 * config/gcn/target.c (GOMP_teams): Remove.
4775 (GOMP_teams4): New function.
4776 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4777 teams instead of <= 2.
4778 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4780 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
4782 * testsuite/libgomp.fortran/teams-1.f90: New test.
4784 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4786 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4787 * team.c (struct gomp_thread_start_data): Likewise.
4788 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4789 (gomp_team_start): Initialize start_data->num_teams and
4790 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4791 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4792 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4793 instead of gomp_num_teams and gomp_team_num.
4794 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4795 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4796 * testsuite/libgomp.c/teams-4.c: New test.
4798 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4800 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4802 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4804 * env.c (parse_gomp_openacc_dim): Restore parsing.
4806 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4808 PR middle-end/102972
4809 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4811 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4812 * testsuite/libgomp.c/target-3.c: Likewise.
4813 * testsuite/libgomp.c/target-5.c: Likewise.
4814 * testsuite/libgomp.c/target-6.c: Likewise.
4815 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4816 * testsuite/libgomp.c/teams-1.c: Likewise.
4817 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4818 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4819 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4820 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4821 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4822 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4823 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4825 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
4827 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4828 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4830 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4832 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4833 aren't implemented for Fortran yet.
4835 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4837 * testsuite/libgomp.c/loop-26.c: New test.
4838 * testsuite/libgomp.c/loop-27.c: New test.
4840 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4843 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4844 instead of #include <alloca.h> + alloca.
4846 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4848 * libgomp.texi (Support of strictly structured blocks in Fortran):
4850 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4852 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4854 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4855 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4857 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4860 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4861 (struct gomp_work_share): Only use aligned(64) attribute if
4862 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4863 add padding before lock to ensure lock is at offset 64 bytes
4865 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4866 New poor man's static assertions.
4867 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4868 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4870 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4871 Richard Biener <rguenther@suse.de>
4873 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4875 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4877 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4878 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4880 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4889 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4891 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4893 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4894 type from char [50] to const char *.
4895 (places_array): Add a testcase for simplified syntax place followed
4896 by length or length and stride.
4898 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4900 * env.c (parse_one_place): Handle non-negative-number the same
4901 as { non-negative-number }. Reject even !number:1 and
4902 !number:1:stride or !place:1 or !place:1:stride instead of just
4903 length other than 1.
4904 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4905 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4906 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4908 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4911 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4913 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4914 clearly reject return value 0 as invalid handle the case where end
4915 pointer is the same as first argument as invalid.
4916 (parse_unsigned_long_1): Likewise.
4917 (parse_one_place): Likewise.
4918 (parse_places_var): Likewise.
4919 (parse_stacksize): Likewise.
4920 (parse_spincount): Likewise.
4921 (parse_affinity): Likewise.
4922 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4923 Make code valid C89.
4924 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4925 For strtoul calls which don't clearly reject return value 0 as
4926 invalid handle the case where end pointer is the same as first
4927 argument as invalid.
4928 (gomp_affinity_init_level_1): Likewise.
4929 (gomp_affinity_init_numa_domains): Likewise.
4930 * config/rtems/proc.c (parse_thread_pools): Likewise.
4932 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4934 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4935 after creating count places clean up and return immediately.
4936 * testsuite/libgomp.c/places-6.c: New test.
4937 * testsuite/libgomp.c/places-7.c: New test.
4938 * testsuite/libgomp.c/places-8.c: New test.
4939 * testsuite/libgomp.c/places-9.c: New test.
4940 * testsuite/libgomp.c/places-10.c: New test.
4942 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4944 * env.c (parse_places_var): Handle numa_domains as level 5.
4945 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4947 (gomp_affinity_init_level): Use it instead of
4948 gomp_affinity_init_level_1 for level == 5.
4949 * testsuite/libgomp.c/places-5.c: New test.
4951 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4953 * env.c (parse_places_var): Handle ll_caches as level 4.
4954 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4956 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4958 (gomp_affinity_init_level): Likewise.
4959 * testsuite/libgomp.c/places-1.c: New test.
4960 * testsuite/libgomp.c/places-2.c: New test.
4961 * testsuite/libgomp.c/places-3.c: New test.
4962 * testsuite/libgomp.c/places-4.c: New test.
4964 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4966 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4969 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4971 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4973 2021-10-12 Julian Brown <julian@codesourcery.com>
4975 * target.c (gomp_copy_host2dev): Release device lock on cbuf
4978 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
4980 * testsuite/libgomp.fortran/icv-3.f90: New.
4981 * testsuite/libgomp.fortran/icv-4.f90: New.
4983 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4985 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4986 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4987 OMP_TEAMS_THREAD_LIMIT): Document.
4989 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4991 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4992 to avoid makeinfo warnings.
4994 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4996 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4997 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4999 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5003 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
5004 allocation sizes from 420 to 320 and from 768 to 568.
5005 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
5006 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
5007 for cr from 16 to 4.
5009 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5011 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
5012 * testsuite/libgomp.c/scan-12.c: Likewise.
5013 * testsuite/libgomp.c/scan-13.c: Likewise.
5014 * testsuite/libgomp.c/scan-14.c: Likewise.
5015 * testsuite/libgomp.c/scan-15.c: Likewise.
5016 * testsuite/libgomp.c/scan-16.c: Likewise.
5017 * testsuite/libgomp.c/scan-17.c: Likewise.
5018 * testsuite/libgomp.c/scan-18.c: Likewise.
5019 * testsuite/libgomp.c/scan-19.c: Likewise.
5020 * testsuite/libgomp.c/scan-20.c: Likewise.
5021 * testsuite/libgomp.c/scan-21.c: Likewise.
5022 * testsuite/libgomp.c/scan-22.c: Likewise.
5023 * testsuite/libgomp.c++/scan-9.C: Likewise.
5024 * testsuite/libgomp.c++/scan-10.C: Likewise.
5025 * testsuite/libgomp.c++/scan-11.C: Likewise.
5026 * testsuite/libgomp.c++/scan-12.C: Likewise.
5027 * testsuite/libgomp.c++/scan-13.C: Likewise.
5028 * testsuite/libgomp.c++/scan-14.C: Likewise.
5029 * testsuite/libgomp.c++/scan-15.C: Likewise.
5030 * testsuite/libgomp.c++/scan-16.C: Likewise.
5032 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
5034 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
5036 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
5038 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
5040 * omp.h.in: Add deprecated flag for omp_atv_sequential.
5041 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
5042 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
5043 * testsuite/libgomp.fortran/alloc-12.f90: New test.
5045 2021-10-11 Jakub Jelinek <jakub@redhat.com>
5047 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
5048 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5049 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
5050 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5051 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
5052 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5053 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
5054 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
5055 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
5056 omp_set_teams_thread_limit{,_,_8_}.
5057 * icv.c (omp_set_num_teams, omp_get_max_teams,
5058 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
5060 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
5061 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
5062 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
5064 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
5065 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
5066 is not specified, use gomp_nteams_var.
5067 * fortran.c (omp_set_num_teams, omp_get_max_teams,
5068 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
5070 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
5071 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
5072 omp_get_teams_thread_limit_): New functions.
5074 2021-10-09 liuhongt <hongtao.liu@intel.com>
5076 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
5077 * testsuite/libgomp.c++/scan-11.C: Ditto.
5078 * testsuite/libgomp.c++/scan-12.C: Ditto.
5079 * testsuite/libgomp.c++/scan-13.C: Ditto.
5080 * testsuite/libgomp.c++/scan-14.C: Ditto.
5081 * testsuite/libgomp.c++/scan-15.C: Ditto.
5082 * testsuite/libgomp.c++/scan-16.C: Ditto.
5083 * testsuite/libgomp.c++/scan-9.C: Ditto.
5084 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
5085 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
5086 * testsuite/libgomp.c/scan-11.c: Ditto.
5087 * testsuite/libgomp.c/scan-12.c: Ditto.
5088 * testsuite/libgomp.c/scan-13.c: Ditto.
5089 * testsuite/libgomp.c/scan-14.c: Ditto.
5090 * testsuite/libgomp.c/scan-15.c: Ditto.
5091 * testsuite/libgomp.c/scan-16.c: Ditto.
5092 * testsuite/libgomp.c/scan-17.c: Ditto.
5093 * testsuite/libgomp.c/scan-18.c: Ditto.
5094 * testsuite/libgomp.c/scan-19.c: Ditto.
5095 * testsuite/libgomp.c/scan-20.c: Ditto.
5096 * testsuite/libgomp.c/scan-21.c: Ditto.
5097 * testsuite/libgomp.c/scan-22.c: Ditto.
5099 2021-10-09 Jakub Jelinek <jakub@redhat.com>
5101 * libgomp.texi (OpenMP 5.1): Mention implemented support for
5102 structured block sequences in C/C++. Mention support for
5103 unconstrained/reproducible modifiers on order clause.
5104 Mention partial (C/C++ only) support of extentensions to atomics
5105 construct. Mention partial (C/C++ on clause only) support of
5106 align/allocator modifiers on allocate clause.
5108 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
5110 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
5111 based on libgomp.c-c++-common/order-reproducible-1.c.
5112 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
5113 * testsuite/libgomp.fortran/my-usleep.c: New test.
5115 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
5117 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
5118 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
5119 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
5120 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
5121 based on libgomp.c-c++-common/alloc-9.c.
5123 2021-10-01 Jakub Jelinek <jakub@redhat.com>
5125 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
5126 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
5128 2021-10-01 Jakub Jelinek <jakub@redhat.com>
5130 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
5132 * env.c (handle_omp_display_env): Use ialias_call.
5133 * icv-device.c: Move ialias right below each function.
5134 (omp_get_device_num): Use ialias_call.
5135 * fortran.c (omp_fulfill_event): Add ialias_redirect.
5136 * icv.c (omp_get_active_level): Add ialias_redirect.
5138 2021-10-01 Jakub Jelinek <jakub@redhat.com>
5140 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
5141 __alloc_align__ (1) attribute.
5142 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
5144 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
5146 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
5147 for -fintrinsic-modules-path= warning of the C compiler.
5148 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
5149 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
5151 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
5153 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
5154 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
5155 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5157 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5159 * testsuite/libgomp.fortran/alloc-10.f90: New test.
5160 * testsuite/libgomp.fortran/alloc-6.f90: New test.
5161 * testsuite/libgomp.fortran/alloc-7.c: New test.
5162 * testsuite/libgomp.fortran/alloc-7.f90: New test.
5163 * testsuite/libgomp.fortran/alloc-8.f90: New test.
5164 * testsuite/libgomp.fortran/alloc-9.f90: New test.
5166 2021-09-30 Jakub Jelinek <jakub@redhat.com>
5168 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
5169 omp_realloc): New prototypes.
5170 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
5172 * allocator.c: Include string.h.
5173 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
5174 variable and use it instead of alignment so that when retrying the old
5175 alignment is used again. Don't retry if new alignment is the same
5176 as old alignment, unless allocator had pool size.
5177 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
5178 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
5179 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
5180 omp_aligned_calloc and omp_realloc.
5181 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
5182 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
5183 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
5184 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
5185 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
5186 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
5188 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
5191 * configure.ac: Only check for int-type = 2*size_t support when
5192 building with Fortran support.
5193 * configure: Regenerate.
5195 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
5197 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
5198 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5200 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
5202 * team.c: Initialize start_data.
5203 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5204 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
5206 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
5208 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
5209 dg-message back to dg-note.
5211 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
5214 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
5215 expected dg-note output.
5217 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
5220 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
5221 r12-3722 by removing -Wno-missing-include-dirs.
5222 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5224 2021-09-22 Jakub Jelinek <jakub@redhat.com>
5226 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
5227 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
5229 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
5232 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
5234 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5236 2021-09-18 Jakub Jelinek <jakub@redhat.com>
5238 * testsuite/libgomp.c++/default-1.C: New test.
5239 * testsuite/libgomp.c-c++-common/default-1.c: New test.
5240 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
5241 to default clause in C and C++" as implemented.
5243 2021-09-17 Julian Brown <julian@codesourcery.com>
5245 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
5247 2021-09-17 Julian Brown <julian@codesourcery.com>
5249 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
5251 2021-09-17 Jakub Jelinek <jakub@redhat.com>
5253 * libgomp.texi (OpenMP 5.1): Spelling fix,
5254 declare variante -> declare variant.
5256 2021-09-17 Jakub Jelinek <jakub@redhat.com>
5258 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
5259 Use /* */ comments instead of //.
5260 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
5261 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
5262 * testsuite/libgomp.c++/atomic-16.C: New test.
5263 * testsuite/libgomp.c++/atomic-17.C: New test.
5265 2021-09-10 Jakub Jelinek <jakub@redhat.com>
5267 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
5268 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
5269 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
5271 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
5273 * libgomp.texi (OpenMP Implementation Status): Extend
5275 (OpenACC Profiling Interface): Fix typo.
5277 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
5279 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
5280 not to 4.5; link to new section.
5281 (OpenMP Implementation Status): New.
5283 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
5285 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
5287 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
5289 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
5291 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5293 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5294 Jakub Jelinek <jakub@redhat.com>
5296 * testsuite/libgomp.c/address-space-1.c: New file.
5298 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5300 * testsuite/lib/libgomp.exp
5301 (check_effective_target_offload_target_intelmic): Remove 'proc'.
5302 (check_effective_target_offload_device_intel_mic): New 'proc'.
5303 * testsuite/libgomp.c-c++-common/on_device_arch.h
5304 (device_arch_intel_mic, on_device_arch_intel_mic): New.
5305 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
5307 * testsuite/libgomp.fortran/target10.f90: Likewise.
5309 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
5311 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
5312 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
5313 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
5314 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
5316 2021-08-23 Jakub Jelinek <jakub@redhat.com>
5318 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
5319 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
5320 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
5322 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
5324 * config/nvptx/error.c (fwrite, exit): Override, too.
5325 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
5326 of offloading testing.
5327 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5329 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
5331 * testsuite/libgomp.fortran/error-1.f90: New test.
5333 2021-08-20 Jakub Jelinek <jakub@redhat.com>
5335 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
5336 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
5337 * error.c (GOMP_warning, GOMP_error): New functions.
5338 * testsuite/libgomp.c-c++-common/error-1.c: New test.
5340 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
5342 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
5343 omp_target_free. omp_target_is_present, omp_target_memcpy,
5344 omp_target_memcpy_rect, omp_target_associate_ptr,
5345 omp_target_disassociate_ptr): Add interface.
5346 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
5347 omp_target_free. omp_target_is_present, omp_target_memcpy,
5348 omp_target_memcpy_rect, omp_target_associate_ptr,
5349 omp_target_disassociate_ptr): Add interface.
5350 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
5351 interface block for omp_alloc + omp_free.
5352 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
5353 * testsuite/libgomp.fortran/refcount-1.f90: New test.
5354 * testsuite/libgomp.fortran/target-12.f90: New test.
5356 2021-08-18 Jakub Jelinek <jakub@redhat.com>
5358 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
5360 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
5362 * testsuite/libgomp.fortran/scope-1.f90: New test.
5363 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
5365 2021-08-17 Jakub Jelinek <jakub@redhat.com>
5367 * Makefile.am (libgomp_la_SOURCES): Add scope.c
5368 * Makefile.in: Regenerated.
5369 * libgomp_g.h (GOMP_scope_start): Declare.
5370 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5371 * scope.c: New file.
5372 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5373 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5375 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
5377 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5380 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
5382 * testsuite/libgomp.fortran/masked-1.f90: New test.
5384 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
5386 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5388 2021-08-12 Jakub Jelinek <jakub@redhat.com>
5390 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5392 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
5394 * env.c (parse_bind_var): Accept 'primary' as alias for
5396 (omp_display_env): Add TODO comment to
5397 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5398 * libgomp.texi: Change 'master thread' to 'primary thread'
5399 in line with OpenMP 5.1.
5400 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5401 omp_proc_bind_master is an alias of it.
5402 (OMP_PROC_BIND): Mention 'PRIMARY'.
5403 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5404 (omp_proc_bind_primary): Add.
5405 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5406 * omp_lib.f90.in (omp_proc_bind_primary): Add.
5407 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5408 * omp_lib.h.in (omp_proc_bind_primary): Add.
5409 * testsuite/libgomp.c/affinity-1.c: Check that
5410 'primary' works and is identical to 'master'.
5412 2021-08-09 Julian Brown <julian@codesourcery.com>
5413 Kwok Cheung Yeung <kcy@codesourcery.com>
5414 Thomas Schwinge <thomas@codesourcery.com>
5416 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5418 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5419 [acc_device_radeon]: Update.
5420 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5421 [ACC_DEVICE_TYPE_radeon]: Likewise.
5422 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5423 [acc_device_radeon]: Likewise.
5424 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5425 [ACC_DEVICE_TYPE_radeon]: Likewise.
5426 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5427 'openacc_radeon_accel_selected' and '-O0'.
5428 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5430 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
5432 * icv-device.c (omp_get_device_num): New API function, host side.
5433 * fortran.c (omp_get_device_num_): New interface function.
5434 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5435 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5436 omp_get_device_num_.
5437 * libgomp.texi (omp_get_device_num): Add documentation for new API
5439 * omp.h.in (omp_get_device_num): Add declaration.
5440 * omp_lib.f90.in (omp_get_device_num): Likewise.
5441 * omp_lib.h.in (omp_get_device_num): Likewise.
5442 * target.c (gomp_load_image_to_device): If additional entry for device
5443 number exists at end of returned entries from 'load_image_func' hook,
5444 copy the assigned device number over to the device variable.
5445 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5446 (omp_get_device_num): New API function, device side.
5447 * plugin/plugin-gcn.c ("symcat.h"): Add include.
5448 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5449 at end of returned 'target_table' entries.
5450 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5451 (omp_get_device_num): New API function, device side.
5452 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5453 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5454 at end of returned 'target_table' entries.
5455 * testsuite/lib/libgomp.exp
5456 (check_effective_target_offload_target_intelmic): New function for
5457 testing for intelmic offloading.
5458 * testsuite/libgomp.c-c++-common/target-45.c: New test.
5459 * testsuite/libgomp.fortran/target10.f90: New test.
5461 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
5462 Ulrich Drepper <drepper@redhat.com>
5464 * fortran.c (omp_display_env_, omp_display_env_8_): Only
5465 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5467 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
5468 Julian Brown <julian@codesourcery.com>
5469 Kwok Cheung Yeung <kcy@codesourcery.com>
5471 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5472 's%oaccdevlow%oaccloops%g'.
5473 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5474 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5475 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5477 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5479 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5481 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5483 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5485 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5487 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5489 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5491 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5493 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
5495 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5497 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5499 2021-07-27 Ulrich Drepper <drepper@gmail.com>
5501 * env.c (wait_policy, stacksize): New static variables,
5502 move out of handle_omp_display_env.
5503 (omp_display_env): New function. The meat of the old
5504 handle_omp_display_env function.
5505 (handle_omp_display_env): Change to not take parameters
5506 and instead use the global variables. Only perform
5507 parsing, defer to omp_display_env for the implementation.
5508 (initialize_env): Remove local variables wait_policy and
5509 stacksize. Don't pass parameters to handle_omp_display_env.
5510 * fortran.c: Add ialias_redirect for omp_display_env.
5511 (omp_display_env_, omp_display_env_8_): New functions.
5512 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
5513 omp_display_env_, and omp_display_env_8_.
5514 * omp.h.in: Declare omp_display_env.
5515 * omp_lib.f90.in: Likewise.
5516 * omp_lib.h.in: Likewise.
5518 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5519 Julian Brown <julian@codesourcery.com>
5521 * target.c (gomp_coalesce_buf_add): Update comment.
5522 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5524 (gomp_map_vars_internal): Only 'if (!aq)', do
5525 'gomp_coalesce_buf_add'.
5526 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5529 2021-07-27 Julian Brown <julian@codesourcery.com>
5530 Thomas Schwinge <thomas@codesourcery.com>
5532 * libgomp.h (gomp_copy_host2dev): Update prototype.
5533 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5534 argument to gomp_copy_host2dev (false).
5535 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5536 (copy_data): Don't free src.
5537 (queue_push_copy): Remove free_src handling.
5538 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5539 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5541 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5543 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5544 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
5545 data when true, and set up deferred freeing of temporary buffer.
5546 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5547 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5548 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5549 calls to gomp_copy_host2dev with appropriate ephemeral argument.
5550 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5553 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5554 Tom de Vries <tom@codesourcery.com>
5556 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5557 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5559 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5561 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5562 sequencing of 'async' data copying vs. profiling events.
5563 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5566 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5567 Julian Brown <julian@codesourcery.com>
5569 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5570 'async'/'wait' issue.
5571 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5572 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5573 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5575 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
5576 Joseph Myers <joseph@codesourcery.com>
5577 Cesar Philippidis <cesar@codesourcery.com>
5579 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5581 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5583 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5585 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5587 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
5590 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5591 '-Wno-error=array-bounds'.
5592 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5593 * libgomp.h [__AMDGCN__]: Likewise.
5595 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
5598 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5599 * libgomp.h [__AMDGCN__]: Likewise.
5601 2021-07-13 Jakub Jelinek <jakub@redhat.com>
5602 Florian Weimer <fweimer@redhat.com>
5604 * config/linux/sem.h: Don't include limits.h.
5605 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5606 * config/linux/affinity.c: Include limits.h.
5608 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5611 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5613 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5616 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5617 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5618 avoid disabling other offload targets.
5619 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5620 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5621 * testsuite/libgomp.c/target-44.c: Likewise.
5623 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5625 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5626 target has shared memory and disable some scalar pointer/allocatable
5627 checks if not as firstprivate does not work.
5629 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5632 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5633 Add "target offload_device_nonshared_as" condition for enabling test.
5635 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5637 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5638 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5639 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5640 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5642 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5644 PR middle-end/101167
5645 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5647 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5649 * hashtab.h (htab_clear): New function with initialization code
5650 factored out from...
5651 (htab_create): ...here, adjust to use htab_clear function.
5652 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5653 special refcount values, add comments.
5654 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5655 (REFCOUNT_LINK): Likewise.
5656 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5658 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5660 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5661 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5662 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5663 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5664 (struct splay_tree_key_s): Add structelem_refcount and
5665 structelem_refcount_ptr fields into a union with dynamic_refcount.
5667 (gomp_map_vars): Delete declaration.
5668 (gomp_map_vars_async): Likewise.
5669 (gomp_unmap_vars): Likewise.
5670 (gomp_unmap_vars_async): Likewise.
5671 (goacc_map_vars): New declaration.
5672 (goacc_unmap_vars): Likewise.
5673 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5674 (goacc_enter_datum): Likewise.
5675 (goacc_enter_data_internal): Likewise.
5676 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5677 and goacc_unmap_vars.
5678 (GOACC_data_start): Adjust to use goacc_map_vars.
5679 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5680 * target.c (hash_entry_type): New typedef.
5681 (htab_alloc): New function hook for hashtab.h.
5682 (htab_free): Likewise.
5683 (htab_hash): Likewise.
5684 (htab_eq): Likewise.
5685 (hashtab.h): Add file include.
5686 (gomp_increment_refcount): New function.
5687 (gomp_decrement_refcount): Likewise.
5688 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5689 gomp_increment_refcount.
5690 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5691 to gomp_map_vars_existing.
5692 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5693 variable to guard OpenMP specific paths, adjust calls to
5694 gomp_map_vars_existing, add structure element sibling splay_tree_key
5695 sequence creation code, adjust Fortran map case to avoid increment
5697 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5698 local refcount_set if caller passed in NULL, adjust call to
5699 gomp_map_vars_internal.
5700 (gomp_map_vars_async): Adjust and rename into...
5701 (goacc_map_vars): ...this new function, adjust call to
5702 gomp_map_vars_internal.
5703 (gomp_remove_splay_tree_key): New function with code factored out from
5704 gomp_remove_var_internal.
5705 (gomp_remove_var_internal): Add code to handle removing multiple
5706 splay_tree_key sequence for structure elements, adjust code to use
5707 gomp_remove_splay_tree_key for splay-tree key removal.
5708 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5709 gomp_decrement_refcount.
5710 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5711 local refcount_set if caller passed in NULL, adjust call to
5712 gomp_unmap_vars_internal.
5713 (gomp_unmap_vars_async): Adjust and rename into...
5714 (goacc_unmap_vars): ...this new function, adjust call to
5715 gomp_unmap_vars_internal.
5716 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5718 (GOMP_target_ext): Likewise.
5719 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5720 (GOMP_target_data): Likewise.
5721 (GOMP_target_data_ext): Likewise.
5722 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5723 (gomp_exit_data): Add refcount_set parameter, adjust to use
5724 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5726 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5727 gomp_map_vars and gomp_exit_data.
5728 (gomp_target_task_fn): Likewise.
5729 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5730 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5731 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5732 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5733 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5734 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5736 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5739 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5741 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5742 Thomas Schwinge <thomas@codesourcery.com>
5744 * libgomp.map (GOACC_2.0.2): New symbol version.
5745 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5746 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5748 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5749 Andrew Stubbs <ams@codesourcery.com>
5751 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5753 (GOACC_enter_exit_data): ... here.
5754 (GOACC_declare): Use it.
5756 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5758 * oacc-parallel.c (GOACC_declare): Move...
5759 * oacc-mem.c: ... here.
5760 * libgomp_g.h: Adjust.
5762 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5763 Thomas Schwinge <thomas@codesourcery.com>
5765 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5768 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5770 PR tree-optimization/100981
5771 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5772 dsdotr and dsdoti to 0.
5774 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5776 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5777 if atomic compare-and-swap is supported on 'int'.
5779 2021-06-09 Richard Biener <rguenther@suse.de>
5781 PR tree-optimization/100981
5782 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5784 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5786 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5788 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5790 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5791 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5793 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5795 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5796 '-DACC_MEM_SHARED=0'.
5797 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5798 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5799 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5800 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5801 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5802 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5803 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5804 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5805 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5806 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5807 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5808 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5809 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5810 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5811 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5812 'acc_device_radeon' testing.
5813 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5814 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5815 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5816 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5817 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5818 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5819 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5820 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5821 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5822 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5823 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5824 for non-'openacc_nvidia_accel_selected'.
5825 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5826 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5827 all implement this checking".
5828 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5829 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5830 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5831 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5832 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5834 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5836 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5837 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5839 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5841 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5842 for 'acc_device_radeon'.
5844 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5846 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5847 for non-'acc_device_nvidia'.
5849 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5851 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5852 'acc_device_radeon' testing.
5853 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5854 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5855 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5857 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5859 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5860 require 'openacc_nvidia_accel_selected'. Fix up for
5861 'ACC_DEVICE_TYPE_radeon'.
5863 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5865 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5866 'openacc_nvidia_accel_selected'.
5867 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5869 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5871 * testsuite/lib/libgomp.exp
5872 (check_effective_target_openacc_radeon_accel_selected):
5875 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5877 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5880 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5882 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5883 <acc_device_nvidia>: Update comment.
5885 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5887 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5889 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5891 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5892 check_effective_target_openacc_cublas,
5893 check_effective_target_openacc_cudart): New.
5894 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5895 target openacc_cublas.
5896 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5897 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5898 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5899 target openacc_cuda.
5900 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5901 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5902 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5903 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5904 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5905 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5906 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5907 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5908 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5909 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5910 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5911 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5912 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5913 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5914 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5915 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5916 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5917 targets openacc_cublas and openacc_cudart.
5918 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5919 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5920 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5921 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5922 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5923 Require effective target openacc_cudart.
5924 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5925 for effective target openacc_cuda and add && defined USE_CUDA_H to
5926 preprocessor conditionals. Guard -lcuda also on openacc_cuda
5929 2021-05-26 Jakub Jelinek <jakub@redhat.com>
5932 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5933 GOMP_target_end_data, GOMP_target_update_ext,
5934 GOMP_target_enter_exit_data): New dummy entrypoints.
5935 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5936 GOMP_target_end_data, GOMP_target_update_ext,
5937 GOMP_target_enter_exit_data): Likewise.
5938 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5939 OMPFROM, OMPTO): Define.
5940 (main): Remove #pragma omp target teams around all the tests.
5941 * testsuite/libgomp.c-c++-common/target-41.c: New test.
5942 * testsuite/libgomp.c-c++-common/target-42.c: New test.
5944 2021-05-25 Jakub Jelinek <jakub@redhat.com>
5947 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5949 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
5952 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5953 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5954 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5956 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
5959 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5960 uninteresting/varying diagnostics.
5962 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5965 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5966 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5968 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5971 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5973 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5974 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5975 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5977 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5979 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5981 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5983 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5985 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5987 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5989 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5991 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5993 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5995 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5997 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5999 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6001 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6003 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6005 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6007 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6009 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6011 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6013 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6015 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6017 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6018 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6019 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6020 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
6021 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6022 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6023 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6024 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6025 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6026 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6027 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6028 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6029 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6030 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6031 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6033 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
6035 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
6037 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6039 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
6040 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6042 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6043 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6044 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6045 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6046 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
6047 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6048 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6050 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6052 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6054 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6056 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6058 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6060 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6062 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6064 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6066 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6068 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6070 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6072 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6074 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6075 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6076 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6078 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6080 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6081 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6082 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6084 2021-05-21 Julian Brown <julian@codesourcery.com>
6085 Chung-Lin Tang <cltang@codesourcery.com>
6086 Thomas Schwinge <thomas@codesourcery.com>
6089 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
6091 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6093 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6096 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6098 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
6099 for nvptx offloading.
6101 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
6103 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
6105 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
6108 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
6110 2021-05-19 Julian Brown <julian@codesourcery.com>
6112 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
6114 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6116 * testsuite/lib/libgomp.exp
6117 (check_effective_target_offload_target_nvptx): Don't shadow global
6118 'offload_targets' variable.
6120 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6122 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
6123 '-latomic' to nvptx offloading compilation.
6124 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6126 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6128 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
6129 offloading compilation.
6131 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
6133 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
6134 if new tasks generated.
6135 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
6137 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
6139 * testsuite/libgomp.fortran/parallel-master.f90: New test.
6141 2021-05-13 Martin Liska <mliska@suse.cz>
6144 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
6145 * testsuite/libgomp.c/pr46032-2.c: Likewise.
6146 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
6147 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
6149 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
6151 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
6152 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
6154 2021-05-11 Jakub Jelinek <jakub@redhat.com>
6156 PR middle-end/100471
6157 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
6158 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
6160 * testsuite/libgomp.c/task-reduction-4.c: New test.
6162 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
6163 Tom de Vries <tdevries@suse.de>
6165 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
6166 complex/floating-point || + && reduction with 'omp target'.
6167 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6169 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
6171 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
6172 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
6173 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
6174 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
6176 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
6179 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
6180 declaration to scope of non-'depend'-guarded assignment to avoid races.
6182 2021-05-03 Tom de Vries <tdevries@suse.de>
6185 * testsuite/libgomp.c/target-44.c: New test.
6187 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
6189 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
6191 2021-04-29 Tom de Vries <tdevries@suse.de>
6193 * testsuite/libgomp.c/pr81778.c: New test.
6195 2021-04-29 Tom de Vries <tdevries@suse.de>
6198 * testsuite/libgomp.c/target-43.c: New file.
6200 2021-04-28 Jakub Jelinek <jakub@redhat.com>
6201 Tobias Burnus <tobias@codesourcery.com>
6203 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
6204 * target.c (gomp_load_plugin_for_device): If set and if a plugin
6205 can't be dlopened, silently assume it has no devices.
6206 * Makefile.in: Regenerate.
6207 * config.h.in: Regenerate.
6208 * configure: Regenerate.
6210 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
6212 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6213 Use [Ww]arning in dg-bogus as FE diagnostic and default
6214 diagnostic differ and the result depends on ENABLE_OFFLOAD.
6215 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6216 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6217 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6219 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
6221 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6222 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
6223 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6224 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6225 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6227 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6228 Nathan Sidwell <nathan@codesourcery.com>
6229 Tom de Vries <vries@codesourcery.com>
6230 Julian Brown <julian@codesourcery.com>
6231 Kwok Cheung Yeung <kcy@codesourcery.com>
6233 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
6234 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
6235 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6236 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6237 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6238 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6239 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
6241 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6242 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6243 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6244 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6246 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6247 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6249 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6250 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6251 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6252 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6253 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6254 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6256 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6257 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
6258 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6259 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6260 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6261 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
6262 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6263 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6264 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6265 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6266 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6268 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6270 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
6272 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6273 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6275 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6276 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
6277 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6278 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6279 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6280 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6281 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6283 2021-04-22 Richard Biener <rguenther@suse.de>
6285 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
6288 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6290 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
6291 omp_depend_kind instead of defining it as 16.
6293 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6295 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6296 New, based on check_effective_target_offload_target_nvptx.
6297 (check_effective_target_offload_target_nvptx): Call it.
6298 (check_effective_target_offload_target_amdgcn): New.
6299 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
6300 Require target offload_target_nvptx || offload_target_amdgcn.
6301 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
6302 * testsuite/libgomp.c/pr86416-1.c: Likewise.
6303 * testsuite/libgomp.c/pr86416-2.c: Likewise.
6305 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6307 * testsuite/libgomp.fortran/depobj-1.f90: New test.
6309 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
6311 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6312 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
6313 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6315 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6317 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6319 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
6322 * testsuite/lib/libgomp.exp
6323 (check_effective_target_offload_device_nvptx): New.
6324 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
6325 resolved, make sure that we exit quickly, with error status,
6327 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
6328 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6330 2021-04-14 Jakub Jelinek <jakub@redhat.com>
6333 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
6334 cp = omp_alloc with cp, p arguments instead of cq, q and call
6335 c_f_pointer after last cq = omp_alloc with cq, q.
6337 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
6340 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
6341 for loop with GT/GE condition.
6342 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6344 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
6349 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
6351 2021-04-09 Jakub Jelinek <jakub@redhat.com>
6354 * team.c (gomp_thread_start): Call pthread_setspecific for
6355 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
6356 has been initialized to avoid false positive warning.
6358 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
6361 * testsuite/lib/on_device_arch.c: Move to ...
6362 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
6363 * testsuite/libgomp.fortran/on_device_arch.c: New file;
6364 #include on_device_arch.h.
6365 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
6366 on_device_arch.h instead of using dg-additional-source.
6367 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6368 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
6369 on_device_arch.c without relative paths.
6371 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6373 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6374 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6375 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6376 * config.h.in: Regenerate.
6377 * configure: Likewise.
6379 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6382 * testsuite/lib/on_device_arch.c: New file.
6383 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6384 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6385 skip for nvptx offloading, with error status.
6386 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6388 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6390 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6391 OpenACC 'serial' construct diagnostic for nvptx offloading.
6393 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
6396 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6398 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
6401 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6403 2021-03-04 Jakub Jelinek <jakub@redhat.com>
6405 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6406 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6407 checking of -m32 or -mx32 options on the command line.
6408 * config.h.in: Regenerated.
6409 * configure: Regenerated.
6411 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
6413 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6414 support from the target.
6416 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6417 Jakub Jelinek <jakub@redhat.com>
6420 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6421 (struct gomp_task): Replace detach and completion_sem fields with
6422 union containing completion_sem and detach_team. Add deferred_p
6424 (struct gomp_team): Remove task_detach_queue.
6425 * task.c: Include assert.h.
6426 (gomp_init_task): Initialize deferred_p and completion_sem fields.
6427 Rearrange initialization order of fields.
6428 (task_fulfilled_p): Delete.
6429 (GOMP_task): Use address of task as the event handle. Remove
6430 initialization of detach field. Initialize deferred_p field.
6431 Use automatic local for completion_sem. Initialize detach_team field
6433 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6434 Set kind of suspended detach task to GOMP_TASK_DETACHED and
6435 decrement task_running_count. Move finish_cancelled block out of
6436 else branch. Relocate call to gomp_team_barrier_done.
6437 (GOMP_taskwait): Handle tasks with completion events that have not
6439 (GOMP_taskgroup_end): Likewise.
6440 (omp_fulfill_event): Use address of task as event handle. Post to
6441 completion_sem for undeferred tasks. Clear detach_team if task
6442 has not finished. For finished tasks, handle post-execution tasks,
6443 call gomp_team_barrier_wake if necessary, and free task.
6444 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6445 (free_team): Remove free of task_detach_queue.
6446 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6447 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6448 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6449 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6450 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6451 Change data-sharing of detach events on enclosing parallel to private.
6452 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
6454 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6455 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6456 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6457 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6458 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6459 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6460 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6461 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6462 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6463 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6464 Change data-sharing of detach events on enclosing parallel to private.
6465 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
6467 * testsuite/libgomp.fortran/task-detach-7.f90: New.
6468 * testsuite/libgomp.fortran/task-detach-8.f90: New.
6469 * testsuite/libgomp.fortran/task-detach-9.f90: New.
6470 * testsuite/libgomp.fortran/task-detach-10.f90: New.
6471 * testsuite/libgomp.fortran/task-detach-11.f90: New.
6473 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
6476 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6478 2021-02-17 Julian Brown <julian@codesourcery.com>
6480 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6483 2021-02-17 Julian Brown <julian@codesourcery.com>
6485 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6486 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6488 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6490 * config/linux/x86/futex.h (__futex_wait):
6491 Revert output type back to long.
6492 (__futex_wake): Ditto.
6493 (futex_wait): Update for revert.
6494 (futex_wake): Ditto.
6496 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6498 * config/linux/x86/futex.h (__futex_wait): New static inline
6499 wrapper function. Correct output type to int and
6500 timeout type to void *.
6501 (__futex_wake): New static inline wrapper function.
6502 Correct output type to int.
6503 (futex_wait): Use __futex_wait.
6504 (futex_wake): Use __futex_wake.
6506 2021-02-10 Julian Brown <julian@codesourcery.com>
6509 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6512 2021-02-04 Julian Brown <julian@codesourcery.com>
6514 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6516 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
6518 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6519 EF_AMDGPU_MACH_AMDGCN_GFX908.
6520 (gcn_gfx908_s): New constant string.
6521 (isa_hsa_name): Add gfx908.
6522 (isa_code): Add gfx908.
6524 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6526 * libgomp.texi (omp_fulfill_event): New entry.
6528 2021-01-20 Jakub Jelinek <jakub@redhat.com>
6530 * task.c (GOMP_task): Rename priority argument to priority_arg,
6531 add priority automatic variable and modify that variable. Instead of
6532 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6533 check flags for that bit.
6535 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
6538 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6540 2021-01-18 Andreas Schwab <schwab@suse.de>
6542 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6544 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6546 * config/rtems/sem.h (gomp_sem_getcount): New function.
6548 2021-01-18 Jakub Jelinek <jakub@redhat.com>
6550 * config/linux/sem.h (gomp_sem_getcount): New function.
6551 * config/posix/sem.h (gomp_sem_getcount): New function.
6552 * config/posix/sem.c (gomp_sem_getcount): New function.
6553 * config/accel/sem.h (gomp_sem_getcount): New function.
6554 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6555 (omp_fulfill_event): Likewise.
6557 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
6559 * fortran.c (omp_fulfill_event_): New.
6560 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6561 (struct gomp_team): Add task_detach_queue and task_detach_count
6563 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6564 * libgomp_g.h (GOMP_task): Add extra argument.
6565 * omp.h.in (enum omp_event_handle_t): New.
6566 (omp_fulfill_event): New.
6567 * omp_lib.f90.in (omp_event_handle_kind): New.
6568 (omp_fulfill_event): New.
6569 * omp_lib.h.in (omp_event_handle_kind): New.
6570 (omp_fulfill_event): Declare.
6571 * priority_queue.c (priority_tree_find): New.
6572 (priority_list_find): New.
6573 (priority_queue_find): New.
6574 * priority_queue.h (priority_queue_predicate): New.
6575 (priority_queue_find): New.
6576 * task.c (gomp_init_task): Initialize detach field.
6577 (task_fulfilled_p): New.
6578 (GOMP_task): Add detach argument. Ignore detach argument if
6579 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
6580 field. Copy address of completion_sem into detach argument and
6581 into the start of the data record. Wait for detach event if task
6583 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6584 Remove completed tasks and requeue dependent tasks.
6585 (omp_fulfill_event): New.
6586 * team.c (gomp_new_team): Initialize task_detach_queue and
6587 task_detach_count fields.
6588 (free_team): Free task_detach_queue field.
6589 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6590 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6591 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6592 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6593 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6594 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6595 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6596 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6597 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6598 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6599 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6600 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6602 2021-01-15 Jakub Jelinek <jakub@redhat.com>
6605 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6606 be added through preprocessor check on
6607 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6609 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
6612 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6614 * configure: Regenerate.
6615 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6618 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6620 * configure: Re-generate.
6622 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6624 * configure: Re-generate.
6626 2021-01-05 Julian Brown <julian@codesourcery.com>
6628 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6629 (struct ptx_device): Add omp_stacks struct.
6630 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6631 (nvptx_close_device): Free cached stacks block and mutex.
6632 (nvptx_stacks_free): New function.
6633 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6634 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6635 (nvptx_stacks_alloc): Rename to...
6636 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6637 size or smaller is required.
6638 (nvptx_stacks_free): Remove.
6639 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6640 during kernel execution.
6642 2021-01-01 Jakub Jelinek <jakub@redhat.com>
6644 * libgomp.texi: Bump @copying's copyright year.
6646 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6648 * libgomp.texi (Top): Avoid bad "up" link.
6650 2020-12-18 Jakub Jelinek <jakub@redhat.com>
6652 * testsuite/libgomp.c/task-6.c: New test.
6654 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
6656 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6657 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6659 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
6661 * testsuite/libgomp.fortran/scan-1.f90: New test.
6663 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6666 * configure: Regenerate.
6668 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
6670 * configure: Regenerate.
6672 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6674 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6675 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6677 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
6679 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6682 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
6684 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6685 (reserved): Delete unused define.
6687 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6689 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6690 Tcl 8.5-specific behavior.
6691 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6693 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6695 * env.c (gomp_global_icv): Remove nest_var field. Add
6696 max_active_levels_var field.
6697 (gomp_max_active_levels_var): Remove.
6698 (parse_boolean): Return true on success.
6699 (handle_omp_display_env): Express OMP_NESTED in terms of
6700 max_active_levels_var. Change format specifier for
6701 max_active_levels_var.
6702 (initialize_env): Set max_active_levels_var from
6703 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6705 * icv.c (omp_set_nested): Express in terms of
6706 max_active_levels_var.
6707 (omp_get_nested): Likewise.
6708 (omp_set_max_active_levels): Use max_active_levels_var field instead
6709 of gomp_max_active_levels_var.
6710 (omp_get_max_active_levels): Likewise.
6711 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6712 max_active_levels_var field.
6713 (gomp_supported_active_levels): Set to UCHAR_MAX.
6714 (gomp_max_active_levels_var): Delete.
6715 * libgomp.texi (omp_get_nested): Update documentation.
6716 (omp_set_nested): Likewise.
6717 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6718 (OMP_NESTED): Likewise.
6719 (OMP_NUM_THREADS): Likewise.
6720 (OMP_PROC_BIND): Likewise.
6721 * parallel.c (gomp_resolve_num_threads): Replace reference
6722 to nest_var with max_active_levels_var. Use max_active_levels_var
6723 field instead of gomp_max_active_levels_var.
6725 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
6727 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6728 nvptx_usleep; use also for device={arch(gcn)}.
6730 2020-11-14 Jakub Jelinek <jakub@redhat.com>
6732 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6733 (foo): Add tests for non-VLA private and firstprivate clauses on
6735 (bar): Likewise. Remove taking of address from private/firstprivate
6737 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6738 (foo): Add p, q, px and s arguments. Add tests for array reductions
6739 and for non-VLA private and firstprivate clauses on omp task.
6741 (main): Adjust foo caller. Don't call bar.
6743 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6744 Thomas Schwinge <thomas@codesourcery.com>
6746 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6748 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6750 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6752 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6753 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6755 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6756 Thomas Schwinge <thomas@codesourcery.com>
6759 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6761 2020-11-13 Jakub Jelinek <jakub@redhat.com>
6763 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6764 for array reductions.
6765 (main): Adjust foo callers.
6767 2020-11-12 Jakub Jelinek <jakub@redhat.com>
6769 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6770 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6771 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6772 * allocator.c (omp_aligned_alloc): New for now static function,
6773 add alignment argument and handle it.
6774 (omp_alloc): Reimplement using omp_aligned_alloc.
6775 (GOMP_alloc, GOMP_free): New functions.
6776 (omp_free): Add ialias.
6777 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6778 * testsuite/libgomp.c++/allocate-1.C: New test.
6780 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6783 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6785 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6787 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6789 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6790 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6791 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6792 (goacc_enter_data_internal): Likewise.
6793 * target.c (gomp_map_vars_internal):
6794 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6795 of gomp_attach_pointer for OpenMP cases.
6796 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6797 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6798 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6800 2020-11-05 Ulrich Drepper <drepper@redhat.com>
6801 Kwok Cheung Yeung <kcy@codesourcery.com>
6803 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6804 * Makefile.in: Regenerate.
6805 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6806 pragmas to ignore -Wdeprecated-declarations warnings.
6808 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6809 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6810 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6811 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6813 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6815 * testsuite/libgomp.c/affinity-1.c: Likewise.
6816 * testsuite/libgomp.c/affinity-2.c: Likewise.
6817 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6818 * testsuite/libgomp.c/lib-1.c: Likewise.
6819 * testsuite/libgomp.c/nested-1.c: Likewise.
6820 * testsuite/libgomp.c/nested-2.c: Likewise.
6821 * testsuite/libgomp.c/nested-3.c: Likewise.
6822 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6823 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6824 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6825 * testsuite/libgomp.c/pr35549.c: Likewise.
6826 * testsuite/libgomp.c/pr42942.c: Likewise.
6827 * testsuite/libgomp.c/pr61200.c: Likewise.
6828 * testsuite/libgomp.c/sort-1.c: Likewise.
6829 * testsuite/libgomp.c/target-5.c: Likewise.
6830 * testsuite/libgomp.c/target-6.c: Likewise.
6831 * testsuite/libgomp.c/teams-1.c: Likewise.
6832 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6833 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6834 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6835 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6836 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6837 * testsuite/libgomp.fortran/lib2.f: Likewise.
6838 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6839 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6841 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6844 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6845 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6846 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6848 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6852 * testsuite/lib/libgomp.exp (libgomp_init): Set
6853 'gcc_warning_prefix', 'gcc_error_prefix'.
6855 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6857 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6858 even in field_tgt_clear initializer.
6860 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6862 * testsuite/libgomp.c/target-42.c: New test.
6864 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6865 Tom de Vries <tdevries@suse.de>
6868 * testsuite/libgomp.c/usleep.h: New file.
6869 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6870 (main): Use tgt_usleep instead of usleep.
6871 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6872 (main): Use tgt_usleep instead of usleep.
6874 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6877 * testsuite/libgomp.c/declare-variant-1.c: New test.
6879 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6881 * testsuite/libgomp.c/target-41.c: New test.
6883 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6885 * icv.c (omp_get_initial_device): Remove including corresponding
6887 * icv-device.c (omp_get_initial_device): New function. Return
6888 gomp_get_num_devices (). Add ialias.
6889 * target.c (resolve_device): Don't fail with
6890 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6891 gomp_get_num_devices ().
6892 (omp_target_alloc, omp_target_free, omp_target_is_present,
6893 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6894 omp_target_disassociate_ptr, omp_pause_resource): Use
6895 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6896 first use in the functions, in uses dominated by the
6897 gomp_get_num_devices call use num_devices_openmp instead.
6898 * libgomp.texi (omp_get_initial_device): Document.
6899 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6901 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6902 * testsuite/libgomp.c/target-40.c: New test.
6904 2020-10-21 Jakub Jelinek <jakub@redhat.com>
6906 * env.c (parse_target_offload): Change new_offload var type to int,
6907 preinitialize to -1, remove found var and test new_offload != -1
6910 2020-10-20 Jakub Jelinek <jakub@redhat.com>
6912 * target.c (gomp_target_init): Inside of the function, use automatic
6913 variables corresponding to num_devices, num_devices_openmp and devices
6914 global variables and update the globals only at the end of the
6917 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6919 * env.c (gomp_target_offload_var): New.
6920 (parse_target_offload): New.
6921 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6922 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6923 * libgomp.h (gomp_target_offload_t): New.
6924 (gomp_target_offload_var): New.
6925 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6926 * target.c (resolve_device): Generate error if device not found and
6927 offloading is mandatory.
6928 (gomp_target_fallback): Generate error if offloading is mandatory.
6929 (GOMP_target): Add argument in call to gomp_target_fallback.
6930 (GOMP_target_ext): Likewise.
6931 (gomp_target_data_fallback): Generate error if offloading is mandatory.
6932 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6933 (GOMP_target_data_ext): Likewise.
6934 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6935 (gomp_target_init): Return early if offloading is disabled.
6937 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
6939 * libgomp.texi (omp_get_max_active_levels): Modify description.
6940 (omp_get_supported_active_levels): Make descriptions consistent.
6942 2020-10-14 Jakub Jelinek <jakub@redhat.com>
6944 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6946 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6948 * env.c (gomp_max_active_levels_var): Initialize to
6949 gomp_supported_active_levels.
6950 (initialize_env): Limit gomp_max_active_levels_var to be at most
6951 equal to gomp_supported_active_levels.
6952 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6953 (omp_get_supported_active_levels_): New.
6954 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6955 to at most equal to gomp_supported_active_levels.
6956 (omp_get_supported_active_levels): New.
6957 * libgomp.h (gomp_supported_active_levels): New.
6958 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6959 omp_get_supported_active_levels_.
6960 * libgomp.texi (omp_get_supported_active_levels): New.
6961 (omp_set_max_active_levels): Update. Add reference to
6962 omp_get_supported_active_levels.
6963 * omp.h.in (omp_get_supported_active_levels): New.
6964 * omp_lib.f90.in (omp_get_supported_active_levels): New.
6965 * omp_lib.h.in (omp_get_supported_active_levels): New.
6966 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6967 against omp_get_supported_active_levels.
6968 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6970 2020-10-11 Clement Chigot <clement.chigot@atos.net>
6972 * config/t-aix: Delete and recreate libgomp before creating
6975 2020-10-08 Tom de Vries <tdevries@suse.de>
6978 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6981 2020-10-06 Tom de Vries <tdevries@suse.de>
6983 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6985 2020-10-06 Tom de Vries <tdevries@suse.de>
6988 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6990 2020-10-05 Tom de Vries <tdevries@suse.de>
6993 * testsuite/libgomp.fortran/pr95654.f90: New test.
6995 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
6997 * Makefile.in: Regenerate with automake 1.15.1.
6998 * aclocal.m4: Likewise.
6999 * configure: Likewise.
7000 * testsuite/Makefile.in: Likewise.
7002 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
7004 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
7007 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
7009 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
7011 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
7013 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
7014 total number of threads is one.
7015 (gomp_team_barrier_wake): Likewise.
7016 (gomp_team_barrier_wait_end): Likewise.
7017 (gomp_team_barrier_wait_cancel_end): Likewise.
7018 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
7019 (gomp_team_barrier_wake): Likewise.
7020 (gomp_team_barrier_wait_end): Likewise.
7021 (gomp_team_barrier_wait_cancel_end): Likewise.
7022 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
7024 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
7027 * testsuite/libgomp.c++/pr96390.C: New test.
7028 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
7030 2020-09-27 Clement Chigot <clement.chigot@atos.net>
7032 * config/t-aix: Use $(AR) without -X32_64.
7034 2020-09-25 Jakub Jelinek <jakub@redhat.com>
7036 * testsuite/libgomp.c/loop-25.c: New test.
7038 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
7041 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
7043 2020-09-22 Tom de Vries <tdevries@suse.de>
7045 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
7048 2020-09-16 Nathan Sidwell <nathan@acm.org>
7050 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
7052 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
7055 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
7057 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
7060 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
7061 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
7062 (gomp_map_vars_existing): Update call to it.
7063 (gomp_map_fields_existing): Likewise
7064 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
7065 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
7067 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
7069 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
7070 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
7072 2020-09-14 Tom de Vries <tdevries@suse.de>
7074 * config/nvptx/atomic.c: New file. Add
7075 __sync_val_compare_and_swap_16.
7076 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
7077 target offload_target_nvptx.
7079 2020-09-08 Julian Brown <julian@codesourcery.com>
7081 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
7082 iteration-ordering assumptions.
7084 2020-09-08 Julian Brown <julian@codesourcery.com>
7086 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
7087 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7089 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
7091 * plugin/plugin-nvptx.c (nvptx_free):
7092 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
7093 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
7096 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
7098 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
7100 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
7102 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
7104 2020-08-13 Jakub Jelinek <jakub@redhat.com>
7106 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
7107 * testsuite/libgomp.c/loop-23.c (main): Likewise.
7108 * testsuite/libgomp.c/loop-24.c: New test.
7110 2020-08-08 Jakub Jelinek <jakub@redhat.com>
7111 Tobias Burnus <tobias@codesourcery.com>
7114 * testsuite/libgomp.fortran/pr93553.f90: New test.
7116 2020-08-05 Jakub Jelinek <jakub@redhat.com>
7118 * testsuite/libgomp.c/loop-22.c: New test.
7119 * testsuite/libgomp.c/loop-23.c: New test.
7121 2020-08-05 Jakub Jelinek <jakub@redhat.com>
7124 * testsuite/libgomp.c/teams-3.c: New test.
7125 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
7127 (N(test)): Use it before all N(f*) calls.
7128 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
7129 (main): Don't call all test_* functions from within
7130 #pragma omp teams reduction(|:err), call them directly.
7132 2020-08-04 Tom de Vries <tdevries@suse.de>
7135 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
7136 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
7138 2020-08-03 Julian Brown <julian@codesourcery.com>
7139 Thomas Schwinge <thomas@codesourcery.com>
7141 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
7142 shared-memory devices. Extend with further checking.
7144 2020-08-03 Martin Jambor <mjambor@suse.cz>
7146 * plugin/Makefrag.am: Remove configuration of HSA plugin.
7147 * aclocal.m4: Regenerated.
7148 * Makefile.in: Regenerated.
7149 * config.h.in: Regenerated.
7150 * configure: Regenerated.
7151 * plugin/configfrag.ac: Likewise.
7152 * plugin/hsa_ext_finalize.h: Removed.
7153 * plugin/plugin-hsa.c: Likewise.
7154 * testsuite/Makefile.in: Regenerated.
7155 * testsuite/lib/libgomp.exp
7156 (offload_target_to_openacc_device_type): Remove hsa case.
7157 (check_effective_target_hsa_offloading_selected_nocache): Removed
7158 (check_effective_target_hsa_offloading_selected): Likewise.
7159 (libgomp_init): Do not add -Wno-hsa to additional_flags.
7160 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
7161 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7162 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
7163 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7164 * testsuite/libgomp.hsa.c/c.exp: Likewise.
7165 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7166 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
7167 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7168 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7169 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7170 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7171 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7172 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7173 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7174 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7175 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7176 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
7177 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7178 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
7179 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7180 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7181 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
7182 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7183 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7185 2020-07-27 Julian Brown <julian@codesourcery.com>
7186 Thomas Schwinge <thomas@codesourcery.com>
7188 * libgomp.h (struct target_var_desc): Rename do_detach field to
7190 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
7191 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
7192 (goacc_enter_data_internal): Don't affect reference counts
7193 for attach mappings.
7194 (goacc_exit_data_internal): Don't affect reference counts for detach
7196 * target.c (gomp_map_vars_existing): Don't affect reference counts for
7198 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
7199 mark attach mappings.
7200 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
7201 reference count for attach mappings.
7202 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
7203 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7204 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7205 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
7207 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
7208 gracefully in no-finalize mode.
7209 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
7211 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
7213 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
7215 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7216 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7218 2020-07-23 Julian Brown <julian@codesourcery.com>
7219 Thomas Schwinge <thomas@codesourcery.com>
7221 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
7222 finalization for detach operation.
7223 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
7226 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
7228 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
7229 * libgomp_f.h.in (omp_check_defines): Check whether
7230 sizeof of determined Fortran kind and C typedef match.
7231 * omp_lib.f90.in: Add omp_depened_kind.
7232 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
7233 * configure: Regenerate.
7234 * Makefile.in: Regenerate.
7235 * testsuite/Makefile.in: Regenerate.
7237 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
7239 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
7240 gcc/testsuite/c-c++-common/gomp/.
7241 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
7242 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
7243 from gcc/testsuite/gfortran.dg/gomp/.
7244 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
7246 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
7248 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
7249 * omp_lib.h.in: Likewise.
7251 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
7254 * testsuite/libgomp.c/pr95620.c: New test.
7256 2020-07-16 Julian Brown <julian@codesourcery.com>
7257 Thomas Schwinge <thomas@codesourcery.com>
7259 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
7260 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
7262 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7264 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
7265 avoid conversion on 32bit systems from 32bit to 64bit due
7266 to -fdefault-integer-8.
7268 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7270 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
7271 variables; add character(kind=4) tests; update TODO comment.
7273 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7275 * allocator.c: Add ialias for omp_init_allocator and
7276 omp_destroy_allocator.
7277 * configure.ac: Set INTPTR_T_KIND.
7278 * configure: Regenerate.
7279 * Makefile.in: Regenerate.
7280 * testsuite/Makefile.in: Regenerate.
7281 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
7282 omp_set_default_allocator_, omp_get_default_allocator_): New
7283 functions and ialias_redirect.
7284 * icv.c: Add ialias for omp_set_default_allocator and
7285 omp_get_default_allocator.
7286 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
7287 omp_destroy_allocator_, omp_set_default_allocator_ and
7288 omp_get_default_allocator_.
7289 * omp_lib.f90.in: Add allocator traits parameters, declare
7290 allocator routines and add related kind parameters.
7291 * omp_lib.h.in: Likewise.
7292 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
7293 * testsuite/libgomp.fortran/alloc-1.F90: New test.
7294 * testsuite/libgomp.fortran/alloc-2.F90: New test.
7295 * testsuite/libgomp.fortran/alloc-3.F: New test.
7296 * testsuite/libgomp.fortran/alloc-4.f90: New test.
7297 * testsuite/libgomp.fortran/alloc-5.f90: New test.
7299 2020-07-14 Tom de Vries <tom@codesourcery.com>
7300 Cesar Philippidis <cesar@codesourcery.com>
7301 Thomas Schwinge <thomas@codesourcery.com>
7302 Kwok Cheung Yeung <kcy@codesourcery.com>
7304 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
7306 (acc_init_1): Set acc_init_thread to pthread_self (). Set
7307 acc_init_state to initializing at the start, and to initialized at the
7309 (self_initializing_p): New function.
7310 (acc_get_device_type): Return acc_device_none if called by thread that
7311 is currently executing acc_init_1.
7312 * libgomp.texi (acc_get_device_type): Update documentation.
7313 (Implementation Status and Implementation-Defined Behavior): Likewise.
7314 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
7316 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
7318 * config/t-aix: Set BITS from compiler cpp macro.
7320 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
7322 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
7324 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
7327 * testsuite/libgomp.fortran/target-map-1.f90: New test.
7329 2020-07-14 Jakub Jelinek <jakub@redhat.com>
7331 * testsuite/libgomp.c/loop-21.c: New test.
7333 2020-07-13 Julian Brown <julian@codesourcery.com>
7334 Thomas Schwinge <thomas@codesourcery.com>
7336 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
7338 2020-07-10 Julian Brown <julian@codesourcery.com>
7339 Thomas Schwinge <thomas@codesourcery.com>
7341 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
7343 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7344 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
7346 (acc_unmap_data): Update comment.
7347 (goacc_map_var_existing, goacc_enter_datum): Adjust for
7348 dynamic_refcount semantics.
7349 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
7350 Adjust for dynamic_refcount semantics.
7351 (goacc_enter_data_internal): Implement "present" case of dynamic
7352 memory-map handling here. Update "non-present" case for
7353 dynamic_refcount semantics.
7354 (goacc_exit_data_internal): Use goacc_exit_datum_1.
7355 * target.c (gomp_map_vars_internal): Remove
7356 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
7358 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
7359 (gomp_load_image_to_device): Substitute dynamic_refcount for
7361 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
7362 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
7363 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
7364 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
7365 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
7367 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
7369 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7371 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7372 Remove stale comment.
7373 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7374 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7375 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7376 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7377 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7378 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7380 2020-07-10 Julian Brown <julian@codesourcery.com>
7381 Thomas Schwinge <thomas@codesourcery.com>
7383 * oacc-mem.c (goacc_map_var_existing): New function.
7384 (goacc_enter_datum): Use above function.
7385 (goacc_exit_datum_1): New function.
7386 (goacc_exit_datum): Use above function.
7388 2020-07-09 Julian Brown <julian@codesourcery.com>
7389 Thomas Schwinge <thomas@codesourcery.com>
7392 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7393 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7395 2020-07-09 Julian Brown <julian@codesourcery.com>
7397 * oacc-mem.c (find_group_last): Group data-movement clauses
7398 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7399 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
7401 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7403 * testsuite/libgomp.c/loop-19.c: New test.
7404 * testsuite/libgomp.c/loop-20.c: New test.
7406 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7408 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7409 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
7410 it. Remove __omp_alloctrait_value_max__.
7411 * allocator.c (omp_init_allocator): Handle omp_atv_default for
7412 omp_atk_alignment and omp_atk_pool_size.
7414 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7416 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7417 behavior for 'GOMP_MAP_FORCE_FROM'.
7418 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7420 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7422 * oacc-mem.c (goacc_exit_data_internal): Remove
7423 'GOMP_MAP_ALWAYS_FROM' handling.
7425 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7427 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7428 'scan-assembler' with 'scan-offload-rtl'.
7429 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7430 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7431 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7432 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7434 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7436 * target.c (gomp_map_vars_existing): Assert 'kind !=
7438 (gomp_map_vars_internal): Clean up.
7440 2020-06-27 Jakub Jelinek <jakub@redhat.com>
7442 * testsuite/libgomp.c/loop-17.c: New test.
7443 * testsuite/libgomp.c/loop-18.c: New test.
7445 2020-06-26 Marek Polacek <polacek@redhat.com>
7447 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7449 2020-06-23 Alexandre Oliva <oliva@adacore.com>
7451 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7452 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7454 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
7456 * Makefile.am: Use -include.
7457 * Makefile.in: Regenerate.
7459 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
7461 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7462 * Makefile.in: Regenerate
7463 * configure.ac (tmake_file): Substitute.
7464 * configure: Regenerate.
7465 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7466 * config/t-aix: New file.
7468 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
7471 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7474 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
7476 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7477 variant for HSA_RUNTIME_LIB name.
7478 (find_executable_symbol_1): Delete.
7479 (find_executable_symbol): Delete.
7480 (init_kernel_properties): Add ".kd" suffix to symbol names.
7481 (find_load_offset): Delete.
7482 (create_and_finalize_hsa_program): Remove relocation handling.
7484 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
7486 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7488 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
7492 * testsuite/libgomp.fortran/target-var.f90: New test.
7494 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7495 Julian Brown <julian@codesourcery.com>
7497 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7500 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7501 Julian Brown <julian@codesourcery.com>
7503 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7506 2020-06-05 Julian Brown <julian@codesourcery.com>
7508 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7509 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7511 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7513 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7514 Evaluate 'copyfrom' individually for each entry.
7515 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7517 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7519 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7520 Evaluate 'finalize' individually for each entry.
7521 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7522 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7525 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7527 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7529 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7531 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7532 Julian Brown <julian@codesourcery.com>
7534 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7536 (acc_unmap_data, goacc_exit_data_internal): Restore
7537 'is_tgt_unmapped' checking.
7538 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7540 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7541 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7542 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7543 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7544 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7545 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7547 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7548 Julian Brown <julian@codesourcery.com>
7550 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7552 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7555 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7557 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7560 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7563 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7564 Julian Brown <julian@codesourcery.com>
7566 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7568 (acc_map_data): Clean up accordingly.
7570 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7572 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7573 of over-eager 'finalize' clause.
7574 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7576 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7577 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7578 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7579 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7580 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7581 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7582 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7583 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7585 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7587 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7589 2020-06-04 Julian Brown <julian@codesourcery.com>
7591 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7593 (goacc_detach_internal): Likewise.
7595 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7597 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7599 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7600 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7601 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7602 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7603 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7605 2020-06-02 Jakub Jelinek <jakub@redhat.com>
7607 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7610 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7612 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7614 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7616 * allocator.c (omp_alloc): For size == 0, return NULL early.
7618 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
7621 * configure: Regenerated.
7623 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7626 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7628 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7630 * omp.h.in (omp_uintptr_t): New typedef.
7631 (__GOMP_UINTPTR_T_ENUM): Define.
7632 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7633 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7634 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7635 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7636 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7637 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7638 (gomp_def_allocator): Declare.
7639 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7640 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7641 omp_alloc and omp_free.
7642 * team.c (gomp_team_start): Copy over ts.def_allocator.
7643 * env.c (gomp_def_allocator): New variable.
7644 (parse_wait_policy): Adjust function comment.
7645 (parse_allocator): New function.
7646 (handle_omp_display_env): Print OMP_ALLOCATOR.
7647 (initialize_env): Call parse_allocator.
7648 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7649 * allocator.c: New file.
7650 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7652 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7653 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7654 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7655 * Makefile.in: Regenerated.
7657 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7660 * configure: Regenerated.
7662 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7665 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7667 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7669 * configure: Regenerated.
7671 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7673 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7675 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
7678 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7679 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7680 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7681 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7682 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7683 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7684 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7686 2020-05-12 Jakub Jelinek <jakub@redhat.com>
7688 * testsuite/libgomp.c/target-39.c: New test.
7690 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7692 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7693 * openacc.f90 (acc_device_current): Likewise.
7694 * openacc.h (acc_device_current): Likewise.
7695 * openacc_lib.h (acc_device_current): Likewise.
7698 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7699 'dg-allow-blank-lines-in-output'.
7701 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7702 * testsuite/lib/libgomp.exp
7703 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7704 'radeon'. Adjust all users.
7705 (check_effective_target_openacc_amdgcn_accel_present): Rename
7707 (check_effective_target_openacc_radeon_accel_present): ... this.
7709 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7710 (check_effective_target_openacc_radeon_accel_selected): ... this.
7713 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7716 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
7720 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7722 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7723 hsa_agent_iterate_regions.
7725 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7728 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7731 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
7734 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7737 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
7740 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7742 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7745 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7747 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7749 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7751 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7753 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7755 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7757 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7759 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7761 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7763 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7765 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7767 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7769 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7771 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7773 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7775 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7777 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7779 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7781 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7783 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7785 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7787 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7789 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7791 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7793 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7795 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7797 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7799 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7801 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7803 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7805 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7807 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7810 2020-04-10 Julian Brown <julian@codesourcery.com>
7811 Thomas Schwinge <thomas@codesourcery.com>
7814 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7816 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7818 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7820 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7822 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7824 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7826 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7828 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7830 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7832 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7834 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7836 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7838 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7840 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7842 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7844 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7847 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7849 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7852 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7855 * libgomp.oacc-c++/declare-pr94120.C: New.
7857 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7859 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7861 * configure: Regenerate.
7862 * testsuite/libgomp-site-extra.exp.in: New file.
7863 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7865 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7867 * testsuite/Makefile.in: Regenerate.
7869 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7871 PR tree-optimization/89713
7873 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7875 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7877 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7879 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7880 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7882 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7885 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7887 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7890 * target.c (gomp_load_image_to_device): Fix link
7893 2020-03-19 Jakub Jelinek <jakub@redhat.com>
7896 * testsuite/libgomp.c++/pr93931.C: New test.
7898 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
7900 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7901 dg-allow-blank-lines-in-output.
7903 2020-03-18 Julian Brown <julian@codesourcery.com>
7904 Tobias Burnus <tobias@codesourcery.com>
7906 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7907 it work concurrently.
7909 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
7911 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7912 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7913 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7915 2020-03-14 Jakub Jelinek <jakub@redhat.com>
7918 * testsuite/libgomp.c/pr93566.c: New test.
7920 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
7922 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7923 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7924 integer(acc_device_property) for the type of the return value of
7927 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
7929 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7930 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7931 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7932 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7933 (acc_set_device_num): Fix Fortran argument name, use same name for C.
7934 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7935 corrections; add note about the previous interface and named constant.
7936 (OpenACC library and environment variables): Fix two typos.
7937 * openacc.f90: Use for all procedures the argument names from the spec
7938 as for …_h they are user visible.
7939 (openacc_kinds): Rename acc_device_property to
7940 acc_device_property_kinds and change value to int32 ; and update users.
7941 Re-add acc_device_property for for backward compatibility.
7942 (acc_get_property_string_h): Clean up as acc_device_property_kind
7944 (acc_get_property_h): Likewise and return c_size_t instead of
7945 acc_device_property.
7946 (openacc): Also export acc_device_property_kinds.
7947 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7948 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7949 handling; check against /= 0 instead of == 1 to match C.
7950 * openacc_lib.h: Use for all procedures the argument names from the spec
7951 as for …_h they are user visible. Place !GCC$ into the first column to
7952 be active also for fixed-form souce form.
7953 (acc_device_current, acc_device_property_kind, acc_device_property,
7954 acc_property_memory, acc_property_free_memory, acc_property_name,
7955 acc_property_vendor, acc_property_driver): New named constants.
7956 (acc_get_property, acc_get_property_string): New generic interface.
7958 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
7961 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7962 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7964 (gomp_target_task_fn): Assert "devicep->async_run_func".
7965 (clear_unsupported_flags): New function to remove unsupported flags
7966 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7967 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7968 * testsuite/libgomp.c/target-33.c:
7969 Remove xfail for offload_target_nvptx.
7970 * testsuite/libgomp.c/target-34.c: Likewise.
7972 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
7974 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7975 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7976 * testsuite/libgomp.c/target-34.c: Likewise.
7977 * testsuite/libgomp.c/target-link-1.c: Add xfail for
7978 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7980 2020-02-09 Jakub Jelinek <jakub@redhat.com>
7982 * testsuite/libgomp.c/target-38.c: New test.
7984 2020-02-06 Jakub Jelinek <jakub@redhat.com>
7987 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7989 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
7991 * testsuite/lib/libgomp.exp
7992 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7993 and not as 'source' argument to libgomp_target_compile.
7995 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
7997 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7998 (gcn_gfx801_s): Remove.
7999 (isa_hsa_name): Remove gfx801.
8000 (isa_gcc_name): Remove gfx801/carizzo.
8001 (isa_code): Remove gfx801.
8003 2020-02-03 Julian Brown <julian@codesourcery.com>
8004 Tobias Burnus <tobias@codesourcery.com>
8006 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
8007 and *_finalize variants; document acc_attach and acc_detach; update
8008 references from OpenACC 2.0 to 2.6.
8009 * openacc.f90 (openacc_version): Update to 201711.
8010 * openacc_lib.h (openacc_version): Update to 201711.
8011 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
8012 openacc_version to 201711.
8013 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8015 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
8017 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
8018 and vgpr_count fields.
8019 (struct kernel_info): Add a field for a hsa_kernel_description.
8020 (run_kernel): Reduce the number of threads/workers if the requested
8021 number would require too many VGPRs.
8022 (init_basic_kernel_info): Initialize description field with
8023 the hsa_kernel_description entry for the kernel.
8025 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
8028 * plugin/configfrag.ac (enable_offload_targets): Skip
8029 HSA and GCN plugin besides -m32 also for -mx32.
8030 * configure: Regenerate.
8032 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
8034 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
8036 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
8038 * plugin-gcn.c (struct agent_info): Add fields "name" and
8040 (GOMP_OFFLOAD_init_device): ... and init from here.
8041 (struct hsa_context_info): Add field "driver_version_s" ...
8042 (init_hsa_contest): ... and init from here.
8043 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
8045 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8046 Enable test execution for amdgcn and host offloading targets.
8047 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
8048 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8049 (expect_device_properties): Split function into ...
8050 (expect_device_string_properties): ... this new function ...
8051 (expect_device_memory): ... and this new function.
8052 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
8055 2020-01-28 Julian Brown <julian@codesourcery.com>
8057 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
8058 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
8059 component/non-component variable refs in a single directive.
8060 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
8062 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
8064 * configure.ac: Handle `--with-toolexeclibdir='.
8065 * Makefile.in: Regenerate.
8066 * aclocal.m4: Regenerate.
8067 * configure: Regenerate.
8068 * testsuite/Makefile.in: Regenerate.
8070 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
8072 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8073 (expect_device_properties): Remove "expected_free_mem" argument,
8074 change "expected_total_mem" argument type to size_t;
8075 change types of acc_get_property results to size_t,
8076 adapt format strings.
8077 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8078 Use %zu instead of %zd to print size_t values.
8079 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
8081 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
8082 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
8084 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
8086 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
8088 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
8091 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
8093 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
8094 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
8095 Adjust test dimensions for amdgcn.
8096 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
8097 gang/worker/vector expectations dynamically.
8098 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
8100 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
8101 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
8102 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
8103 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
8104 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
8105 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
8106 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
8107 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
8108 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
8109 (acc_gang): Recognise acc_device_radeon.
8110 (acc_worker): Likewise.
8111 (acc_vector): Likewise.
8112 (main): Set expectations for amdgcn.
8113 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
8114 (main): Adjust gang/worker/vector expectations dynamically.
8115 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
8116 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
8117 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
8118 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
8121 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
8123 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
8125 (openacc): Likewise.
8126 * openacc.f90 (openacc_kinds): Likewise.
8127 (openacc): Likewise.
8128 * openacc.h (acc_device_t): Likewise.
8129 * openacc_lib.h: Likewise.
8130 * testsuite/lib/libgomp.exp
8131 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
8132 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
8133 (cb_compute_construct_end): Likewise.
8134 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
8135 (cb_enqueue_launch_start): Likewise.
8136 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
8137 (cb_enter_data_end): Likewise.
8138 (cb_exit_data_start): Likewise.
8139 (cb_exit_data_end): Likewise.
8140 (cb_compute_construct_end): Likewise.
8141 (cb_enqueue_launch_start): Likewise.
8142 (cb_enqueue_launch_end): Likewise.
8143 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
8146 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
8148 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
8149 to use this instead of 'enum gomp_device_property'.
8150 (GOMP_OFFLOAD_get_property): Rename to...
8151 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
8152 * libgomp.h (struct gomp_device_descr): Move
8153 'GOMP_OFFLOAD_openacc_get_property'...
8154 (struct acc_dispatch_t): ... here. Adjust all users.
8155 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
8157 * target.c (gomp_map_vars_internal)
8158 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
8161 2020-01-10 Jakub Jelinek <jakub@redhat.com>
8164 * libgomp.h (gomp_print_string): Change return type from void to int.
8165 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
8166 not all characters have been written.
8168 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
8170 * libgomp.texi: Fix typos, use https.
8172 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
8174 * testsuite/libgomp.fortran/optional-map.f90: Add test for
8175 unallocated/disassociated actual arguments to nonallocatable/nonpointer
8176 dummy arguments; those are/shall be regarded as absent arguments.
8177 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8178 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
8180 2020-01-01 Jakub Jelinek <jakub@redhat.com>
8182 Update copyright years.
8184 * libgomp.texi: Bump @copying's copyright year.
8186 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
8189 * oacc-init.c (goacc_runtime_deinitialize): New function.
8191 2019-12-28 Jakub Jelinek <jakub@redhat.com>
8194 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
8195 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
8197 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
8198 Frederik Harwath <frederik@codesourcery.com>
8199 Thomas Schwinge <tschwinge@codesourcery.com>
8201 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
8202 * libgomp-plugin.h (gomp_device_property_value): New union.
8203 (gomp_device_property_value): New prototype.
8204 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
8206 (acc_device_property_t): New enum.
8207 (acc_get_property, acc_get_property_string): New prototypes.
8208 * oacc-init.c (acc_get_device_type): Also assert that result
8209 is not `acc_device_current'.
8210 (get_property_any, acc_get_property, acc_get_property_string):
8212 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
8213 `acc_property_memory', `acc_property_free_memory',
8214 `acc_property_name', `acc_property_vendor' and
8215 `acc_property_driver' constants. Add `acc_device_property' data
8217 (openacc_internal): Add `acc_get_property' and
8218 `acc_get_property_string' interfaces. Add `acc_get_property_h',
8219 `acc_get_property_string_h', `acc_get_property_l' and
8220 `acc_get_property_string_l'.
8221 * oacc-host.c (host_get_property): New function.
8222 (host_dispatch): Wire it.
8223 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
8224 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
8225 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
8226 * libgomp.texi (OpenACC Runtime Library Routines): Add
8228 (acc_get_property): New node.
8229 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
8231 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
8232 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
8233 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
8235 (GOMP_OFFLOAD_get_property): New function.
8236 (struct ptx_device): Add new field "name".
8237 (cuda_driver_version_s): Add new static variable ...
8238 (nvptx_init): ... and init from here.
8240 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
8241 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
8242 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
8243 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
8244 with test helper functions.
8246 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
8248 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
8250 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
8253 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
8255 * target.c (gomp_map_vars_internal): Restore 'omp declare target
8258 2019-12-19 Julian Brown <julian@codesourcery.com>
8260 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
8261 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
8262 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
8264 2019-12-19 Julian Brown <julian@codesourcery.com>
8265 Cesar Philippidis <cesar@codesourcery.com>
8267 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
8268 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
8269 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
8270 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
8271 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
8272 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
8273 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
8274 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
8275 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
8276 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
8277 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
8278 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
8279 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
8281 2019-12-19 Julian Brown <julian@codesourcery.com>
8283 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
8284 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
8285 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
8286 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
8287 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
8288 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
8289 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
8290 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
8291 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
8292 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
8293 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
8294 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
8296 2019-12-19 Julian Brown <julian@codesourcery.com>
8298 * libgomp.h (struct target_var_desc): Add do_detach flag.
8299 * oacc-init.c (acc_shutdown_1): Free aux block if present.
8300 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
8301 struct components. Tidy up and add some new checks.
8302 (goacc_enter_data_internal): Update call to find_group_last.
8303 (goacc_exit_data_internal): Support detach operations and
8305 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
8306 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
8307 attach/detach in enter/exit data detection code.
8308 * target.c (gomp_map_vars_existing): Initialise do_detach field of
8310 (gomp_map_vars_internal): Support attach.
8311 (gomp_unmap_vars_internal): Support detach.
8313 2019-12-19 Julian Brown <julian@codesourcery.com>
8314 Thomas Schwinge <thomas@codesourcery.com>
8316 * libgomp.h (struct splay_tree_aux): Add attach_count field.
8317 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
8318 * libgomp.map (OACC_2.6): New section. Add acc_attach,
8319 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
8320 acc_detach_finalize_async.
8321 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
8322 acc_detach, acc_detach_async, acc_detach_finalize,
8323 acc_detach_finalize_async): New functions.
8324 * openacc.h (acc_attach, acc_attach_async, acc_detach,
8325 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
8327 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
8328 (gomp_remove_var_internal): Free attachment counts if present.
8329 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
8330 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
8332 2019-12-19 Julian Brown <julian@codesourcery.com>
8333 Cesar Philippidis <cesar@codesourcery.com>
8335 * libgomp.h (gomp_map_val): Add prototype.
8336 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
8337 open-coding device-address calculation.
8338 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
8341 2019-12-19 Julian Brown <julian@codesourcery.com>
8343 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
8344 field for virtual_refcount.
8345 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8346 (gomp_free_memmap): Remove prototype.
8347 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
8348 instead of calling gomp_free_memmap.
8349 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
8351 (acc_unmap_data): Open code instead of forcing target_mem_desc's
8352 to_free field to NULL then calling gomp_unmap_vars. Handle
8353 REFCOUNT_INFINITY on target blocks.
8354 (goacc_enter_data): Rename to...
8355 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
8356 handling for mapping groups. Use virtual_refcount instead of
8357 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
8358 map_map_vars_async call. Re-do lookup for target pointer return value.
8359 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
8360 renamed goacc_enter_datum function.
8361 (goacc_exit_data): Rename to...
8362 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
8363 (acc_delete, acc_delete_async, acc_delete_finalize,
8364 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
8365 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
8366 goacc_exit_datum function.
8367 (gomp_acc_remove_pointer, find_pointer): Remove functions.
8368 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
8370 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8371 goacc_exit_data_internal helper functions.
8372 * target.c (gomp_map_vars_internal): Handle
8373 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
8375 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8376 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8377 virtual_refcount field instead of dynamic_refcount.
8378 (gomp_free_memmap): Remove function.
8379 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8380 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8381 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8383 2019-12-19 Julian Brown <julian@codesourcery.com>
8384 Thomas Schwinge <thomas@codesourcery.com>
8386 * libgomp.h (struct splay_tree_aux): New.
8387 (struct splay_tree_key_s): Replace link_key field with aux pointer.
8388 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8390 (gomp_remove_var_internal): Free aux block if present.
8391 (gomp_load_image_to_device): Zero-initialise aux field instead of
8393 (omp_target_associate_pointer): Zero-initialise aux field.
8395 2019-12-18 Jakub Jelinek <jakub@redhat.com>
8398 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8400 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8403 2019-12-19 Julian Brown <julian@codesourcery.com>
8404 Maciej W. Rozycki <macro@codesourcery.com>
8405 Tobias Burnus <tobias@codesourcery.com>
8406 Thomas Schwinge <thomas@codesourcery.com>
8408 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8409 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8410 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8411 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8412 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8413 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8414 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8415 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8416 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8418 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
8420 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8422 (goacc_insert_pointer): ... from here, "present" case.
8423 (goacc_insert_pointer): Inline function into...
8424 (GOACC_enter_exit_data): ... here, and simplify.
8426 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8428 (goacc_insert_pointer): ... from here, "not present" case.
8430 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
8433 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8434 'goacc_enter_data', 'goacc_exit_data'.
8436 * oacc-mem.c (delete_copyout): Refactor into...
8437 (goacc_exit_data): ... this. Adjust all users.
8439 * oacc-mem.c (present_create_copy): Refactor into...
8440 (goacc_enter_data): ... this. Adjust all users.
8442 * target.c (gomp_unmap_vars_internal): Add a safeguard to
8445 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8446 like 'GOMP_MAP_FROM'.
8451 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8453 (GOACC_enter_exit_data): Simplify accordingly.
8454 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8456 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8457 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8459 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8461 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8462 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8464 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8466 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8468 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8469 'finalize' handling.
8472 * oacc-mem.c (acc_map_data, present_create_copy)
8473 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8474 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8475 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8476 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8477 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8478 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8479 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8480 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8483 * target.c (gomp_unmap_tgt): Make it 'static'.
8484 * libgomp.h (gomp_unmap_tgt): Remove.
8486 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
8489 * testsuite/libgomp.c/pr86416-1.c: New.
8490 * testsuite/libgomp.c/pr86416-2.c: New.
8492 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
8494 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8495 all symbols as public except for the 'use …, only' imported symbol,
8497 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8498 all symbols from module openacc_kinds as PUBLIC
8499 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8501 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8503 2019-12-13 Julian Brown <julian@codesourcery.com>
8507 * libgomp.h (gomp_remove_var_async): Add prototype.
8508 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8510 * target.c (gomp_unref_tgt): Change return type to bool, indicating
8511 whether target_mem_desc was unmapped.
8512 (gomp_unref_tgt_void): New.
8513 (gomp_remove_var): Reimplement in terms of...
8514 (gomp_remove_var_internal): ...this new helper function.
8515 (gomp_remove_var_async): New, implemented using above helper function.
8516 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8519 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
8521 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8522 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8523 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8524 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8525 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8527 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8528 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8530 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
8532 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8533 as public except for the 'use …, only' imported symbol, which is
8535 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8536 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8537 attributes for acc_copyout_finalize and acc_delete_finalize.
8539 2019-12-11 Jakub Jelinek <jakub@redhat.com>
8542 * testsuite/libgomp.fortran/atomic1.f90: New test.
8544 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8547 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8548 reference counting for structured 'REFCOUNT_INFINITY'. Add some
8550 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8551 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8552 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8553 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8554 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8556 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8557 * oacc-mem.c: ... here.
8558 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8559 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8560 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8562 * libgomp_g.h: Update.
8564 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8565 * oacc-async.c: ... here.
8566 * oacc-int.h (goacc_wait): Declare.
8567 * libgomp_g.h: Update
8570 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8572 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8574 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8576 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8578 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8580 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8583 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8584 Julian Brown <julian@codesourcery.com>
8586 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8587 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8589 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8591 * omp_lib.h.in: Fix spelling of function declaration
8592 omp_get_cancell(l)ation.
8593 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8595 * env.c: Fix comment typos.
8596 * oacc-host.c: Likewise.
8597 * ordered.c: Likewise.
8600 * config/gcn/task.c: Likewise.
8601 * config/gcn/team.c: Likewise.
8602 * config/nvptx/task.c: Likewise.
8603 * config/nvptx/team.c: Likewise.
8604 * plugin/plugin-gcn.c: Likewise.
8605 * testsuite/libgomp.fortran/jacobi.f: Likewise.
8606 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8607 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8609 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8611 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8612 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8613 unnecessary 'dg-additional-options "-w"'.
8615 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8616 Julian Brown <julian@codesourcery.com>
8621 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8622 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8624 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8626 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8628 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8630 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8633 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8634 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8636 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8638 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8640 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8642 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8644 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8646 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8647 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8648 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8649 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8650 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8651 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8652 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8653 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8654 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8655 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8658 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8659 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8660 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8662 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8664 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8666 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8667 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8670 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8672 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8674 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8676 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8678 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8679 ... with their content moved into, and extended in this new file.
8680 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8682 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8684 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8686 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8689 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8692 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8694 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8696 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8698 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
8700 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8702 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8703 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8704 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8705 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8707 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8708 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8710 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8712 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8714 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
8715 Kwok Cheung Yeung <kcy@codesourcery.com>
8717 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8718 if input it a NULL pointer.
8719 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8720 diagnostic of NULL pointer.
8721 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8722 * testsuite/libgomp.fortran/optional-map.f90: New.
8723 * testsuite/libgomp.fortran/use_device_addr-1.f90
8724 (test_dummy_opt_callee_1_absent): New.
8725 (test_dummy_opt_call_1): Call it.
8726 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8727 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8728 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8729 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8730 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8731 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8732 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8733 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8734 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8735 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8736 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8737 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8738 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8739 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8740 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8741 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8743 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
8745 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8746 expect dg-output of 'Error termination.' for GCN.
8747 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8748 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8750 2019-12-04 Jakub Jelinek <jakub@redhat.com>
8753 * testsuite/libgomp.fortran/teams1.f90: New test.
8754 * testsuite/libgomp.fortran/teams2.f90: New test.
8756 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
8758 * oacc-init.c (acc_known_device_type): Add function.
8759 (unknown_device_type_error): Add function.
8760 (name_of_acc_device_t): Change to call unknown_device_type_error
8762 (resolve_device): Use acc_known_device_type.
8763 (acc_init): Fail if acc_device_t argument is not valid.
8764 (acc_shutdown): Likewise.
8765 (acc_get_num_devices): Likewise.
8766 (acc_set_device_type): Likewise.
8767 (acc_get_device_num): Likewise.
8768 (acc_set_device_num): Likewise.
8769 (acc_on_device): Add comment that argument validity is not checked.
8771 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
8773 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8775 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8776 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8777 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8778 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8779 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8781 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8784 * configure.tgt: Avoid IE tls on *-*-musl*.
8786 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
8788 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8789 adding a common-block test case.
8791 2019-11-29 Jakub Jelinek <jakub@redhat.com>
8794 * testsuite/libgomp.c++/udr-20.C: New test.
8795 * testsuite/libgomp.c++/udr-21.C: New test.
8797 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8799 * testsuite/lib/libgomp.exp
8800 (check_effective_target_offload_target_nvptx): New proc.
8801 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8803 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8804 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8805 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8807 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8809 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8810 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8811 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8812 * testsuite/libgomp.c/private-1.c: Likewise.
8813 * testsuite/libgomp.c/task-1.c: Likewise.
8814 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8816 2019-11-20 Julian Brown <julian@codesourcery.com>
8818 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8820 (queue_push_launch): Lock aq->mutex before calling
8821 wait_for_queue_nonfull.
8822 (queue_push_callback): Likewise.
8823 (queue_push_asyncwait): Likewise.
8824 (queue_push_placeholder): Likewise.
8826 2019-11-20 Julian Brown <julian@codesourcery.com>
8828 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8829 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8830 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8833 2019-11-20 Julian Brown <julian@codesourcery.com>
8837 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8838 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8839 in non-present/create case.
8840 (delete_copyout): Change error condition to fail only on copies outside
8841 of mapped block. Adjust error message accordingly.
8842 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8843 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8844 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8846 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8847 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8848 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8850 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8852 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8853 libatomic in build-tree testing.
8855 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8857 * testsuite/Makefile.in: Regenerate.
8859 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8861 * testsuite/libgomp.c/target-print-1.c: New file.
8862 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8863 * testsuite/libgomp.oacc-c/print-1.c: New file.
8864 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8866 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8867 Kwok Cheung Yeung <kcy@codesourcery.com>
8868 Julian Brown <julian@codesourcery.com>
8869 Tom de Vries <tom@codesourcery.com>
8871 * plugin/Makefrag.am: Add amdgcn plugin support.
8872 * plugin/configfrag.ac: Likewise.
8873 * plugin/plugin-gcn.c: New file.
8874 * configure: Regenerate.
8875 * Makefile.in: Regenerate.
8876 * testsuite/Makefile.in: Regenerate.
8878 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8880 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8881 and use team_malloc variants.
8882 (gomp_gcn_exit_kernel): Use team_free.
8883 * libgomp.h (TEAM_ARENA_SIZE): Define.
8884 (TEAM_ARENA_START): Define.
8885 (TEAM_ARENA_FREE): Define.
8886 (TEAM_ARENA_END): Define.
8887 (team_malloc): New function.
8888 (team_malloc_cleared): New function.
8889 (team_free): New function.
8890 * team.c (gomp_new_team): Initialize and use team_malloc.
8891 (free_team): Use team_free.
8892 (gomp_free_thread): Use team_free.
8893 (gomp_pause_host): Use team_free.
8894 * work.c (gomp_init_work_share): Use team_malloc.
8895 (gomp_fini_work_share): Use team_free.
8897 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8898 Kwok Cheung Yeung <kcy@codesourcery.com>
8899 Julian Brown <julian@codesourcery.com>
8900 Tom de Vries <tom@codesourcery.com>
8902 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8903 * Makefile.in: Regenerate.
8904 * config.h.in (PLUGIN_GCN): Add new undef.
8905 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8906 * config/gcn/affinity-fmt.c: New file.
8907 * config/gcn/bar.c: New file.
8908 * config/gcn/bar.h: New file.
8909 * config/gcn/doacross.h: New file.
8910 * config/gcn/icv-device.c: New file.
8911 * config/gcn/oacc-target.c: New file.
8912 * config/gcn/simple-bar.h: New file.
8913 * config/gcn/target.c: New file.
8914 * config/gcn/task.c: New file.
8915 * config/gcn/team.c: New file.
8916 * config/gcn/time.c: New file.
8917 * configure.ac: Add amdgcn*-*-*.
8918 * configure: Regenerate.
8919 * configure.tgt: Add amdgcn*-*-*.
8920 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8921 * libgomp.h (gcn_thrs): Add amdgcn variant.
8922 (set_gcn_thrs): Likewise.
8923 (gomp_thread): Likewise.
8924 * oacc-int.h (goacc_thread): Likewise.
8925 * oacc-target.c: New file.
8926 * openacc.f90 (acc_device_gcn): New parameter.
8927 * openacc.h (acc_device_t): Add acc_device_gcn.
8928 * team.c (gomp_free_pool_helper): Add amdgcn support.
8930 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8931 Julian Brown <julian@codesourcery.com>
8933 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8935 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8937 * oacc-host.c (host_openacc_async_construct): Add device parameter.
8938 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8941 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8943 * configure.tgt (nvptx*-*-*): Add "accel" directory.
8944 * config/nvptx/libgomp-plugin.c: Move ...
8945 * config/accel/libgomp-plugin.c: ... to here.
8946 * config/nvptx/lock.c: Move ...
8947 * config/accel/lock.c: ... to here.
8948 * config/nvptx/mutex.c: Move ...
8949 * config/accel/mutex.c: ... to here.
8950 * config/nvptx/mutex.h: Move ...
8951 * config/accel/mutex.h: ... to here.
8952 * config/nvptx/oacc-async.c: Move ...
8953 * config/accel/oacc-async.c: ... to here.
8954 * config/nvptx/oacc-cuda.c: Move ...
8955 * config/accel/oacc-cuda.c: ... to here.
8956 * config/nvptx/oacc-host.c: Move ...
8957 * config/accel/oacc-host.c: ... to here.
8958 * config/nvptx/oacc-init.c: Move ...
8959 * config/accel/oacc-init.c: ... to here.
8960 * config/nvptx/oacc-mem.c: Move ...
8961 * config/accel/oacc-mem.c: ... to here.
8962 * config/nvptx/oacc-plugin.c: Move ...
8963 * config/accel/oacc-plugin.c: ... to here.
8964 * config/nvptx/omp-lock.h: Move ...
8965 * config/accel/omp-lock.h: ... to here.
8966 * config/nvptx/openacc.f90: Move ...
8967 * config/accel/openacc.f90: ... to here.
8968 * config/nvptx/pool.h: Move ...
8969 * config/accel/pool.h: ... to here.
8970 * config/nvptx/proc.c: Move ...
8971 * config/accel/proc.c: ... to here.
8972 * config/nvptx/ptrlock.c: Move ...
8973 * config/accel/ptrlock.c: ... to here.
8974 * config/nvptx/ptrlock.h: Move ...
8975 * config/accel/ptrlock.h: ... to here.
8976 * config/nvptx/sem.c: Move ...
8977 * config/accel/sem.c: ... to here.
8978 * config/nvptx/sem.h: Move ...
8979 * config/accel/sem.h: ... to here.
8980 * config/nvptx/thread-stacksize.h: Move ...
8981 * config/accel/thread-stacksize.h: ... to here.
8983 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
8984 Tobias Burnus <tobias@codesourcery.com>
8985 Frederik Harwath <frederik@codesourcery.com>
8986 Thomas Schwinge <thomas@codesourcery.com>
8989 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8990 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8991 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8993 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
8994 Kwok Cheung Yeung <kcy@codesourcery.com>
8996 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8997 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8999 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
9001 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
9003 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
9005 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
9006 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
9008 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
9010 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
9011 Add expected warnings about missing reduction clauses.
9012 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
9014 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
9016 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
9019 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
9021 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
9022 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
9023 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
9024 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9025 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9026 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9028 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
9031 * testsuite/libgomp.fortran/allocatable2.f90: Use
9032 unique numbers with 'stop'.
9033 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9034 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9035 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
9036 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
9037 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
9039 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
9041 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
9042 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
9043 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
9044 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
9045 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
9046 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
9048 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9050 * testsuite/libgomp.fortran/target9.f90: New.
9052 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9054 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
9055 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
9056 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
9057 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
9058 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
9059 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
9060 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
9061 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
9062 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
9063 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
9064 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
9065 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
9066 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
9067 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
9068 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
9069 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
9070 * testsuite/libgomp.fortran/associate1.f90: Ditto.
9071 * testsuite/libgomp.fortran/associate2.f90: Ditto.
9072 * testsuite/libgomp.fortran/associate3.f90: Ditto.
9073 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
9074 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
9075 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
9076 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
9077 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
9078 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
9079 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
9080 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
9081 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
9082 * testsuite/libgomp.fortran/character1.f90: Ditto.
9083 * testsuite/libgomp.fortran/character2.f90: Ditto.
9084 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
9085 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
9086 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
9087 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
9088 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
9089 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
9090 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
9091 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
9092 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
9093 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
9094 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
9095 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
9096 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
9097 * testsuite/libgomp.fortran/do1.f90: Ditto.
9098 * testsuite/libgomp.fortran/do2.f90: Ditto.
9099 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
9100 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
9101 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
9102 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
9103 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
9104 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
9105 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
9106 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
9107 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
9108 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
9109 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
9110 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
9111 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
9112 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
9113 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
9114 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
9115 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
9116 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
9117 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
9118 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
9119 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
9120 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
9121 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
9122 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
9123 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
9124 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
9125 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
9126 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
9127 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
9128 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
9129 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
9130 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
9131 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
9132 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
9133 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
9134 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
9135 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
9136 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
9137 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
9138 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
9139 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
9140 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
9141 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
9142 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
9143 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
9144 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
9145 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
9146 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
9147 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
9148 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9149 * testsuite/libgomp.fortran/lib1.f90: Ditto.
9150 * testsuite/libgomp.fortran/lib4.f90: Ditto.
9151 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
9152 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
9153 * testsuite/libgomp.fortran/nested1.f90: Ditto.
9154 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
9155 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
9156 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
9157 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9158 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
9159 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
9160 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9161 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
9162 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
9163 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
9164 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
9165 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
9166 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
9167 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
9168 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9169 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
9170 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9171 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
9172 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
9173 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
9174 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
9175 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
9176 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
9177 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
9178 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9179 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
9180 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
9181 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
9182 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
9183 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
9184 * testsuite/libgomp.fortran/pr28390.f: Ditto.
9185 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
9186 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9187 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
9188 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
9189 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9190 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
9191 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
9192 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
9193 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
9194 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
9195 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
9196 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
9197 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
9198 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
9199 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
9200 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
9201 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
9202 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
9203 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
9204 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
9205 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
9206 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
9207 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
9208 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
9209 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
9210 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9211 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
9212 * testsuite/libgomp.fortran/reference1.f90: Ditto.
9213 * testsuite/libgomp.fortran/reference2.f90: Ditto.
9214 * testsuite/libgomp.fortran/retval1.f90: Ditto.
9215 * testsuite/libgomp.fortran/retval2.f90: Ditto.
9216 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
9217 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
9218 * testsuite/libgomp.fortran/simd1.f90: Ditto.
9219 * testsuite/libgomp.fortran/simd2.f90: Ditto.
9220 * testsuite/libgomp.fortran/simd3.f90: Ditto.
9221 * testsuite/libgomp.fortran/simd4.f90: Ditto.
9222 * testsuite/libgomp.fortran/simd5.f90: Ditto.
9223 * testsuite/libgomp.fortran/simd6.f90: Ditto.
9224 * testsuite/libgomp.fortran/simd7.f90: Ditto.
9225 * testsuite/libgomp.fortran/stack.f90: Ditto.
9226 * testsuite/libgomp.fortran/strassen.f90: Ditto.
9227 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
9228 * testsuite/libgomp.fortran/tabs2.f: Ditto.
9229 * testsuite/libgomp.fortran/target1.f90: Ditto.
9230 * testsuite/libgomp.fortran/target2.f90: Ditto.
9231 * testsuite/libgomp.fortran/target3.f90: Ditto.
9232 * testsuite/libgomp.fortran/target4.f90: Ditto.
9233 * testsuite/libgomp.fortran/target5.f90: Ditto.
9234 * testsuite/libgomp.fortran/target6.f90: Ditto.
9235 * testsuite/libgomp.fortran/target7.f90: Ditto.
9236 * testsuite/libgomp.fortran/target8.f90: Ditto.
9237 * testsuite/libgomp.fortran/task1.f90: Ditto.
9238 * testsuite/libgomp.fortran/task2.f90: Ditto.
9239 * testsuite/libgomp.fortran/task3.f90: Ditto.
9240 * testsuite/libgomp.fortran/task4.f90: Ditto.
9241 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9242 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9243 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9244 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9245 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9246 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
9247 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
9248 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
9249 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
9250 * testsuite/libgomp.fortran/udr1.f90: Ditto.
9251 * testsuite/libgomp.fortran/udr10.f90: Ditto.
9252 * testsuite/libgomp.fortran/udr11.f90: Ditto.
9253 * testsuite/libgomp.fortran/udr12.f90: Ditto.
9254 * testsuite/libgomp.fortran/udr13.f90: Ditto.
9255 * testsuite/libgomp.fortran/udr14.f90: Ditto.
9256 * testsuite/libgomp.fortran/udr15.f90: Ditto.
9257 * testsuite/libgomp.fortran/udr2.f90: Ditto.
9258 * testsuite/libgomp.fortran/udr3.f90: Ditto.
9259 * testsuite/libgomp.fortran/udr4.f90: Ditto.
9260 * testsuite/libgomp.fortran/udr5.f90: Ditto.
9261 * testsuite/libgomp.fortran/udr6.f90: Ditto.
9262 * testsuite/libgomp.fortran/udr7.f90: Ditto.
9263 * testsuite/libgomp.fortran/udr8.f90: Ditto.
9264 * testsuite/libgomp.fortran/udr9.f90: Ditto.
9265 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9266 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9267 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9268 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9269 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9270 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9271 * testsuite/libgomp.fortran/vla7.f90: Ditto.
9272 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9273 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9274 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9276 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9278 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
9279 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
9280 Ditto; add 'dg-do run' for torture testing.
9281 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
9282 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9283 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9284 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9285 * testsuite/libgomp.fortran/pr28390.f: Ditto.
9286 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9287 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
9288 * testsuite/libgomp.fortran/task2.f90: Ditto.
9289 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9290 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9291 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9292 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9293 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9294 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9296 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
9298 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
9299 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
9300 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
9301 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
9302 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
9303 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
9304 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
9305 Use 'stop' not abort().
9306 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
9307 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
9308 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
9309 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
9310 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
9311 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
9312 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
9313 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
9314 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
9315 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
9316 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
9317 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
9318 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
9319 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
9320 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
9321 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
9322 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9324 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9326 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9328 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9330 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9332 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
9334 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
9336 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
9338 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
9340 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
9342 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
9344 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
9346 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
9348 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
9350 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
9351 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
9352 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
9353 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
9354 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9355 Likewise and also add 'dg-do run'.
9356 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9359 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
9360 Tobias Burnus <tobias@codesourcery.com>
9362 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
9363 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
9364 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
9366 2019-10-14 Jakub Jelinek <jakub@redhat.com>
9369 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9372 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9374 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9375 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9377 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
9380 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9383 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
9386 * testsuite/libgomp.fortran/fortran.exp: Conditionally
9388 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9390 2019-10-09 Jakub Jelinek <jakub@redhat.com>
9393 * target.c (gomp_map_vars_internal): Readd the previous
9394 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9395 though do that just in the !not_found_cnt case.
9397 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
9399 * gfortran.dg/gomp/target-simd.f90: New.
9401 2019-10-02 Julian Brown <julian@codesourcery.com>
9402 Cesar Philippidis <cesar@codesourcery.com>
9404 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9405 * target.c (FIELD_TGT_EMPTY): Define.
9406 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
9407 as switch instead of list of ifs.
9408 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9410 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
9412 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9413 include. Replace alloca () with __builtin_alloca ().
9414 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9416 2019-10-01 Jakub Jelinek <jakub@redhat.com>
9418 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9419 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9420 * oacc-parallel.c: Don't include "libgomp_g.h".
9421 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9422 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9423 * aclocal.m4: Regenerated.
9424 * config.h.in: Regenerated.
9425 * configure: Regenerated.
9426 * Makefile.in: Regenerated.
9428 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
9430 * libgomp_g.h: Include stdint.h instead of gstdint.h.
9432 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
9434 * configure: Regenerate.
9436 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
9438 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9439 string is initialized.
9441 2019-09-06 Florian Weimer <fweimer@redhat.com>
9443 * configure: Regenerate.
9445 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
9448 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9449 scanning to conform to the GNU Coding Standards.
9450 * configure: Regenerate.
9452 2019-08-28 Jakub Jelinek <jakub@redhat.com>
9455 * testsuite/libgomp.c/scan-21.c: New test.
9456 * testsuite/libgomp.c/scan-22.c: New test.
9458 2019-08-27 Jakub Jelinek <jakub@redhat.com>
9461 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9463 * testsuite/libgomp.c/scan-12.c: Likewise.
9464 * testsuite/libgomp.c/scan-13.c: Likewise.
9465 * testsuite/libgomp.c/scan-14.c: Likewise.
9466 * testsuite/libgomp.c/scan-15.c: Likewise.
9467 * testsuite/libgomp.c/scan-16.c: Likewise.
9468 * testsuite/libgomp.c/scan-17.c: Likewise.
9469 * testsuite/libgomp.c/scan-18.c: Likewise.
9470 * testsuite/libgomp.c/scan-19.c: Likewise.
9471 * testsuite/libgomp.c/scan-20.c: Likewise.
9472 * testsuite/libgomp.c++/scan-9.C: Likewise.
9473 * testsuite/libgomp.c++/scan-10.C: Likewise.
9474 * testsuite/libgomp.c++/scan-11.C: Likewise.
9475 * testsuite/libgomp.c++/scan-12.C: Likewise.
9476 * testsuite/libgomp.c++/scan-14.C: Likewise.
9477 * testsuite/libgomp.c++/scan-15.C: Likewise.
9478 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
9479 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9480 * testsuite/libgomp.c++/scan-16.C: Likewise.
9482 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
9485 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9486 -std=legacy so invalid code in the test case is accepted.
9488 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9491 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9494 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9496 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9497 perform the lookup in the first loop only if !not_found_cnt, otherwise
9498 perform lookups for it in the second loop guarded with
9499 if (not_found_cnt || has_firstprivate).
9500 * testsuite/libgomp.c/target-37.c: New test.
9501 * testsuite/libgomp.c++/target-22.C: New test.
9503 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9505 * testsuite/libgomp.c/target-18.c (struct S): New type.
9506 (foo): Use use_device_addr clause instead of use_device_ptr clause
9507 where required by OpenMP 5.0, add further tests for both use_device_ptr
9508 and use_device_addr clauses.
9509 * testsuite/libgomp.c++/target-9.C (struct S): New type.
9510 (foo): Use use_device_addr clause instead of use_device_ptr clause
9511 where required by OpenMP 5.0, add further tests for both use_device_ptr
9512 and use_device_addr clauses. Add t and u arguments.
9513 (main): Adjust caller.
9515 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9517 * testsuite/libgomp.c++/loop-13.C: New test.
9518 * testsuite/libgomp.c++/loop-14.C: New test.
9519 * testsuite/libgomp.c++/loop-15.C: New test.
9521 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9524 * testsuite/libgomp.c++/for-27.C: New test.
9526 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
9528 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9529 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9531 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9533 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9535 2019-07-08 Jakub Jelinek <jakub@redhat.com>
9537 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9538 * testsuite/libgomp.c++/scan-16.C: Likewise.
9540 2019-07-06 Jakub Jelinek <jakub@redhat.com>
9542 * testsuite/libgomp.c/scan-19.c: New test.
9543 * testsuite/libgomp.c/scan-20.c: New test.
9545 * testsuite/libgomp.c/scan-11.c: New test.
9546 * testsuite/libgomp.c/scan-12.c: New test.
9547 * testsuite/libgomp.c/scan-13.c: New test.
9548 * testsuite/libgomp.c/scan-14.c: New test.
9549 * testsuite/libgomp.c/scan-15.c: New test.
9550 * testsuite/libgomp.c/scan-16.c: New test.
9551 * testsuite/libgomp.c/scan-17.c: New test.
9552 * testsuite/libgomp.c/scan-18.c: New test.
9553 * testsuite/libgomp.c++/scan-9.C: New test.
9554 * testsuite/libgomp.c++/scan-10.C: New test.
9555 * testsuite/libgomp.c++/scan-11.C: New test.
9556 * testsuite/libgomp.c++/scan-12.C: New test.
9557 * testsuite/libgomp.c++/scan-13.C: New test.
9558 * testsuite/libgomp.c++/scan-14.C: New test.
9559 * testsuite/libgomp.c++/scan-15.C: New test.
9560 * testsuite/libgomp.c++/scan-16.C: New test.
9562 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9564 * testsuite/libgomp.c/scan-9.c: New test.
9565 * testsuite/libgomp.c/scan-10.c: New test.
9567 2019-07-03 Jakub Jelinek <jakub@redhat.com>
9569 * testsuite/libgomp.c++/scan-1.C: New test.
9570 * testsuite/libgomp.c++/scan-2.C: New test.
9571 * testsuite/libgomp.c++/scan-3.C: New test.
9572 * testsuite/libgomp.c++/scan-4.C: New test.
9573 * testsuite/libgomp.c++/scan-5.C: New test.
9574 * testsuite/libgomp.c++/scan-6.C: New test.
9575 * testsuite/libgomp.c++/scan-7.C: New test.
9576 * testsuite/libgomp.c++/scan-8.C: New test.
9577 * testsuite/libgomp.c/scan-1.c: New test.
9578 * testsuite/libgomp.c/scan-2.c: New test.
9579 * testsuite/libgomp.c/scan-3.c: New test.
9580 * testsuite/libgomp.c/scan-4.c: New test.
9581 * testsuite/libgomp.c/scan-5.c: New test.
9582 * testsuite/libgomp.c/scan-6.c: New test.
9583 * testsuite/libgomp.c/scan-7.c: New test.
9584 * testsuite/libgomp.c/scan-8.c: New test.
9586 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9588 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9589 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9592 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9595 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
9597 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9600 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9603 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9605 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9606 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9607 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9608 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9611 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9614 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9616 2019-06-16 Tom de Vries <tdevries@suse.de>
9618 PR tree-optimization/89376
9619 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9621 2019-06-15 Tom de Vries <tdevries@suse.de>
9623 PR tree-optimization/89713
9624 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9625 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9627 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9630 * testsuite/libgomp.c/pr90779.c: New test.
9631 * testsuite/libgomp.fortran/pr90779.f90: New test.
9633 2019-06-15 Tom de Vries <tdevries@suse.de>
9635 PR tree-optimization/90009
9636 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9638 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9640 PR tree-optimization/89713
9641 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9643 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9646 * testsuite/libgomp.c/pr90811.c: New test.
9648 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9650 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9651 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9653 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9655 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9656 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9657 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9658 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9660 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9662 * configure.ac: Call AX_COUNT_CPUS.
9663 Substitute CPU_COUNT.
9664 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9666 * aclocal.m4: Regenerate.
9667 * configure: Regenerate.
9668 * Makefile.in, testsuite/Makefile.in: Regenerate.
9670 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9672 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9674 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9675 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9676 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9678 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9680 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9682 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9685 * work.c (gomp_init_work_share): Instead of aligning final ordered
9686 value to multiples of long long alignment, align to that the
9687 first part (ordered team ids) and if inline_ordered_team_ids
9688 is not on a long long alignment boundary within the structure,
9689 use __alignof__ (long long) - 1 pad size always.
9690 * loop.c (GOMP_loop_start): Fix *mem computation if
9691 inline_ordered_team_ids is not aligned on long long alignment boundary
9692 within the structure.
9693 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9694 * sections.c (GOMP_sections2_start): Likewise.
9696 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9698 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9699 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9702 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9703 HAVE_INTTYPES_H is defined.
9704 (print_uint64_t): New typedef.
9705 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9706 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9707 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9708 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9709 before casting to void *.
9710 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9711 * oacc-mem.c: Don't include config.h nor stdint.h.
9712 * target.c: Don't include config.h.
9713 * oacc-cuda.c: Likewise.
9714 * oacc-host.c: Don't include stdint.h.
9716 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9719 * alloc.c (_GNU_SOURCE): Define.
9721 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9723 * acc_prof.h: New file.
9724 * oacc-profiling.c: Likewise.
9725 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9726 Add these, respectively.
9727 * Makefile.in: Regenerate.
9728 * env.c (initialize_env): Call goacc_profiling_initialize.
9729 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9730 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9731 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9732 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9733 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9734 acc_prof_register, acc_prof_unregister, and acc_register_library.
9735 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9736 GOMP_PLUGIN_goacc_thread.
9737 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9738 prof_callbacks_enabled members.
9739 (goacc_prof_enabled, goacc_profiling_initialize)
9740 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9741 (goacc_profiling_dispatch): Declare.
9742 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9743 (GOACC_PROFILING_SETUP_P): Define.
9744 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9745 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9746 OpenACC Profiling Interface.
9747 * oacc-cuda.c (acc_get_current_cuda_device)
9748 (acc_get_current_cuda_context, acc_get_cuda_stream)
9749 (acc_set_cuda_stream): Likewise.
9750 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9751 (acc_init, acc_set_device_type, acc_get_device_type)
9752 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9753 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9754 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9755 (acc_unmap_data, present_create_copy, delete_copyout)
9756 (update_dev_host): Likewise.
9757 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9758 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9760 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9761 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9763 * libgomp.texi: Update.
9764 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9766 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9767 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9769 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9771 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9773 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9776 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9778 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9779 (struct goacc_asyncqueue_list): Likewise.
9780 (goacc_aq): Likewise.
9781 (goacc_aq_list): Likewise.
9782 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9783 (GOMP_OFFLOAD_openacc_async_test): Remove.
9784 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9785 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9786 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9787 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9788 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9789 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9790 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9791 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9792 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9793 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9794 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9795 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9796 (GOMP_OFFLOAD_openacc_async_test): Declare.
9797 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9798 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9799 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9800 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9801 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9803 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9804 (gomp_acc_insert_pointer): Adjust declaration.
9805 (gomp_copy_host2dev): New declaration.
9806 (gomp_copy_dev2host): Likewise.
9807 (gomp_map_vars_async): Likewise.
9808 (gomp_unmap_tgt): Likewise.
9809 (gomp_unmap_vars_async): Likewise.
9810 (gomp_fini_device): Likewise.
9812 * oacc-async.c (get_goacc_thread): New function.
9813 (get_goacc_thread_device): New function.
9814 (lookup_goacc_asyncqueue): New function.
9815 (get_goacc_asyncqueue): New function.
9816 (acc_async_test): Adjust code to use new async design.
9817 (acc_async_test_all): Likewise.
9818 (acc_wait): Likewise.
9819 (acc_wait_async): Likewise.
9820 (acc_wait_all): Likewise.
9821 (acc_wait_all_async): Likewise.
9822 (goacc_async_free): New function.
9823 (goacc_init_asyncqueues): Likewise.
9824 (goacc_fini_asyncqueues): Likewise.
9825 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9827 (acc_set_cuda_stream): Likewise.
9828 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9829 (host_openacc_register_async_cleanup): Remove.
9830 (host_openacc_async_exec): New function.
9831 (host_openacc_async_test): Adjust parameters.
9832 (host_openacc_async_test_all): Remove.
9833 (host_openacc_async_wait): Remove.
9834 (host_openacc_async_wait_async): Remove.
9835 (host_openacc_async_wait_all): Remove.
9836 (host_openacc_async_wait_all_async): Remove.
9837 (host_openacc_async_set_async): Remove.
9838 (host_openacc_async_synchronize): New function.
9839 (host_openacc_async_serialize): New function.
9840 (host_openacc_async_host2dev): New function.
9841 (host_openacc_async_dev2host): New function.
9842 (host_openacc_async_queue_callback): New function.
9843 (host_openacc_async_construct): New function.
9844 (host_openacc_async_destruct): New function.
9845 (struct gomp_device_descr host_dispatch): Remove initialization of old
9846 interface, add initialization of new async sub-struct.
9847 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9848 (goacc_attach_host_thread_to_device): Remove old async code usage.
9849 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9850 (goacc_fini_asyncqueues): Likewise.
9851 (goacc_async_copyout_unmap_vars): Likewise.
9852 (goacc_async_free): Likewise.
9853 (get_goacc_asyncqueue): Likewise.
9854 (lookup_goacc_asyncqueue): Likewise.
9855 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9857 (present_create_copy): Adjust code to use new async design.
9858 (delete_copyout): Likewise.
9859 (update_dev_host): Likewise.
9860 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9862 (gomp_acc_remove_pointer): Adjust code to use new async design.
9863 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9865 (GOACC_enter_exit_data): Likewise.
9866 (goacc_wait): Likewise.
9867 (GOACC_update): Likewise.
9868 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9869 when called, warn as obsolete in comment.
9870 * target.c (goacc_device_copy_async): New function.
9871 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9872 add goacc_device_copy_async case.
9873 (gomp_copy_dev2host): Likewise.
9874 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9875 (gomp_map_pointer): Likewise.
9876 (gomp_map_fields_existing): Likewise.
9877 (gomp_map_vars_internal): New always_inline function, renamed from
9879 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9880 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9881 passing goacc_asyncqueue argument.
9882 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9883 (gomp_unref_tgt): New function.
9884 (gomp_unmap_vars_internal): New always_inline function, renamed from
9886 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9887 (gomp_unmap_vars_async): Implement by calling
9888 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9889 (gomp_fini_device): New function.
9890 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9891 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9892 new async interface.
9893 (gomp_target_fini): Adjust code to call gomp_fini_device.
9895 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9896 (struct ptx_stream): Remove.
9897 (struct nvptx_thread): Remove current_stream field.
9898 (cuda_map_create): Remove.
9899 (cuda_map_destroy): Remove.
9904 (struct goacc_asyncqueue): Define.
9905 (struct nvptx_callback): Define.
9906 (struct ptx_free_block): Define.
9907 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9908 stream_lock, and next fields.
9909 (enum ptx_event_type): Remove.
9910 (struct ptx_event): Remove.
9911 (ptx_event_lock): Remove.
9912 (ptx_events): Remove.
9913 (init_streams_for_device): Remove.
9914 (fini_streams_for_device): Remove.
9915 (select_stream_for_async): Remove.
9916 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9917 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9919 (nvptx_open_device): Add free_blocks initialization, remove
9920 init_streams_for_device call.
9921 (nvptx_close_device): Remove fini_streams_for_device call, add
9922 free_blocks destruct code.
9924 (event_add): Remove.
9925 (nvptx_exec): Adjust parameters and code.
9926 (nvptx_free): Likewise.
9927 (nvptx_host2dev): Remove.
9928 (nvptx_dev2host): Remove.
9929 (nvptx_set_async): Remove.
9930 (nvptx_async_test): Remove.
9931 (nvptx_async_test_all): Remove.
9932 (nvptx_wait): Remove.
9933 (nvptx_wait_async): Remove.
9934 (nvptx_wait_all): Remove.
9935 (nvptx_wait_all_async): Remove.
9936 (nvptx_get_cuda_stream): Remove.
9937 (nvptx_set_cuda_stream): Remove.
9938 (GOMP_OFFLOAD_alloc): Adjust code.
9939 (GOMP_OFFLOAD_free): Likewise.
9940 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9941 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9942 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9943 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9944 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9945 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9946 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9947 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9948 (cuda_free_argmem): New function.
9949 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9950 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9951 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9952 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9953 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9954 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9955 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9956 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9957 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9958 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9959 (cuda_callback_wrapper): New function.
9960 (cuda_memcpy_sanity_check): New function.
9961 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9962 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9963 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9964 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9966 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
9969 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9971 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
9973 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9975 2019-03-27 Kevin Buettner <kevinb@redhat.com>
9977 * team.c (gomp_team_start): Initialize pool->threads[0].
9979 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9981 * testsuite/libgomp.oacc-c++/c++.exp: Specify
9982 "-foffload=$offload_target".
9983 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9984 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9985 * testsuite/lib/libgomp.exp
9986 (check_effective_target_openacc_nvidia_accel_configured): Remove,
9987 as (conceptually) merged into
9988 check_effective_target_openacc_nvidia_accel_selected. Adjust all
9991 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9992 * testsuite/libgomp-test-support.exp.in: Adjust.
9993 * testsuite/lib/libgomp.exp: Likewise. Don't populate
9994 openacc_device_types_s.
9995 (offload_target_to_openacc_device_type): New proc.
9996 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9997 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9998 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9999 * Makefile.in: Regenerate.
10000 * configure: Likewise.
10001 * testsuite/Makefile.in: Likewise.
10003 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
10004 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
10005 instead of OFFLOAD_TARGETS.
10006 * target.c (gomp_target_init): Adjust.
10007 * testsuite/libgomp-test-support.exp.in: Likewise.
10008 * testsuite/lib/libgomp.exp: Likewise. Populate
10009 openacc_device_types_s instead of offload_targets_s_openacc.
10010 (check_effective_target_openacc_nvidia_accel_selected)
10011 (check_effective_target_openacc_host_selected): Adjust.
10012 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
10013 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10014 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10015 * Makefile.in: Regenerate.
10016 * config.h.in: Likewise.
10017 * configure: Likewise.
10018 * testsuite/Makefile.in: Likewise.
10020 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
10021 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
10022 "offloading: supported, but hardware not accessible".
10023 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10024 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10026 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
10029 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
10031 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
10032 and related adjustment.
10034 2019-01-30 Jakub Jelinek <jakub@redhat.com>
10037 * testsuite/libgomp.c++/pr88988.C: New test.
10039 2019-01-28 Jakub Jelinek <jakub@redhat.com>
10041 PR middle-end/89002
10042 * testsuite/libgomp.c/pr89002.c: New test.
10044 2019-01-28 Richard Biener <rguenther@suse.de>
10047 PR tree-optimization/86865
10048 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
10050 2019-01-24 Tom de Vries <tdevries@suse.de>
10052 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
10053 once instantiated_devices drops to 0.
10055 2019-01-23 Tom de Vries <tdevries@suse.de>
10058 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
10060 (nvptx_exec): Don't call map_push if mapnum == 0.
10061 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
10063 2019-01-23 Tom de Vries <tdevries@suse.de>
10067 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
10068 (map_fini): Remove "assert (!s->map->active)".
10069 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
10071 2019-01-23 Tom de Vries <tdevries@suse.de>
10074 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
10075 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
10077 2019-01-15 Tom de Vries <tdevries@suse.de>
10080 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
10083 2019-01-12 Tom de Vries <tdevries@suse.de>
10085 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
10086 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
10087 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
10088 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
10090 2019-01-12 Tom de Vries <tdevries@suse.de>
10092 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
10094 2019-01-12 Tom de Vries <tdevries@suse.de>
10096 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
10097 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
10098 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
10100 2019-01-12 Tom de Vries <tdevries@suse.de>
10103 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
10104 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
10106 2019-01-12 Tom de Vries <tdevries@suse.de>
10109 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
10110 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
10112 2019-01-12 Tom de Vries <tdevries@suse.de>
10114 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
10115 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
10116 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
10118 2019-01-12 Tom de Vries <tdevries@suse.de>
10120 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
10121 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
10122 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
10124 2019-01-12 Tom de Vries <tdevries@suse.de>
10126 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
10127 resources diagnostic.
10129 2019-01-12 Tom de Vries <tdevries@suse.de>
10131 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
10132 vector length to be 128.
10133 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
10134 length 2097152 to be reduced to 1024 instead of 32.
10136 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
10137 James Norris <jnorris@codesourcery.com>
10139 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
10140 Library Routines", and "Environment Variables".
10142 2019-01-11 Tom de Vries <tdevries@suse.de>
10144 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
10147 2019-01-11 Tom de Vries <tdevries@suse.de>
10149 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
10151 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
10152 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
10153 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
10154 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
10156 2019-01-11 Tom de Vries <tdevries@suse.de>
10158 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
10161 2019-01-10 Nathan Sidwell <nathan@acm.org>
10162 Julian Brown <julian@codesourcery.com>
10165 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
10166 * testsuite/libgomp.oacc-c++/pr71959.C: New.
10168 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
10170 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
10173 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
10175 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
10176 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10179 2019-01-09 Tom de Vries <tdevries@suse.de>
10182 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
10183 #define instead of "const int".
10184 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
10185 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
10186 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
10187 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
10189 2019-01-09 Tom de Vries <tdevries@suse.de>
10191 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
10194 2019-01-07 Tom de Vries <tdevries@suse.de>
10196 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
10197 GOMP_OPENACC_DIM argument.
10199 2019-01-03 Tom de Vries <tdevries@suse.de>
10201 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
10202 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
10204 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10206 Update copyright years.
10208 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10210 * libgomp.texi: Bump @copying's copyright year.
10212 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10214 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
10215 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
10216 (GOACC_declare): Redefine the "device" argument to "flags".
10218 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10219 Cesar Philippidis <cesar@codesourcery.com>
10221 * target.c (struct gomp_coalesce_chunk): New structure.
10222 (struct gomp_coalesce_buf): Update the chunks member to use that
10223 type. Adjust all users.
10225 2018-12-19 Tom de Vries <tdevries@suse.de>
10227 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
10228 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
10229 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
10231 2018-12-19 Tom de Vries <tdevries@suse.de>
10233 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
10234 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
10235 gcc/testsuite/gcc.dg/goacc.
10236 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
10238 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10239 Chung-Lin Tang <cltang@codesourcery.com>
10241 * oacc-mem.c (acc_present_or_create): Remove definition and change
10242 to alias of acc_create.
10243 (acc_present_or_copyin): Remove definition and change to alias of
10245 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
10246 of acc_present_or_create.
10247 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
10248 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10249 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10250 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10251 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10252 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10253 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10254 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10255 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10256 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10257 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10258 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10259 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10260 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10261 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10262 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10264 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10267 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
10268 "identical parameters".
10269 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
10270 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
10273 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
10274 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
10277 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
10278 (nvptx_wait_async): Unseen async-argument is a no-op.
10279 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
10280 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
10281 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10282 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10283 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10284 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
10285 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
10286 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
10287 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
10289 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
10290 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10292 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
10294 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
10295 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10296 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10298 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10301 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
10302 (acc_set_cuda_stream): Clarify.
10303 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10305 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
10307 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
10308 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
10309 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
10310 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10312 2018-12-14 Tom de Vries <tdevries@suse.de>
10314 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
10315 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
10316 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
10317 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
10318 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
10320 2018-12-13 Tom de Vries <tdevries@suse.de>
10322 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
10323 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
10324 * fortran.c (omp_display_affinity_): ... here.
10325 * libgomp.h (gomp_print_string): Declare.
10326 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
10327 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10330 2018-12-13 Jakub Jelinek <jakub@redhat.com>
10333 * testsuite/libgomp.c++/for-24.C (results): Include it in
10334 omp declare target region.
10335 (main): Use map (always, tofrom: results) instead of
10336 map (tofrom: results).
10338 2018-12-12 Jakub Jelinek <jakub@redhat.com>
10341 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
10342 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
10344 * testsuite/libgomp.c-c++-common/for-16.c: New test.
10346 2018-12-12 Andreas Schwab <schwab@suse.de>
10348 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
10351 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
10354 * testsuite/libgomp.fortran/async_io_8.f90: New test.
10356 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
10357 Jakub Jelinek <jakub@redhat.com>
10359 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
10360 devicep->host2dev_func.
10362 2018-12-08 Jakub Jelinek <jakub@redhat.com>
10365 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
10366 tls_runtime effective target.
10367 (t): New threadprivate variable.
10368 (main): Set t in threads which execute iterations of the worksharing
10369 loop. Propagate that to the task after the loop and don't abort
10370 if the current taskgroup hasn't been cancelled.
10372 2018-12-02 Jakub Jelinek <jakub@redhat.com>
10374 * testsuite/libgomp.c/task-reduction-3.c: New test.
10376 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10378 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
10381 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10382 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10384 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
10386 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10388 2018-10-19 Richard Biener <rguenther@suse.de>
10390 PR tree-optimization/88182
10391 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10393 2018-11-26 Jakub Jelinek <jakub@redhat.com>
10395 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10396 (RUNTEST): Don't define.
10397 (RUNTESTDEFAULTFLAGS): Add.
10398 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10399 (distclean-am): Depend on distclean-DEJAGNU.
10400 (check-am): If -j% option is present in MFLAGS and if
10401 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10402 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10403 * testsuite/Makefile.in: Regenerated.
10405 2018-11-26 Richard Biener <rguenther@suse.de>
10407 PR tree-optimization/88182
10408 * testsuite/libgomp.c++/pr88182.C: New testcase.
10410 2018-11-20 Jakub Jelinek <jakub@redhat.com>
10413 * config/mingw32/affinity-fmt.c: New file.
10415 2018-11-09 Jakub Jelinek <jakub@redhat.com>
10417 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10418 (gomp_display_affinity): Use __builtin_choose_expr to handle
10419 properly handle argument having integral, or pointer or some other
10420 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
10421 with uint64_t type instead of %llx and unsigned long long.
10423 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10424 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10426 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10428 * affinity.c: Include <string.h>, <stdio.h>.
10429 (gomp_display_affinity_place): Remove cpusetp.
10430 * teams.c: Include <limits.h>.
10432 2018-11-08 Jakub Jelinek <jakub@redhat.com>
10434 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10435 in_reduction clause for s[0].
10437 * affinity.c (gomp_display_affinity_place): New function.
10438 * affinity-fmt.c: New file.
10439 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10440 * config/linux/affinity.c (gomp_display_affinity_place): New function.
10441 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10442 Move these functions to ...
10443 * config/nvptx/teams.c: ... here. New file.
10444 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10446 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10448 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10449 and _aligned_malloc.
10450 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10451 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10452 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10453 gomp_affinity_format_len): New variables.
10454 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10455 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
10456 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10457 modifiers. Display (non-default) chunk sizes. Print
10458 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10459 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
10460 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10461 * fortran.c: Include stdio.h and string.h.
10462 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10463 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10464 (omp_set_affinity_format_, omp_get_affinity_format_,
10465 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10466 omp_pause_resource_all_): New functions.
10467 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10469 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10471 * teams.c: ... here. New file.
10472 * libgomp_g.h: Include gstdint.h.
10473 (GOMP_loop_nonmonotonic_runtime_start,
10474 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10475 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10476 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10477 GOMP_parallel_loop_nonmonotonic_runtime,
10478 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10479 GOMP_loop_ull_nonmonotonic_runtime_start,
10480 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10481 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10482 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10483 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10484 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10485 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10486 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10487 GOMP_teams_reg): Declare.
10488 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10489 gomp_aligned_alloc uses fallback implementation.
10490 (gomp_aligned_alloc, gomp_aligned_free): Declare.
10491 (enum gomp_schedule_type): Add GFS_MONOTONIC.
10492 (struct gomp_doacross_work_share): Add extra field.
10493 (struct gomp_work_share): Add task_reductions field.
10494 (struct gomp_taskgroup): Add workshare and reductions fields.
10495 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10496 (gomp_thread_handle): New typedef.
10497 (gomp_display_affinity_place, gomp_set_affinity_format,
10498 gomp_display_string, gomp_display_affinity,
10499 gomp_display_affinity_thread): Declare.
10500 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10501 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10502 gomp_workshare_task_reduction_register): Declare.
10503 (gomp_team_start): Add taskgroup argument.
10504 (gomp_pause_host): Declare.
10505 (gomp_init_work_share, gomp_work_share_start): Change bool argument
10507 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10508 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10509 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10510 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10511 GOMP_loop_ull_doacross_start,
10512 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10513 GOMP_loop_maybe_nonmonotonic_runtime_next,
10514 GOMP_loop_maybe_nonmonotonic_runtime_start,
10515 GOMP_loop_nonmonotonic_runtime_next,
10516 GOMP_loop_nonmonotonic_runtime_start,
10517 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10518 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10519 GOMP_loop_ull_nonmonotonic_runtime_next,
10520 GOMP_loop_ull_nonmonotonic_runtime_start,
10521 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10522 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10523 GOMP_taskgroup_reduction_register,
10524 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10525 GOMP_teams_reg and GOMP_taskwait_depend.
10526 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10527 omp_{capture,display}_affinity{,_}, and
10528 omp_[gs]et_affinity_format{,_}.
10529 * loop.c: Include string.h.
10530 (GOMP_loop_runtime_next): Add ialias.
10531 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10532 (gomp_loop_static_start, gomp_loop_dynamic_start,
10533 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10534 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10535 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10536 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10537 or gomp_doacross_init callers.
10538 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10539 GOMP_loop_doacross_start): New functions.
10540 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10541 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10542 Mask off GFS_MONOTONIC bit.
10543 (GOMP_loop_maybe_nonmonotonic_runtime_next,
10544 GOMP_loop_maybe_nonmonotonic_runtime_start,
10545 GOMP_loop_nonmonotonic_runtime_next,
10546 GOMP_loop_nonmonotonic_runtime_start,
10547 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10548 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10550 (gomp_parallel_loop_start): Pass NULL as taskgroup to
10552 * loop_ull.c: Include string.h.
10553 (GOMP_loop_ull_runtime_next): Add ialias.
10554 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10555 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10556 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10557 gomp_loop_ull_ordered_dynamic_start,
10558 gomp_loop_ull_ordered_guided_start,
10559 gomp_loop_ull_doacross_static_start,
10560 gomp_loop_ull_doacross_dynamic_start,
10561 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10562 and gomp_doacross_ull_init callers.
10563 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10564 GOMP_loop_ull_doacross_start): New functions.
10565 (GOMP_loop_ull_runtime_start,
10566 GOMP_loop_ull_ordered_runtime_start,
10567 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10568 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10569 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10570 GOMP_loop_ull_nonmonotonic_runtime_next,
10571 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10572 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10573 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10574 (omp_pause_resource_t, omp_depend_t): New typedefs.
10575 (enum omp_lock_hint_t): Renamed to ...
10576 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
10577 enumerators using numbers and omp_lock_hint_* as their aliases.
10578 (omp_lock_hint_t): New typedef. Rename to ...
10579 (omp_sync_hint_t): ... this.
10580 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10581 omp_sync_hint_t instead of omp_lock_hint_t.
10582 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10583 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10585 (omp_target_is_present, omp_target_disassociate_ptr):
10586 Change first argument from void * to const void *.
10587 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10588 from void * to const void *.
10589 (omp_target_associate_ptr): Change first and second arguments from
10590 void * to const void *.
10591 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10592 omp_pause_hard): New parameters.
10593 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10594 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10596 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10597 omp_pause_hard): New parameters.
10598 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10599 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10601 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10602 EXTRA argument. If not needed to prepare array, if extra is 0,
10603 clear ws->doacross, otherwise allocate just doacross structure and
10604 extra payload. If array is needed, allocate also extra payload.
10605 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10606 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10608 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10610 (GOMP_parallel): Likewise. Formatting fix.
10611 (GOMP_parallel_reductions): New function.
10612 (GOMP_cancellation_point): If taskgroup has workshare
10613 flag set, check cancelled of prev taskgroup if any.
10614 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10615 on prev taskgroup if any.
10616 * sections.c: Include string.h.
10617 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10618 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10619 (GOMP_sections2_start): New function.
10620 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10621 Pass NULL as taskgroup to gomp_team_start.
10622 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10623 gomp_work_share_start callers.
10624 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10625 If taskgroup has workshare flag set, check cancelled on prev
10626 taskgroup if any. Guard all cancellation tests with
10627 gomp_cancel_var test.
10628 (omp_target_is_present, omp_target_disassociate_ptr):
10629 Change ptr argument from void * to const void *.
10630 (omp_target_memcpy): Change src argument from void * to const void *.
10631 (omp_target_memcpy_rect): Likewise.
10632 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10633 instead of char * where needed.
10634 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10635 from void * to const void *.
10636 (omp_pause_resource, omp_pause_resource_all): New functions.
10637 * task.c (gomp_task_handle_depend): Handle new depend array format
10638 in addition to the old. Handle mutexinoutset kinds the same as
10639 inout for now, handle unspecified kinds.
10640 (gomp_create_target_task): If taskgroup has workshare flag set, check
10641 cancelled on prev taskgroup if any. Guard all cancellation tests with
10642 gomp_cancel_var test. Handle new depend array format count in
10643 addition to the old.
10644 (GOMP_task): Likewise. Adjust function comment.
10645 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10646 cancelled on prev taskgroup if any. Guard all cancellation tests with
10647 gomp_cancel_var test.
10648 (GOMP_taskwait_depend): New function.
10649 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10650 format in addition to the old. Handle mutexinoutset kinds the same as
10651 inout for now, handle unspecified kinds. Fix a function comment typo.
10652 (gomp_taskgroup_init): New function.
10653 (GOMP_taskgroup_start): Use it.
10654 (gomp_reduction_register, gomp_create_artificial_team,
10655 GOMP_taskgroup_reduction_register,
10656 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10657 gomp_parallel_reduction_register,
10658 gomp_workshare_task_reduction_register,
10659 gomp_workshare_taskgroup_start,
10660 GOMP_workshare_task_reduction_unregister): New functions.
10661 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10662 check cancelled on prev taskgroup if any. Guard all cancellation
10663 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10664 by calling GOMP_taskgroup_reduction_register.
10665 * team.c (gomp_thread_attr): Remove comment.
10666 (struct gomp_thread_start_data): Add handle field.
10667 (gomp_thread_start): Call pthread_detach.
10668 (gomp_new_team): Adjust gomp_init_work_share caller.
10669 (gomp_free_pool_helper): Call pthread_detach.
10670 (gomp_team_start): Add taskgroup argument, initialize implicit
10671 tasks' taskgroup field to that. Don't call
10672 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10673 (gomp_team_end): Determine nesting by thr->ts.level != 0
10674 rather than thr->ts.team != NULL.
10675 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10676 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10677 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10678 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10679 if more than 1 allocate also extra payload at the end of array. Never
10680 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10681 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10682 return true instead of ws.
10683 * Makefile.in: Regenerated.
10684 * configure: Regenerated.
10685 * config.h.in: Regenerated.
10686 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10688 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10689 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10690 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10691 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10692 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10693 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10694 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10695 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10696 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10697 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10698 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10699 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10700 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10701 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10702 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10703 define a different N(test), don't define N(f0) to N(f14), but instead
10704 define N(f20) to N(f34) using != comparisons.
10705 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10706 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10707 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10708 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10709 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10710 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10711 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10712 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10713 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10714 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10715 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10716 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10717 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10718 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10719 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10720 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10721 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10722 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10723 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10724 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10725 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10726 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10727 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10728 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10729 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10730 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10731 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10732 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10733 * testsuite/libgomp.c++/depend-1.C: New test.
10734 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10735 * testsuite/libgomp.c++/depobj-1.C: New test.
10736 * testsuite/libgomp.c++/for-16.C: New test.
10737 * testsuite/libgomp.c++/for-21.C: New test.
10738 * testsuite/libgomp.c++/for-22.C: New test.
10739 * testsuite/libgomp.c++/for-23.C: New test.
10740 * testsuite/libgomp.c++/for-24.C: New test.
10741 * testsuite/libgomp.c++/for-25.C: New test.
10742 * testsuite/libgomp.c++/for-26.C: New test.
10743 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10744 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10745 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10746 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10747 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10748 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10749 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10750 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10751 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10752 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10753 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10754 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10755 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10756 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10757 * testsuite/libgomp.c/task-reduction-1.c: New test.
10758 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10759 * testsuite/libgomp.c/task-reduction-2.c: New test.
10760 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10761 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10762 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10763 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10764 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10765 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10766 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10767 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10768 * testsuite/libgomp.c/teams-1.c: New test.
10769 * testsuite/libgomp.c/teams-2.c: New test.
10770 * testsuite/libgomp.c/thread-limit-4.c: New test.
10771 * testsuite/libgomp.c/thread-limit-5.c: New test.
10772 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10774 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10776 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10777 acc_memcpy_to/from_device functions, now with async parameter.
10778 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10779 (acc_memcpy_from_device): Likewise.
10780 (acc_memcpy_to_device_async): New API function.
10781 (acc_memcpy_from_device_async): Likewise.
10782 (present_create_copy): Add async parameter and async setting/unsetting.
10783 (acc_create): Adjust present_create_copy call.
10784 (acc_copyin): Likewise.
10785 (acc_present_or_create): Likewise.
10786 (acc_present_or_copyin): Likewise.
10787 (acc_create_async): New API function.
10788 (acc_copyin_async): New API function.
10789 (delete_copyout): Add async parameter and async setting/unsetting.
10790 (acc_delete): Adjust delete_copyout call.
10791 (acc_copyout): Likewise.
10792 (acc_delete_async): New API function.
10793 (acc_copyout_async): Likewise.
10794 (update_dev_host): Add async parameter and async setting/unsetting.
10795 (acc_update_device): Adjust update_dev_host call.
10796 (acc_update_self): Likewise.
10797 (acc_update_device_async): New API function.
10798 (acc_update_self_async): Likewise.
10799 * openacc.h (acc_copyin_async): Declare new API function.
10800 (acc_create_async): Likewise.
10801 (acc_copyout_async): Likewise.
10802 (acc_delete_async): Likewise.
10803 (acc_update_device_async): Likewise.
10804 (acc_update_self_async): Likewise.
10805 (acc_memcpy_to_device_async): Likewise.
10806 (acc_memcpy_from_device_async): Likewise.
10807 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10808 (acc_copyin_async_64_h): New subroutine.
10809 (acc_copyin_async_array_h): New subroutine.
10810 (acc_create_async_32_h): New subroutine.
10811 (acc_create_async_64_h): New subroutine.
10812 (acc_create_async_array_h): New subroutine.
10813 (acc_copyout_async_32_h): New subroutine.
10814 (acc_copyout_async_64_h): New subroutine.
10815 (acc_copyout_async_array_h): New subroutine.
10816 (acc_delete_async_32_h): New subroutine.
10817 (acc_delete_async_64_h): New subroutine.
10818 (acc_delete_async_array_h): New subroutine.
10819 (acc_update_device_async_32_h): New subroutine.
10820 (acc_update_device_async_64_h): New subroutine.
10821 (acc_update_device_async_array_h): New subroutine.
10822 (acc_update_self_async_32_h): New subroutine.
10823 (acc_update_self_async_64_h): New subroutine.
10824 (acc_update_self_async_array_h): New subroutine.
10825 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10826 (acc_copyin_async_64_h): New subroutine.
10827 (acc_copyin_async_array_h): New subroutine.
10828 (acc_create_async_32_h): New subroutine.
10829 (acc_create_async_64_h): New subroutine.
10830 (acc_create_async_array_h): New subroutine.
10831 (acc_copyout_async_32_h): New subroutine.
10832 (acc_copyout_async_64_h): New subroutine.
10833 (acc_copyout_async_array_h): New subroutine.
10834 (acc_delete_async_32_h): New subroutine.
10835 (acc_delete_async_64_h): New subroutine.
10836 (acc_delete_async_array_h): New subroutine.
10837 (acc_update_device_async_32_h): New subroutine.
10838 (acc_update_device_async_64_h): New subroutine.
10839 (acc_update_device_async_array_h): New subroutine.
10840 (acc_update_self_async_32_h): New subroutine.
10841 (acc_update_self_async_64_h): New subroutine.
10842 (acc_update_self_async_array_h): New subroutine.
10843 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10844 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10845 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10846 acc_memcpy_to_device_async*, acc_update_device_async*, and
10847 acc_update_self_async* entries.
10848 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10849 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10850 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10852 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10855 * Makefile.am: Include multilib.am
10856 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10857 (CLEANFILES): Remove libgomp.info.
10858 * configure.ac: Remove AC_PREREQ.
10859 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10860 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10863 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10864 Julian Brown <julian@codesourcery.com>
10866 * testsuite/libgomp.oacc-c++/this.C: New.
10868 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10870 * plugin/plugin-nvptx.c (struct cuda_map): New.
10871 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10872 h_tail with (cuda_map *) map.
10873 (cuda_map_create): New function.
10874 (cuda_map_destroy): New function.
10875 (map_init): Update to use a linked list of cuda_map objects.
10876 (map_fini): Likewise.
10877 (map_pop): Likewise.
10878 (map_push): Likewise. Return CUdeviceptr instead of void.
10879 (init_streams_for_device): Remove stales references to ptx_stream
10881 (select_stream_for_async): Likewise.
10882 (nvptx_exec): Update call to map_init.
10884 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10885 Julian Brown <julian@codesourcery.com>
10887 PR middle-end/86336
10888 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10890 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10891 Thomas Koenig <tkoenig@gcc.gnu.org>
10894 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10895 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10896 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10897 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10898 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10899 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10900 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10902 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10903 Tom de Vries <tdevries@suse.de>
10906 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10907 (cuOccupancyMaxPotentialBlockSize): Declare.
10908 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10909 CUDA_ONE_CALL_MAYBE_NULL.
10910 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10911 CUoccupancyB2DSize and declare
10912 cuOccupancyMaxPotentialBlockSize.
10913 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10914 default num_gangs and num_workers when the driver supports it.
10916 2018-08-08 Tom de Vries <tdevries@suse.de>
10918 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10919 CUDA_ONE_CALL_MAYBE_NULL.
10920 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10921 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10922 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10925 2018-08-08 Tom de Vries <tdevries@suse.de>
10927 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10928 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10931 2018-08-08 Tom de Vries <tdevries@suse.de>
10933 * plugin/plugin-nvptx.c
10934 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10935 (nvptx_open_device): Use
10936 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10938 2018-08-08 Tom de Vries <tdevries@suse.de>
10940 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10941 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
10943 2018-08-07 Tom de Vries <tdevries@suse.de>
10945 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10946 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10947 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
10948 corresponding call in CUDA_ONE_CALL. Add def/undef of
10949 CUDA_ONE_CALL_MAYBE_NULL.
10950 (CUDA_CALL_EXISTS): Define.
10952 2018-08-07 Tom de Vries <tdevries@suse.de>
10954 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10955 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10956 corresponding undefs right after.
10958 2018-08-04 Tom de Vries <tdevries@suse.de>
10960 * plugin/configfrag.ac: For --without-cuda-driver, set
10961 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
10962 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10963 * configure: Regenerate.
10965 2018-08-02 Tom de Vries <tdevries@suse.de>
10968 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10969 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10970 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10972 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10973 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10974 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10976 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10977 Thomas Schwinge <thomas@codesourcery.com>
10979 * config/nvptx/oacc-parallel.c: Truncate.
10981 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10982 James Norris <jnorris@codesourcery.com>
10984 * plugin/plugin-nvptx.c (struct map): Removed.
10985 (map_init, map_pop): Remove use of struct map.
10986 (map_push): Likewise and change argument list.
10987 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10989 2018-08-01 Tom de Vries <tdevries@suse.de>
10991 * plugin/cuda-lib.def: New file. Factor out of ...
10992 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10993 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10996 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
10998 Revert 'AsyncI/O patch committed'.
10999 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
11000 Thomas Koenig <tkoenig@gcc.gnu.org>
11003 * testsuite/libgomp.fortran/async_io_1.f90: New test.
11004 * testsuite/libgomp.fortran/async_io_2.f90: New test.
11005 * testsuite/libgomp.fortran/async_io_3.f90: New test.
11006 * testsuite/libgomp.fortran/async_io_4.f90: New test.
11007 * testsuite/libgomp.fortran/async_io_5.f90: New test.
11008 * testsuite/libgomp.fortran/async_io_6.f90: New test.
11009 * testsuite/libgomp.fortran/async_io_7.f90: New test.
11011 2018-07-30 Tom de Vries <tdevries@suse.de>
11013 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
11014 (nvptx_exec): Ensure worker and vector default dims don't exceed
11015 targ_fn->max_threads_per_block.
11017 2018-07-30 Tom de Vries <tdevries@suse.de>
11019 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
11020 (nvptx_open_device): Init default_dims for device.
11021 (nvptx_exec): Use default_dims from device.
11023 2018-07-26 Jakub Jelinek <jakub@redhat.com>
11026 * testsuite/libgomp.c++/for-15.C (results): Include it in
11027 omp declare target region.
11028 (main): Use map (always, tofrom: results) instead of
11029 map (tofrom: results).
11031 PR middle-end/86660
11032 * testsuite/libgomp.c/pr86660.c: New test.
11034 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
11035 Tom de Vries <tdevries@suse.de>
11037 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
11038 sufficient resources to launch a kernel, and give a hint on how to fix
11041 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
11042 Tom de Vries <tdevries@suse.de>
11044 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
11045 max_threads_per_block and max_threads_per_multiprocessor fields.
11046 (nvptx_open_device): Initialize new fields.
11047 (nvptx_exec): Use num_sms, and new fields.
11049 2018-07-26 Tom de Vries <tdevries@suse.de>
11051 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
11052 to correct locations. Remove xfail.
11054 2018-07-26 Tom de Vries <tdevries@suse.de>
11056 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
11057 acc_wait. Move acc_async_test calls to correct locations. Remove
11060 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
11061 Thomas Koenig <tkoenig@gcc.gnu.org>
11064 * testsuite/libgomp.fortran/async_io_1.f90: New test.
11065 * testsuite/libgomp.fortran/async_io_2.f90: New test.
11066 * testsuite/libgomp.fortran/async_io_3.f90: New test.
11067 * testsuite/libgomp.fortran/async_io_4.f90: New test.
11068 * testsuite/libgomp.fortran/async_io_5.f90: New test.
11069 * testsuite/libgomp.fortran/async_io_6.f90: New test.
11070 * testsuite/libgomp.fortran/async_io_7.f90: New test.
11072 2018-07-17 Jakub Jelinek <jakub@redhat.com>
11074 PR middle-end/86542
11075 * testsuite/libgomp.c++/pr86542.C: New test.
11077 PR middle-end/86539
11078 * testsuite/libgomp.c++/pr86539.C: New test.
11080 2018-07-11 Jakub Jelinek <jakub@redhat.com>
11083 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
11084 (results): Make sure the variable is not inside declare target region.
11085 (qux): Remove unused function.
11087 2018-07-10 Jakub Jelinek <jakub@redhat.com>
11090 * testsuite/libgomp.c++/for-15.C: New test.
11092 2018-06-26 Jakub Jelinek <jakub@redhat.com>
11095 * testsuite/libgomp.c++/pr86291.C: New test.
11097 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
11099 * libgomp.texi (Top): Move www.openmp.org to https.
11100 (Enabling OpenMP): Ditto.
11101 (omp_get_active_level): Ditto.
11102 (omp_get_ancestor_thread_num): Ditto.
11103 (omp_get_cancellation): Ditto.
11104 (omp_get_default_device): Ditto.
11105 (omp_get_dynamic): Ditto.
11106 (omp_get_level): Ditto.
11107 (omp_get_max_active_levels): Ditto.
11108 (omp_get_max_task_priority): Ditto.
11109 (omp_get_max_threads): Ditto.
11110 (omp_get_nested): Ditto.
11111 (omp_get_num_devices): Ditto.
11112 (omp_get_num_procs): Ditto.
11113 (omp_get_num_teams): Ditto.
11114 (omp_get_num_threads): Ditto.
11115 (omp_get_proc_bind): Ditto.
11116 (omp_get_schedule): Ditto.
11117 (omp_get_team_num): Ditto.
11118 (omp_get_team_size): Ditto.
11119 (omp_get_thread_limit): Ditto.
11120 (omp_get_thread_num): Ditto.
11121 (omp_in_parallel): Ditto.
11122 (omp_in_final): Ditto.
11123 (omp_is_initial_device): Ditto.
11124 (omp_set_default_device): Ditto.
11125 (omp_set_dynamic): Ditto.
11126 (omp_set_max_active_levels): Ditto.
11127 (omp_set_nested): Ditto.
11128 (omp_set_num_threads): Ditto.
11129 (omp_set_schedule): Ditto.
11130 (omp_init_lock): Ditto.
11131 (omp_set_lock): Ditto.
11132 (omp_test_lock): Ditto.
11133 (omp_unset_lock): Ditto.
11134 (omp_destroy_lock): Ditto.
11135 (omp_init_nest_lock): Ditto.
11136 (omp_set_nest_lock): Ditto.
11137 (omp_test_nest_lock): Ditto.
11138 (omp_unset_nest_lock): Ditto.
11139 (omp_destroy_nest_lock): Ditto.
11140 (omp_get_wtick): Ditto.
11141 (omp_get_wtime): Ditto.
11142 (OMP_CANCELLATION): Ditto.
11143 (OMP_DISPLAY_ENV): Ditto.
11144 (OMP_DEFAULT_DEVICE): Ditto.
11145 (OMP_DYNAMIC): Ditto.
11146 (OMP_MAX_ACTIVE_LEVELS): Ditto.
11147 (OMP_MAX_TASK_PRIORITY): Ditto.
11148 (OMP_NESTED): Ditto.
11149 (OMP_NUM_THREADS): Ditto.
11150 (OMP_PROC_BIND): Ditto.
11151 (OMP_PLACES): Ditto.
11152 (OMP_STACKSIZE): Ditto.
11153 (OMP_SCHEDULE): Ditto.
11154 (OMP_THREAD_LIMIT): Ditto.
11155 (OMP_WAIT_POLICY): Ditto.
11157 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
11158 James Norris <jnorris@codesourcery.com>
11159 Julian Brown <julian@codesourcery.com>
11160 Thomas Schwinge <thomas@codesourcery.com>
11161 Tom de Vries <tom@codesourcery.com>
11163 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
11164 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
11165 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
11166 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
11167 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11168 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11169 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
11170 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
11171 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
11172 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
11174 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11176 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11178 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
11180 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
11182 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11184 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
11186 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
11188 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
11190 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
11192 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
11194 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
11196 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
11198 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
11200 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
11202 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
11204 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
11206 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
11208 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
11210 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
11212 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
11214 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
11216 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
11218 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
11220 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
11222 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
11224 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
11226 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
11227 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
11228 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
11229 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
11230 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
11231 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
11232 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
11233 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
11234 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
11236 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
11238 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
11239 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
11240 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
11242 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
11243 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
11244 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
11246 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
11248 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
11250 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
11252 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
11254 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
11256 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
11258 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
11260 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
11262 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
11264 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
11266 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
11268 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
11270 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
11272 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
11274 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11275 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
11276 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
11277 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
11278 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
11279 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
11280 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
11282 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
11283 Thomas Schwinge <thomas@codesourcery.com>
11284 Cesar Philippidis <cesar@codesourcery.com>
11286 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
11287 (gomp_acc_remove_pointer): Update declaration.
11288 (gomp_acc_declare_allocate): Declare.
11289 (gomp_remove_var): Declare.
11290 * libgomp.map (OACC_2.5): Define.
11291 * oacc-mem.c (acc_map_data): Update refcount.
11292 (acc_unmap_data): Likewise.
11293 (present_create_copy): Likewise.
11294 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
11295 (acc_copyin): Likewise.
11296 (FLAG_FINALIZE): Define.
11297 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
11298 (acc_delete_finalize): New function.
11299 (acc_delete_finalize_async): New function.
11300 (acc_copyout_finalize): New function.
11301 (acc_copyout_finalize_async): New function.
11302 (gomp_acc_insert_pointer): Update refcounts.
11303 (gomp_acc_remove_pointer): Return if data is not present on the
11305 * oacc-parallel.c (find_pset): Rename to find_pointer.
11306 (find_pointer): Add support for GOMP_MAP_POINTER.
11307 (handle_ftn_pointers): New function.
11308 (GOACC_parallel_keyed): Update refcounts of variables.
11309 (GOACC_enter_exit_data): Add support for finalized data mappings.
11310 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
11312 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
11313 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
11314 for GOMP_MAP_FORCE_FROM.
11315 * openacc.f90 (module openacc_internal): Add
11316 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
11317 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
11318 acc_copyout_finalize and acc_delete_finalize.
11319 (acc_copyout_finalize_32_h): New subroutine.
11320 (acc_copyout_finalize_64_h): New subroutine.
11321 (acc_copyout_finalize_array_h): New subroutine.
11322 (acc_delete_finalize_32_h): New subroutine.
11323 (acc_delete_finalize_64_h): New subroutine.
11324 (acc_delete_finalize_array_h): New subroutine.
11325 * openacc.h (acc_copyout_finalize): Declare.
11326 (acc_copyout_finalize_async): Declare.
11327 (acc_delete_finalize): Declare.
11328 (acc_delete_finalize_async): Declare.
11329 * openacc_lib.h (acc_copyout_finalize): New interface.
11330 (acc_delete_finalize): New interface.
11331 * target.c (gomp_map_vars): Update dynamic_refcount.
11332 (gomp_remove_var): New function.
11333 (gomp_unmap_vars): Use it.
11334 (gomp_unload_image_from_device): Likewise.
11335 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
11336 case to utilize OpenACC 2.5 data clause semantics.
11337 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11338 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11339 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11340 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11341 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11342 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11343 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11344 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11345 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11346 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11347 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11348 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
11349 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
11350 utilize OpenACC 2.5 data clause semantics.
11351 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11352 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11353 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11354 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11355 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11356 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11357 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11358 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11359 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11361 2018-05-21 Janus Weil <janus@gcc.gnu.org>
11365 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
11366 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
11367 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
11368 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
11369 * testsuite/libgomp.fortran/task2.f90: Ditto.
11370 * testsuite/libgomp.fortran/vla1.f90: Ditto.
11371 * testsuite/libgomp.fortran/vla2.f90: Ditto.
11372 * testsuite/libgomp.fortran/vla3.f90: Ditto.
11373 * testsuite/libgomp.fortran/vla4.f90: Ditto.
11374 * testsuite/libgomp.fortran/vla5.f90: Ditto.
11375 * testsuite/libgomp.fortran/vla6.f90: Ditto.
11376 * testsuite/libgomp.fortran/vla8.f90: Ditto.
11377 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11378 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11380 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
11383 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11385 2018-05-09 Tom de Vries <tom@codesourcery.com>
11388 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11389 to GOACC_enter_exit_data.
11391 2018-05-09 Tom de Vries <tom@codesourcery.com>
11394 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11395 (async_synchronous_p): New function.
11396 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11398 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11399 async_valid_stream_id_p.
11400 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11401 * oacc-parallel.c (GOACC_parallel_keyed): Same.
11403 2018-05-07 Tom de Vries <tom@codesourcery.com>
11406 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11407 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11409 2018-05-03 Tom de Vries <tom@codesourcery.com>
11412 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11413 extra_tool_flags if it contains an -foffload=-fdump-* flag.
11414 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11415 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11417 2018-05-02 Tom de Vries <tom@codesourcery.com>
11420 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11421 GOMP_OPENACC_DIM ...
11422 * env.c (parse_gomp_openacc_dim): ... here. New function.
11423 (initialize_env): Call parse_gomp_openacc_dim.
11424 (goacc_default_dims): Define.
11425 * libgomp.h (goacc_default_dims): Declare.
11426 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11427 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11428 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11429 GOMP_PLUGIN_acc_default_dim.
11430 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11431 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11433 2018-05-02 Tom de Vries <tom@codesourcery.com>
11436 * testsuite/libgomp.c++/udr-9.C: Update.
11437 * testsuite/libgomp.c++/atomic-16.C: Remove.
11438 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11439 * testsuite/libgomp.c++/loop-13.C: Remove.
11440 * testsuite/libgomp.c++/loop-14.C: Remove.
11441 * testsuite/libgomp.c++/loop-15.C: Remove.
11442 * testsuite/libgomp.c++/monotonic-1.C: Remove.
11443 * testsuite/libgomp.c++/monotonic-2.C: Remove.
11444 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11445 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11446 * testsuite/libgomp.c++/ordered-1.C: Remove.
11447 * testsuite/libgomp.c++/pr45784.C: Remove.
11448 * testsuite/libgomp.c++/pr64824.C: Remove.
11449 * testsuite/libgomp.c++/pr64868.C: Remove.
11450 * testsuite/libgomp.c++/pr66199-1.C: Remove.
11451 * testsuite/libgomp.c++/pr66199-2.C: Remove.
11452 * testsuite/libgomp.c++/pr66199-3.C: Remove.
11453 * testsuite/libgomp.c++/pr66199-4.C: Remove.
11454 * testsuite/libgomp.c++/pr66199-5.C: Remove.
11455 * testsuite/libgomp.c++/pr66199-6.C: Remove.
11456 * testsuite/libgomp.c++/pr66199-7.C: Remove.
11457 * testsuite/libgomp.c++/pr66199-8.C: Remove.
11458 * testsuite/libgomp.c++/pr66199-9.C: Remove.
11459 * testsuite/libgomp.c++/pr69389.C: Remove.
11460 * testsuite/libgomp.c++/simd10.C: Remove.
11461 * testsuite/libgomp.c++/simd11.C: Remove.
11462 * testsuite/libgomp.c++/simd12.C: Remove.
11463 * testsuite/libgomp.c++/simd13.C: Remove.
11464 * testsuite/libgomp.c++/target-1.C: Remove.
11465 * testsuite/libgomp.c++/target-3.C: Remove.
11466 * testsuite/libgomp.c++/target-4.C: Remove.
11467 * testsuite/libgomp.c++/target-5.C: Remove.
11468 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11469 * testsuite/libgomp.c++/taskloop-1.C: Remove.
11470 * testsuite/libgomp.c++/taskloop-2.C: Remove.
11471 * testsuite/libgomp.c++/taskloop-3.C: Remove.
11472 * testsuite/libgomp.c++/taskloop-4.C: Remove.
11473 * testsuite/libgomp.c++/udr-9.C: Remove.
11474 * testsuite/libgomp.c++/for-10.C: Remove.
11475 * testsuite/libgomp.c++/for-11.C: Remove.
11476 * testsuite/libgomp.c++/for-12.C: Remove.
11477 * testsuite/libgomp.c++/for-13.C: Remove.
11478 * testsuite/libgomp.c++/for-14.C: Remove.
11479 * testsuite/libgomp.c++/for-9.C: Remove.
11480 * testsuite/libgomp.c/atomic-18.c: Move ...
11481 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11482 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11483 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11484 * testsuite/libgomp.c/loop-13.c: Move ...
11485 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11486 * testsuite/libgomp.c/loop-14.c: Move ...
11487 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11488 * testsuite/libgomp.c/loop-15.c: Remove.
11489 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11490 * testsuite/libgomp.c/monotonic-1.c: Move ...
11491 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11492 * testsuite/libgomp.c/monotonic-2.c: Move ...
11493 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11494 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11495 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11496 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11497 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11498 * testsuite/libgomp.c/ordered-4.c: Move ...
11499 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11500 * testsuite/libgomp.c/pr45784.c: Move ...
11501 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11502 * testsuite/libgomp.c/pr64824.c: Move ...
11503 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11504 * testsuite/libgomp.c/pr64868.c: Move ...
11505 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11506 * testsuite/libgomp.c/pr66199-1.c: Move ...
11507 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11508 * testsuite/libgomp.c/pr66199-2.c: Move ...
11509 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11510 * testsuite/libgomp.c/pr66199-3.c: Move ...
11511 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11512 * testsuite/libgomp.c/pr66199-4.c: Move ...
11513 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11514 * testsuite/libgomp.c/pr66199-5.c: Move ...
11515 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11516 * testsuite/libgomp.c/pr66199-6.c: Move ...
11517 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11518 * testsuite/libgomp.c/pr66199-7.c: Move ...
11519 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11520 * testsuite/libgomp.c/pr66199-8.c: Move ...
11521 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11522 * testsuite/libgomp.c/pr66199-9.c: Move ...
11523 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11524 * testsuite/libgomp.c/pr69389.c: Move ...
11525 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11526 * testsuite/libgomp.c/simd-14.c: Move ...
11527 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11528 * testsuite/libgomp.c/simd-15.c: Move ...
11529 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11530 * testsuite/libgomp.c/simd-16.c: Move ...
11531 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11532 * testsuite/libgomp.c/simd-17.c: Move ...
11533 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11534 * testsuite/libgomp.c/target-1.c: Move ...
11535 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11536 * testsuite/libgomp.c/target-10.c: Move ...
11537 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11538 * testsuite/libgomp.c/target-13.c: Move ...
11539 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11540 * testsuite/libgomp.c/target-2.c: Move ...
11541 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11542 * testsuite/libgomp.c/taskgroup-1.c: Move ...
11543 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11544 * testsuite/libgomp.c/taskloop-1.c: Move ...
11545 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11546 * testsuite/libgomp.c/taskloop-2.c: Move ...
11547 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11548 * testsuite/libgomp.c/taskloop-3.c: Move ...
11549 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11550 * testsuite/libgomp.c/taskloop-4.c: Move ...
11551 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11552 * testsuite/libgomp.c/udr-1.c: Move ...
11553 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11554 * testsuite/libgomp.c/for-1.c: Move ...
11555 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11556 * testsuite/libgomp.c/for-1.h: Move ...
11557 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11558 * testsuite/libgomp.c/for-2.c: Move ...
11559 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11560 * testsuite/libgomp.c/for-2.h: Move ...
11561 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11562 * testsuite/libgomp.c/for-3.c: Move ...
11563 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11564 * testsuite/libgomp.c/for-4.c: Move ...
11565 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11566 * testsuite/libgomp.c/for-5.c: Move ...
11567 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11568 * testsuite/libgomp.c/for-6.c: Move ...
11569 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11571 2018-05-02 Tom de Vries <tom@codesourcery.com>
11574 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11575 __builtin_goacc_parlevel_{id,size}.
11576 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11577 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11578 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11579 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11580 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11581 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11582 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11583 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11584 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11585 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11586 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11587 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11588 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11589 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11590 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11591 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11592 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11593 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11594 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11595 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11596 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11597 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11598 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11600 2018-05-02 Tom de Vries <tom@codesourcery.com>
11603 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11605 2018-05-02 Tom de Vries <tom@codesourcery.com>
11608 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11610 2018-04-29 Julian Brown <julian@codesourcery.com>
11611 Tom de Vries <tom@codesourcery.com>
11614 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11615 arbitrary order for iterations of atomic subtract check.
11617 2018-04-28 Tom de Vries <tom@codesourcery.com>
11620 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11621 atomic capture results obtained in parallel loop to an array, instead of
11624 2018-04-26 Tom de Vries <tom@codesourcery.com>
11627 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11628 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11629 (process_GOMP_NVPTX_JIT): New function.
11630 (link_ptx): Use process_GOMP_NVPTX_JIT.
11632 2018-04-26 Richard Biener <rguenther@suse.de>
11633 Tom de Vries <tom@codesourcery.com>
11636 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11638 2018-04-26 Tom de Vries <tom@codesourcery.com>
11641 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11642 recursion depth from 25 to 23.
11643 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11645 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11647 * configure: Regenerated.
11649 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11650 Tom de Vries <tom@codesourcery.com>
11653 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11655 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11658 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11659 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11660 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11661 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11662 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11663 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11665 PR libfortran/85166
11666 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11668 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11670 2018-04-19 Jakub Jelinek <jakub@redhat.com>
11672 * configure: Regenerated.
11674 2018-04-18 David Malcolm <dmalcolm@redhat.com>
11677 * configure: Regenerate.
11679 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11680 Tom de Vries <tom@codesourcery.com>
11682 PR middle-end/84955
11683 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11684 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11686 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11690 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11691 test from gfortran.dg to here.
11693 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11695 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11696 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11698 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11700 PR middle-end/84955
11701 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11702 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11704 2018-04-05 Tom de Vries <tom@codesourcery.com>
11707 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11709 2018-03-26 Tom de Vries <tom@codesourcery.com>
11711 PR tree-optimization/85063
11712 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11713 * testsuite/libgomp.c/switch-conversion.c: New test.
11714 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11715 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11717 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11720 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11721 call abort by STOP n.
11722 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11723 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11724 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11725 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11726 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11727 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11728 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11729 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11730 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11731 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11732 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11733 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11734 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11735 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11736 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11737 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11738 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11739 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11740 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11741 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11742 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11743 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11744 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11745 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11746 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11747 * testsuite/libgomp.fortran/character1.f90: Likewise.
11748 * testsuite/libgomp.fortran/character2.f90: Likewise.
11749 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11750 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11751 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11752 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11753 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11754 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11755 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11756 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11757 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11758 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11759 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11760 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11761 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11762 * testsuite/libgomp.fortran/do1.f90: Likewise.
11763 * testsuite/libgomp.fortran/do2.f90: Likewise.
11764 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11765 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11766 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11767 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11768 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11769 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11770 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11771 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11772 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11773 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11774 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11775 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11776 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11777 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11778 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11779 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11780 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11781 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11782 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11783 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11784 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11785 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11786 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11787 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11788 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11789 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11790 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11791 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11792 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11793 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11794 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11795 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11796 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11797 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11798 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11799 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11800 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11801 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11802 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11803 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11804 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11805 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11806 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11807 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11808 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11809 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11810 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11811 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11812 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11813 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11814 * testsuite/libgomp.fortran/lib2.f: Likewise.
11815 * testsuite/libgomp.fortran/lib3.f: Likewise.
11816 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11817 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11818 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11819 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11820 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11821 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11822 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11823 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11824 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11825 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11826 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11827 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11828 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11829 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11830 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11831 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11832 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11833 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11834 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11835 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11836 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11837 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11838 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11839 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11840 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11841 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11842 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11843 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11844 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11845 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11846 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11847 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11848 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11849 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11850 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11851 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11852 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11853 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11854 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11855 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11856 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11857 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11858 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11859 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11860 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11861 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11862 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11863 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11864 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11865 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11866 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11867 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11868 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11869 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11870 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11871 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11872 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11873 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11874 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11875 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11876 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11877 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11878 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11879 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11880 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11881 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11882 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11883 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11884 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11885 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11886 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11887 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11888 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11889 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11890 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11891 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11892 * testsuite/libgomp.fortran/stack.f90: Likewise.
11893 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11894 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11895 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11896 * testsuite/libgomp.fortran/target1.f90: Likewise.
11897 * testsuite/libgomp.fortran/target2.f90: Likewise.
11898 * testsuite/libgomp.fortran/target3.f90: Likewise.
11899 * testsuite/libgomp.fortran/target4.f90: Likewise.
11900 * testsuite/libgomp.fortran/target5.f90: Likewise.
11901 * testsuite/libgomp.fortran/target6.f90: Likewise.
11902 * testsuite/libgomp.fortran/target7.f90: Likewise.
11903 * testsuite/libgomp.fortran/target8.f90: Likewise.
11904 * testsuite/libgomp.fortran/task1.f90: Likewise.
11905 * testsuite/libgomp.fortran/task2.f90: Likewise.
11906 * testsuite/libgomp.fortran/task3.f90: Likewise.
11907 * testsuite/libgomp.fortran/task4.f90: Likewise.
11908 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11909 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11910 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11911 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11912 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11913 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11914 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11915 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11916 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11917 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11918 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11919 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11920 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11921 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11922 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11923 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11924 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11925 * testsuite/libgomp.fortran/udr3.f90: Likewise.
11926 * testsuite/libgomp.fortran/udr4.f90: Likewise.
11927 * testsuite/libgomp.fortran/udr5.f90: Likewise.
11928 * testsuite/libgomp.fortran/udr6.f90: Likewise.
11929 * testsuite/libgomp.fortran/udr7.f90: Likewise.
11930 * testsuite/libgomp.fortran/udr8.f90: Likewise.
11931 * testsuite/libgomp.fortran/udr9.f90: Likewise.
11932 * testsuite/libgomp.fortran/vla1.f90: Likewise.
11933 * testsuite/libgomp.fortran/vla2.f90: Likewise.
11934 * testsuite/libgomp.fortran/vla3.f90: Likewise.
11935 * testsuite/libgomp.fortran/vla4.f90: Likewise.
11936 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11937 * testsuite/libgomp.fortran/vla6.f90: Likewise.
11938 * testsuite/libgomp.fortran/vla7.f90: Likewise.
11939 * testsuite/libgomp.fortran/vla8.f90: Likewise.
11940 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11941 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11942 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11943 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11944 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11945 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11946 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11947 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11948 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11949 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11950 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11951 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11952 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11953 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11954 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11955 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11956 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11957 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11958 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11959 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11960 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11961 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11962 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11963 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11964 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11965 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11966 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11967 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11968 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11969 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11970 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11971 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11972 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11973 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11974 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11975 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11976 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11977 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11978 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11979 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11980 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11981 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11982 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11983 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11984 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11985 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11986 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11987 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11988 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11989 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11990 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11991 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11992 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11993 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11994 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11995 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11996 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11997 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11998 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11999 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
12000 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12001 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12002 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12003 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12004 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
12005 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
12006 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
12007 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12008 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
12009 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
12010 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
12011 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
12012 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
12013 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
12014 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12015 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
12016 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
12017 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12018 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12019 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12020 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12021 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12022 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
12023 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
12024 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
12025 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
12026 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
12027 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
12028 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
12029 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
12030 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
12031 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
12032 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
12033 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
12035 2018-03-20 Richard Biener <rguenther@suse.de>
12037 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
12038 parallelizable loop.
12040 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12043 * configure: Regenerate.
12045 2018-02-16 Jakub Jelinek <jakub@redhat.com>
12048 * libgomp.fortran/pr84418-1.f90: New test.
12049 * libgomp.fortran/pr84418-2.f90: New test.
12051 2018-02-14 Jakub Jelinek <jakub@redhat.com>
12054 * testsuite/libgomp.fortran/threadprivate4.f90: Add
12055 -std=f2003 -fall-intrinsics into dg-additional-options.
12057 2018-02-08 Martin Jambor <mjambor@suse.cz>
12059 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
12062 2018-02-08 Martin Jambor <mjambor@suse.cz>
12064 * testsuite/libgomp.hsa.c/staticvar.c: New test.
12066 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12068 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
12069 [__cplusplus]: Declare extern "C".
12071 2018-02-07 Tom de Vries <tom@codesourcery.com>
12074 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
12076 2018-01-29 Christoph Spiel <cspiel@freenet.de>
12077 Jakub Jelinek <jakub@redhat.com>
12080 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
12081 instead of omp_lock_t.
12083 2018-01-25 Tom de Vries <tom@codesourcery.com>
12086 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
12088 2018-01-24 Tom de Vries <tom@codesourcery.com>
12091 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
12093 2018-01-24 Tom de Vries <tom@codesourcery.com>
12096 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
12098 2018-01-19 Tom de Vries <tom@codesourcery.com>
12099 Cesar Philippidis <cesar@codesourcery.com>
12102 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
12103 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
12105 2018-01-03 Jakub Jelinek <jakub@redhat.com>
12107 Update copyright years.
12109 * libgomp.texi: Bump @copying's copyright year.
12111 2017-12-30 Tom de Vries <tom@codesourcery.com>
12114 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
12115 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
12117 2017-12-27 Tom de Vries <tom@codesourcery.com>
12120 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
12121 (test_nonstatic): Fix return type to workaround PR83046.
12123 2017-12-05 Jakub Jelinek <jakub@redhat.com>
12126 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
12127 j suffix instead of i.
12128 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
12131 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
12133 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
12134 call to acc_wait (1).
12136 2017-11-24 Jakub Jelinek <jakub@redhat.com>
12139 * testsuite/libgomp.fortran/pr81304.f90: New test.
12141 2017-11-23 Jakub Jelinek <jakub@redhat.com>
12144 * libgomp.fortran/pr81841.f90: New test.
12146 2017-11-22 Jakub Jelinek <jakub@redhat.com>
12149 * target.c (gomp_target_init): Compute lengths just once and
12150 use them in both malloc size and subsequent copying.
12152 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12154 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
12155 * acinclude.m4: Add cet.m4.
12156 * configure: Regenerate.
12157 * Makefile.in: Likewise.
12158 * testsuite/Makefile.in: Likewise.
12160 2017-11-15 Tom de Vries <tom@codesourcery.com>
12162 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
12163 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
12164 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
12165 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
12166 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
12167 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
12169 2017-11-14 Tom de Vries <tom@codesourcery.com>
12171 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
12172 non-nvidia devices.
12174 2017-11-07 Jakub Jelinek <jakub@redhat.com>
12177 * testsuite/libgomp.c++/pr82835.C: New test.
12179 2017-11-06 Martin Liska <mliska@suse.cz>
12181 * testsuite/libgomp.c++/loop-2.C: Return a value
12182 for functions with non-void return type, or change type to void,
12183 or add -Wno-return-type for test.
12184 * testsuite/libgomp.c++/loop-4.C: Likewise.
12185 * testsuite/libgomp.c++/parallel-1.C: Likewise.
12186 * testsuite/libgomp.c++/shared-1.C: Likewise.
12187 * testsuite/libgomp.c++/single-1.C: Likewise.
12188 * testsuite/libgomp.c++/single-2.C: Likewise.
12190 2017-10-31 Tom de Vries <tom@codesourcery.com>
12192 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
12193 "do {} while (false)".
12194 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
12195 after HSA_DEBUG call.
12197 2017-10-28 Jakub Jelinek <jakub@redhat.com>
12199 * target.c (struct gomp_coalesce_buf): New type.
12200 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
12201 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
12202 (gomp_copy_host2dev): Add CBUF argument, if copying into
12203 the cached ranges, memcpy into buffer instead of copying
12205 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
12206 Add CBUF argument, pass it through to other calls.
12207 (gomp_map_vars): Aggregate copies from host to device if small enough
12208 and with small enough gaps in between into memcpy into a buffer and
12209 fewer host to device copies from the buffer.
12210 (gomp_update): Adjust gomp_copy_host2dev caller.
12212 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
12214 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
12216 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12217 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12218 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12219 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12221 2017-10-16 Tom de Vries <tom@codesourcery.com>
12223 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
12224 openacc_nvidia_accel_selected.
12225 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
12226 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
12227 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
12228 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
12229 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
12230 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
12231 openacc_nvidia_accel_selected. Skip for shared memory device.
12232 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
12233 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
12235 2017-10-09 Martin Jambor <mjambor@suse.cz>
12238 * testsuite/libgomp.hsa.c/pr82416.c: New test.
12240 2017-10-07 Tom de Vries <tom@codesourcery.com>
12242 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
12243 Remove acc_device_nvidia references.
12244 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
12247 2017-10-05 Tom de Vries <tom@codesourcery.com>
12249 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
12250 vector_length(32) clause from acc parallel directive.
12251 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
12253 2017-10-04 Tom de Vries <tom@codesourcery.com>
12255 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
12256 (main): Reduce sum of arr elements. Assert that hres is exactly
12257 representable in 32-bit floating point.
12258 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
12259 (main): Reduce sum of arr elements. Assert that hres and hmres are
12260 exactly representable in 32-bit floating point.
12261 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
12263 2017-09-28 Tom de Vries <tom@codesourcery.com>
12265 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
12267 * testsuite/libgomp.c++/pr69393.C: Same.
12268 * testsuite/libgomp.c++/taskloop-1.C: Same.
12269 * testsuite/libgomp.c++/taskloop-3.C: Same.
12270 * testsuite/libgomp.c++/taskloop-4.C: Same.
12271 * testsuite/libgomp.c/for-4.c: Same.
12272 * testsuite/libgomp.c/pr66199-3.c: Same.
12273 * testsuite/libgomp.c/pr66199-4.c: Same.
12274 * testsuite/libgomp.c/pr66199-6.c: Same.
12275 * testsuite/libgomp.c/taskloop-1.c: Same.
12276 * testsuite/libgomp.c/taskloop-3.c: Same.
12277 * testsuite/libgomp.c/taskloop-4.c: Same.
12278 * testsuite/libgomp.fortran/aligned1.f03: Same.
12279 * testsuite/libgomp.fortran/condinc1.f: Same.
12280 * testsuite/libgomp.fortran/condinc3.f90: Same.
12281 * testsuite/libgomp.fortran/crayptr1.f90: Same.
12282 * testsuite/libgomp.fortran/crayptr2.f90: Same.
12283 * testsuite/libgomp.fortran/crayptr3.f90: Same.
12284 * testsuite/libgomp.fortran/omp_cond1.f: Same.
12285 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
12286 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
12287 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
12288 * testsuite/libgomp.fortran/recursion1.f90: Same.
12289 * testsuite/libgomp.fortran/target2.f90: Same.
12290 * testsuite/libgomp.fortran/target5.f90: Same.
12291 * testsuite/libgomp.fortran/task3.f90: Same.
12293 2017-09-28 Tom de Vries <tom@codesourcery.com>
12295 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
12296 vector_length(32) clause from acc parallel directive.
12297 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
12299 2017-09-27 Tom de Vries <tom@codesourcery.com>
12301 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
12302 Remove acc_device_nvidia references.
12304 2017-09-16 Tom de Vries <tom@codesourcery.com>
12307 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
12309 2017-09-14 Tom de Vries <tom@codesourcery.com>
12311 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
12312 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
12313 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
12314 * testsuite/libgomp.c/c.exp: Include test-cases from
12315 libgomp.c-c++-common.
12316 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
12319 2017-09-14 Jakub Jelinek <jakub@redhat.com>
12322 * testsuite/libgomp.c++/pr81314.C: New test.
12324 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
12326 * libgomp.texi (Top): www.openacc.org now uses https.
12327 (Enabling OpenACC): Ditto.
12328 (acc_get_num_devices): Ditto.
12329 (acc_set_device_type): Ditto.
12330 (acc_get_device_type): Ditto.
12331 (acc_set_device_num): Ditto.
12332 (acc_get_device_num): Ditto.
12333 (acc_async_test): Ditto.
12334 (acc_async_test_all): Ditto.
12336 (acc_wait_all): Ditto.
12337 (acc_wait_all_async): Ditto.
12338 (acc_wait_async): Ditto.
12340 (acc_shutdown): Ditto.
12341 (acc_on_device): Ditto.
12342 (acc_malloc): Ditto.
12344 (acc_copyin): Ditto.
12345 (acc_present_or_copyin): Ditto.
12346 (acc_create): Ditto.
12347 (acc_present_or_create): Ditto.
12348 (acc_copyout): Ditto.
12349 (acc_delete): Ditto.
12350 (acc_update_device): Ditto.
12351 (acc_update_self): Ditto.
12352 (acc_map_data): Ditto.
12353 (acc_unmap_data): Ditto.
12354 (acc_deviceptr): Ditto.
12355 (acc_hostptr): Ditto.
12356 (acc_is_present): Ditto.
12357 (acc_memcpy_to_device): Ditto.
12358 (acc_memcpy_from_device): Ditto.
12359 (acc_get_current_cuda_device): Ditto.
12360 (acc_get_current_cuda_context): Ditto.
12361 (acc_get_cuda_stream): Ditto.
12362 (acc_set_cuda_stream): Ditto.
12363 (ACC_DEVICE_TYPE): Ditto.
12364 (ACC_DEVICE_NUM): Ditto.
12365 (OpenACC Library Interoperability): Ditto.
12367 2017-08-09 Jakub Jelinek <jakub@redhat.com>
12370 * testsuite/libgomp.c/pr81687-1.c: New test.
12371 * testsuite/libgomp.c/pr81687-2.c: New test.
12373 2017-08-07 Jakub Jelinek <jakub@redhat.com>
12376 * testsuite/libgomp.c/pr69389.c: New test.
12377 * testsuite/libgomp.c++/pr69389.C: New test.
12379 2017-08-07 Tom de Vries <tom@codesourcery.com>
12381 PR middle-end/78266
12382 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12383 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12385 2017-07-27 Jakub Jelinek <jakub@redhat.com>
12388 * testsuite/libgomp.c/pr45784.c: New test.
12389 * testsuite/libgomp.c++/pr45784.C: New test.
12391 2017-07-19 Tom de Vries <tom@codesourcery.com>
12393 * testsuite/libgomp.oacc-c/vec.c: New test.
12395 2017-07-03 Tom de Vries <tom@codesourcery.com>
12397 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12399 2017-06-27 Tom de Vries <tom@codesourcery.com>
12401 * plugin/plugin-nvptx.c (notify_var): New function.
12402 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12404 2017-06-27 Tom de Vries <tom@codesourcery.com>
12406 * env.c (parse_unsigned_long_1): Factor out of ...
12407 (parse_unsigned_long): ... here.
12408 (parse_int_1): Factor out of ...
12409 (parse_int): ... here.
12410 (parse_int_secure): New function.
12411 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12412 * secure_getenv.h: Factor out of ...
12413 * plugin/plugin-hsa.c: ... here.
12414 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12416 2017-06-21 Jakub Jelinek <jakub@redhat.com>
12419 * testsuite/libgomp.c++/pr81130.C: New test.
12421 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12423 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12425 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12426 dg-xfail-run-if default args.
12428 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12430 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12431 * testsuite/libgomp.c/pr39591-3.c: Likewise.
12433 2017-05-30 Jakub Jelinek <jakub@redhat.com>
12436 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12437 (gomp_affinity_init_level): Use it. Always analyze the core and thread
12438 sibling lists, depending on level just pick up what CPUs to put
12439 together into a place vs. whether add multiple ordered places.
12441 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
12443 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12444 * libgomp.map (OACC_2.0.1): Add these.
12445 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12446 for "acc_wait", and "acc_wait_all", respectively.
12447 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12448 for "acc_wait", and "acc_wait_all", respectively.
12449 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12450 * libgomp.texi (acc_wait, acc_wait_all): Update.
12451 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12452 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12453 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12455 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12456 acc_present_or_copyin and acc_present_or_create procedures,
12458 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12459 generally different variants of OpenACC Runtime Library functions.
12460 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12462 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12463 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12465 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12466 of preprocessor definitions.
12467 * libgomp.h (strong_alias): Guard by "#ifdef
12468 HAVE_ATTRIBUTE_ALIAS".
12469 * oacc-mem.c: Provide "acc_pcreate" as alias for
12470 "acc_present_or_create", and "acc_pcopyin" as alias for
12471 "acc_present_or_copyin".
12472 * libgomp.map: New version "OACC_2.0.1".
12473 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12474 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12475 its content into...
12476 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12479 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12480 when disabling nvptx offloading.
12482 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
12484 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12485 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12486 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12488 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12489 * testsuite/lib/libgomp.exp
12490 (check_effective_target_openacc_nvidia_accel_configured): New
12492 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12493 (check_effective_target_c++): New procs.
12494 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12495 (check_effective_target_c++): Likewise.
12497 2017-05-22 Jakub Jelinek <jakub@redhat.com>
12499 PR middle-end/80809
12500 * testsuite/libgomp.c/pr80809-2.c: New test.
12501 * testsuite/libgomp.c/pr80809-3.c: New test.
12503 PR middle-end/80809
12504 * testsuite/libgomp.c/pr80809-1.c: New test.
12506 PR middle-end/80853
12507 * testsuite/libgomp.c/pr80853.c: New test.
12509 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
12511 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12512 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12513 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12514 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12515 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12517 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12518 Debug output for failure.
12520 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12522 * testsuite/lib/libgomp.exp: Load scanlang.exp.
12524 2017-04-27 Jakub Jelinek <jakub@redhat.com>
12527 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12528 bootstrap compare failures.
12530 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
12532 * testsuite/libgomp.c/target-36.c: New testcase.
12534 2017-04-13 Jakub Jelinek <jakub@redhat.com>
12536 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12539 2017-04-11 Jakub Jelinek <jakub@redhat.com>
12542 * testsuite/libgomp.c/pr80394.c: New test.
12544 2017-04-04 Jakub Jelinek <jakub@redhat.com>
12547 * config/posix/thread-stacksize.h: New file.
12548 * config/darwin/thread-stacksize.h: New file.
12549 * config/nvptx/thread-stacksize.h: New file.
12550 * env.c: Include thread-stacksize.h.
12551 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12552 instead of 0. Call pthread_attr_setstacksize even if
12553 GOMP_DEFAULT_STACKSIZE is non-zero.
12555 2017-03-30 Jakub Jelinek <jakub@redhat.com>
12557 * env.c (initialize_env): Initialize stacksize to 0.
12559 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
12562 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12564 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12567 * testsuite/libgomp.c/pr79940.c: New test.
12569 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12571 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12573 Add __float128 options.
12575 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
12577 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12578 hppa*-*-* dg-skip-if directive.
12580 2017-02-09 Jakub Jelinek <jakub@redhat.com>
12582 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12583 dg-skip-if directive into a comment.
12585 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12586 Chung-Lin Tang <cltang@codesourcery.com>
12588 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12589 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12590 add additional case.
12591 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12592 "openacc_nvidia_accel_selected".
12593 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12594 Add num_workers(8) clause.
12596 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
12598 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12600 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12601 include complex.h on hppa*-*-hpux*.
12602 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12604 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
12606 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12608 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12609 GOMP_OFFLOAD_openacc_exec. Adjust all users.
12610 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12611 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
12612 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12613 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
12614 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12615 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
12616 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12617 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
12619 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12621 * libgomp-plugin.h: #include <stdbool.h>.
12622 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12623 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12624 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12625 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12626 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12627 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12628 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12629 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12630 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12631 (GOMP_OFFLOAD_openacc_async_test)
12632 (GOMP_OFFLOAD_openacc_async_test_all)
12633 (GOMP_OFFLOAD_openacc_async_wait)
12634 (GOMP_OFFLOAD_openacc_async_wait_async)
12635 (GOMP_OFFLOAD_openacc_async_wait_all)
12636 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12637 (GOMP_OFFLOAD_openacc_async_set_async)
12638 (GOMP_OFFLOAD_openacc_create_thread_data)
12639 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12640 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12641 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12642 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12643 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12644 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12646 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12647 (GOMP_OFFLOAD_unload_image): Fix argument types.
12649 2017-01-26 Jakub Jelinek <jakub@redhat.com>
12651 * testsuite/lib/libgomp.exp
12652 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12653 check_compile invocation. Fix up removal of executable. Drop
12654 bogus "2>&1" argument.
12656 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12659 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
12660 Martin Jambor <mjambor@suse.cz>
12662 * plugin/hsa.h: Moved to top level include.
12663 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12665 2017-01-21 Jakub Jelinek <jakub@redhat.com>
12668 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12669 of cat to get version from BASE-VER file.
12670 * testsuite/Makefile.in: Regenerated.
12672 2017-01-19 Jakub Jelinek <jakub@redhat.com>
12674 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12677 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12679 * plugin/hsa.h: Add GCC runtime library exception.
12680 * plugin/hsa_ext_finalize.h: Likewise.
12682 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12683 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12684 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12685 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12686 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12687 library to link ptx plugin against.
12688 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12689 (CUDA_CALLS): Define.
12690 (cuda_lib, cuda_lib_inited): New variables.
12691 (init_cuda_lib): New function.
12692 (CUDA_CALL_PREFIX): Define.
12693 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12694 (CUDA_CALL): Use FN instead of (FN).
12695 (CUDA_CALL_NOCHECK): Define.
12696 (cuda_error, fini_streams_for_device, select_stream_for_async,
12697 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12698 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12699 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12700 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12702 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12704 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12705 Use CUDA_CALL_NOCHECK.
12706 * plugin/cuda/cuda.h: New file.
12707 * config.h.in: Regenerated.
12708 * configure: Regenerated.
12711 * configure.ac: Add GCC_BASE_VER.
12712 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12713 get version from BASE-VER file.
12714 * testsuite/Makefile.in: Regenerated.
12715 * configure: Regenerated.
12716 * Makefile.in: Regenerated.
12718 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12721 * Makefile.am: Make fincludedir multilib-aware.
12722 * Makefile.in: Regenerate.
12724 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12726 Update copyright years.
12728 * libgomp.texi: Bump @copying's copyright year.
12730 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12732 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12733 pthread_spinlock_t instead of gomp_mutex_t lock.
12734 (gomp_get_thread_pool): Likewise.
12735 (gomp_release_thread_pool): Likewise.
12736 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12739 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12741 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12742 thread pool in case nthreads == 1.
12744 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12746 * config/nvptx/env.c: Delete.
12747 * icv.c: Move definitions of ICV variables back ...
12748 * env.c: ...here. Do not compile environment-related functionality if
12749 LIBGOMP_OFFLOADED_ONLY is set.
12751 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12753 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12754 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12755 * configure: Regenerate.
12756 * config.h.in: Likewise.
12758 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12760 * Makefile.in: Regenerate with automake-1.11.6.
12761 * aclocal.m4: Likewise.
12762 * configure: Likewise.
12763 * testsuite/Makefile.in: Likewise.
12765 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
12767 * config/nvptx/critical.c: Delete to use generic implementation.
12769 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12771 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12772 ../../affinity.c as fallback.
12773 * config/nvptx/affinity.c: Delete to use fallback implementation.
12775 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
12776 Jakub Jelinek <jakub@redhat.com>
12777 Dmitry Melnik <dm@ispras.ru>
12779 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12780 * Makefile.in. Regenerate.
12781 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12782 (LIBGOMP_USE_PTHREADS): ...here; new define.
12783 * configure: Regenerate.
12784 * config.h.in: Likewise.
12785 * config/posix/affinity.c: Move to...
12786 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12787 interface by LIBGOMP_USE_PTHREADS.
12788 * critical.c: Split out GOMP_atomic_{start,end} into...
12789 * atomic.c: ...here (new file).
12790 * env.c: Split out ICV definitions into...
12791 * icv.c: ...here (new file) and...
12792 * icv-device.c: ...here. New file.
12793 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12794 (gomp_destroy_lock_30): Ditto.
12795 (gomp_set_lock_30): Ditto.
12796 (gomp_unset_lock_30): Ditto.
12797 (gomp_test_lock_30): Ditto.
12798 (gomp_init_nest_lock_30): Ditto.
12799 (gomp_destroy_nest_lock_30): Ditto.
12800 (gomp_set_nest_lock_30): Ditto.
12801 (gomp_unset_nest_lock_30): Ditto.
12802 (gomp_test_nest_lock_30): Ditto.
12804 * config/nvptx/lock.c: New.
12805 * config/nvptx/bar.c: New.
12806 * config/nvptx/bar.h: New.
12807 * config/nvptx/doacross.h: New.
12808 * config/nvptx/error.c: New.
12809 * config/nvptx/icv-device.c: New.
12810 * config/nvptx/mutex.h: New.
12811 * config/nvptx/pool.h: New.
12812 * config/nvptx/proc.c: New.
12813 * config/nvptx/ptrlock.h: New.
12814 * config/nvptx/sem.h: New.
12815 * config/nvptx/simple-bar.h: New.
12816 * config/nvptx/target.c: New.
12817 * config/nvptx/task.c: New.
12818 * config/nvptx/team.c: New.
12819 * config/nvptx/time.c: New.
12820 * config/posix/simple-bar.h: New.
12821 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12822 (gomp_num_teams_var): Declare.
12823 (struct gomp_thread_pool): Change threads_dock member to
12824 gomp_simple_barrier_t.
12825 [__nvptx__] (gomp_thread): New implementation.
12826 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12827 (gomp_thread_destructor): Ditto.
12828 (gomp_init_thread_affinity): Ditto.
12829 * team.c: Guard uses of Pthreads-specific interfaces by
12830 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12831 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12832 * config/nvptx/alloc.c: Delete.
12833 * config/nvptx/barrier.c: Ditto.
12834 * config/nvptx/fortran.c: Ditto.
12835 * config/nvptx/iter.c: Ditto.
12836 * config/nvptx/iter_ull.c: Ditto.
12837 * config/nvptx/loop.c: Ditto.
12838 * config/nvptx/loop_ull.c: Ditto.
12839 * config/nvptx/ordered.c: Ditto.
12840 * config/nvptx/parallel.c: Ditto.
12841 * config/nvptx/priority_queue.c: Ditto.
12842 * config/nvptx/sections.c: Ditto.
12843 * config/nvptx/single.c: Ditto.
12844 * config/nvptx/splay-tree.c: Ditto.
12845 * config/nvptx/work.c: Ditto.
12846 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12847 -foffload=-lgfortran in addition to -lgfortran.
12848 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12849 * plugin/plugin-nvptx.c: Include <limits.h>.
12850 (struct targ_fn_descriptor): Add new fields.
12851 (struct ptx_device): Ditto. Set them...
12852 (nvptx_open_device): ...here.
12853 (nvptx_adjust_launch_bounds): New.
12854 (nvptx_host2dev): Allow NULL 'nvthd'.
12855 (nvptx_dev2host): Ditto.
12856 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12857 (link_ptx): Adjust log sizes.
12858 (nvptx_host2dev): Allow NULL 'nvthd'.
12859 (nvptx_dev2host): Ditto.
12860 (nvptx_set_clocktick): New. Use it...
12861 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12863 (GOMP_OFFLOAD_dev2dev): New.
12864 (nvptx_adjust_launch_bounds): New.
12865 (nvptx_stacks_size): New.
12866 (nvptx_stacks_alloc): New.
12867 (nvptx_stacks_free): New.
12868 (GOMP_OFFLOAD_run): New.
12869 (GOMP_OFFLOAD_async_run): New (stub).
12871 2016-11-23 Martin Jambor <mjambor@suse.cz>
12873 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12874 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12875 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12877 2016-11-23 Martin Liska <mliska@suse.cz>
12878 Martin Jambor <mjambor@suse.cz>
12880 * plugin/hsa.h: New file.
12881 * plugin/hsa_ext_finalize.h: New file.
12882 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12883 header file unistd.h, and functions secure_getenv, __secure_getenv,
12884 getuid, geteuid, getgid and getegid.
12885 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12887 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12888 Handle various cases of secure_getenv presence, add an implementation
12889 when we can test effective UID and GID.
12890 (struct hsa_runtime_fn_info): New structure.
12891 (hsa_runtime_fn_info hsa_fns): New variable.
12892 (hsa_runtime_lib): Likewise.
12893 (support_cpu_devices): Likewise.
12894 (init_enviroment_variables): Load newly introduced ENV
12896 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12897 (hsa_fatal): Likewise.
12898 (DLSYM_FN): New macro.
12899 (init_hsa_runtime_functions): New function.
12900 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12901 structure. Depending on environment, also allow CPU devices.
12902 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12903 (get_kernarg_memory_region): Likewise.
12904 (GOMP_OFFLOAD_init_device): Likewise.
12905 (destroy_hsa_program): Likewise.
12906 (init_basic_kernel_info): New function.
12907 (GOMP_OFFLOAD_load_image): Use it.
12908 (create_and_finalize_hsa_program): Call hsa run-time functions via
12910 (create_single_kernel_dispatch): Likewise.
12911 (release_kernel_dispatch): Likewise.
12912 (init_single_kernel): Likewise.
12913 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12914 (get_group_size): New function.
12915 (run_kernel): Likewise.
12916 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12917 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12919 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12920 * testsuite/libgomp-test-support.exp.in: Likewise.
12921 * Makefile.in: Regenerated.
12922 * aclocal.m4: Likewise.
12923 * config.h.in: Likewise.
12924 * configure: Likewise.
12925 * testsuite/Makefile.in: Likewise.
12927 2016-11-15 Martin Jambor <mjambor@suse.cz>
12928 Alexander Monakov <amonakov@ispras.ru>
12930 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12931 mapping clauses to target constructs.
12932 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12934 2016-11-15 Matthias Klose <doko@ubuntu.com>
12936 * configure: Regenerate.
12938 2016-11-10 Jakub Jelinek <jakub@redhat.com>
12940 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12941 * omp_lib.h.in (openmp_version): Likewise.
12942 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12944 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12946 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12947 (fib_wrapper): Add map(from: x) clause.
12948 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12949 (e_53_2): Likewise.
12950 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12951 (accum): Add map(tmp) clause.
12952 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12953 (accum): Add map(tofrom: tmp) clause.
12954 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12955 (gramSchmidt): Likewise.
12956 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12957 map(tofrom: sum) clause.
12958 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12959 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
12960 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12961 only allowed on the loop iterator.
12962 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12963 * testsuite/libgomp.fortran/taskloop2.f90: New test.
12964 * testsuite/libgomp.fortran/taskloop4.f90: New test.
12965 * testsuite/libgomp.fortran/doacross1.f90: New test.
12966 * testsuite/libgomp.fortran/doacross3.f90: New test.
12967 * testsuite/libgomp.fortran/taskloop1.f90: New test.
12968 * testsuite/libgomp.fortran/taskloop3.f90: New test.
12969 * testsuite/libgomp.fortran/doacross2.f90: New test.
12970 * testsuite/libgomp.c/doacross-1.c (main): Add missing
12971 #pragma omp atomic read.
12972 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12973 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12975 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
12976 Nathan Sidwell <nathan@acm.org>
12978 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12979 to determine default geometry.
12980 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12983 2016-11-01 Jakub Jelinek <jakub@redhat.com>
12985 * hashtab.h: Use standard GPLv3 with runtime exception
12988 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
12990 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12991 size when allocating new thread.
12993 2016-09-14 Marek Polacek <polacek@redhat.com>
12995 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12997 2016-08-19 Jakub Jelinek <jakub@redhat.com>
13000 * testsuite/libgomp.fortran/pr71014.f90: New test.
13002 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
13004 PR middle-end/70895
13005 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
13006 firstprivate clauses.
13007 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
13009 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13010 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
13011 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
13012 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13013 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13014 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
13015 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13016 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13017 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13018 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13019 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13020 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
13022 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
13025 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
13027 2016-08-08 Jakub Jelinek <jakub@redhat.com>
13030 * testsuite/libgomp.c++/pr58706.C: New test.
13032 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
13034 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
13035 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
13036 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
13038 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
13039 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
13041 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
13043 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
13044 test, and don't hardcode -O0.
13046 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
13048 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
13050 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
13052 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
13055 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
13057 PR middle-end/71734
13058 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
13059 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
13061 2016-07-01 Jakub Jelinek <jakub@redhat.com>
13064 * testsuite/libgomp.fortran/associate3.f90: New test.
13066 2016-06-17 Jakub Jelinek <jakub@redhat.com>
13068 * testsuite/libgomp.c++/target-21.C: New test.
13070 2016-06-16 Jakub Jelinek <jakub@redhat.com>
13072 * testsuite/libgomp.c++/target-20.C: New test.
13074 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
13075 Cesar Philippidis <cesar@codesourcery.com>
13077 PR middle-end/71373
13078 * libgomp.oacc-c/nested-function-1.c: New file.
13079 * libgomp.oacc-c/nested-function-2.c: Likewise.
13080 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
13081 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
13082 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
13084 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
13087 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
13088 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
13089 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
13091 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
13093 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
13094 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
13096 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
13099 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
13101 2016-05-26 Jakub Jelinek <jakub@redhat.com>
13103 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
13104 instead of invalid schedule(static, 0).
13105 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13107 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
13109 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
13110 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
13111 parameter, use to set async stream around call to gomp_unmap_vars,
13112 call gomp_unmap_vars() with 'do_copyfrom' set to true.
13113 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
13114 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
13115 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
13116 (event_add): Add int parameter, initialize 'val' field when
13117 adding new ptx_event struct.
13118 (nvptx_evec): Adjust event_add() call arguments.
13119 (nvptx_host2dev): Likewise.
13120 (nvptx_dev2host): Likewise.
13121 (nvptx_wait_async): Likewise.
13122 (nvptx_wait_all_async): Likewise.
13123 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
13124 pass to event_add() call.
13125 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
13127 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
13128 call openacc.register_async_cleanup_func() hook.
13129 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
13130 * target.c (gomp_copy_from_async): Delete function.
13131 (gomp_map_vars): Remove async_refcount.
13132 (gomp_unmap_vars): Likewise.
13133 (gomp_load_image_to_device): Likewise.
13134 (omp_target_associate_ptr): Likewise.
13135 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
13136 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
13137 (gomp_copy_from_async): Remove.
13139 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
13141 * target.c (gomp_device_copy): New function.
13142 (gomp_copy_host2dev): Likewise.
13143 (gomp_copy_dev2host): Likewise.
13144 (gomp_free_device_memory): Likewise.
13145 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
13146 (gomp_map_pointer): Likewise.
13147 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
13148 NULL value from alloc_func plugin hook.
13149 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
13150 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
13151 (gomp_unmap_vars): Likewise.
13152 (gomp_update): Adjust to call gomp_copy_dev2host and
13153 gomp_copy_host2dev functions.
13154 (gomp_unload_image_from_device): Handle false value from
13155 unload_image_func plugin hook.
13156 (gomp_init_device): Handle false value from init_device_func
13158 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
13159 (omp_target_free): Adjust to call gomp_free_device_memory.
13160 (omp_target_memcpy): Handle return values from host2dev_func,
13161 dev2host_func, and dev2dev_func plugin hooks.
13162 (omp_target_memcpy_rect_worker): Likewise.
13163 (gomp_target_fini): Handle false value from fini_device_func
13165 * libgomp.h (struct gomp_device_descr): Adjust return type of
13166 init_device_func, fini_device_func, unload_image_func, free_func,
13167 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
13168 * oacc-init.c (acc_shutdown_1): Handle false value from
13169 fini_device_func plugin hook.
13170 * oacc-host.c (host_init_device): Change return type to bool.
13171 (host_fini_device): Likewise.
13172 (host_unload_image): Likewise.
13173 (host_free): Likewise.
13174 (host_dev2host): Likewise.
13175 (host_host2dev): Likewise.
13176 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
13177 (acc_memcpy_to_device): Likewise.
13178 (acc_memcpy_from_device): Likewise.
13179 (delete_copyout): Add libfnname parameter, handle free_func
13180 hook fatal error case.
13181 (acc_delete): Adjust delete_copyout call.
13182 (acc_copyout): Likewise.
13183 (update_dev_host): Move gomp_mutex_unlock to after
13184 host2dev/dev2host hook calls.
13186 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
13187 to 'hsa_error_msg', for clarity.
13188 (hsa_fatal): Likewise.
13189 (hsa_error): New function.
13190 (init_hsa_context): Change return type to bool, adjust to return
13192 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
13194 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
13195 return false on error.
13196 (get_agent_info): Adjust to return NULL on error.
13197 (destroy_hsa_program): Change return type to bool, adjust to
13198 return false on error.
13199 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
13200 (destroy_module): Change return type to bool, adjust to
13201 return false on error.
13202 (GOMP_OFFLOAD_unload_image): Likewise.
13203 (GOMP_OFFLOAD_fini_device): Likewise.
13204 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
13205 (GOMP_OFFLOAD_free): Change to return false when called.
13206 (GOMP_OFFLOAD_dev2host): Likewise.
13207 (GOMP_OFFLOAD_host2dev): Likewise.
13208 (GOMP_OFFLOAD_dev2dev): Likewise.
13210 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
13211 (CUDA_CALL): Likewise.
13212 (CUDA_CALL_ASSERT): Likewise.
13213 (map_init): Change return type to bool, use CUDA_CALL* macros.
13214 (map_fini): Likewise.
13215 (init_streams_for_device): Change return type to bool, adjust
13217 (fini_streams_for_device): Change return type to bool, adjust
13219 (select_stream_for_async): Release stream_lock before calls to
13220 GOMP_PLUGIN_fatal, adjust call to map_init.
13221 (nvptx_init): Use CUDA_CALL* macros.
13222 (nvptx_attach_host_thread_to_device): Change return type to bool,
13223 use CUDA_CALL* macros.
13224 (nvptx_open_device): Use CUDA_CALL* macros.
13225 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
13227 (nvptx_get_num_devices): Use CUDA_CALL* macros.
13228 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
13229 (nvptx_exec): Use CUDA_CALL* macros.
13230 (nvptx_alloc): Use CUDA_CALL* macros.
13231 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
13232 (nvptx_host2dev): Likewise.
13233 (nvptx_dev2host): Likewise.
13234 (nvptx_wait): Use CUDA_CALL* macros.
13235 (nvptx_wait_async): Likewise.
13236 (nvptx_wait_all): Likewise.
13237 (nvptx_wait_all_async): Likewise.
13238 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
13239 use CUDA_CALL* macros, adjust call to map_fini.
13240 (GOMP_OFFLOAD_init_device): Change return type to bool,
13241 adjust code accordingly.
13242 (GOMP_OFFLOAD_fini_device): Likewise.
13243 (GOMP_OFFLOAD_load_image): Adjust calls to
13244 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
13245 use CUDA_CALL* macros.
13246 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
13248 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
13249 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
13250 handle error return.
13251 (GOMP_OFFLOAD_dev2host): Likewise.
13252 (GOMP_OFFLOAD_host2dev): Likewise.
13253 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
13254 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
13256 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
13258 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
13259 (acc_free): Likewise.
13260 (acc_memcpy_to_device): Likewise.
13261 (acc_memcpy_from_device): Likewise.
13262 (acc_deviceptr): Likewise.
13263 (acc_hostptr): Likewise.
13264 (acc_is_present): Likewise.
13265 (acc_map_data): Likewise.
13266 (acc_unmap_data): Likewise.
13267 (present_create_copy): Likewise.
13268 (delete_copyout): Likewise.
13269 (update_dev_host): Likewise.
13270 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
13271 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
13272 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
13273 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13274 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
13275 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
13276 it only runs on nvptx targets.
13277 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13278 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13279 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13280 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13281 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13282 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13283 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13284 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13285 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13286 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13287 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13288 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13289 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13290 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13291 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13292 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13293 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13294 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13295 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13296 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13297 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13298 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13299 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13301 2016-05-23 Martin Jambor <mjambor@suse.cz>
13303 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
13305 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
13307 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
13308 to gomp_init_targets_once.
13309 (acc_set_device_type): Remove !cached_base_dev condition on call to
13310 gomp_init_targets_once, move call to before acc_device_lock acquire,
13312 (acc_get_device_num): Remove !cached_base_dev condition on call to
13313 gomp_init_targets_once.
13314 (acc_set_device_num): Likewise.
13316 2016-05-16 Martin Jambor <mjambor@suse.cz>
13318 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
13320 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
13322 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
13323 expected partitioning.
13325 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
13327 PR middle-end/70626
13328 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
13329 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
13330 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
13332 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
13334 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
13337 2016-04-19 Jakub Jelinek <jakub@redhat.com>
13339 PR middle-end/70680
13340 * testsuite/libgomp.c/pr70680-1.c: New test.
13341 * testsuite/libgomp.c/pr70680-2.c: New test.
13343 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13345 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13346 pass parameter variables to subroutines.
13348 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13350 PR middle-end/70643
13351 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
13353 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
13356 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
13357 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13359 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
13361 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
13362 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
13363 GOACC_declare prototype.
13365 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
13366 Merge this file, and...
13367 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
13368 ... this file, and...
13369 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
13370 ... this file, and...
13371 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13372 ... this file, and...
13373 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13374 ... this file, and...
13375 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13376 ... this file, and...
13377 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13378 ... this file, and...
13379 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13380 ... this file, and...
13381 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13382 ... this file, and...
13383 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13384 ... this file, and...
13385 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13386 ... this file, and...
13387 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13388 ... this file, and...
13389 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13390 ... this file into...
13391 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13394 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13395 Make failure observable.
13397 2016-04-12 Jakub Jelinek <jakub@redhat.com>
13399 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13401 * target.c (gomp_target_fallback_firstprivate,
13402 gomp_target_unshare_firstprivate): Removed.
13403 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13404 before waiting for dependencies.
13405 (gomp_target_task_fn): Don't copy firstprivate vars here.
13406 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13407 firstprivate_copies here.
13408 (gomp_create_target_task): Don't initialize firstprivate_copies field.
13409 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13410 explicit/implicit firstprivate.
13412 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
13416 PR tree-optimization/70373
13417 PR middle-end/70533
13418 PR middle-end/70534
13419 PR middle-end/70535
13420 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13422 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13424 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13426 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13428 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13430 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13432 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13434 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13436 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13438 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13439 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13440 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13441 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13443 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13445 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13447 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13449 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13451 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13452 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13453 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13454 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13455 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13456 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13458 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13459 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13460 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13461 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13462 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13463 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13464 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13465 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13466 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13467 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13468 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13469 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13470 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13471 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13472 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13474 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
13475 James Norris <jnorris@codesourcery.com>
13476 Nathan Sidwell <nathan@codesourcery.com>
13477 Julian Brown <julian@codesourcery.com>
13478 Cesar Philippidis <cesar@codesourcery.com>
13479 Chung-Lin Tang <cltang@codesourcery.com>
13480 Tom de Vries <tom@codesourcery.com>
13482 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13483 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13484 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13485 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13486 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13487 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13488 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13489 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13490 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13492 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13494 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13496 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13497 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13498 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13499 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13501 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13503 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13504 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13505 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13506 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13507 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13508 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13509 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13510 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13511 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13512 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13514 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13515 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13516 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13518 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13520 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13522 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13524 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13526 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13527 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13528 ... this new file. Update.
13529 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13530 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13531 ... this new file. Update.
13532 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13533 file. Incorporate...
13534 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13536 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13538 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13540 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13542 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
13544 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13545 set-torture-options.
13547 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
13549 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13551 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13552 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13553 -fno-builtin-acc_on_device instead of -O0.
13554 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13556 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13557 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13559 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13560 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13561 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13562 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13563 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13564 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13565 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13566 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13567 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13568 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13569 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13570 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13571 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13572 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13573 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13574 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13575 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13576 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13578 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13580 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13583 2016-03-24 Martin Liska <mliska@suse.cz>
13585 * plugin/plugin-hsa.c (packet_store_release): New function
13586 that is taken from the HSA runtime manual.
13587 (GOMP_OFFLOAD_run): Use the function.
13589 2016-03-23 Jakub Jelinek <jakub@redhat.com>
13592 * testsuite/libgomp.c++/pr70376.C: New test.
13594 2016-03-23 Tom de Vries <tom@codesourcery.com>
13596 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13597 initialization of lresult and lvresult.
13598 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13600 2016-03-23 James Norris <jnorris@codesourcery.com>
13601 Daichi Fukuoka <dc-fukuoka@sgi.com>
13604 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13605 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13606 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13607 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13609 2016-03-23 Martin Liska <mliska@suse.cz>
13612 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13613 argument just in case a dispatched kernel uses that argument.
13615 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
13617 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13618 -ftree-parallelize-loops/-fopenacc changes.
13619 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13621 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13623 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13625 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13627 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13628 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13630 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13632 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13633 always_ld_library_path the path to libgcc_s.
13635 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13638 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13640 2016-03-09 Tom de Vries <tom@codesourcery.com>
13642 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13643 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13644 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13646 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13647 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13648 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13649 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13651 2016-03-07 Martin Jambor <mjambor@suse.cz>
13653 * testsuite/lib/libgomp.exp
13654 (check_effective_target_hsa_offloading_selected_nocache): New.
13655 (check_effective_target_hsa_offloading_selected): Likewise.
13656 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13657 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13658 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13659 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13660 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13661 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13662 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13663 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13664 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13665 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13666 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13667 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13668 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13669 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13670 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13671 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13672 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13674 2016-03-07 Martin Jambor <mjambor@suse.cz>
13676 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13677 non-shared memory accelerators.
13678 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13679 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13680 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13681 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13682 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13683 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13684 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13685 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13686 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13688 2016-03-07 Martin Jambor <mjambor@suse.cz>
13690 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13693 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13696 * testsuite/libgomp.c++/pr69555-1.C: New test.
13697 * testsuite/libgomp.c++/pr69555-2.C: New test.
13699 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13700 Martin Jambor <mjambor@suse.cz>
13702 * testsuite/lib/libgomp.exp
13703 (check_effective_target_offload_device_shared_as): New proc.
13704 * testsuite/libgomp.c++/declare_target-1.C: New test.
13706 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13709 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13711 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13713 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13714 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13716 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13717 -ftree-parallelize-loops/-fopenacc changes.
13718 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13719 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13721 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13723 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13725 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13727 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13729 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13731 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13733 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13734 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13736 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13737 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13739 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13740 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13743 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13745 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13747 2016-02-19 Jakub Jelinek <jakub@redhat.com>
13750 * testsuite/libgomp.c/pr69805.c: New test.
13752 2016-02-16 Tom de Vries <tom@codesourcery.com>
13755 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13757 2016-02-09 Tom de Vries <tom@codesourcery.com>
13759 PR tree-optimization/69599
13760 * testsuite/libgomp.c/omp-nested-3.c: New test.
13761 * testsuite/libgomp.c/pr46032-2.c: New test.
13762 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13763 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13765 2016-02-09 Tom de Vries <tom@codesourcery.com>
13768 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13770 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13772 * testsuite/libgomp.c/target-31.c: Fix testcase.
13774 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13776 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13778 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13779 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13780 reduction and map clauses.
13781 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13783 2016-02-02 James Norris <jnorris@codesourcery.com>
13785 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13787 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13789 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13790 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13792 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13795 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13797 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13798 (hsa_kmt_lib): Set variables.
13799 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13800 always_ld_library_path.
13801 * Makefile.in: Regenerate.
13802 * configure: Likewise.
13803 * testsuite/Makefile.in: Likewise.
13805 * plugin/configfrag.ac (offload_additional_options)
13806 (offload_additional_lib_paths): Don't amend for hsa offloading.
13807 * configure: Regenerate.
13809 * plugin/configfrag.ac: Don't configure for offloading target if
13810 we don't build the corresponding plugin.
13811 * configure: Regenerate.
13813 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13815 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13816 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13818 2016-01-26 Tom de Vries <tom@codesourcery.com>
13820 PR tree-optimization/69110
13821 * testsuite/libgomp.c/pr69110.c: New test.
13823 2016-01-25 Richard Biener <rguenther@suse.de>
13826 * testsuite/libgomp.c++/pr69393.C: New testcase.
13828 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13830 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13831 function wasn't mapped to the device with non-shared memory.
13833 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13835 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13837 2016-01-19 Martin Jambor <mjambor@suse.cz>
13838 Martin Liska <mliska@suse.cz>
13840 * plugin/Makefrag.am: Add HSA plugin requirements.
13841 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13842 (HSA_RUNTIME_LIB): Likewise.
13843 (HSA_RUNTIME_CPPFLAGS): Likewise.
13844 (HSA_RUNTIME_INCLUDE): New substitution.
13845 (HSA_RUNTIME_LIB): Likewise.
13846 (HSA_RUNTIME_LDFLAGS): Likewise.
13847 (hsa-runtime): New configure option.
13848 (hsa-runtime-include): Likewise.
13849 (hsa-runtime-lib): Likewise.
13850 (PLUGIN_HSA): New substitution variable.
13851 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13853 (PLUGIN_HSA_CPPFLAGS): Likewise.
13854 (PLUGIN_HSA_LDFLAGS): Likewise.
13855 (PLUGIN_HSA_LIBS): Likewise.
13856 Check that we have access to HSA run-time.
13857 * libgomp-plugin.h (offload_target_type): New element
13858 OFFLOAD_TARGET_TYPE_HSA.
13859 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13861 (bool gomp_create_target_task): Updated.
13862 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13863 new field can_run_func.
13864 * libgomp_g.h (GOMP_target_ext): Update prototype.
13865 * oacc-host.c (host_run): Added a new parameter args.
13866 * target.c (calculate_firstprivate_requirements): New function.
13867 (copy_firstprivate_data): Likewise.
13868 (gomp_target_fallback_firstprivate): Use them.
13869 (gomp_target_unshare_firstprivate): New function.
13870 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13872 (GOMP_target): Do host fallback for all shared memory devices. Do not
13873 pass any args to plugins.
13874 (GOMP_target_ext): Introduce device-specific argument parameter args.
13875 Allow host fallback if device shares memory. Do not remap data if
13876 device has shared memory.
13877 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13878 like host fallback for mappings.
13879 (GOMP_target_data): Treat shared memory devices like host fallback.
13880 (GOMP_target_data_ext): Likewise.
13881 (GOMP_target_update): Likewise.
13882 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13883 gomp_create_target_task.
13884 (GOMP_target_enter_exit_data): Likewise.
13885 (omp_target_alloc): Treat shared memory devices like host fallback.
13886 (omp_target_free): Likewise.
13887 (omp_target_is_present): Likewise.
13888 (omp_target_memcpy): Likewise.
13889 (omp_target_memcpy_rect): Likewise.
13890 (omp_target_associate_ptr): Likewise.
13891 (gomp_load_plugin_for_device): Also load can_run.
13892 * task.c (GOMP_PLUGIN_target_task_completion): Free
13893 firstprivate_copies.
13894 (gomp_create_target_task): Accept new argument args and store it to
13896 * plugin/plugin-hsa.c: New file.
13898 2016-01-18 Tom de Vries <tom@codesourcery.com>
13900 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13901 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13902 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13903 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13904 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13905 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13906 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13907 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13908 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13909 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13910 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13912 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13914 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13915 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13916 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13917 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13918 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13919 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13920 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13921 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13923 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13925 2016-01-15 Jakub Jelinek <jakub@redhat.com>
13927 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13929 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13931 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13933 2016-01-12 James Norris <jnorris@codesourcery.com>
13935 * libgomp.texi: Updates for OpenACC.
13937 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
13939 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13941 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13944 * testsuite/libgomp.fortran/pr66680.f90: New test.
13946 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13948 PR middle-end/68960
13949 * testsuite/libgomp.c/pr68960.c: New test.
13951 2016-01-06 Nathan Sidwell <nathan@acm.org>
13953 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13954 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13956 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13958 Update copyright years.
13960 * libgomp.texi: Bump @copying's copyright year.
13962 2015-12-31 Nathan Sidwell <nathan@acm.org>
13964 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13965 dg-additional-options syntax.
13966 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13967 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13968 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13969 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13970 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13971 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13972 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13973 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13974 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13975 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13976 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13977 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13978 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13979 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13980 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13981 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13982 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13983 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13985 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
13987 * libgomp.h (REFCOUNT_LINK): Define.
13988 (struct splay_tree_key_s): Add link_key.
13989 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13990 Replace target address of the pointer with target address of newly
13991 mapped object in the splay tree. Set link pointer on target to the
13992 device address of the mapped object.
13993 (gomp_unmap_vars): Restore target address of the pointer in the splay
13994 tree for REFCOUNT_LINK objects after unmapping.
13995 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13996 declare target link" objects.
13997 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
13998 "omp declare target link" objects, which were mapped for the image.
13999 (gomp_exit_data): Restore target address of the pointer in the splay
14000 tree for REFCOUNT_LINK objects after unmapping.
14001 * testsuite/libgomp.c/target-link-1.c: New file.
14003 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
14005 * libgomp.h (gomp_device_state): New enum.
14006 (struct gomp_device_descr): Replace is_initialized with state.
14007 (gomp_fini_device): Remove declaration.
14008 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
14009 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
14010 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
14011 (acc_set_device_type): Use state instead of is_initialized.
14012 (acc_set_device_num): Likewise.
14013 * target.c (resolve_device): Use state instead of is_initialized.
14014 Do not initialize finalized device.
14015 (gomp_map_vars): Do nothing if device is finalized.
14016 (gomp_unmap_vars): Likewise.
14017 (gomp_update): Likewise.
14018 (GOMP_offload_register_ver): Use state instead of is_initialized.
14019 (GOMP_offload_unregister_ver): Likewise.
14020 (gomp_init_device): Likewise.
14021 (gomp_unload_device): Likewise.
14022 (gomp_fini_device): Remove.
14023 (gomp_get_target_fn_addr): Do nothing if device is finalized.
14024 (GOMP_target): Go to host fallback if device is finalized.
14025 (GOMP_target_ext): Likewise.
14026 (gomp_exit_data): Do nothing if device is finalized.
14027 (gomp_target_task_fn): Go to host fallback if device is finalized.
14028 (gomp_target_fini): New static function.
14029 (gomp_target_init): Use state instead of is_initialized.
14030 Call gomp_target_fini at exit.
14032 2015-12-09 Tom de Vries <tom@codesourcery.com>
14034 PR tree-optimization/68716
14035 * testsuite/libgomp.c/omp-nested-2.c: New test.
14037 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
14039 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
14040 target openacc_nvidia_accel_selected.
14041 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
14042 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
14043 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
14044 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
14046 2015-12-01 Julian Brown <julian@codesourcery.com>
14047 James Norris <James_Norris@mentor.com>
14049 * oacc-parallel.c (GOACC_host_data): New function.
14050 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
14051 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
14052 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
14053 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
14054 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
14055 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
14056 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
14058 2015-11-30 James Norris <jnorris@codesourcery.com>
14059 Cesar Philippidis <cesar@codesourcery.com>
14062 * libgomp.oacc-fortran/routine-5.f90: New test.
14063 * libgomp.oacc-fortran/routine-7.f90: New test.
14064 * libgomp.oacc-fortran/routine-9.f90: New test.
14066 2015-11-30 Tom de Vries <tom@codesourcery.com>
14068 PR tree-optimization/46032
14069 * testsuite/libgomp.c/pr46032.c: New test.
14071 2015-11-27 Jakub Jelinek <jakub@redhat.com>
14074 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
14075 (gomp_create_target_task): Call it before freeing
14076 GOMP_TARGET_TASK_DATA tasks.
14079 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
14080 in between case label and OpenMP standalone directives.
14081 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
14083 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
14085 * configure: Regenerate.
14087 2015-11-26 Jakub Jelinek <jakub@redhat.com>
14089 * testsuite/libgomp.c/target-35.c: New test.
14091 2015-11-22 James Norris <jnorris@codesourcery.com>
14092 Cesar Philippidis <cesar@codesourcery.com>
14094 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
14095 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
14096 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
14097 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
14098 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
14100 2015-11-20 Jakub Jelinek <jakub@redhat.com>
14102 PR middle-end/68221
14103 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
14104 * testsuite/libgomp.c/reduction-12.c: Likewise.
14105 * testsuite/libgomp.c++/reduction-11.C: Likewise.
14106 * testsuite/libgomp.c++/reduction-12.C: Likewise.
14108 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
14110 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
14111 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
14112 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
14113 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
14114 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
14116 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14117 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14119 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
14121 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
14122 worker & gang cases.
14123 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
14125 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
14127 * config/nvptx/priority_queue.c: New file.
14129 2015-11-14 Jakub Jelinek <jakub@redhat.com>
14131 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
14134 2015-11-14 Jakub Jelinek <jakub@redhat.com>
14135 Aldy Hernandez <aldyh@redhat.com>
14136 Ilya Verbin <ilya.verbin@intel.com>
14138 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
14139 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
14140 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
14141 iterators or IV by chunk size.
14142 * parallel.c (gomp_resolve_num_threads): Don't assume that
14143 if thr->ts.team is non-NULL, then pool must be non-NULL.
14144 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
14145 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
14146 GOMP_PLUGIN_target_task_completion.
14147 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
14148 * Makefile.in: Regenerate.
14149 * libgomp.h: Shuffle prototypes and forward definitions around so
14150 priority queues can be defined.
14151 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
14152 (enum gomp_target_task_state): New enum.
14153 (struct gomp_target_task): Add state, tgt, task and team fields.
14154 (gomp_create_target_task): Change return type to bool, add
14156 (gomp_target_task_fn): Change return type to bool.
14157 (struct gomp_device_descr): Add async_run_func.
14158 (struct gomp_task): Remove children, next_child, prev_child,
14159 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
14161 (struct gomp_taskgroup): Remove children.
14162 Add taskgroup_queue.
14163 (struct gomp_team): Change task_queue type to a priority queue.
14164 (splay_compare): Define inline.
14165 (priority_queue_offset): New.
14166 (priority_node_to_task): New.
14167 (task_to_priority_node): New.
14168 * oacc-mem.c: Do not include splay-tree.h.
14169 * priority_queue.c: New file.
14170 * priority_queue.h: New file.
14171 * splay-tree.c: Do not include splay-tree.h.
14172 (splay_tree_foreach_internal): New.
14173 (splay_tree_foreach): New.
14174 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
14175 (splay_tree_callback): Define typedef.
14176 * target.c (splay_compare): Move to libgomp.h.
14177 (GOMP_target): Don't adjust *thr in any way around running offloaded
14179 (GOMP_target_ext): Likewise. Handle target nowait.
14180 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
14181 return value from gomp_create_target_task, if false, fallthrough
14182 as if no dependencies exist.
14183 (gomp_target_task_fn): Change return type to bool, return true
14184 if the task should have another part scheduled later. Handle
14186 (gomp_load_plugin_for_device): Initialize async_run.
14187 * task.c (gomp_init_task): Initialize children_queue.
14188 (gomp_clear_parent_in_list): New.
14189 (gomp_clear_parent_in_tree): New.
14190 (gomp_clear_parent): Handle priorities.
14191 (GOMP_task): Likewise.
14192 (priority_queue_move_task_first,
14193 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
14195 (gomp_create_target_task): Use priority queues. Change return type
14196 to bool, add state argument, return false if for async
14197 {{enter,exit} data,update} constructs no dependencies need to be
14198 waited for, handle target nowait. Set task->fn to NULL instead of
14199 gomp_target_task_fn.
14200 (verify_children_queue): Remove.
14201 (priority_list_upgrade_task): New.
14202 (priority_queue_upgrade_task): New.
14203 (verify_task_queue): Remove.
14204 (priority_list_downgrade_task): New.
14205 (priority_queue_downgrade_task): New.
14206 (gomp_task_run_pre): Use priority queues.
14207 Abstract code out to priority_queue_downgrade_task.
14208 (gomp_task_run_post_handle_dependers): Use priority queues.
14209 (gomp_task_run_post_remove_parent): Likewise.
14210 (gomp_task_run_post_remove_taskgroup): Likewise.
14211 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
14213 (GOMP_taskwait): Likewise.
14214 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
14215 priority-queue_upgrade_task.
14216 (GOMP_taskgroup_start): Use priority queues.
14217 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
14218 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
14220 * taskloop.c (GOMP_taskloop): Handle priorities.
14221 * team.c (gomp_new_team): Call priority_queue_init.
14222 (free_team): Call priority_queue_free.
14223 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
14224 team created for target nowait in implicit parallel region.
14225 (gomp_team_start): For nested check, test thr->ts.level instead of
14226 thr->ts.team != NULL.
14227 * testsuite/libgomp.c/doacross-3.c: New test.
14228 * testsuite/libgomp.c/ordered-5.c: New test.
14229 * testsuite/libgomp.c/priority.c: New test.
14230 * testsuite/libgomp.c/target-31.c: New test.
14231 * testsuite/libgomp.c/target-32.c: New test.
14232 * testsuite/libgomp.c/target-33.c: New test.
14233 * testsuite/libgomp.c/target-34.c: New test.
14235 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14237 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
14239 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
14240 loop is sequential.
14242 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14244 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
14245 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
14247 2015-11-12 James Norris <jnorris@codesourcery.com>
14248 Joseph Myers <joseph@codesourcery.com>
14250 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
14251 * oacc-parallel.c (GOACC_declare): New function.
14252 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
14253 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
14254 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
14255 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
14256 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
14258 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
14260 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
14262 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
14264 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
14265 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
14267 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14269 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
14270 inadvertent commit.
14272 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14274 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
14275 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
14276 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
14277 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
14278 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
14280 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
14282 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
14283 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
14285 2015-11-05 Jakub Jelinek <jakub@redhat.com>
14286 Ilya Verbin <ilya.verbin@intel.com>
14288 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
14289 GOMP_loop_nonmonotonic_dynamic_start,
14290 GOMP_loop_nonmonotonic_guided_next,
14291 GOMP_loop_nonmonotonic_guided_start,
14292 GOMP_loop_ull_nonmonotonic_dynamic_next,
14293 GOMP_loop_ull_nonmonotonic_dynamic_start,
14294 GOMP_loop_ull_nonmonotonic_guided_next,
14295 GOMP_loop_ull_nonmonotonic_guided_start,
14296 GOMP_parallel_loop_nonmonotonic_dynamic,
14297 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
14298 (GOMP_target_41): Renamed to ...
14299 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14301 (GOMP_target_data_41): Renamed to ...
14302 (GOMP_target_data_ext): ... this.
14303 (GOMP_target_update_41): Renamed to ...
14304 (GOMP_target_update_ext): ... this.
14305 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
14306 GOMP_target_data_ext and GOMP_target_update_ext instead of
14307 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
14308 Export GOMP_loop_nonmonotonic_dynamic_next,
14309 GOMP_loop_nonmonotonic_dynamic_start,
14310 GOMP_loop_nonmonotonic_guided_next,
14311 GOMP_loop_nonmonotonic_guided_start,
14312 GOMP_loop_ull_nonmonotonic_dynamic_next,
14313 GOMP_loop_ull_nonmonotonic_dynamic_start,
14314 GOMP_loop_ull_nonmonotonic_guided_next,
14315 GOMP_loop_ull_nonmonotonic_guided_start,
14316 GOMP_parallel_loop_nonmonotonic_dynamic and
14317 GOMP_parallel_loop_nonmonotonic_guided.
14318 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
14319 GOMP_parallel_loop_nonmonotonic_guided,
14320 GOMP_loop_nonmonotonic_dynamic_start,
14321 GOMP_loop_nonmonotonic_guided_start,
14322 GOMP_loop_nonmonotonic_dynamic_next,
14323 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
14324 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
14325 GOMP_loop_ull_nonmonotonic_guided_start,
14326 GOMP_loop_ull_nonmonotonic_dynamic_next,
14327 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
14328 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
14330 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
14331 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
14332 Use gomp_map_val function.
14333 (gomp_target_fallback_firstprivate): New static function.
14334 (GOMP_target_41): Renamed to ...
14335 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14336 arguments. Move firstprivate fallback handling into a new
14338 (GOMP_target_data_41): Renamed to ...
14339 (GOMP_target_data_ext): ... this.
14340 (GOMP_target_update_41): Renamed to ...
14341 (GOMP_target_update_ext): ... this.
14342 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
14343 gomp_map_0len_lookup instead of gomp_map_lookup.
14344 (omp_target_is_present): Use gomp_map_0len_lookup instead of
14346 * testsuite/libgomp.c/target-28.c: Likewise.
14347 * testsuite/libgomp.c/monotonic-1.c: New test.
14348 * testsuite/libgomp.c/monotonic-2.c: New test.
14349 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
14350 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
14351 * testsuite/libgomp.c/pr66199-5.c: New test.
14352 * testsuite/libgomp.c/pr66199-6.c: New test.
14353 * testsuite/libgomp.c/pr66199-7.c: New test.
14354 * testsuite/libgomp.c/pr66199-8.c: New test.
14355 * testsuite/libgomp.c/pr66199-9.c: New test.
14356 * testsuite/libgomp.c/reduction-11.c: New test.
14357 * testsuite/libgomp.c/reduction-12.c: New test.
14358 * testsuite/libgomp.c/reduction-13.c: New test.
14359 * testsuite/libgomp.c/reduction-14.c: New test.
14360 * testsuite/libgomp.c/reduction-15.c: New test.
14361 * testsuite/libgomp.c/target-12.c (main): Adjust for
14362 omp_target_is_present change for one-past-last element.
14363 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
14364 the same var is both mapped and privatized.
14365 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
14366 handling of zero-length array sections.
14367 * testsuite/libgomp.c/target-28.c: New test.
14368 * testsuite/libgomp.c/target-29.c: New test.
14369 * testsuite/libgomp.c/target-30.c: New test.
14370 * testsuite/libgomp.c/target-teams-1.c: New test.
14371 * testsuite/libgomp.c++/member-6.C: New test.
14372 * testsuite/libgomp.c++/member-7.C: New test.
14373 * testsuite/libgomp.c++/monotonic-1.C: New test.
14374 * testsuite/libgomp.c++/monotonic-2.C: New test.
14375 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
14376 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
14377 * testsuite/libgomp.c++/pr66199-3.C: New test.
14378 * testsuite/libgomp.c++/pr66199-4.C: New test.
14379 * testsuite/libgomp.c++/pr66199-5.C: New test.
14380 * testsuite/libgomp.c++/pr66199-6.C: New test.
14381 * testsuite/libgomp.c++/pr66199-7.C: New test.
14382 * testsuite/libgomp.c++/pr66199-8.C: New test.
14383 * testsuite/libgomp.c++/pr66199-9.C: New test.
14384 * testsuite/libgomp.c++/reduction-11.C: New test.
14385 * testsuite/libgomp.c++/reduction-12.C: New test.
14386 * testsuite/libgomp.c++/target-13.C: New test.
14387 * testsuite/libgomp.c++/target-14.C: New test.
14388 * testsuite/libgomp.c++/target-15.C: New test.
14389 * testsuite/libgomp.c++/target-16.C: New test.
14390 * testsuite/libgomp.c++/target-17.C: New test.
14391 * testsuite/libgomp.c++/target-18.C: New test.
14392 * testsuite/libgomp.c++/target-19.C: New test.
14394 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14396 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14397 and reduction copy.
14398 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14399 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14400 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14401 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14402 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14403 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14404 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14405 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14406 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14407 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14408 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14409 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14410 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14411 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14413 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14415 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14416 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14417 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14418 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14419 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14420 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14421 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14422 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14424 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
14426 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14427 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14428 (GOMP_OFFLOAD_openacc_parallel): Likewise.
14429 * oacc-host.c (host_openacc_exec): Likewise.
14430 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14432 2015-11-03 Julian Brown <julian@codesourcery.com>
14433 Thomas Schwinge <thomas@codesourcery.com>
14435 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14436 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14437 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14439 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14440 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14442 2015-11-03 James Norris <jnorris@codesourcery.com>
14444 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14446 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14448 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14449 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14450 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14451 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14452 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14454 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
14456 * openacc.h (enum acc_device_t): Reformat. Ensure layout
14458 (enum acc_async_t): Reformat.
14459 (acc_on_device): Declare compatible with builtin and provide C++
14461 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14463 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
14464 Cesar Philippidis <cesar@codesourcery.com>
14466 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14467 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14468 ... this. Add a description of the test at the top of the file.
14469 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14470 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14471 ... this. Add a description of the test at the top of the file.
14473 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
14475 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14476 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14477 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14478 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14479 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14480 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14482 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
14484 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14487 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
14490 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14492 2015-10-27 James Norris <jnorris@codesourcery.com>
14494 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14495 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14497 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
14499 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14500 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14502 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14503 acc_device_nvidia usage.
14504 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14505 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14506 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14508 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14509 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14512 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14516 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14517 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14519 2015-10-23 Tom de Vries <tom@codesourcery.com>
14522 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14524 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
14526 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14528 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14530 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
14531 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
14533 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14534 to 0 when mapnum is 0.
14536 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
14538 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14539 Cast to int from int32_t.
14541 2015-10-13 Jakub Jelinek <jakub@redhat.com>
14542 Aldy Hernandez <aldyh@redhat.com>
14543 Ilya Verbin <ilya.verbin@intel.com>
14545 * config/linux/affinity.c (omp_get_place_num_procs,
14546 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14547 * config/linux/doacross.h: New file.
14548 * config/posix/affinity.c (omp_get_place_num_procs,
14549 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14550 * config/posix/doacross.h: New file.
14551 * env.c: Include gomp-constants.h.
14552 (struct gomp_task_icv): Rename run_sched_modifier to
14553 run_sched_chunk_size.
14554 (gomp_max_task_priority_var): New variable.
14555 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14556 (handle_omp_display_env): Change _OPENMP value from 201307 to
14557 201511. Print OMP_MAX_TASK_PRIORITY.
14558 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14559 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14560 chunk_size and run_sched_modifier to run_sched_chunk_size.
14561 (omp_get_max_task_priority, omp_get_initial_device,
14562 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14563 omp_get_partition_place_nums): New functions.
14564 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14565 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14567 (omp_get_num_places_, omp_get_place_num_procs_,
14568 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14569 omp_get_place_proc_ids_8_, omp_get_place_num_,
14570 omp_get_partition_num_places_, omp_get_partition_place_nums_,
14571 omp_get_partition_place_nums_8_, omp_get_initial_device_,
14572 omp_get_max_task_priority_): New functions.
14573 * libgomp_g.h (GOMP_loop_doacross_static_start,
14574 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14575 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14576 GOMP_loop_ull_doacross_dynamic_start,
14577 GOMP_loop_ull_doacross_guided_start,
14578 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14579 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14580 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14581 GOMP_target_data_41, GOMP_target_update_41,
14582 GOMP_target_enter_exit_data): New prototypes.
14583 (GOMP_task): Add prototype argument.
14584 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14585 (struct gomp_doacross_work_share): New type.
14586 (struct gomp_work_share): Add doacross field.
14587 (struct gomp_task_icv): Rename run_sched_modifier to
14588 run_sched_chunk_size.
14589 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14590 GOMP_TASK_UNDEFERRED. Add comments.
14591 (struct gomp_task_depend_entry): Add comments.
14592 (struct gomp_task): Likewise.
14593 (struct gomp_taskgroup): Likewise.
14594 (struct gomp_target_task): New type.
14595 (struct gomp_team): Add comment.
14596 (gomp_get_place_proc_ids_8, gomp_doacross_init,
14597 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14598 gomp_create_target_task, gomp_target_task_fn): New prototypes.
14599 (struct target_var_desc): New type.
14600 (struct target_mem_desc): Adjust comment. Use struct
14601 target_var_desc instead of splay_tree_key for list.
14602 (REFCOUNT_INFINITY): Define.
14603 (struct splay_tree_key_s): Remove copy_from field.
14604 (struct gomp_device_descr): Add dev2dev_func field.
14605 (enum gomp_map_vars_kind): New enum.
14606 (gomp_map_vars): Add one argument.
14607 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14608 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14609 omp_get_place_num_procs, omp_get_place_num_procs_,
14610 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14611 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14612 omp_get_place_num_, omp_get_partition_num_places,
14613 omp_get_partition_num_places_, omp_get_partition_place_nums,
14614 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14615 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14616 omp_target_free, omp_target_is_present, omp_target_memcpy,
14617 omp_target_memcpy_rect, omp_target_associate_ptr and
14618 omp_target_disassociate_ptr.
14619 (GOMP_4.0.2): Renamed to ...
14620 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14621 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14622 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14623 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14624 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14625 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14626 GOMP_loop_ull_doacross_guided_start,
14627 GOMP_loop_ull_doacross_runtime_start,
14628 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14629 GOMP_doacross_ull_wait.
14630 * libgomp.texi: Document omp_get_max_task_priority.
14631 Rename modifier argument to chunk_size for omp_set_schedule and
14632 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14633 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14634 to run_sched_chunk_size renaming.
14635 (GOMP_loop_ordered_runtime_start): Likewise.
14636 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14637 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14638 GOMP_parallel_loop_runtime_start): New functions.
14639 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14640 to run_sched_chunk_size renaming.
14641 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14642 GOMP_loop_doacross_guided_start): New functions or aliases.
14643 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14644 run_sched_modifier to run_sched_chunk_size renaming.
14645 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14646 (gomp_loop_ull_doacross_static_start,
14647 gomp_loop_ull_doacross_dynamic_start,
14648 gomp_loop_ull_doacross_guided_start,
14649 GOMP_loop_ull_doacross_runtime_start): New functions.
14650 (GOMP_loop_ull_doacross_static_start,
14651 GOMP_loop_ull_doacross_dynamic_start,
14652 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14653 * oacc-mem.c (acc_map_data, present_create_copy,
14654 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14656 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14657 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14658 instead of false to gomp_map_vars.
14659 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14660 * omp.h.in (omp_lock_hint_t): New type.
14661 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14662 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14663 omp_get_place_num, omp_get_partition_num_places,
14664 omp_get_partition_place_nums, omp_get_initial_device,
14665 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14666 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14667 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14669 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14670 (omp_lock_hint_none, omp_lock_hint_uncontended,
14671 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14672 omp_lock_hint_speculative): New parameters.
14673 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14674 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14675 omp_get_place_num, omp_get_partition_num_places,
14676 omp_get_partition_place_nums, omp_get_initial_device,
14677 omp_get_max_task_priority): New interfaces.
14678 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14680 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14681 (omp_lock_hint_none, omp_lock_hint_uncontended,
14682 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14683 omp_lock_hint_speculative): New parameters.
14684 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14685 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14686 omp_get_place_num, omp_get_partition_num_places,
14687 omp_get_partition_place_nums, omp_get_initial_device,
14688 omp_get_max_task_priority): New functions and subroutines.
14689 * ordered.c: Include stdarg.h and string.h.
14690 (MAX_COLLAPSED_BITS): Define.
14691 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14692 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14693 GOMP_doacross_ull_wait): New functions.
14694 * target.c: Include errno.h.
14695 (resolve_device): If device is not initialized, call
14696 gomp_init_device on it.
14697 (gomp_map_lookup): New function.
14698 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14699 Don't bump refcount if REFCOUNT_INFINITY. Handle
14700 GOMP_MAP_ALWAYS_TO_P.
14701 (get_kind): Rename is_openacc argument to short_mapkind.
14702 (gomp_map_pointer): Use gomp_map_lookup.
14703 (gomp_map_fields_existing): New function.
14704 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14705 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14706 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14707 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14708 Adjust for tgt->list changed type and copy_from living in there.
14709 (gomp_copy_from_async): Adjust for tgt->list changed type and
14710 copy_from living in there.
14711 (gomp_unmap_vars): Likewise.
14712 (gomp_update): Likewise. Rename is_openacc argument to
14713 short_mapkind. Don't fail if object is not mapped.
14714 (gomp_load_image_to_device): Initialize refcount to
14716 (gomp_target_fallback): New function.
14717 (gomp_get_target_fn_addr): Likewise.
14718 (GOMP_target): Adjust gomp_map_vars caller, use
14719 gomp_get_target_fn_addr and gomp_target_fallback.
14720 (GOMP_target_41): New function.
14721 (gomp_target_data_fallback): New function.
14722 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14723 (GOMP_target_data_41): New function.
14724 (GOMP_target_update): Adjust gomp_update caller.
14725 (GOMP_target_update_41): New function.
14726 (gomp_exit_data, GOMP_target_enter_exit_data,
14727 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14728 omp_target_is_present, omp_target_memcpy,
14729 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14730 omp_target_associate_ptr, omp_target_disassociate_ptr,
14731 gomp_load_plugin_for_device): New functions.
14732 * task.c: Include gomp-constants.h. Include taskloop.c
14733 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14734 (gomp_task_handle_depend): New function.
14735 (GOMP_task): Use it. Add priority argument. Use
14736 gomp-constant.h constants instead of hardcoded numbers.
14737 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14738 (gomp_create_target_task): New function.
14739 (verify_children_queue, verify_taskgroup_queue,
14740 verify_task_queue): New functions.
14741 (gomp_task_run_pre): Call verify_*_queue functions.
14742 If an upcoming tied task is about to leave the sibling or
14743 taskgroup queues in an invalid state, adjust appropriately.
14744 Remove taskgroup argument. Add comments.
14745 (gomp_task_run_post_handle_dependers): Add comments.
14746 (gomp_task_run_post_remove_parent): Likewise.
14747 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14748 (GOMP_taskwait): Likewise. Add comments.
14749 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14750 problem such that the first non parent_depends_on task does not
14751 end up at the end of the children queue.
14752 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14753 GOMP_TASK_UNDEFERRED.
14754 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14755 * taskloop.c: New file.
14756 * testsuite/lib/libgomp.exp
14757 (check_effective_target_offload_device_nonshared_as): New proc.
14758 * testsuite/libgomp.c/affinity-2.c: New test.
14759 * testsuite/libgomp.c/doacross-1.c: New test.
14760 * testsuite/libgomp.c/doacross-2.c: New test.
14761 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14762 Add map clause to target.
14763 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14764 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14765 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14766 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14767 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14769 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14770 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14771 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14772 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14773 not defined. Use those where needed.
14774 * testsuite/libgomp.c/for-4.c: New test.
14775 * testsuite/libgomp.c/for-5.c: New test.
14776 * testsuite/libgomp.c/for-6.c: New test.
14777 * testsuite/libgomp.c/linear-1.c: New test.
14778 * testsuite/libgomp.c/ordered-4.c: New test.
14779 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14780 only allowed on the loop iterator.
14781 * testsuite/libgomp.c/pr66199-3.c: New test.
14782 * testsuite/libgomp.c/pr66199-4.c: New test.
14783 * testsuite/libgomp.c/reduction-7.c: New test.
14784 * testsuite/libgomp.c/reduction-8.c: New test.
14785 * testsuite/libgomp.c/reduction-9.c: New test.
14786 * testsuite/libgomp.c/reduction-10.c: New test.
14787 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14789 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14790 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14791 * testsuite/libgomp.c/target-11.c: New test.
14792 * testsuite/libgomp.c/target-12.c: New test.
14793 * testsuite/libgomp.c/target-13.c: New test.
14794 * testsuite/libgomp.c/target-14.c: New test.
14795 * testsuite/libgomp.c/target-15.c: New test.
14796 * testsuite/libgomp.c/target-16.c: New test.
14797 * testsuite/libgomp.c/target-17.c: New test.
14798 * testsuite/libgomp.c/target-18.c: New test.
14799 * testsuite/libgomp.c/target-19.c: New test.
14800 * testsuite/libgomp.c/target-20.c: New test.
14801 * testsuite/libgomp.c/target-21.c: New test.
14802 * testsuite/libgomp.c/target-22.c: New test.
14803 * testsuite/libgomp.c/target-23.c: New test.
14804 * testsuite/libgomp.c/target-24.c: New test.
14805 * testsuite/libgomp.c/target-25.c: New test.
14806 * testsuite/libgomp.c/target-26.c: New test.
14807 * testsuite/libgomp.c/target-27.c: New test.
14808 * testsuite/libgomp.c/taskloop-1.c: New test.
14809 * testsuite/libgomp.c/taskloop-2.c: New test.
14810 * testsuite/libgomp.c/taskloop-3.c: New test.
14811 * testsuite/libgomp.c/taskloop-4.c: New test.
14812 * testsuite/libgomp.c++/ctor-13.C: New test.
14813 * testsuite/libgomp.c++/doacross-1.C: New test.
14814 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14815 Replace offload_device with offload_device_nonshared_as.
14816 * testsuite/libgomp.c++/for-12.C: New test.
14817 * testsuite/libgomp.c++/for-13.C: New test.
14818 * testsuite/libgomp.c++/for-14.C: New test.
14819 * testsuite/libgomp.c++/linear-1.C: New test.
14820 * testsuite/libgomp.c++/member-1.C: New test.
14821 * testsuite/libgomp.c++/member-2.C: New test.
14822 * testsuite/libgomp.c++/member-3.C: New test.
14823 * testsuite/libgomp.c++/member-4.C: New test.
14824 * testsuite/libgomp.c++/member-5.C: New test.
14825 * testsuite/libgomp.c++/ordered-1.C: New test.
14826 * testsuite/libgomp.c++/reduction-5.C: New test.
14827 * testsuite/libgomp.c++/reduction-6.C: New test.
14828 * testsuite/libgomp.c++/reduction-7.C: New test.
14829 * testsuite/libgomp.c++/reduction-8.C: New test.
14830 * testsuite/libgomp.c++/reduction-9.C: New test.
14831 * testsuite/libgomp.c++/reduction-10.C: New test.
14832 * testsuite/libgomp.c++/reference-1.C: New test.
14833 * testsuite/libgomp.c++/simd14.C: New test.
14834 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14835 * testsuite/libgomp.c++/target-5.C: New test.
14836 * testsuite/libgomp.c++/target-6.C: New test.
14837 * testsuite/libgomp.c++/target-7.C: New test.
14838 * testsuite/libgomp.c++/target-8.C: New test.
14839 * testsuite/libgomp.c++/target-9.C: New test.
14840 * testsuite/libgomp.c++/target-10.C: New test.
14841 * testsuite/libgomp.c++/target-11.C: New test.
14842 * testsuite/libgomp.c++/target-12.C: New test.
14843 * testsuite/libgomp.c++/taskloop-1.C: New test.
14844 * testsuite/libgomp.c++/taskloop-2.C: New test.
14845 * testsuite/libgomp.c++/taskloop-3.C: New test.
14846 * testsuite/libgomp.c++/taskloop-4.C: New test.
14847 * testsuite/libgomp.c++/taskloop-5.C: New test.
14848 * testsuite/libgomp.c++/taskloop-6.C: New test.
14849 * testsuite/libgomp.c++/taskloop-7.C: New test.
14850 * testsuite/libgomp.c++/taskloop-8.C: New test.
14851 * testsuite/libgomp.c++/taskloop-9.C: New test.
14852 * testsuite/libgomp.fortran/affinity1.f90: New test.
14853 * testsuite/libgomp.fortran/affinity2.f90: New test.
14855 2015-10-13 Tom de Vries <tom@codesourcery.com>
14857 PR tree-optimization/67476
14858 * testsuite/libgomp.c/autopar-3.c: New test.
14859 * testsuite/libgomp.c/autopar-4.c: New test.
14860 * testsuite/libgomp.c/autopar-5.c: New test.
14861 * testsuite/libgomp.c/autopar-6.c: New test.
14862 * testsuite/libgomp.c/autopar-7.c: New test.
14863 * testsuite/libgomp.c/autopar-8.c: New test.
14865 2015-10-12 James Norris <jnorris@codesourcery.com>
14867 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14870 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14872 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14873 using load_gcc_lib.
14875 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14877 * oacc-ptx.h: Remove file, moving its content into...
14878 * config/nvptx/fortran.c: ... here...
14879 * config/nvptx/oacc-init.c: ..., here...
14880 * config/nvptx/oacc-parallel.c: ..., and here.
14881 * config/nvptx/openacc.f90: New file.
14882 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14883 (link_ptx): Don't link in predefined bits of PTX code.
14885 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14886 Bernd Schmidt <bernds@codesourcery.com>
14888 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14889 (struct targ_ptx_obj): New.
14890 (nvptx_tdata): Move earlier, change data format.
14891 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14893 (GOMP_OFFLOAD_load_image): Adjust.
14895 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14897 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14898 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14899 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14900 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14901 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14902 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14903 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14904 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14905 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14906 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14907 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14908 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14909 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14910 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14911 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14912 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14913 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14914 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14915 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14916 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14917 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14918 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14919 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14920 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14921 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14922 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14923 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14924 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14925 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14926 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14927 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14928 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14929 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14930 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14931 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14932 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14933 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14934 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14935 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14936 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14937 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14938 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14939 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14940 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14941 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14942 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14943 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14944 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14945 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14946 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14947 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14948 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14949 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14950 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14951 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14952 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14953 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14954 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14955 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14956 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14957 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14958 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14959 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14961 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14963 * oacc-init.c (acc_on_device): Force optimization level.
14965 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14967 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14968 (cuda_errlist): Delete.
14969 (cuda_error): Reimplement.
14971 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14973 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14975 * libgomp.map (GOACC_parallel_keyed): New.
14976 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
14978 (GOACC_parallel_keyed): New interface. Lose geometry arguments
14979 and take keyed varargs list. Adjust call to exec_func.
14980 (GOACC_parallel): Force host fallback.
14981 * libgomp_g.h (GOACC_parallel): Remove.
14982 (GOACC_parallel_keyed): Declare.
14983 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14984 (struct targ_gn_descriptor): Replace name field with launch field.
14985 (nvptx_exec): Lose separate geometry args, take array. Process
14986 dynamic dimensions and adjust.
14987 (struct nvptx_tdata): Replace fn_names field with fn_descs.
14988 (GOMP_OFFLOAD_load_image): Adjust for change in function table
14990 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14992 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14995 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14998 * oacc-int.h (goacc_host_init): Add declaration.
14999 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
15000 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
15002 2015-09-08 Aditya Kumar <hiraditya@msn.com>
15003 Sebastian Pop <s.pop@samsung.com>
15005 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
15007 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
15008 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
15009 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
15010 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
15011 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
15013 2015-09-03 Jakub Jelinek <jakub@redhat.com>
15015 * configure.tgt: Add missing ;; in between nvptx and rtems
15018 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15020 * config/posix/pool.h (gomp_adjust_thread_attr): New.
15021 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
15022 (gomp_thread_pool_reservoir): Add priority member.
15023 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
15025 (parse_thread_pools): Likewise.
15026 * team.c (gomp_team_start): Call configuration provided
15027 gomp_adjust_thread_attr(). Destroy thread attributes if
15029 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
15031 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15033 * config/posix/pool.h: New.
15034 * config/rtems/pool.h: Likewise.
15035 * config/rtems/proc.c: Likewise.
15036 * libgomp.h (gomp_thread_destructor): Declare.
15037 * team.c: Include configuration provided "pool.h".
15038 (gomp_get_thread_pool): Define in configuration.
15039 (gomp_team_end): Call configuration defined
15040 gomp_release_thread_pool().
15042 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15044 * config/rtems/bar.c: New.
15045 * config/rtems/bar.h: Likewise.
15046 * config/rtems/mutex.c: Likewise.
15047 * config/rtems/mutex.h: Likewise.
15048 * config/rtems/sem.c: Likewise.
15049 * config/rtems/sem.h: Likewise.
15050 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
15051 <sys/lock.h> header file.
15052 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
15053 supported by Newlib.
15054 * configure: Regenerate.
15056 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15058 * team.c (gomp_new_thread_pool): Delete and move content to ...
15059 (gomp_get_thread_pool): ... new function. Allocate and
15060 initialize thread pool on demand.
15061 (get_last_team): Use gomp_get_thread_pool().
15062 (gomp_team_start): Delete thread pool initialization.
15064 2015-09-03 Tom de Vries <tom@codesourcery.com>
15066 PR tree-optimization/65637
15067 * testsuite/libgomp.c/autopar-2.c: New test.
15069 2015-08-29 Tom de Vries <tom@codesourcery.com>
15071 PR tree-optimization/46193
15072 * testsuite/libgomp.c/pr46193.c: New test.
15074 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
15077 * libgomp.map: Add 4.0.2 version.
15078 * target.c (offload_image_descr): Add version field.
15079 (gomp_load_image_to_device): Add version argument. Adjust plugin
15080 call. Improve load mismatch diagnostic.
15081 (gomp_unload_image_from_device): Add version argument. Adjust plugin
15083 (GOMP_offload_regster): Make stub function, move bulk to ...
15084 (GOMP_offload_register_ver): ... here. Process version argument.
15085 (GOMP_offload_unregister): Make stub function, move bulk to ...
15086 (GOMP_offload_unregister_ver): ... here. Process version argument.
15087 (gomp_init_device): Process version field.
15088 (gomp_unload_device): Process version field.
15089 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
15090 macros. Check plugin version.
15091 * libgomp.h (gomp_device_descr): Add version function field. Adjust
15092 loader and unloader types.
15093 * oacc-host.c: Include gomp-constants.h.
15094 (host_version): New.
15095 (host_load_image, host_unload_image): Adjust.
15096 (host_dispatch): Add host_version.
15097 * plugin/plugin-nvptx.c: Include gomp-constants.h.
15098 (GOMP_OFFLOAD_version): New.
15099 (GOMP_OFFLOAD_load_image): Add version arg and check it.
15100 (GOMP_OFFLOAD_unload_image): Likewise.
15101 * plugin/plugin-host.c: Include gomp-constants.h.
15102 (GOMP_OFFLOAD_version): New.
15103 (GOMP_OFFLOAD_load_image): Add version arg.
15104 (GOMP_OFFLOAD_unload_image): Likewise.
15106 2015-08-24 Tom de Vries <tom@codesourcery.com>
15108 PR tree-optimization/65468
15109 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
15111 2015-08-24 Tom de Vries <tom@codesourcery.com>
15113 PR tree-optimization/65468
15114 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
15116 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
15120 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
15121 (gomp_iter_guided_next): Idem.
15122 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
15123 (gomp_iter_ull_guided_next): Idem.
15124 * config/linux/wait.h (do_spin): Idem.
15126 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15128 * libgomp-plugin.h (enum offload_target_type): Remove
15129 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
15130 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
15131 * openacc.h (enum acc_device_t): Likewise.
15132 * openacc_lib.h: Likewise.
15133 * oacc-init.c (name_of_acc_device_t): Don't handle it.
15134 (acc_on_device): Just use __builtin_acc_on_device.
15135 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
15136 of acc_on_device builtin.
15137 * plugin/plugin-host.h: Remove file.
15138 * plugin/plugin-host.c: Likewise, but salvage some content into...
15139 * oacc-host.c: ... this file.
15140 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
15141 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
15142 * Makefile.in: Regenerate.
15143 * configure: Likewise.
15144 * testsuite/lib/libgomp.exp
15145 (check_effective_target_openacc_host_nonshm_selected): Remove.
15146 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
15147 ACC_DEVICE_TYPE=host_nonshm.
15148 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15149 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15150 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15151 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15152 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15153 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15155 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15156 Jakub Jelinek <jakub@redhat.com>
15158 * config/nvptx/affinity.c: New file.
15159 * config/nvptx/alloc.c: Likewise.
15160 * config/nvptx/bar.c: Likewise.
15161 * config/nvptx/barrier.c: Likewise.
15162 * config/nvptx/critical.c: Likewise.
15163 * config/nvptx/env.c: Likewise.
15164 * config/nvptx/error.c: Likewise.
15165 * config/nvptx/fortran.c: Likewise.
15166 * config/nvptx/iter.c: Likewise.
15167 * config/nvptx/iter_ull.c: Likewise.
15168 * config/nvptx/libgomp-plugin.c: Likewise.
15169 * config/nvptx/lock.c: Likewise.
15170 * config/nvptx/loop.c: Likewise.
15171 * config/nvptx/loop_ull.c: Likewise.
15172 * config/nvptx/mutex.c: Likewise.
15173 * config/nvptx/oacc-async.c: Likewise.
15174 * config/nvptx/oacc-cuda.c: Likewise.
15175 * config/nvptx/oacc-host.c: Likewise.
15176 * config/nvptx/oacc-init.c: Likewise.
15177 * config/nvptx/oacc-mem.c: Likewise.
15178 * config/nvptx/oacc-parallel.c: Likewise.
15179 * config/nvptx/oacc-plugin.c: Likewise.
15180 * config/nvptx/omp-lock.h: Likewise.
15181 * config/nvptx/ordered.c: Likewise.
15182 * config/nvptx/parallel.c: Likewise.
15183 * config/nvptx/proc.c: Likewise.
15184 * config/nvptx/ptrlock.c: Likewise.
15185 * config/nvptx/sections.c: Likewise.
15186 * config/nvptx/sem.c: Likewise.
15187 * config/nvptx/single.c: Likewise.
15188 * config/nvptx/splay-tree.c: Likewise.
15189 * config/nvptx/target.c: Likewise.
15190 * config/nvptx/task.c: Likewise.
15191 * config/nvptx/team.c: Likewise.
15192 * config/nvptx/time.c: Likewise.
15193 * config/nvptx/work.c: Likewise.
15194 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
15195 * configure: Regenerate.
15196 * configure.tgt (config_path): Set to "nvptx" for target
15199 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15201 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
15203 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
15205 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
15206 (cuda_errlist): Constify.
15207 (errmsg): Move into ...
15208 (cuda_error): ... here. Make smaller.
15209 (_XSTR, _STR): Delete.
15210 (cuda_synames): Delete.
15211 (verify_device_library): Delete.
15212 (nvptx_init): Don't call it.
15214 2015-07-28 Tom de Vries <tom@codesourcery.com>
15216 * testsuite/libgomp.c/uns-outer-4.c: New test.
15218 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
15220 * testsuite/libgomp.c/pr66714.c: New test.
15222 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
15225 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
15226 (fib_ref): New function.
15227 (fib): Correct corner cases in the recursion.
15228 (main): Replace the non-simd loop with fib_ref call.
15229 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
15231 (fibonacci): Lower the parameter N to 30. Correct accordingly check
15232 for the last array element value. Replace the non-simd loop with
15233 fib_ref call. Remove redundant b_ref array. Remove the comparison
15234 of the last array element with according Fibonacci sequence element.
15235 (fib): Correct corner cases in the recursion.
15237 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
15239 * target.c (gomp_offload_image_to_device): Rename to ...
15240 (gomp_load_image_to_device): ... here.
15241 (GOMP_offload_register): Adjust call.
15242 (gomp_init_device): Likewise.
15243 (gomp_unload_image_from_device): New. Broken out of ...
15244 (GOMP_offload_unregister): ... here. Call it.
15245 (gomp_unload_device): New.
15246 * libgomp.h (gomp_unload_device): Declare.
15247 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
15250 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
15252 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
15254 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
15256 (goacc_waits): Move !num_waits handling to ...
15257 (GOACC_wait): ... here, the only caller that might have zero waits.
15259 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
15260 (struct ptx_image_data): Move earlier, add fns field.
15261 (struct ptx_device): Add images and image_lock fields.
15262 (ptx_images, ptx_image_lock): Delete.
15263 (nvptx_open_device): Initialize images and image_lock fields.
15264 (nvptx_close_device): Destroy image_lock.
15265 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
15266 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
15269 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15271 * target.c (GOMP_offload_register): Use int for device type arg.
15272 (GOMP_offload_unregister): Likewise.
15274 * target.c (struct_offload_image_descr): Constify host_table.
15275 (gomp_offload_image_to_device): Likewise.
15276 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
15278 * libgomp.h (gomp_device_descr): Constify target data arguments.
15279 * target.c (struct offload_image_descr): Constify target_data.
15280 (gomp_offload_image_to_device): Likewise.
15281 (GOMP_offload_register): Likewise.
15282 (GOMP_offload_unregister): Likewise.
15283 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
15284 GOMP_OFFLOAD_unload_image): Constify target data.
15285 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
15286 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
15288 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
15290 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
15291 Workaround driver library const error.
15292 (struct nvptx_tdata, nvptx_tdata_t): New.
15293 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
15296 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
15298 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
15299 of EPS parameter from integer to real.
15300 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
15301 type of EPS parameter from integer to real.
15303 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
15305 * team.c (get_last_team): New.
15306 (gomp_new_team): Recycle last non-nested team if possible.
15307 (gomp_team_end): Move team work share list free lock destruction
15309 (free_team): ... here.
15311 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
15313 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
15314 and ref from int to double. Replaced their comparison with
15315 an inequality of their difference and EPS.
15316 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
15317 comparison of pri and a reference number with an inequality of their
15318 difference and EPS.
15319 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
15320 the comparison of sum and sum_ref with an inequality of their
15321 difference and EPS.
15322 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
15323 the comparison of pri and a reference number with an inequality of
15324 their difference and EPS.
15326 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
15328 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
15329 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
15330 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
15331 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
15332 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
15333 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
15334 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
15335 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
15336 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
15337 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
15338 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
15339 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
15340 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
15342 (vec_mult): Likewise. Add #pragma omp taskwait.
15343 (main): Adjust caller.
15344 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
15345 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
15346 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
15347 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
15348 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
15349 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
15350 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
15351 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
15352 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
15353 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
15354 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
15355 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
15356 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
15357 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
15358 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
15359 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
15360 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
15361 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
15362 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
15363 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
15364 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
15365 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
15366 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
15367 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
15368 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
15369 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
15370 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15371 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15372 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15373 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15374 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15375 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15376 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15377 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15378 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15379 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15380 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15381 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15382 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15383 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15384 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15385 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15386 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15387 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15388 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15389 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15390 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15391 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15392 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15393 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15394 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15395 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15396 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15397 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15398 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15399 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15400 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15401 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15402 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15403 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15404 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15405 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15406 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15407 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15408 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15409 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15410 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15411 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15412 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15413 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15414 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15415 (vec_mult): Add !$omp taskwait.
15416 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15417 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15418 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15419 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15420 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15421 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15422 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15423 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15424 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15425 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15426 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15427 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15428 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15429 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15430 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15431 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15432 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15433 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15434 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15435 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15436 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15437 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15438 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15439 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15440 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15441 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15442 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15443 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15444 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15445 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15446 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15447 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15448 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15449 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15450 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15451 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15452 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15453 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15454 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15455 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15456 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15457 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15458 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15459 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15460 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15461 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15462 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15463 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15464 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15465 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15466 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15467 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15468 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15469 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15470 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15471 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15472 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15473 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15474 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15475 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15476 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15477 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15478 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15479 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15480 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15481 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15482 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15484 2015-07-10 Tom de Vries <tom@codesourcery.com>
15486 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15487 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15489 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15492 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15493 in a 64-bit configuration.
15494 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15495 offloading testing if no such device is available.
15496 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15497 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15499 2015-07-08 Tom de Vries <tom@codesourcery.com>
15501 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15503 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15505 2015-07-07 Tom de Vries <tom@codesourcery.com>
15507 PR tree-optimization/66642
15508 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15509 iteration count case.
15510 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15511 function, factor out of ...
15512 (main): ... here. Test low iteration count case.
15514 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
15516 * libgomp.h (gomp_thread_pool): Comment last_team field.
15518 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
15520 * testsuite/libgomp.c++/pr66702-1.C: Require
15521 vect_simd_clones effective target.
15522 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15524 2015-06-30 Tom de Vries <tom@codesourcery.com>
15526 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15527 already set. Use DEFAULT_CFLAGS in dg-runtest.
15528 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15531 2015-06-30 Tom de Vries <tom@codesourcery.com>
15533 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15534 already set. Use DEFAULT_CFLAGS in dg-runtest.
15535 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15536 * testsuite/libgomp.c++/pr64824.C: Same.
15537 * testsuite/libgomp.c++/pr64868.C: Same.
15538 * testsuite/libgomp.c++/pr66199-1.C: Same.
15539 * testsuite/libgomp.c++/pr66199-2.C: Same.
15540 * testsuite/libgomp.c++/target-2.C: Same.
15541 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15542 -std=<standard> option.
15543 * testsuite/libgomp.c++/udr-11.C: Same.
15544 * testsuite/libgomp.c++/udr-12.C: Same.
15545 * testsuite/libgomp.c++/udr-13.C: Same.
15546 * testsuite/libgomp.c++/udr-14.C: Same.
15547 * testsuite/libgomp.c++/udr-15.C: Same.
15548 * testsuite/libgomp.c++/udr-16.C: Same.
15549 * testsuite/libgomp.c++/udr-17.C: Same.
15550 * testsuite/libgomp.c++/udr-18.C: Same.
15551 * testsuite/libgomp.c++/udr-19.C: Same.
15552 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15553 * testsuite/libgomp.c++/simd-1.C: Same.
15554 * testsuite/libgomp.c++/simd-2.C: Same.
15555 * testsuite/libgomp.c++/simd-3.C: Same.
15556 * testsuite/libgomp.c++/simd-4.C: Same.
15557 * testsuite/libgomp.c++/simd-5.C: Same.
15558 * testsuite/libgomp.c++/simd-6.C: Same.
15559 * testsuite/libgomp.c++/simd-7.C: Same.
15560 * testsuite/libgomp.c++/simd-8.C: Same.
15561 * testsuite/libgomp.c++/simd-9.C: Same.
15562 * testsuite/libgomp.c++/simd10.C: Same.
15563 * testsuite/libgomp.c++/simd11.C: Same.
15564 * testsuite/libgomp.c++/simd12.C: Same.
15565 * testsuite/libgomp.c++/simd13.C: Same.
15567 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15569 PR middle-end/66702
15570 * testsuite/libgomp.c++/pr66702-1.C: New test.
15571 * testsuite/libgomp.c++/pr66702-2.C: New test.
15573 2015-06-30 Tom de Vries <tom@codesourcery.com>
15575 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15576 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15577 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15578 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15580 2015-06-30 Tom de Vries <tom@codesourcery.com>
15582 PR tree-optimization/66652
15583 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15584 using restrict pointers.
15585 (main): Add arguments to calls to f.
15586 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15588 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
15590 * configure.ac: Fix check for header <sys/sysctl.h>.
15591 * configure: Regenerate.
15592 * config.h.in: Likewise.
15594 2015-06-23 Tom de Vries <tom@codesourcery.com>
15596 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15598 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15600 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
15602 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15606 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15607 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15609 2015-06-15 Tom de Vries <tom@codesourcery.com>
15611 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
15612 dg-additional-options for any remaining options.
15613 * testsuite/libgomp.c/atomic-2.c: Same.
15614 * testsuite/libgomp.c/atomic-4.c: Same.
15615 * testsuite/libgomp.c/atomic-5.c: Same.
15616 * testsuite/libgomp.c/atomic-6.c: Same.
15617 * testsuite/libgomp.c/autopar-1.c: Same.
15618 * testsuite/libgomp.c/copyin-1.c: Same.
15619 * testsuite/libgomp.c/copyin-2.c: Same.
15620 * testsuite/libgomp.c/copyin-3.c: Same.
15621 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15622 * testsuite/libgomp.c/nestedfn-5.c: Same.
15623 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15624 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15625 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15626 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15627 * testsuite/libgomp.c/pr32362-1.c: Same.
15628 * testsuite/libgomp.c/pr32362-2.c: Same.
15629 * testsuite/libgomp.c/pr32362-3.c: Same.
15630 * testsuite/libgomp.c/pr39591-1.c: Same.
15631 * testsuite/libgomp.c/pr39591-2.c: Same.
15632 * testsuite/libgomp.c/pr39591-3.c: Same.
15633 * testsuite/libgomp.c/pr58392.c: Same.
15634 * testsuite/libgomp.c/pr58756.c: Same.
15635 * testsuite/libgomp.c/simd-1.c: Same.
15636 * testsuite/libgomp.c/simd-10.c: Same.
15637 * testsuite/libgomp.c/simd-11.c: Same.
15638 * testsuite/libgomp.c/simd-12.c: Same.
15639 * testsuite/libgomp.c/simd-13.c: Same.
15640 * testsuite/libgomp.c/simd-14.c: Same.
15641 * testsuite/libgomp.c/simd-15.c: Same.
15642 * testsuite/libgomp.c/simd-2.c: Same.
15643 * testsuite/libgomp.c/simd-3.c: Same.
15644 * testsuite/libgomp.c/simd-4.c: Same.
15645 * testsuite/libgomp.c/simd-5.c: Same.
15646 * testsuite/libgomp.c/simd-6.c: Same.
15647 * testsuite/libgomp.c/simd-7.c: Same.
15648 * testsuite/libgomp.c/simd-8.c: Same.
15649 * testsuite/libgomp.c/simd-9.c: Same.
15651 2015-06-15 Tom de Vries <tom@codesourcery.com>
15653 * testsuite/libgomp.c/pr35625.c: Fix typo.
15655 2015-06-15 Tom de Vries <tom@codesourcery.com>
15657 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15659 * testsuite/libgomp.c/atomic-3.c: Same.
15660 * testsuite/libgomp.c/debug-1.c: Same.
15661 * testsuite/libgomp.c/nqueens-1.c: Same.
15662 * testsuite/libgomp.c/pr26171.c: Same.
15663 * testsuite/libgomp.c/pr48591.c: Same.
15664 * testsuite/libgomp.c/pr64824.c: Same.
15665 * testsuite/libgomp.c/pr64868.c: Same.
15666 * testsuite/libgomp.c/pr66133.c: Same.
15667 * testsuite/libgomp.c/pr66199-1.c: Same.
15668 * testsuite/libgomp.c/pr66199-2.c: Same.
15669 * testsuite/libgomp.c/target-8.c: Same.
15671 2015-06-15 Tom de Vries <tom@codesourcery.com>
15673 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15675 * testsuite/libgomp.c/for-1.c: Same.
15676 * testsuite/libgomp.c/for-2.c: Same.
15677 * testsuite/libgomp.c/for-3.c: Same.
15678 * testsuite/libgomp.c/pr35625.c: Same.
15679 * testsuite/libgomp.c/pr39154.c: Same.
15680 * testsuite/libgomp.c/simd-16.c: Same.
15681 * testsuite/libgomp.c/simd-17.c: Same.
15683 2015-06-13 Tom de Vries <tom@codesourcery.com>
15685 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15687 2015-06-13 Tom de Vries <tom@codesourcery.com>
15689 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15690 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15691 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15693 (main): Use N instead of hardcoded constants.
15695 2015-06-05 Tom de Vries <tom@codesourcery.com>
15697 merge from gomp4 branch:
15698 2015-05-28 Tom de Vries <tom@codesourcery.com>
15700 PR tree-optimization/65443
15701 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15702 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15703 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15705 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15707 * testsuite/libgomp.graphite/bounds.c: Adjust for
15708 cleanup-tree-dump removal.
15709 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15710 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15711 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15712 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15713 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15714 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15715 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15716 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15717 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15718 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15720 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
15722 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15723 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15724 (futex_wake) [!__x86_64__]: Ditto.
15726 2015-05-28 Julian Brown <julian@codesourcery.com>
15728 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15729 function comment. Only call gomp_fatal if new argument is true.
15730 (acc_dev_num_out_of_range): New function.
15731 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15732 acc_dev_num_out_of_range as appropriate.
15733 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15734 (acc_get_device_num, acc_set_device_num): Update calls to
15736 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15739 2015-05-28 Julian Brown <julian@codesourcery.com>
15742 * oacc-init.c (plugin/plugin-host.h): Include.
15743 (acc_on_device): Check whether we're in an offloaded region for
15745 plugin. Don't use __builtin_acc_on_device.
15746 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15747 nonshm_exec flag in thread-local data.
15748 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15749 data for host_nonshm plugin.
15750 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15751 for host_nonshm plugin.
15752 * plugin/plugin-host.h: New.
15754 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15756 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15758 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15760 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15762 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15763 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15766 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15768 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15770 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15772 * target.c (gomp_map_pointer): New function abstracting out
15773 GOMP_MAP_POINTER handling.
15774 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15775 gomp_map_pointer().
15777 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15779 PR middle-end/66199
15780 * testsuite/libgomp.c/pr66199-1.c: New test.
15781 * testsuite/libgomp.c/pr66199-2.c: New test.
15782 * testsuite/libgomp.c++/pr66199-1.C: New test.
15783 * testsuite/libgomp.c++/pr66199-2.C: New test.
15784 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15785 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15787 2015-05-19 Julian Brown <julian@codesourcery.com>
15789 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15792 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15794 PR middle-end/66133
15795 * testsuite/libgomp.c/pr66133.c: New test.
15797 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15799 * Makefile.in: Regenerated with automake-1.11.6.
15800 * aclocal.m4: Likewise.
15801 * config.h.in: Likewise.
15802 * configure: Likewise.
15803 * testsuite/Makefile.in: Likewise.
15805 2015-05-08 Jason Merrill <jason@redhat.com>
15807 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15810 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15812 2015-05-06 Julian Brown <julian@codesourcery.com>
15814 * oacc-init.c (acc_device_lock): Add explanatory comment.
15815 (resolve_device): Add comment about locking requirement.
15816 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15817 gomp_init_device and gomp_fini_device calls.
15818 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15819 (acc_get_device_num, acc_set_device_num): Add locking around
15820 resolve_device and gomp_init_device calls.
15822 2015-05-06 Julian Brown <julian@codesourcery.com>
15824 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15825 goacc_thread_lock on error paths.
15826 * oacc-mem.c (lookup_host): Remove locking from function. Note
15827 locking requirement for caller in function comment.
15828 (lookup_dev): Likewise.
15829 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15830 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15831 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15834 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15838 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15839 don't expect "0x" prefix for "%p" format specifier, don't expect
15840 "(nil)" for NULL pointer.
15841 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15842 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15843 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15844 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15845 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15846 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15847 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15848 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15849 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15850 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15851 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15852 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15853 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15854 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15855 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15856 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15857 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15858 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15859 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15860 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15861 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15862 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15863 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15864 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15865 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15866 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15867 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15868 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15869 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15870 accurately specify what we're looking for.
15871 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15872 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15873 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15874 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15875 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15877 2015-04-30 James Norris <jnorris@codesourcery.com>
15880 * testsuite/lib/libgomp.exp
15881 (check_effective_target_openacc_host_selected)
15882 (check_effective_target_openacc_host_nonshm_selected): New
15884 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15886 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15887 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15888 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15889 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15890 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15891 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15892 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15893 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15894 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15895 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15896 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15897 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15898 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15899 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15900 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15901 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15902 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15903 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15904 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15905 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15906 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15907 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15908 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15909 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15910 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15911 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15912 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15913 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15914 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15915 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15916 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15917 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15918 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15919 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15920 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15921 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15922 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15923 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15924 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15925 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15926 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15927 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15928 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15930 2015-04-08 Julian Brown <julian@codesourcery.com>
15932 * libgomp.h (target_mem_desc: Remove mem_map field.
15933 (acc_dispatch_t): Remove open_device_func, close_device_func,
15934 get_device_num_func, set_device_num_func, target_data members.
15935 Change create_thread_data_func argument to device number instead of
15937 * oacc-async.c (assert.h): Include.
15938 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15939 (acc_wait_all, acc_wait_all_async): Use current host thread's
15940 active device, not base_dev.
15941 * oacc-cuda.c (acc_get_current_cuda_device)
15942 (acc_get_current_cuda_context, acc_get_cuda_stream)
15943 (acc_set_cuda_stream): Likewise.
15944 * oacc-host.c (host_dispatch): Don't set open_device_func,
15945 close_device_func, get_device_num_func or set_device_num_func.
15946 * oacc-init.c (base_dev, init_key): Remove.
15947 (cached_base_dev): New.
15948 (name_of_acc_device_t): New.
15949 (acc_init_1): Initialise default-numbered device, not zeroth.
15950 (acc_shutdown_1): Close all devices of a given type.
15951 (goacc_destroy_thread): Don't use base_dev.
15952 (lazy_open, lazy_init, lazy_init_and_open): Remove.
15953 (goacc_attach_host_thread_to_device): New.
15954 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15955 (acc_get_num_devices): Don't use base_dev.
15956 (acc_set_device_type): Reimplement.
15957 (acc_get_device_type): Don't use base_dev.
15958 (acc_get_device_num): Tweak logic.
15959 (acc_set_device_num): Likewise.
15960 (acc_on_device): Use acc_get_device_type.
15961 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15962 (goacc_lazy_initialize): Reimplement with acc_init and
15963 goacc_attach_host_thread_to_device.
15964 * oacc-int.h (goacc_thread): Add base_dev field.
15965 (base_dev): Remove extern declaration.
15966 (goacc_attach_host_thread_to_device): Add prototype.
15967 * oacc-mem.c (acc_malloc): Use current thread's device instead of
15969 (acc_free): Likewise.
15970 (acc_memcpy_to_device): Likewise.
15971 (acc_memcpy_from_device): Likewise.
15972 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15973 goacc_lazy_initialize (throughout).
15974 (GOACC_parallel): Use tgt_offset to locate target functions.
15975 * target.c (gomp_map_vars): Don't set tgt->mem_map.
15976 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15977 (gomp_load_plugin_for_device): Remove open_device, close_device,
15978 get_device_num, set_device_num openacc hook initialisation. Don't set
15979 openacc.target_data.
15980 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15981 (GOMP_OFFLOAD_openacc_close_device)
15982 (GOMP_OFFLOAD_openacc_get_device_num)
15983 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15984 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15986 * plugin/plugin-nvptx.c (ptx_inited): Remove.
15987 (instantiated_devices, ptx_dev_lock): New.
15988 (struct ptx_image_data): New.
15989 (ptx_devices, ptx_images, ptx_image_lock): New.
15990 (fini_streams_for_device): Reorder cuStreamDestroy call.
15991 (nvptx_get_num_devices): Remove forward declaration.
15992 (nvptx_init): Change return type to bool.
15993 (nvptx_fini): Remove.
15994 (nvptx_attach_host_thread_to_device): New.
15995 (nvptx_open_device): Return struct ptx_device* instead of void*.
15996 (nvptx_close_device): Change argument type to struct ptx_device*,
15997 return type to void.
15998 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15999 (kernel_target_data, kernel_host_table): Remove static globals.
16000 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
16001 (GOMP_OFFLOAD_init_device): Reimplement.
16002 (GOMP_OFFLOAD_fini_device): Likewise.
16003 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
16004 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
16005 (GOMP_OFFLOAD_host2dev): Use ORD argument.
16006 (GOMP_OFFLOAD_openacc_open_device)
16007 (GOMP_OFFLOAD_openacc_close_device)
16008 (GOMP_OFFLOAD_openacc_set_device_num)
16009 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
16010 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
16014 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
16016 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
16018 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
16019 * libgomp.h (struct gomp_memory_mapping): Remove.
16020 (struct target_mem_desc): Change type of mem_map from
16021 gomp_memory_mapping * to splay_tree_s *.
16022 (struct gomp_device_descr): Remove register_image_func, get_table_func.
16023 Add load_image_func, unload_image_func.
16024 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
16025 Remove offload_regions_registered.
16026 (gomp_init_tables): Remove.
16027 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16029 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
16030 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
16031 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
16032 offload_regions_registered.
16033 Initialize load_image_func, unload_image_func, mem_map.root.
16034 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
16035 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
16036 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
16037 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
16038 gomp_memory_mapping *. Use dev's lock and splay_tree.
16039 (lookup_dev): Use dev's lock.
16040 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
16041 (acc_is_present): Likewise.
16042 (acc_map_data): Likewise.
16043 (acc_unmap_data): Likewise. Use dev's lock.
16044 (present_create_copy): Likewise.
16045 (delete_copyout): Pass dev to lookup_host instead of mem_map.
16046 (update_dev_host): Likewise.
16047 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
16048 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
16049 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
16050 (GOMP_OFFLOAD_get_table): Remove
16051 (GOMP_OFFLOAD_load_image): New function.
16052 (GOMP_OFFLOAD_unload_image): New function.
16053 * target.c (register_lock): New mutex for offload image registration.
16054 (num_devices): Do not guard with PLUGIN_SUPPORT.
16055 (gomp_realloc_unlock): New static function.
16056 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
16058 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
16059 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
16060 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
16062 (gomp_unmap_vars): Likewise.
16063 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
16064 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
16065 (gomp_offload_image_to_device): New static function.
16066 (GOMP_offload_register): Add mutex lock.
16067 Call gomp_offload_image_to_device for all initialized devices.
16068 Replace gomp_realloc with gomp_realloc_unlock.
16069 (GOMP_offload_unregister): New function.
16070 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
16071 get_table_func from the plugin with calls to init_device_func and
16072 gomp_offload_image_to_device.
16073 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16075 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
16076 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
16077 (GOMP_target_data): Do not call gomp_init_tables.
16078 (GOMP_target_update): Likewise. Remove argument from gomp_update.
16079 (gomp_load_plugin_for_device): Replace register_image and get_table
16080 with load_image and unload_image in DLSYM ().
16081 (gomp_register_images_for_device): Remove function.
16082 (gomp_target_init): Do not initialize current_device.mem_map.*,
16083 current_device.offload_regions_registered.
16084 Remove call to gomp_register_images_for_device.
16085 Do not free offload_images and num_offload_images.
16087 2015-03-30 Jakub Jelinek <jakub@redhat.com>
16090 * testsuite/libgomp.fortran/pr65597.f90: New test.
16092 2015-03-27 Tom de Vries <tom@codesourcery.com>
16095 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
16096 (init, check): New function.
16097 (foo): Change return type to void.
16098 (main): Call init and check.
16100 2015-03-27 Tom de Vries <tom@codesourcery.com>
16103 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
16104 (foo): Use M for non-inner loops to scale down test-case.
16106 2015-03-25 Kai Tietz <ktietz@redhat.com>
16109 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
16110 (GOACC_data_start): Likewise.
16111 * target.c (gomp_map_vars): Likewise.
16113 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
16115 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
16118 2015-03-19 Jakub Jelinek <jakub@redhat.com>
16120 * testsuite/libgomp.c/target-10.c: New test.
16121 * testsuite/libgomp.c++/target-4.C: New test.
16123 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
16125 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
16126 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
16128 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
16130 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
16131 * configure.ac (*-*-rtems*): Assume Pthread is supported.
16132 (pthread.h): Check for this header file.
16133 * configure: Regenerate.
16135 2015-02-25 Tom de Vries <tom@codesourcery.com>
16137 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
16138 (check_reduction_op, check_reduction_macro, max, min):
16140 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
16142 (main): Use new functions.
16144 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
16146 * target.c (gomp_load_plugin_for_device): Use const char * instead of
16147 char * for variables holding dlerror return values.
16148 (DLSYM_OPT): Ditto.
16150 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
16152 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
16154 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
16155 Cesar Philippidis <cesar@codesourcery.com>
16157 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
16158 GOACC_ctaid, and GOACC_nctaid routines.
16160 2015-02-11 Jakub Jelinek <jakub@redhat.com>
16163 * testsuite/libgomp.c/atomic-18.c: New test.
16164 * testsuite/libgomp.c++/atomic-16.C: New test.
16166 2015-02-04 Jakub Jelinek <jakub@redhat.com>
16170 * testsuite/libgomp.c/pr64824.c: New test.
16171 * testsuite/libgomp.c/pr64868.c: New test.
16172 * testsuite/libgomp.c++/pr64824.C: New test.
16173 * testsuite/libgomp.c++/pr64868.C: New test.
16175 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
16178 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
16179 Link with -lpthread.
16180 * config/aix/plugin-suffix.h: Delete.
16182 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
16185 * configure.tgt (*-*-aix*): Use config_path "aix posix".
16186 (*-*-darwin*): Use config_path "bsd darwin posix".
16187 (*-*-hpux*): Use config_path "hpux posix".
16188 * target.c: Add include of plugin-suffix.h and use
16189 SONAME_SUFFIX macro.
16190 * config/aix/plugin-suffix.h: New file.
16191 * config/darwin/plugin-suffix.h: New file.
16192 * config/hpux/plugin-suffix.h: New file.
16193 * config/posix/plugin-suffix.h: New file.
16195 2015-01-23 Jakub Jelinek <jakub@redhat.com>
16197 PR middle-end/64734
16198 * libgomp.c/pr64734.c: New test.
16200 2015-01-23 Tom de Vries <tom@codesourcery.com>
16203 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
16205 2015-01-23 Tom de Vries <tom@codesourcery.com>
16208 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
16211 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
16214 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
16215 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
16216 formal parameter. Update all users.
16217 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
16218 Document unused formal parameter.
16220 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
16222 * oacc-parallel.c: Don't include <alloca.h>.
16223 (GOACC_parallel): Use gomp_alloca instead of alloca.
16225 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
16227 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
16229 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
16230 James Norris <jnorris@codesourcery.com>
16231 Tom de Vries <tom@codesourcery.com>
16232 Julian Brown <julian@codesourcery.com>
16233 Cesar Philippidis <cesar@codesourcery.com>
16234 Nathan Sidwell <nathan@codesourcery.com>
16235 Tobias Burnus <burnus@net-b.de>
16237 * Makefile.am (search_path): Add $(top_srcdir)/../include.
16238 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
16239 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
16240 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
16241 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
16242 Include $(top_srcdir)/plugin/Makefrag.am.
16243 (nodist_libsubinclude_HEADERS): Add openacc.h.
16244 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
16245 openacc.f90, openacc.mod, openacc_kinds.mod.
16246 (omp_lib.mod): Generalize into...
16247 (%.mod): ... this new rule.
16248 (openacc_kinds.mod, openacc.mod): New rules.
16249 * plugin/configfrag.ac: New file.
16250 * configure.ac: Move plugin/offloading support into it. Include
16251 it. Instantiate testsuite/libgomp-test-support.pt.exp.
16252 * plugin/Makefrag.am: New file.
16253 * testsuite/Makefile.am (OFFLOAD_TARGETS)
16254 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
16256 (libgomp-test-support.exp): New rule.
16257 (all-local): Depend on it.
16258 * Makefile.in: Regenerate.
16259 * testsuite/Makefile.in: Regenerate.
16260 * config.h.in: Likewise.
16261 * configure: Likewise.
16262 * configure.tgt: Harden shell syntax.
16263 * env.c: Include "oacc-int.h".
16264 (parse_acc_device_type): New function.
16265 (gomp_debug_var, goacc_device_type, goacc_device_num): New
16267 (initialize_env): Initialize those. Call
16268 goacc_runtime_initialize.
16269 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
16270 (gomp_fatal): Call gomp_vfatal.
16271 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
16272 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
16273 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
16274 (splay_tree_node, splay_tree, splay_tree_key)
16275 (struct target_mem_desc, struct splay_tree_key_s)
16276 (struct gomp_memory_mapping, struct acc_dispatch_t)
16277 (struct gomp_device_descr, gomp_acc_insert_pointer)
16278 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
16279 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
16280 (gomp_free_memmap, gomp_fini_device): New declarations.
16281 (gomp_vdebug, gomp_debug): New macros.
16282 Include "splay-tree.h".
16283 * libgomp.map (OACC_2.0): New symbol version. Use for
16284 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
16285 acc_set_device_type_h_, acc_get_device_type,
16286 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
16287 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
16288 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
16289 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
16290 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
16291 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
16292 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
16293 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
16294 acc_copyin_array_h_, acc_present_or_copyin,
16295 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
16296 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
16297 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
16298 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
16299 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
16300 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
16301 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
16302 acc_update_device, acc_update_device_32_h_,
16303 acc_update_device_64_h_, acc_update_device_array_h_,
16304 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
16305 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
16306 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
16307 acc_is_present_64_h_, acc_is_present_array_h_,
16308 acc_memcpy_to_device, acc_memcpy_from_device,
16309 acc_get_current_cuda_device, acc_get_current_cuda_context,
16310 acc_get_cuda_stream, acc_set_cuda_stream.
16311 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
16312 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
16313 GOACC_update, GOACC_wait, GOACC_get_thread_num,
16314 GOACC_get_num_threads.
16315 (GOMP_PLUGIN_1.0): New symbol version. Use for
16316 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
16317 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
16318 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
16319 GOMP_PLUGIN_acc_thread.
16320 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
16321 environment variable.
16322 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
16323 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
16324 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
16325 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
16326 (splay_tree_remove): New declarations.
16327 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
16328 (splay_tree_remove, splay_tree_lookup): Move into...
16329 * splay-tree.c: ... this new file.
16330 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
16331 (splay_tree_node, splay_tree, splay_tree_key)
16332 (struct target_mem_desc, struct splay_tree_key_s)
16333 (struct gomp_device_descr): Don't declare.
16334 (num_devices_openmp): New variable.
16335 (gomp_get_num_devices ): Use it.
16336 (gomp_init_targets_once): New function.
16337 (gomp_get_num_devices ): Use it.
16338 (get_kind, gomp_copy_from_async, gomp_free_memmap)
16339 (gomp_fini_device, gomp_register_image_for_device): New functions.
16340 (gomp_map_vars): Add devaddrs parameter.
16341 (gomp_update): Add mm parameter.
16342 (gomp_init_device): Move most of it into...
16343 (gomp_init_tables): ... this new function.
16344 (gomp_register_images_for_device): Remove function.
16345 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
16346 Make them hidden instead of static.
16347 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
16348 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
16349 (GOMP_target_end_data, GOMP_target_update)
16350 (gomp_load_plugin_for_device, gomp_target_init): Update for
16352 * oacc-async.c: New file.
16353 * oacc-cuda.c: Likewise.
16354 * oacc-host.c: Likewise.
16355 * oacc-init.c: Likewise.
16356 * oacc-int.h: Likewise.
16357 * oacc-mem.c: Likewise.
16358 * oacc-parallel.c: Likewise.
16359 * oacc-plugin.c: Likewise.
16360 * oacc-plugin.h: Likewise.
16361 * oacc-ptx.h: Likewise.
16362 * openacc.f90: Likewise.
16363 * openacc.h: Likewise.
16364 * openacc_lib.h: Likewise.
16365 * plugin/plugin-host.c: Likewise.
16366 * plugin/plugin-nvptx.c: Likewise.
16367 * libgomp-plugin.c: Likewise.
16368 * libgomp-plugin.h: Likewise.
16369 * libgomp_target.h: Remove file after merging content into the
16370 former file. Update all users.
16371 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16372 (offload_targets_s, offload_targets_s_openacc): New variables.
16373 (check_effective_target_openacc_nvidia_accel_present)
16374 (check_effective_target_openacc_nvidia_accel_selected): New
16376 (libgomp_init): Update for OpenACC changes.
16377 * testsuite/libgomp-test-support.exp.in: New file.
16378 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16379 * testsuite/libgomp.oacc-c/c.exp: Likewise.
16380 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16381 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16382 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16383 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16384 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16385 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16386 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16387 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16388 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16389 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16390 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16391 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16392 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16393 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16394 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16395 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16396 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16397 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16398 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16399 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16400 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16401 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16402 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16403 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16404 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16405 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16406 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16407 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16408 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16409 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16410 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16411 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16412 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16413 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16414 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16415 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16416 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16417 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16418 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16419 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16420 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16421 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16422 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16423 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16424 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16425 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16426 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16427 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16428 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16429 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16430 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16431 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16432 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16433 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16434 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16435 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16436 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16437 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16438 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16439 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16440 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16441 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16442 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16443 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16444 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16445 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16446 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16447 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16448 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16449 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16450 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16451 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16452 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16453 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16454 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16455 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16456 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16457 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16458 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16459 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16460 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16461 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16462 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16463 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16464 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16465 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16466 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16467 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16468 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16469 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16470 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16471 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16472 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16473 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16474 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16475 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16476 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16477 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16478 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16479 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16480 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16481 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16482 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16483 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16484 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16485 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16486 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16487 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16488 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16489 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16490 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16491 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16492 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16493 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16494 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16495 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16496 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16497 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16498 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16499 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16500 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16501 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16502 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16503 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16504 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16505 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16506 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16507 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16508 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16509 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16510 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16511 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16512 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16513 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16514 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16515 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16516 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16517 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16519 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16520 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16521 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16522 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16523 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16524 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16525 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16526 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16527 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16528 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16529 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16530 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16531 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16532 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16533 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16534 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16535 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16536 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16537 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16538 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16539 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16540 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16541 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16542 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16543 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16544 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16545 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16546 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16547 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16548 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16549 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16550 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16551 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16552 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16553 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16554 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16555 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16556 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16557 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16558 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16559 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16560 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16561 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16562 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16563 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16564 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16565 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16566 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16567 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16568 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16569 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16570 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16571 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16572 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16573 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16574 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16575 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16576 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16577 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16578 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16580 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
16581 Julian Brown <julian@codesourcery.com>
16582 David Malcolm <dmalcolm@redhat.com>
16584 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16585 to "GNU Offloading and Multi Processing Runtime Library". Change
16587 * configure: Regenerate.
16588 * libgomp.texi: Update.
16590 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
16592 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16594 * configure: Regenerate.
16596 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16597 "intelmic" in $offload_targets.
16599 2015-01-05 Jakub Jelinek <jakub@redhat.com>
16601 Update copyright years.
16603 * libgomp.texi: Bump @copying's copyright year.
16605 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16607 * testsuite/lib/libgomp.exp: Load target-utils.exp.
16608 Move load of target-supports.exp earlier.
16610 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
16612 * testsuite/libgomp.c/target-9.c: New test.
16614 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
16616 * config.h.in: Regenerate.
16617 * configure: Regenerate.
16618 * configure.ac: Add GCC_CHECK_EMUTLS.
16619 * libgomp.h: Add check for USE_EMUTLS: this case
16620 is equal to HAVE_TLS.
16621 * team.c: Likewise.
16623 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
16625 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16627 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16628 Ilya Verbin <ilya.verbin@intel.com>
16630 * testsuite/libgomp.c/target-critical-1.c: New test.
16632 2014-11-26 Jakub Jelinek <jakub@redhat.com>
16634 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16635 to dg-options unless expensive testing is on.
16636 (TESTITERS): Define to N if not defined.
16637 (main): Use TESTITERS instead of N.
16638 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16639 dg-additional-options depending on whether expensive testing is on.
16640 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16641 Decrease N to 100000 and CHUNKSZ to 10000.
16643 2014-11-24 Jakub Jelinek <jakub@redhat.com>
16646 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16647 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16649 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
16651 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16653 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16656 * configure: Regenerated.
16658 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
16660 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16661 vect_simd_clones effective target.
16662 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16664 2014-11-14 Jakub Jelinek <jakub@redhat.com>
16666 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16667 of 32 as block_size.
16668 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16669 instead of 32 as block_size.
16671 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16672 Ilya Verbin <ilya.verbin@intel.com>
16674 * Makefile.in: Regenerate.
16675 * configure: Regenerate.
16676 * configure.ac: Set up offload_additional_options,
16677 offload_additional_lib_paths and offload_targets.
16678 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16679 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16680 * testsuite/Makefile.in: Regenerate.
16681 * testsuite/lib/libgomp.exp (libgomp_init): Append
16682 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16683 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16684 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16686 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16687 Ilya Verbin <ilya.verbin@intel.com>
16688 Kirill Yukhin <kirill.yukhin@intel.com>
16689 Ilya Tocar <ilya.tocar@intel.com>
16691 * testsuite/lib/libgomp.exp
16692 (check_effective_target_offload_device): New.
16693 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16694 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16695 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16696 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16697 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16698 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16699 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16700 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16701 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16702 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16703 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16704 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16705 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16706 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16707 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16708 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16709 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16710 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16711 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16712 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16713 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16714 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16715 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16716 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16717 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16718 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16719 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16720 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16721 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16722 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16723 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16724 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16725 * testsuite/libgomp.c/target-7.c: Fix test.
16726 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16727 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16728 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16729 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16730 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16731 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16732 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16733 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16734 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16735 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16736 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16737 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16738 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16739 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16740 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16741 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16742 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16743 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16744 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16745 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16746 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16747 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16748 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16749 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16750 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16751 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16752 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16753 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16754 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16755 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16756 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16758 2014-11-13 Jakub Jelinek <jakub@redhat.com>
16759 Ilya Verbin <ilya.verbin@intel.com>
16760 Thomas Schwinge <thomas@codesourcery.com>
16761 Andrey Turetskiy <andrey.turetskiy@intel.com>
16763 * libgomp.map (GOMP_4.0.1): New symbol version.
16764 Add GOMP_offload_register.
16765 * libgomp_target.h: New file.
16766 * splay-tree.h: New file.
16767 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16768 (gomp_target_init): New forward declaration.
16769 (gomp_is_initialized): New static variable.
16770 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16771 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16773 (offload_images, num_offload_images, devices, num_devices): New static
16775 (splay_compare): New static function.
16776 (struct gomp_device_descr): New structure.
16777 (gomp_get_num_devices): Call gomp_target_init.
16778 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16779 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16780 (GOMP_offload_register): New function.
16781 (GOMP_target): Arrange for host callback to be performed in a separate
16782 initial thread and contention group, inheriting ICVs from
16783 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16784 Add device initialization and lookup for target function in splay tree.
16785 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16786 (GOMP_target_end_data): Call gomp_unmap_vars.
16787 (GOMP_target_update): Add device initialization and call gomp_update.
16788 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16789 (gomp_target_init): New static functions.
16791 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16792 Thomas Schwinge <thomas@codesourcery.com>
16793 Ilya Verbin <ilya.verbin@intel.com>
16794 Andrey Turetskiy <andrey.turetskiy@intel.com>
16796 * config.h.in: Regenerate.
16797 * configure: Regenerate.
16798 * configure.ac: Check for libdl, required for plugin support.
16799 (PLUGIN_SUPPORT): Define if plugins are supported.
16800 (enable_offload_targets): Support Intel MIC targets.
16801 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16803 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16806 * configure: Regenerate.
16808 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16810 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16812 2014-10-06 Marek Polacek <polacek@redhat.com>
16814 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16815 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16816 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16817 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16819 2014-10-06 Marek Polacek <polacek@redhat.com>
16821 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16822 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16823 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16824 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16825 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16826 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16827 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16828 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16829 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16830 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16831 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16832 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16833 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16834 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16835 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16836 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16837 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16838 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16841 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16844 * testsuite/libgomp.c/pr61200.c: New test.
16846 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16849 * testsuite/libgomp.c++/pr63248.C: New test.
16851 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16853 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16854 is not zero, but taskgroup->children is NULL and there are
16855 any task->children, schedule those instead of waiting.
16856 * testsuite/libgomp.c/depend-6.c: New test.
16857 * testsuite/libgomp.c/depend-7.c: New test.
16858 * testsuite/libgomp.c/depend-8.c: New test.
16859 * testsuite/libgomp.c/depend-9.c: New test.
16860 * testsuite/libgomp.c/depend-10.c: New test.
16862 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16864 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16865 (struct gomp_taskwait): New type.
16866 (struct gomp_task): Add taskwait and parent_depends_on, remove
16867 in_taskwait and taskwait_sem fields.
16868 (gomp_finish_task): Don't destroy taskwait_sem.
16869 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16870 taskwait and parent_depends_on.
16871 (GOMP_task): For if (0) tasks with depend clause that depend on
16872 earlier tasks don't defer them, instead call
16873 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16874 Initialize redundant_out field, for redundant out entries just
16875 move them at the end of linked list instead of removing them
16876 completely, and set redundant_out flag instead of redundant.
16877 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16879 (gomp_task_run_post_handle_dependers): If parent is in
16880 gomp_task_maybe_wait_for_dependencies and newly runnable task
16881 is not parent_depends_on, queue it in parent->children linked
16882 list after all runnable tasks with parent_depends_on set.
16883 Adjust for addition of taskwait indirection.
16884 (gomp_task_run_post_remove_parent): If parent is in
16885 gomp_task_maybe_wait_for_dependencies and task to be removed
16886 is parent_depends_on, decrement n_depend and if needed awake
16887 parent. Adjust for addition of taskwait indirection.
16888 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16889 (gomp_task_maybe_wait_for_dependencies): New function.
16890 * testsuite/libgomp.c/depend-5.c: New test.
16892 2014-07-13 Tobias Burnus <burnus@net-b.de>
16894 * testsuite/libgomp.fortran/pr34020.f90: Make compile
16895 with TS 18508/Fortran 2015.
16897 2014-07-06 Marek Polacek <polacek@redhat.com>
16900 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16902 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16904 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16905 matches regex $lang_source_re, add $lang_include_flags to options.
16906 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16907 * testsuite/libgomp.c++/c++.exp: Likewise.
16908 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16909 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16911 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16913 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16915 * testsuite/libgomp.fortran/fortran.exp: Explain
16916 gfortran-dg-runtest usage.
16918 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16920 * testsuite/libgomp.fortran/simd5.f90: New test.
16921 * testsuite/libgomp.fortran/simd6.f90: New test.
16922 * testsuite/libgomp.fortran/simd7.f90: New test.
16924 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16926 * testsuite/libgomp.c/for-2.c: Define SC to static for
16927 #pragma omp for simd testing.
16928 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16929 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16931 * testsuite/libgomp.c/simd-14.c: New test.
16932 * testsuite/libgomp.c/simd-15.c: New test.
16933 * testsuite/libgomp.c/simd-16.c: New test.
16934 * testsuite/libgomp.c/simd-17.c: New test.
16935 * testsuite/libgomp.c++/for-10.C: Define SC to static for
16936 #pragma omp for simd testing.
16937 * testsuite/libgomp.c++/simd10.C: New test.
16938 * testsuite/libgomp.c++/simd11.C: New test.
16939 * testsuite/libgomp.c++/simd12.C: New test.
16940 * testsuite/libgomp.c++/simd13.C: New test.
16942 * testsuite/libgomp.fortran/aligned1.f03: New test.
16943 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16944 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16945 tasks with !$omp parallel !$omp single.
16946 * testsuite/libgomp.fortran/target8.f90: New test.
16947 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16948 not to use trim in the combiner, instead call elemental function.
16949 (fn): New elemental function.
16950 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16952 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16954 * testsuite/libgomp.fortran/udr12.f90: New test.
16955 * testsuite/libgomp.fortran/udr13.f90: New test.
16956 * testsuite/libgomp.fortran/udr14.f90: New test.
16957 * testsuite/libgomp.fortran/udr15.f90: New test.
16959 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16961 * omp_lib.f90.in (openmp_version): Set to 201307.
16962 * omp_lib.h.in (openmp_version): Likewise.
16963 * testsuite/libgomp.c/target-8.c: New test.
16964 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16965 and inbranch clauses.
16966 * testsuite/libgomp.fortran/depend-3.f90: New test.
16967 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16969 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16970 * testsuite/libgomp.fortran/target1.f90: New test.
16971 * testsuite/libgomp.fortran/target2.f90: New test.
16972 * testsuite/libgomp.fortran/target3.f90: New test.
16973 * testsuite/libgomp.fortran/target4.f90: New test.
16974 * testsuite/libgomp.fortran/target5.f90: New test.
16975 * testsuite/libgomp.fortran/target6.f90: New test.
16976 * testsuite/libgomp.fortran/target7.f90: New test.
16978 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16981 * testsuite/libgomp.fortran/allocatable9.f90: New test.
16982 * testsuite/libgomp.fortran/allocatable10.f90: New test.
16983 * testsuite/libgomp.fortran/allocatable11.f90: New test.
16984 * testsuite/libgomp.fortran/allocatable12.f90: New test.
16985 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16986 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16987 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16988 * testsuite/libgomp.fortran/associate1.f90: New test.
16989 * testsuite/libgomp.fortran/associate2.f90: New test.
16990 * testsuite/libgomp.fortran/procptr1.f90: New test.
16992 2014-06-06 Jakub Jelinek <jakub@redhat.com>
16994 * testsuite/libgomp.fortran/simd1.f90: New test.
16995 * testsuite/libgomp.fortran/udr1.f90: New test.
16996 * testsuite/libgomp.fortran/udr2.f90: New test.
16997 * testsuite/libgomp.fortran/udr3.f90: New test.
16998 * testsuite/libgomp.fortran/udr4.f90: New test.
16999 * testsuite/libgomp.fortran/udr5.f90: New test.
17000 * testsuite/libgomp.fortran/udr6.f90: New test.
17001 * testsuite/libgomp.fortran/udr7.f90: New test.
17002 * testsuite/libgomp.fortran/udr8.f90: New test.
17003 * testsuite/libgomp.fortran/udr9.f90: New test.
17004 * testsuite/libgomp.fortran/udr10.f90: New test.
17005 * testsuite/libgomp.fortran/udr11.f90: New test.
17007 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
17009 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
17010 vect_simd_clones effective target.
17011 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
17013 2014-05-21 Jakub Jelinek <jakub@redhat.com>
17015 PR middle-end/61252
17016 * testsuite/libgomp.c++/simd-9.C: New test.
17018 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
17020 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
17021 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
17022 texts according to their @menu entry positions.
17024 2014-05-11 Jakub Jelinek <jakub@redhat.com>
17026 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
17027 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
17028 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
17029 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
17030 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
17031 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
17032 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
17033 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
17034 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
17035 * testsuite/libgomp.fortran/depend-1.f90: New test.
17036 * testsuite/libgomp.fortran/depend-2.f90: New test.
17037 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
17038 * testsuite/libgomp.fortran/simd1.f90: New test.
17039 * testsuite/libgomp.fortran/simd2.f90: New test.
17040 * testsuite/libgomp.fortran/simd3.f90: New test.
17041 * testsuite/libgomp.fortran/simd4.f90: New test.
17042 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
17044 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17046 * testsuite/libgomp.c/simd-10.c: New test.
17047 * testsuite/libgomp.c/simd-11.c: New test.
17048 * testsuite/libgomp.c/simd-12.c: New test.
17049 * testsuite/libgomp.c/simd-13.c: New test.
17051 2014-04-24 Jakub Jelinek <jakub@redhat.com>
17053 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
17054 atomic type clauses in any order and optional comma in between.
17055 * testsuite/libgomp.c++/atomic-15.C: Likewise.
17056 * testsuite/libgomp.c/atomic-17.c: Likewise.
17058 * testsuite/libgomp.c/simd-7.c: New test.
17059 * testsuite/libgomp.c/simd-8.c: New test.
17060 * testsuite/libgomp.c/simd-9.c: New test.
17061 * testsuite/libgomp.c/loop-16.c: New test.
17063 2014-04-02 Richard Henderson <rth@redhat.com>
17065 * config/linux/futex.h (futex_wait): Get error value from errno.
17066 (futex_wake): Likewise.
17068 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17071 * testsuite/libgomp.c++/udr-11.C: New test.
17072 * testsuite/libgomp.c++/udr-12.C: New test.
17073 * testsuite/libgomp.c++/udr-13.C: New test.
17074 * testsuite/libgomp.c++/udr-14.C: New test.
17075 * testsuite/libgomp.c++/udr-15.C: New test.
17076 * testsuite/libgomp.c++/udr-16.C: New test.
17077 * testsuite/libgomp.c++/udr-17.C: New test.
17078 * testsuite/libgomp.c++/udr-18.C: New test.
17079 * testsuite/libgomp.c++/udr-19.C: New test.
17081 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17083 Update copyright years
17085 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17087 * hashtab.h: Use the standard form for the copyright notice.
17089 2014-01-02 Tobias Burnus <burnus@net-b.de>
17091 * libgomp.texi: Bump @copying's copyright year.
17093 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
17095 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
17096 alloca () with __builtin_alloca ().
17097 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
17098 * testsuite/libgomp.c/lock-3.c: Likewise.
17099 * testsuite/libgomp.c/pr48591.c: Likewise.
17101 2013-12-17 Jakub Jelinek <jakub@redhat.com>
17104 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
17107 2013-12-16 Jakub Jelinek <jakub@redhat.com>
17110 * testsuite/libgomp.c/pr58756.c: New test.
17112 2013-12-12 Jakub Jelinek <jakub@redhat.com>
17115 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
17118 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
17120 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
17122 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
17123 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
17124 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
17125 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
17128 * libgomp_g.h: Include <stddef.h> for size_t.
17130 * libgomp.spec.in: Update comment about libgomp's dependencies.
17131 * configure.ac: Likewise.
17132 * configure: Regenerate.
17134 2013-10-16 Tobias Burnus <burnus@net-b.de>
17136 * libgomp.texi: (Runtime Library Routines): Update references for
17137 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
17138 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
17139 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
17140 (Environment Variables): Update references for OpenMP 4.0. Add
17141 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
17142 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
17145 2013-10-14 Jakub Jelinek <jakub@redhat.com>
17147 * env.c (parse_bind_var): Initialize value to avoid
17148 (false positive) warning.
17150 2013-10-12 Jakub Jelinek <jakub@redhat.com>
17153 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
17155 (gomp_init_num_threads): Move i variable declaration into
17156 #ifdef CPU_ALLOC_SIZE block.
17157 * config/linux/affinity.c (gomp_affinity_init_level): Test
17158 gomp_places_list_len == 0 rather than gomp_places_list == 0
17159 when checking for topology reading error.
17160 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
17161 * env.c (parse_affinity): Add ignore argument, if true, don't populate
17162 gomp_places_list, only parse env var and always return false.
17163 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
17164 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
17165 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
17166 and either of these variables were parsed correctly into a places
17169 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
17170 Jakub Jelinek <jakub@redhat.com>
17172 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
17173 of 5 loopfn matches.
17174 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17175 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17176 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
17177 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17178 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17179 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17180 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17181 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17183 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
17185 * Makefile.am (omp_lib.mod): Streamline rule.
17186 * Makefile.in: Regenerate.
17188 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
17191 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
17192 * testsuite/libgomp.fortran/lib1.f90: Likewise.
17193 * testsuite/libgomp.fortran/lib2.f: Likewise.
17194 * testsuite/libgomp.fortran/lib3.f: Likewise.
17196 * configure.ac: Typo fix.
17197 * configure: Regenerate.
17199 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
17200 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17202 * omp.h.in: Don't touch the user's namespace.
17204 2013-10-11 Jakub Jelinek <jakub@redhat.com>
17205 Tobias Burnus <burnus@net-b.de>
17206 Richard Henderson <rth@redhat.com>
17208 * target.c: New file.
17209 * Makefile.am (libgomp_la_SOURCES): Add target.c.
17210 * Makefile.in: Regenerated.
17211 * libgomp_g.h (GOMP_task): Add depend argument.
17212 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17213 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17214 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
17215 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17216 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17217 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
17218 GOMP_taskgroup_start, GOMP_taskgroup_end,
17219 GOMP_parallel_sections): New prototypes.
17220 * fortran.c (omp_is_initial_device): Add ialias_redirect.
17221 (omp_is_initial_device_): New function.
17222 (ULP, STR1, STR2, ialias_redirect): Removed.
17223 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
17224 omp_set_default_device_8_, omp_get_default_device_,
17225 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
17227 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17228 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17229 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
17231 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
17232 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
17233 omp_set_default_device, omp_set_default_device_,
17234 omp_set_default_device_8_, omp_get_default_device,
17235 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
17236 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
17237 omp_get_team_num_): Export @@OMP_4.0.
17238 * team.c (struct gomp_thread_start_data): Add place field.
17239 (gomp_thread_start): Clear thr->thread_pool and
17240 thr->task before returning. Use gomp_team_barrier_wait_final
17241 instead of gomp_team_barrier_wait. Initialize thr->place.
17242 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
17243 team_cancelled and task_queued_count fields.
17244 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
17245 before calling pthread_exit.
17246 (gomp_free_thread): No longer static. Use
17247 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
17248 (gomp_team_start): Add flags argument. Set
17249 thr->thread_pool->threads_busy to nthreads immediately after creating
17250 new pool. Use gomp_managed_threads_lock instead of
17251 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
17252 (gomp_team_end): Use gomp_managed_threads_lock instead of
17253 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
17254 of gomp_team_barrier_wait. If team->team_cancelled, call
17255 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
17256 rather than thr->ts.work_share.
17257 (initialize_team): Don't call gomp_sem_init here.
17258 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
17260 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
17261 * env.c (gomp_global_icv): Add default_device_var, target_data and
17262 bind_var initializers.
17263 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17264 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17265 gomp_places_list_len): New variables.
17266 (parse_bind_var, parse_one_place, parse_places_var): New functions.
17267 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
17269 (gomp_cancel_var): New global variable.
17270 (parse_int): New function.
17271 (handle_omp_display_env): New function.
17272 (initialize_env): Use it. Initialize default_device_var.
17273 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
17274 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
17275 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
17276 been successfully parsed (and call gomp_init_affinity in that case).
17277 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17278 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17279 omp_get_team_num, omp_is_initial_device): New functions.
17280 * libgomp.h: Include stdlib.h.
17281 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
17283 (struct target_mem_desc): Forward declare.
17284 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
17285 and thread_limit_var fields.
17286 (gomp_get_num_devices): New prototype.
17287 (gomp_cancel_var): New extern decl.
17288 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
17289 team_cancelled and task_queued_count fields. Add comments about
17290 task_{,queued_,running_}count.
17291 (gomp_cancel_kind): New enum.
17292 (gomp_work_share_end_cancel): New prototype.
17293 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
17294 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
17296 (struct gomp_taskgroup): New type.
17297 (struct gomp_task_depend_entry,
17298 struct gomp_dependers_vec): New types.
17299 (gomp_finish_task): Free depend_hash if non-NULL.
17300 (struct gomp_team_state): Add place_partition_off
17301 and place_partition_len fields.
17302 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17303 gomp_places_list_len): New extern decls.
17304 (struct gomp_thread): Add place field.
17305 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17306 (gomp_init_thread_affinity): Add place argument.
17307 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17308 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17309 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17310 gomp_affinity_init_level, gomp_affinity_print_place): New
17312 (gomp_team_start): Add flags argument.
17313 (gomp_thread_limit_var, gomp_remaining_threads_count,
17314 gomp_remaining_threads_lock): Remove.
17315 (gomp_managed_threads_lock): New variable.
17316 (struct gomp_thread_pool): Add threads_busy field.
17317 (gomp_free_thread): New prototype.
17318 * task.c: Include hashtab.h.
17319 (hash_entry_type): New typedef.
17320 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
17321 (gomp_init_task): Clear dependers, depend_hash, depend_count,
17322 copy_ctors_done and taskgroup fields.
17323 (GOMP_task): Add depend argument, handle depend clauses. If
17324 gomp_team_barrier_cancelled or if it's taskgroup has been
17325 cancelled, don't queue or start new tasks. Set copy_ctors_done
17326 field if needed. Initialize taskgroup field. If copy_ctors_done
17327 and already cancelled, don't discard the task. If taskgroup is
17328 non-NULL, enqueue the task into taskgroup queue. Increment
17329 num_children field in taskgroup. Increment task_queued_count.
17330 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
17331 gomp_task_run_post_remove_taskgroup): New inline functions.
17332 (gomp_task_run_post_handle_depend_hash,
17333 gomp_task_run_post_handle_dependers,
17334 gomp_task_run_post_handle_depend): New functions.
17335 (GOMP_taskwait): Use them. If more than one new tasks
17336 have been queued, wake other threads if needed.
17337 (gomp_barrier_handle_tasks): Likewise. If
17338 gomp_team_barrier_cancelled, don't start any new tasks, just free
17340 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
17342 (omp_proc_bind_kind, omp_proc_bind_false,
17343 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17344 omp_proc_bind_spread): New params.
17345 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17346 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17347 omp_get_team_num, omp_is_initial_device): New interfaces.
17348 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
17349 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
17350 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
17351 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
17352 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
17353 useless use omp_lib_kinds.
17354 * omp.h.in (omp_proc_bind_t): New typedef.
17355 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17356 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17357 omp_get_team_num, omp_is_initial_device): New prototypes.
17358 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
17359 through to gomp_team_start.
17360 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
17361 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
17362 Adjust gomp_parallel_loop_start callers.
17363 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17364 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17365 GOMP_loop_end_cancel): New functions.
17366 (GOMP_parallel_end): Add ialias_redirect.
17367 * hashtab.h: New file.
17368 * libgomp.texi (Environment Variables): Minor cleanup,
17369 update section refs to OpenMP 4.0rc2.
17370 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17371 environment variables.
17372 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17373 team->work_shares_to_free to thr->ts.work_share before calling
17375 (gomp_work_share_end_cancel): New function.
17376 * config/linux/proc.c: Include errno.h.
17377 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17378 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17379 sizeof (cpu_set_t) to determine number of iterations. Fix up check
17380 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
17381 gomp_cpuset_size is sizeof (cpu_set_t).
17382 (gomp_init_num_threads): Initialize gomp_cpuset_size,
17383 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17384 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17385 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
17386 contain any logical CPUs.
17387 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17388 is NULL. Use gomp_cpusetp instead of &cpuset and pass
17389 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17390 pthread_getaffinity_np. Check gomp_places_list instead of
17391 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
17392 * config/linux/bar.c (gomp_barrier_wait_end,
17393 gomp_barrier_wait_last): Use BAR_* defines.
17394 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
17395 from state where needed. Set work_share_cancelled to 0 on last
17397 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17398 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17400 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17401 Add cpusetsize argument.
17402 (gomp_cpuset_size, gomp_cpusetp): Declare.
17403 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17404 (affinity_counter): Remove.
17405 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17406 if CPU_ALLOC_SIZE isn't defined.
17407 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17408 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17409 bind current thread to the first place.
17410 (gomp_init_thread_affinity): Rewritten. Add place argument, just
17411 pthread_setaffinity_np to gomp_places_list[place].
17412 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17413 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17414 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17415 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17416 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17417 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17418 (gomp_barrier_t): Add awaited_final field.
17419 (gomp_barrier_init): Initialize awaited_final field.
17420 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17421 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17423 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
17425 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17426 gomp_team_barrier_cancelled): New inline functions.
17427 (gomp_barrier_last_thread,
17428 gomp_team_barrier_set_task_pending,
17429 gomp_team_barrier_clear_task_pending,
17430 gomp_team_barrier_set_waiting_for_tasks,
17431 gomp_team_barrier_waiting_for_tasks,
17432 gomp_team_barrier_done): Use BAR_* defines.
17433 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17434 (gomp_barrier_wait_end): Use BAR_* defines.
17435 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17436 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17438 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17439 gomp_team_barrier_cancel): New functions.
17440 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17442 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17443 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17444 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17445 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17446 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17447 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17448 (gomp_barrier_t): Add cancellable field.
17449 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17450 gomp_team_barrier_cancel): New prototypes.
17451 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17452 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17453 gomp_team_barrier_cancelled): New inline functions.
17454 (gomp_barrier_wait_start, gomp_barrier_last_thread,
17455 gomp_team_barrier_set_task_pending,
17456 gomp_team_barrier_clear_task_pending,
17457 gomp_team_barrier_set_waiting_for_tasks,
17458 gomp_team_barrier_waiting_for_tasks,
17459 gomp_team_barrier_done): Use BAR_* defines.
17460 * barrier.c (GOMP_barrier_cancel): New function.
17461 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17462 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17463 omp_proc_bind_spread): New params.
17464 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17465 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17466 omp_get_team_num, omp_is_initial_device): New externals.
17467 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17469 (gomp_resolve_num_threads): Adjust for thread_limit now being in
17470 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17471 infinity. If not nested, just return minimum of max_num_threads
17472 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17473 to the returned value. Otherwise, don't update atomically
17474 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17475 (GOMP_parallel_end): Adjust for thread_limit now being in
17476 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17477 infinity. Adjust threads_busy in the pool rather than
17478 gomp_remaining_threads_count. Remember team->nthreads and call
17479 gomp_team_end before adjusting threads_busy, if not nested
17480 afterwards, just set it to 1 non-atomically. Add ialias.
17481 (GOMP_parallel_start): Adjust gomp_team_start caller.
17482 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17483 * testsuite/libgomp.c/affinity-1.c: New test.
17484 * testsuite/libgomp.c/atomic-15.c: New test.
17485 * testsuite/libgomp.c/atomic-16.c: New test.
17486 * testsuite/libgomp.c/atomic-17.c: New test.
17487 * testsuite/libgomp.c/cancel-for-1.c: New test.
17488 * testsuite/libgomp.c/cancel-for-2.c: New test.
17489 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17490 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17491 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17492 * testsuite/libgomp.c/cancel-sections-1.c: New test.
17493 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17494 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17495 * testsuite/libgomp.c/depend-1.c: New test.
17496 * testsuite/libgomp.c/depend-2.c: New test.
17497 * testsuite/libgomp.c/depend-3.c: New test.
17498 * testsuite/libgomp.c/depend-4.c: New test.
17499 * testsuite/libgomp.c/for-1.c: New test.
17500 * testsuite/libgomp.c/for-1.h: New file.
17501 * testsuite/libgomp.c/for-2.c: New test.
17502 * testsuite/libgomp.c/for-2.h: New file.
17503 * testsuite/libgomp.c/for-3.c: New test.
17504 * testsuite/libgomp.c/pr58392.c: New test.
17505 * testsuite/libgomp.c/simd-1.c: New test.
17506 * testsuite/libgomp.c/simd-2.c: New test.
17507 * testsuite/libgomp.c/simd-3.c: New test.
17508 * testsuite/libgomp.c/simd-4.c: New test.
17509 * testsuite/libgomp.c/simd-5.c: New test.
17510 * testsuite/libgomp.c/simd-6.c: New test.
17511 * testsuite/libgomp.c/target-1.c: New test.
17512 * testsuite/libgomp.c/target-2.c: New test.
17513 * testsuite/libgomp.c/target-3.c: New test.
17514 * testsuite/libgomp.c/target-4.c: New test.
17515 * testsuite/libgomp.c/target-5.c: New test.
17516 * testsuite/libgomp.c/target-6.c: New test.
17517 * testsuite/libgomp.c/target-7.c: New test.
17518 * testsuite/libgomp.c/taskgroup-1.c: New test.
17519 * testsuite/libgomp.c/thread-limit-1.c: New test.
17520 * testsuite/libgomp.c/thread-limit-2.c: New test.
17521 * testsuite/libgomp.c/thread-limit-3.c: New test.
17522 * testsuite/libgomp.c/udr-1.c: New test.
17523 * testsuite/libgomp.c/udr-2.c: New test.
17524 * testsuite/libgomp.c/udr-3.c: New test.
17525 * testsuite/libgomp.c++/affinity-1.C: New test.
17526 * testsuite/libgomp.c++/atomic-10.C: New test.
17527 * testsuite/libgomp.c++/atomic-11.C: New test.
17528 * testsuite/libgomp.c++/atomic-12.C: New test.
17529 * testsuite/libgomp.c++/atomic-13.C: New test.
17530 * testsuite/libgomp.c++/atomic-14.C: New test.
17531 * testsuite/libgomp.c++/atomic-15.C: New test.
17532 * testsuite/libgomp.c++/cancel-for-1.C: New test.
17533 * testsuite/libgomp.c++/cancel-for-2.C: New test.
17534 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17535 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17536 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17537 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17538 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17539 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17540 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17541 * testsuite/libgomp.c++/cancel-test.h: New file.
17542 * testsuite/libgomp.c++/for-9.C: New test.
17543 * testsuite/libgomp.c++/for-10.C: New test.
17544 * testsuite/libgomp.c++/for-11.C: New test.
17545 * testsuite/libgomp.c++/simd-1.C: New test.
17546 * testsuite/libgomp.c++/simd-2.C: New test.
17547 * testsuite/libgomp.c++/simd-3.C: New test.
17548 * testsuite/libgomp.c++/simd-4.C: New test.
17549 * testsuite/libgomp.c++/simd-5.C: New test.
17550 * testsuite/libgomp.c++/simd-6.C: New test.
17551 * testsuite/libgomp.c++/simd-7.C: New test.
17552 * testsuite/libgomp.c++/simd-8.C: New test.
17553 * testsuite/libgomp.c++/target-1.C: New test.
17554 * testsuite/libgomp.c++/target-2.C: New test.
17555 * testsuite/libgomp.c++/target-2-aux.cc: New file.
17556 * testsuite/libgomp.c++/target-3.C: New test.
17557 * testsuite/libgomp.c++/taskgroup-1.C: New test.
17558 * testsuite/libgomp.c++/udr-1.C: New test.
17559 * testsuite/libgomp.c++/udr-2.C: New test.
17560 * testsuite/libgomp.c++/udr-3.C: New test.
17561 * testsuite/libgomp.c++/udr-4.C: New test.
17562 * testsuite/libgomp.c++/udr-5.C: New test.
17563 * testsuite/libgomp.c++/udr-6.C: New test.
17564 * testsuite/libgomp.c++/udr-7.C: New test.
17565 * testsuite/libgomp.c++/udr-8.C: New test.
17566 * testsuite/libgomp.c++/udr-9.C: New test.
17568 2013-09-20 Jakub Jelinek <jakub@redhat.com>
17571 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17574 2013-09-20 Alan Modra <amodra@gmail.com>
17576 * configure: Regenerate.
17578 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17580 * testsuite/libgomp.c/sections-2.c: New test.
17582 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
17584 * testsuite/libgomp.fortran/strassen.f90:
17585 Add dg-skip-if aarch64_tiny.
17587 2013-06-20 Iain Sandoe <iain@codesourcery.com>
17588 Cesar Philippidis <cesar@codesourcery.com>
17590 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17591 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17592 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17593 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17594 * testsuite/libgomp.graphite/graphite.exp: Likewise.
17595 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17596 Use dg-runtest rather than gfortran-dg-runtest.
17598 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
17600 * testsuite/libgomp.c/icv-2.c: Extend current handling of
17601 Linux-based x86 systems to cover all GNU systems.
17602 * testsuite/libgomp.c/lock-3.c: Likewise.
17603 * testsuite/libgomp.c/pr48591.c: Likewise.
17605 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
17607 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17608 GNU/Hurd, as done for Linux-based systems.
17610 * config/posix/ptrlock.h: Fix comment.
17612 2013-05-27 Tobias Burnus <burnus@net-b.de>
17615 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17616 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17617 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17618 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17619 omp_destroy_nest_lock): Correct arguments to match the one in
17621 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17622 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17623 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17624 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17626 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17628 * testsuite/libgomp.c/loop-13.c: New test.
17629 * testsuite/libgomp.c/loop-14.c: New test.
17630 * testsuite/libgomp.c/loop-15.c: New test.
17631 * testsuite/libgomp.c++/loop-13.C: New test.
17632 * testsuite/libgomp.c++/loop-14.C: New test.
17633 * testsuite/libgomp.c++/loop-15.C: New test.
17635 2013-02-06 Jakub Jelinek <jakub@redhat.com>
17637 PR middle-end/56217
17638 * testsuite/libgomp.c++/pr56217.C: New test.
17640 2013-02-01 Alan Modra <amodra@gmail.com>
17642 * task.c (GOMP_task, GOMP_taskwait): Comment.
17644 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17645 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17648 * config/linux/wait.h (do_spin): Use atomic load for addr.
17649 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17650 for intptr and ptrlock.
17651 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17654 2013-01-22 Alan Modra <amodra@gmail.com>
17658 * task.c (GOMP_task): Revert 2011-12-09 change.
17659 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17660 barrier to read task->children..
17661 (gomp_barrier_handle_tasks): ..and matching atomic store with
17662 release barrier here when setting parent->children to NULL.
17664 2013-01-16 Jakub Jelinek <jakub@redhat.com>
17665 Tobias Burnus <burnus@net-b.de>
17668 * testsuite/libgomp.fortran/fortran.exp: Use
17669 -fintrinsic-modules-path= instead of
17670 -fintrinsic-modules-path.
17672 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17674 Update copyright years.
17676 2012-12-19 Tobias Burnus <burnus@net-b.de>
17678 * testsuite/libgomp.fortran/fortran.exp: Set
17679 -fintrinsic-modules-path.
17681 2012-12-19 Tobias Burnus <burnus@net-b.de>
17683 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17684 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17686 2012-11-21 Jakub Jelinek <jakub@redhat.com>
17689 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17690 if pool had any threads_used.
17692 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17694 * testsuite/libgomp.c++/pr24455.C: Use
17695 -Wl,-undefined,dynamic_lookup on darwin.
17697 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
17699 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17701 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17703 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17705 2012-10-23 Ian Bolton <ian.bolton@arm.com>
17706 Jim MacArthur <jim.macarthur@arm.com>
17707 Marcus Shawcroft <marcus.shawcroft@arm.com>
17708 Nigel Stephens <nigel.stephens@arm.com>
17709 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17710 Richard Earnshaw <rearnsha@arm.com>
17711 Sofiane Naci <sofiane.naci@arm.com>
17712 Stephen Thomas <stephen.thomas@arm.com>
17713 Tejas Belagod <tejas.belagod@arm.com>
17714 Yufeng Zhang <yufeng.zhang@arm.com>
17716 * configure.tgt: Add AArch64.
17718 2012-10-04 Jason Merrill <jason@redhat.com>
17720 * testsuite/libgomp.c++/tls-init1.C: New.
17722 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
17724 * configure: Regenerated.
17726 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17728 * config/linux/mips/futex.h (sys_futex0): Change to static
17729 function with noinline, nomips16 attributes under MIPS16. Adjust
17730 asm statement to place 'li v0,SYS_futex' immediately before
17733 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17735 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17736 conflict with index.html on case-insensitive file systems.
17738 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17740 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17741 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17743 2012-07-02 Richard Guenther <rguenther@suse.de>
17744 Michael Matz <matz@suse.de>
17745 Tobias Grosser <tobias@grosser.es>
17746 Sebastian Pop <sebpop@gmail.com>
17748 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17749 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17750 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17751 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17753 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17755 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17757 2012-06-22 Richard Guenther <rguenther@suse.de>
17759 Merge from graphite branch
17760 2012-01-13 Tobias Grosser <tobias@grosser.es>
17762 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17763 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17765 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17767 PR middle-end/53580
17768 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17769 use GOMP_barrier () call instead.
17770 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17771 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17772 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17773 call GOMP_barrier instead.
17774 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17776 2012-06-06 Jakub Jelinek <jakub@redhat.com>
17779 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17780 argument to memset call.
17782 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17784 * configure: Regenerated.
17786 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17788 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17790 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17793 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17795 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17797 PR middle-end/52547
17798 * testsuite/libgomp.c/pr52547.c: New test.
17800 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17802 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17804 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17806 * configure.tgt (mips-sgi-irix6*): Remove.
17808 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17810 * configure.tgt (alpha*-dec-osf*): Remove.
17812 * config/osf/sem.h: Remove.
17813 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17815 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17817 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17819 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17822 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17823 Remove ENABLE_SYMVERS_SOL2.
17824 * configure: Regenerate.
17825 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17826 (PREPROCESS): New variable.
17827 (libgomp.ver): New target.
17828 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17829 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17830 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17832 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17833 * Makefile.in: Regenerate.
17835 2012-02-14 Walter Lee <walt@tilera.com>
17837 * configure.tgt: Handle tilegx and tilepro.
17838 * config/linux/tile/futex.h: New file.
17840 2012-02-08 Richard Guenther <rguenther@suse.de>
17842 PR tree-optimization/46886
17843 * testsuite/libgomp.c/pr46886.c: New testcase.
17845 2012-01-25 Matthias Klose <doko@ubuntu.com>
17847 * config/linux/arm: Remove empty directory.
17848 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17850 2011-12-09 Alan Modra <amodra@gmail.com>
17853 * task.c (GOMP_taskwait): Don't access task->children outside of
17854 task_lock mutex region.
17855 (GOMP_task): Likewise.
17857 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17860 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17862 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17863 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17864 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17865 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17866 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17868 2011-12-02 Alan Modra <amodra@gmail.com>
17870 * config/linux/affinity.c: Use atomic rather than sync builtin.
17871 * config/linux/lock.c: Likewise.
17872 * config/linux/ptrlock.h: Likewise.
17873 * config/linux/ptrlock.c: Likewise.
17874 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17875 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17876 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17877 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17878 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17879 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17880 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17881 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17882 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17883 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17885 2011-11-30 Alan Modra <amodra@gmail.com>
17888 * config/linux/bar.h: Use atomic rather than sync builtins.
17889 * config/linux/bar.c: Likewise. Add missing acquire
17890 synchronisation on generation field.
17891 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17894 2011-11-30 Alan Modra <amodra@gmail.com>
17896 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17897 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17898 * config/linux/mutex.h: Use atomic rather than sync builtins.
17899 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17900 * config/linux/omp-lock.h: Comment fix.
17901 * config/linux/arm/mutex.h: Delete.
17902 * config/linux/powerpc/mutex.h: Delete.
17903 * config/linux/ia64/mutex.h: Delete.
17904 * config/linux/mips/mutex.h: Delete.
17906 2011-11-30 Alan Modra <amodra@gmail.com>
17909 * config/linux/sem.h: Rewrite.
17910 * config/linux/sem.c: Rewrite.
17912 2011-11-28 Richard Henderson <rth@redhat.com>
17914 * libgomp.h (enum memmodel): New.
17916 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
17918 * configure: Regenerate.
17920 2011-10-10 Matthias Klose <doko@ubuntu.com>
17922 * config/posix95: Remove empty directory.
17924 2011-08-26 Jakub Jelinek <jakub@redhat.com>
17926 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17928 2011-08-19 Jakub Jelinek <jakub@redhat.com>
17931 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17932 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17934 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17936 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17938 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17941 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17943 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
17945 * config/linux/proc.h: New.
17946 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
17947 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
17948 (gomp_init_num_threads): Update call to cpuset_popcount.
17949 (get_num_procs): Ditto.
17950 * config/linux/affinity.c (gomp_init_affinity): Call
17951 gomp_cpuset_popcount.
17953 2011-08-02 Jakub Jelinek <jakub@redhat.com>
17957 * omp.h.in (omp_in_final): New prototype.
17958 * omp_lib.f90.in (omp_in_final): New interface.
17959 (omp_integer_kind, omp_logical_kind): Remove
17960 and replace all its uses in the module with 4.
17961 (openmp_version): Change to 201107.
17962 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17963 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17964 kind for the parameters.
17965 (omp_in_final): New external.
17966 (openmp_version): Change to 201107.
17967 * task.c (omp_in_final): New function.
17968 (gomp_init_task): Initialize final_task.
17969 (GOMP_task): Remove unused attribute from flags. Handle final
17971 (GOMP_taskyield): New function.
17972 (omp_in_final): Return true if if (false) or final (true) task
17973 or descendant of final (true).
17974 * fortran.c (omp_in_final_): New function.
17975 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17976 (GOMP_3.0): Export GOMP_taskyield.
17977 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17979 (parse_unsigned_long_list): New function.
17980 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
17981 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
17982 even if parse_affinity returned false.
17983 * config/linux/affinity.c (gomp_init_affinity): Handle
17984 gomp_cpu_affinity_len == 0.
17985 * libgomp_g.h (GOMP_taskyield): New prototype.
17986 * libgomp.h (struct gomp_task): Add final_task field.
17987 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17988 * team.c (gomp_team_start): Override new task's nthreads_var icv
17989 if list form OMP_NUM_THREADS has been used and it has value for
17990 the new nesting level.
17992 * testsuite/libgomp.c/atomic-11.c: New test.
17993 * testsuite/libgomp.c/atomic-12.c: New test.
17994 * testsuite/libgomp.c/atomic-13.c: New test.
17995 * testsuite/libgomp.c/atomic-14.c: New test.
17996 * testsuite/libgomp.c/reduction-6.c: New test.
17997 * testsuite/libgomp.c/task-5.c: New test.
17998 * testsuite/libgomp.c++/atomic-2.C: New test.
17999 * testsuite/libgomp.c++/atomic-3.C: New test.
18000 * testsuite/libgomp.c++/atomic-4.C: New test.
18001 * testsuite/libgomp.c++/atomic-5.C: New test.
18002 * testsuite/libgomp.c++/atomic-6.C: New test.
18003 * testsuite/libgomp.c++/atomic-7.C: New test.
18004 * testsuite/libgomp.c++/atomic-8.C: New test.
18005 * testsuite/libgomp.c++/atomic-9.C: New test.
18006 * testsuite/libgomp.c++/task-8.C: New test.
18007 * testsuite/libgomp.c++/reduction-4.C: New test.
18008 * testsuite/libgomp.fortran/allocatable7.f90: New test.
18009 * testsuite/libgomp.fortran/allocatable8.f90: New test.
18010 * testsuite/libgomp.fortran/crayptr3.f90: New test.
18011 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
18012 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
18013 * testsuite/libgomp.fortran/pointer1.f90: New test.
18014 * testsuite/libgomp.fortran/pointer2.f90: New test.
18015 * testsuite/libgomp.fortran/task4.f90: New test.
18017 2011-08-02 Tobias Burnus <burnus@net-b.de>
18019 * libgomp.texi: Update OpenMP spec references to 3.1.
18020 (omp_in_final,OMP_PROC_BIND): New sections.
18021 (OMP_NUM_THREADS): Document that the value can be now a list.
18022 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
18024 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
18026 * config/linux/x86/futex.h: Check __x86_64__ instead of
18029 2011-07-29 Jakub Jelinek <jakub@redhat.com>
18031 PR middle-end/49897
18032 PR middle-end/49898
18033 * testsuite/libgomp.c/pr49897-1.c: New test.
18034 * testsuite/libgomp.c/pr49897-2.c: New test.
18035 * testsuite/libgomp.c/pr49898-1.c: New test.
18036 * testsuite/libgomp.c/pr49898-2.c: New test.
18038 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
18040 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
18041 for ia32 instead of ilp32.
18043 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
18044 * testsuite/libgomp.c/atomic-6.c: Likewise.
18046 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
18048 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
18049 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
18051 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18054 * config/osf/sem.h: New file.
18055 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
18057 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18060 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
18063 2011-07-15 Jakub Jelinek <jakub@redhat.com>
18065 * config/linux/wait.h (do_spin): New inline, largely copied
18066 from do_wait, just don't do futex_wait here, instead return true if
18068 (do_wait): Implement using do_spin.
18069 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
18071 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18072 __sync_bool_compare_and_swap, pass the oldval to
18073 gomp_mutex_lock_slow.
18074 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
18075 If all mutex contenders are just spinning and not sleeping, don't
18076 change state to 2 unnecessarily. Optimize the loop when state has
18077 already become 2 to use just one atomic operation per loop instead
18079 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
18081 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18082 __sync_bool_compare_and_swap, pass the oldval to
18083 gomp_mutex_lock_slow.
18085 2011-06-22 Jakub Jelinek <jakub@redhat.com>
18088 * iter.c (gomp_iter_static_next): For chunk size 0
18089 only use n ceil/ nthreads size for the first
18090 n % nthreads threads in the team instead of
18091 all threads except for the last few ones which
18092 get less work or none at all.
18093 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
18094 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
18095 chunk argument, set run_sched_modifier to 0 for static
18096 resp. 1 for other kinds. If chunk argument is 0
18097 and not static, set value to 1.
18099 2011-05-19 Jakub Jelinek <jakub@redhat.com>
18102 * testsuite/libgomp.c++/pr49043.C: New test.
18105 * testsuite/libgomp.c++/pr48869.C: New test.
18107 2011-05-06 Jakub Jelinek <jakub@redhat.com>
18110 * fortran.c: Include limits.h.
18112 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
18114 (omp_set_num_threads_8_, omp_set_schedule_8_,
18115 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
18116 omp_get_team_size_8_): Use TO_INT macro.
18117 * testsuite/libgomp.fortran/pr48894.f90: New test.
18119 2011-04-13 Jakub Jelinek <jakub@redhat.com>
18121 PR middle-end/48591
18122 * testsuite/libgomp.c/pr48591.c: New test.
18124 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18127 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
18128 * configure: Regenerate.
18130 2011-02-27 Jakub Jelinek <jakub@redhat.com>
18133 * testsuite/libgomp.fortran/task3.f90: New test.
18135 2011-02-24 Tobias Burnus <burnus@net-b.de>
18137 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
18139 2011-02-23 Jakub Jelinek <jakub@redhat.com>
18142 * libgomp.texi (omp_get_wtime): Don't say time in the past
18143 must be Unix Epoch.
18145 2011-02-18 Jakub Jelinek <jakub@redhat.com>
18148 * testsuite/libgomp.fortran/fortran.exp: Check for both
18149 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
18150 but $blddir != "", still append ${blddir}/${lang_library_path}
18151 to ld_library_path.
18153 2011-02-16 Tobias Burnus <burnus@net-b.de>
18156 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
18157 of libquadmath.a before adding its libpath to ldflags.
18159 2011-02-14 Jakub Jelinek <jakub@redhat.com>
18162 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
18163 to FUTEX_WAIT futex syscall.
18164 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
18166 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18168 * configure: Regenerate.
18170 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
18173 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
18175 2011-01-16 Gerald Pfeifer
18177 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
18179 2010-12-14 Jakub Jelinek <jakub@redhat.com>
18182 * libgomp.fortran/allocatable6.f90: New test.
18184 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18186 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
18187 * configure: Regenerate.
18189 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
18193 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
18194 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
18195 * aclocal.m4: Regenerate.
18196 * configure: Regenerate.
18197 * Makefile.in: Regenerate.
18198 * testsuite/Makefile.in: Regenerate.
18200 2010-12-02 Jakub Jelinek <jakub@redhat.com>
18203 * libgomp.fortran/pr46753.f90: New test.
18206 * env.c (initialize_env): Default to spin count 300000
18207 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
18211 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
18212 at the end if sync builtins aren't supported.
18214 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18216 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
18218 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18220 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
18222 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
18224 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
18226 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18227 Tobias Burnus <burnus@net-b.de>
18231 * configure: Regenerate.
18233 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
18235 * config/linux/futex.h: New.
18236 * config/linux/arm/mutex.h: New.
18237 * configure.tgt (arm*-*-linux*): Add config path.
18239 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
18241 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18243 2010-09-23 Tobias Burnus <burnus@net-b.de>
18245 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
18246 Change Fortran datatype to LOGICAL.
18247 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
18248 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
18250 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18252 * configure: Regenerate.
18254 2010-07-26 Jakub Jelinek <jakub@redhat.com>
18256 * libgomp.texi: Add function keyword to a couple of Fortran
18257 interfaces, use integer instead of int for Fortran.
18259 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
18261 * libgomp.texi: Fix spelling and pasto problems throughout.
18262 Adjust prototypes to match code.
18264 2010-07-24 Tobias Burnus <burnus@net-b.de>
18266 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
18267 silence -fwhole-file warning.
18269 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18271 * configure.tgt (*-*-solaris2.[56]*): Removed.
18273 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18275 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
18276 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
18277 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
18278 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
18279 targetting solaris2*.
18280 * configure: Regenerate.
18281 * config.h.in: Regenerate.
18283 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
18284 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
18285 Add libgomp_version_dep.
18286 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
18288 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
18289 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
18290 * Makefile.in: Regenerate.
18292 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
18293 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18294 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
18295 to common block, protected by
18296 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18298 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
18300 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
18302 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
18305 * configure: Regenerate.
18307 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18310 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
18311 * configure: Regenerate.
18312 * Makefile.in: Regenerate.
18313 * testsuite/Makefile.in: Regenerate.
18315 2010-04-26 Jakub Jelinek <jakub@redhat.com>
18318 * testsuite/libgomp.c/pr43893.c: New test.
18319 * testsuite/libgomp.c++/pr43893.C: New test.
18321 2010-04-21 Jakub Jelinek <jakub@redhat.com>
18323 PR middle-end/43570
18324 * testsuite/libgomp.fortran/vla8.f90: New test.
18326 2010-04-20 Jakub Jelinek <jakub@redhat.com>
18329 * config/linux/affinity.c (gomp_init_affinity): Decrease
18330 gomp_available_cpus if affinity mask confines the process to fewer
18332 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
18333 non-NULL, just return gomp_available_cpus.
18336 * sections.c (gomp_sections_init): Initialize ws->mode.
18338 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18340 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
18341 not unused bar variable.
18342 * configure: Regenerate.
18344 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18346 * Makefile.in: Regenerate.
18347 * aclocal.m4: Regenerate.
18348 * testsuite/Makefile.in: Regenerate.
18350 2010-03-22 Jakub Jelinek <jakub@redhat.com>
18353 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
18354 (initialize_env): Adjust callers.
18355 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
18356 when the argument is 0.
18358 * testsuite/libgomp.c/pr42942.c: New test.
18360 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
18362 PR middle-end/42644
18363 PR middle-end/42130
18364 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18365 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
18367 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18369 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
18370 * testsuite/libgomp.c++/task-6.C: Likewise.
18372 2010-01-28 Steve Ellcey <sje@cup.hp.com>
18374 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18376 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
18378 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18379 * configure: Regenerate.
18381 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18384 * testsuite/libgomp.fortran/allocatable5.f90: New test.
18386 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
18388 * configure.ac: Test for executability of GFORTRAN.
18389 * configure: Regenerate.
18391 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18393 * configure: Regenerate.
18395 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18398 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18400 2010-01-03 Richard Guenther <rguenther@suse.de>
18402 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18404 2009-12-23 Sebastian Pop <sebpop@gmail.com>
18406 * testsuite/libgomp.graphite/pr4118.c: New.
18408 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18410 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18411 for darwin, protect the test with require-effective-target tls_runtime.
18412 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18414 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18417 * testsuite/lib/libgomp.exp: Provide -B options to allow for
18418 link spec %s substitutions for static libraries.
18420 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
18423 * libgomp.graphite/force-parallel-2.c: Reduce array size.
18425 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18427 * Makefile.in: Regenerate.
18428 * configure: Regenerate.
18429 * testsuite/Makefile.in: Regenerate.
18431 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
18433 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18434 settings for LC_ALL and LANG.
18436 2009-11-25 Jakub Jelinek <jakub@redhat.com>
18439 * testsuite/libgomp.fortran/pr42162.f90: New test.
18441 2009-11-13 Jakub Jelinek <jakub@redhat.com>
18443 PR middle-end/42029
18444 * testsuite/libgomp.c/pr42029.c: New test.
18446 2009-10-26 Jakub Jelinek <jakub@redhat.com>
18448 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18449 *s. Accept ld version without text in ()s.
18450 * configure: Regenerated.
18452 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
18454 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18456 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18459 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18460 or a hyphen (happens with fortran language disabled).
18461 * configure: Regenerate.
18463 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18465 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18466 use sed script portable to Solaris /bin/sed for extracting ld
18468 * configure: Regenerate.
18470 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
18472 * testsuite/libgomp.graphite/bounds.c: New test.
18474 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18476 * Makefile.am (libgomp_la_LINK): New.
18477 * Makefile.in: Regenerate.
18479 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18481 * configure.ac (AC_PREREQ): Bump to 2.64.
18483 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18485 * Makefile.am (install-html, install-pdf): Remove.
18486 * Makefile.in: Regenerate.
18488 * Makefile.in: Regenerate.
18489 * aclocal.m4: Regenerate.
18490 * config.h.in: Regenerate.
18491 * configure: Regenerate.
18492 * testsuite/Makefile.in: Regenerate.
18494 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18496 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18497 * Makefile.in: Regenerate.
18499 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
18501 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18502 * Makefile.in: Regenerate.
18504 2009-08-19 Tobias Burnus <burnus@net-b.de>
18507 omp_lib.h.in: Fix -std=f95 errors.
18509 2009-08-14 David Edelsohn <edelsohn@gnu.org>
18511 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18512 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18513 * testsuite/libgomp.graphite/graphite.exp: New.
18515 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
18517 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18520 2009-08-04 David Daney <ddaney@caviumnetworks.com>
18522 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18523 needed memory barrier semantics.
18524 * config/linux/mips/mutex.h: New file.
18526 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18528 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18530 2009-07-16 Joseph Myers <joseph@codesourcery.com>
18532 * configure: Regenerate.
18534 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
18539 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18540 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18541 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18543 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18545 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18546 options when choosing a multilib.
18548 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
18550 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18551 ld_library_path. Use add_path. Add just find_libgcc_s to
18552 ld_library_path, not every libgcc multilib directory.
18553 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18554 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18555 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18557 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18559 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
18561 * Makefile.am (LTLDFLAGS): Define.
18563 * Makefile.in: Regenerate.
18565 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
18568 * testsuite/libgomp.fortran/fortran.exp: Don't link with
18569 libgfortranbegin, check existence of libgfortran.a instead of
18570 libgfortranbegin.a.
18572 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18575 * team.c (gomp_thread_start): Destroy thr->release semaphore.
18576 (gomp_free_pool_helper): Likewise.
18578 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
18579 Jakub Jelinek <jakub@redhat.com>
18582 * testsuite/libgomp.fortran/workshare2.f90: New test.
18584 2009-04-09 Nick Clifton <nickc@redhat.com>
18586 * iter.c: Change copyright header to refer to version 3 of the
18587 GNU General Public License with version 3.1 of the GCC Runtime
18588 Library Exception and to point readers at the COPYING3 and
18589 COPYING3.RUNTIME files and the FSF's license web page.
18590 * alloc.c: Likewise.
18591 * barrier.c: Likewise.
18592 * config/bsd/proc.c: Likewise.
18593 * config/linux/affinity.c: Likewise.
18594 * config/linux/alpha/futex.h: Likewise.
18595 * config/linux/bar.c: Likewise.
18596 * config/linux/bar.h: Likewise.
18597 * config/linux/ia64/futex.h: Likewise.
18598 * config/linux/ia64/mutex.h: Likewise.
18599 * config/linux/lock.c: Likewise.
18600 * config/linux/mips/futex.h: Likewise.
18601 * config/linux/mutex.c: Likewise.
18602 * config/linux/mutex.h: Likewise.
18603 * config/linux/powerpc/futex.h: Likewise.
18604 * config/linux/proc.c: Likewise.
18605 * config/linux/ptrlock.c: Likewise.
18606 * config/linux/ptrlock.h: Likewise.
18607 * config/linux/s390/futex.h: Likewise.
18608 * config/linux/sem.c: Likewise.
18609 * config/linux/sem.h: Likewise.
18610 * config/linux/sparc/futex.h: Likewise.
18611 * config/linux/wait.h: Likewise.
18612 * config/linux/x86/futex.h: Likewise.
18613 * config/mingw32/proc.c: Likewise.
18614 * config/mingw32/time.c: Likewise.
18615 * config/posix/affinity.c: Likewise.
18616 * config/posix/bar.c: Likewise.
18617 * config/posix/bar.h: Likewise.
18618 * config/posix/lock.c: Likewise.
18619 * config/posix/mutex.h: Likewise.
18620 * config/posix/proc.c: Likewise.
18621 * config/posix/ptrlock.h: Likewise.
18622 * config/posix/sem.c: Likewise.
18623 * config/posix/sem.h: Likewise.
18624 * config/posix/time.c: Likewise.
18625 * config/posix95/lock.c: Likewise.
18626 * critical.c: Likewise.
18628 * error.c: Likewise.
18629 * fortran.c: Likewise.
18630 * iter_ull.c: Likewise.
18631 * libgomp.h: Likewise.
18632 * libgomp_f.h.in: Likewise.
18633 * libgomp_g.h: Likewise.
18634 * loop.c: Likewise.
18635 * loop_ull.c: Likewise.
18636 * omp.h.in: Likewise.
18637 * omp_lib.f90.in: Likewise.
18638 * omp_lib.h.in: Likewise.
18639 * ordered.c: Likewise.
18640 * parallel.c: Likewise.
18641 * sections.c: Likewise.
18642 * single.c: Likewise.
18643 * task.c: Likewise.
18644 * team.c: Likewise.
18645 * work.c: Likewise.
18647 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18649 * testsuite/config/default.exp: Change copyright header to refer to
18650 version 3 of the GNU General Public License and to point readers
18651 at the COPYING3 file and the FSF's license web page.
18653 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18655 PR middle-end/39573
18656 * libgomp.c++/pr39573.C: New test.
18658 2009-04-01 Jakub Jelinek <jakub@redhat.com>
18661 * testsuite/libgomp.c/pr39591-1.c: New test.
18662 * testsuite/libgomp.c/pr39591-2.c: New test.
18663 * testsuite/libgomp.c/pr39591-3.c: New test.
18665 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
18667 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18668 * testsuite/libgomp.c/atomic-6.c: Ditto.
18670 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18673 * testsuite/libgomp.c/loop-12.c: New test.
18674 * testsuite/libgomp.c/loop-11.c: New test.
18675 * testsuite/libgomp.c++/loop-11.C: New test.
18676 * testsuite/libgomp.c++/loop-12.C: New test.
18677 * testsuite/libgomp.c++/for-8.C: New test.
18679 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18681 * configure: Regenerate.
18683 2009-02-11 Jakub Jelinek <jakub@redhat.com>
18685 PR middle-end/39154
18686 * testsuite/libgomp.c/pr39154.c: New test.
18688 2009-01-30 Ian Lance Taylor <iant@google.com>
18690 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18691 libgomp_ld_is_gold. Get gold version number.
18692 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18693 * configure: Rebuild.
18695 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18697 * testsuite/lib/libgomp.exp: Add -B option for targets that
18698 use libgfortran.a%s in their specs.
18700 2009-01-07 Jakub Jelinek <jakub@redhat.com>
18703 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18704 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18705 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18706 * configure: Regenerated.
18707 * config.h.in: Likewise.
18709 2008-12-28 Jakub Jelinek <jakub@redhat.com>
18712 * testsuite/libgomp.c/pr38650.c: New test.
18713 * testsuite/libgomp.c++/pr38650.C: New test.
18715 2008-12-27 Jakub Jelinek <jakub@redhat.com>
18717 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18719 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
18721 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18723 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18725 * configure: Regenerate.
18727 2008-12-08 Jakub Jelinek <jakub@redhat.com>
18729 PR middle-end/36802
18730 * testsuite/libgomp.c/pr36802-1.c: New test.
18731 * testsuite/libgomp.c/pr36802-2.c: New test.
18732 * testsuite/libgomp.c/pr36802-3.c: New test.
18734 2008-12-01 Janis Johnson <janis187@us.ibm.com>
18737 * config/linux/powerpc/mutex.h: New.
18739 2008-12-01 Jakub Jelinek <jakub@redhat.com>
18742 * testsuite/libgomp.c++/for-7.C: New test.
18745 * testsuite/libgomp.c++/for-6.C: New test.
18747 2008-11-26 Janis Johnson <janis187@us.ibm.com>
18750 * testsuite/lib/libgomp.exp: Include new timeout library files.
18751 (libgomp_target_compile): Set timeout value from new proc.
18753 2008-11-13 Steve Ellcey <sje@cup.hp.com>
18756 * config/linux/ia64/mutex.h: New.
18758 2008-11-04 Tobias Burnus <burnus@net-b.de>
18761 * libgomp.texi (Runtime library routines, environment variables):
18762 Update for OpenMP version 3.0.
18764 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18765 Steve Ellcey <sje@cup.hp.com>
18767 * configure: Regenerate for new libtool.
18768 * Makefile.in: Ditto.
18769 * testsuite/Makefile.in: Ditto.
18771 2008-09-19 Jakub Jelinek <jakub@redhat.com>
18772 Andreas Tobler <a.tobler@schweiz.org>
18774 * config/bsd/proc.c: New file.
18775 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18776 * configure.ac: Check for header <sys/sysctl.h>
18777 * configure: Regenerate.
18778 * config.h.in: Likewise.
18780 2008-09-05 Janis Johnson <janis187@us.ibm.com>
18782 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18784 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18786 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18787 * Makefile.in: Regenerated.
18788 * testsuite/Makefile.in: Regenerated.
18790 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
18792 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18793 depend on blddir if blddir exists.
18794 (libgomp_target_compile): Likewise.
18795 * testsuite/libgomp.c++/c++.exp: Likewise.
18796 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18798 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18800 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18801 Do not list GPL as Invariant Section.
18803 2008-07-28 Ilie Garbacea <ilie@mips.com>
18804 Chao-ying Fu <fu@mips.com>
18806 * configure.tgt: Enable futex for MIPS.
18807 * config/linux/mips/futex.h: New file.
18809 2008-07-16 Jakub Jelinek <jakub@redhat.com>
18811 * team.c (gomp_team_end): Free team immediately if it has
18814 2008-07-08 David Edelsohn <edelsohn@gnu.org>
18816 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18817 * testsuite/libgomp.fortran/fortran.exp: Same.
18818 * testsuite/libgomp.c/c.exp: Same.
18819 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18820 directory to library path first.
18822 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18824 * env.c (parse_stacksize): Add cast to avoid warning.
18825 (parse_spincount): Likewise.
18827 2008-06-27 Jakub Jelinek <jakub@redhat.com>
18829 * testsuite/libgomp.c/loop-10.c: New test.
18830 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18831 * libgomp.c++/loop-6.C (main): Likewise.
18834 * testsuite/libgomp.c/debug-1.c: New test.
18836 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18838 * testsuite/libgomp.c/nqueens-1.c: New test.
18841 * testsuite/libgomp.c++/task-7.C: New function.
18843 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18845 * configure: Regenerate.
18847 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18849 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18850 mutex when HAVE_SYNC_BUILTINS isn't defined.
18852 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18854 * libgomp.texi (omp_test_lock): Fix typo.
18856 2008-06-12 Tobias Burnus <burnus@net-b.de>
18858 * omp_lib.f90.in: Add "implicit none".
18860 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18862 PR middle-end/36506
18863 * testsuite/libgomp.c/reduction-5.c: New test.
18865 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18867 * libgomp.h (struct gomp_task): Add in_tied_task field.
18868 * task.c (gomp_init_task): Initialize it.
18869 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18870 unconditionally. Don't call gomp_team_barrier_wake if
18871 current task is implicit or if(0) from implicit and number of
18872 running tasks is equal to nthreads - 1.
18875 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18876 omp_get_team_size_8): Fix pastos.
18879 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18880 * configure: Regenerated.
18881 * config.h.in: Regenerated.
18882 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18885 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18888 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18889 (GOMP_loop_ull_dynamic_start): Likewise.
18890 (GOMP_loop_ull_guided_start): Likewise.
18891 (GOMP_loop_ull_ordered_static_start): Likewise.
18892 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18893 (GOMP_loop_ull_ordered_guided_start): Likewise.
18895 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18896 Richard Henderson <rth@redhat.com>
18897 Ulrich Drepper <drepper@redhat.com>
18898 Jakob Blomer <jakob.blomer@ira.uka.de>
18900 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18901 Substitute also OMP_*LOCK_25*.
18902 * configure: Regenerated.
18903 * config.h.in: Regenerated.
18904 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18905 ptrlock.c and task.c.
18906 * Makefile.in: Regenerated.
18907 * testsuite/Makefile.in: Regenerated.
18908 * task.c: New file.
18909 * loop_ull.c: New file.
18910 * iter_ull.c: New file.
18911 * libgomp.h: Include ptrlock.h.
18912 (enum gomp_task_kind): New type.
18913 (struct gomp_team): Add task_lock, task_queue, task_count,
18914 task_running_count, single_count fields. Add
18915 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18916 Remove work_share_lock, generation_mask,
18917 oldest_live_gen, num_live_gen and init_work_shares fields, add
18918 work work_share_list_alloc, work_share_list_free and work_share_chunk
18919 fields. Change work_shares from pointer to pointers into an array.
18920 Change ordered_release field into gomp_sem_t ** from flexible array
18921 member. Add implicit_task and initial_work_shares fields.
18922 Move close to the end of the struct.
18923 (struct gomp_team_state): Add single_count, last_work_share,
18924 active_level and level fields, remove work_share_generation.
18925 (gomp_barrier_handle_tasks): New prototype.
18926 (gomp_finish_task): New inline function.
18927 (struct gomp_work_share): Move chunk_size, end, incr into
18928 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18929 next_ll fields. Reshuffle fields. Add next_alloc,
18930 next_ws, next_free and inline_ordered_team_ids fields, change
18931 ordered_team_ids into pointer from flexible array member.
18932 Add mode field. Put lock and next into a different cache line
18933 from most of the write-once fields.
18934 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18935 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18936 gomp_iter_ull_guided_next): New prototypes.
18937 (gomp_new_icv): New prototype.
18938 (struct gomp_thread): Add thread_pool and task fields.
18939 (struct gomp_thread_pool): New type.
18940 (gomp_new_team): New prototype.
18941 (gomp_team_start): Change type of last argument.
18942 (gomp_new_work_share): Removed.
18943 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18944 (gomp_work_share_init_done): New static inline.
18945 (gomp_throttled_spin_count_var, gomp_available_cpus,
18946 gomp_managed_threads): New extern decls.
18947 (gomp_init_task): New prototype.
18948 (gomp_spin_count_var): New extern var decl.
18949 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18950 or no alias support, or if not PIC.
18951 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18952 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18953 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18954 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18955 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18956 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18957 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18958 gomp_test_nest_lock_25): New prototypes.
18959 (omp_lock_symver, strong_alias): Define.
18960 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18962 (gomp_end_task): New.
18963 (struct gomp_task_icv, gomp_global_icv): New.
18964 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18965 (struct gomp_task): New.
18966 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18967 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18969 (gomp_schedule_type): Reorder enum to match
18971 * team.c (struct gomp_thread_start_data): Add thread_pool and task
18973 (gomp_thread_start): Add gomp_team_barrier_wait call.
18974 For non-nested case remove clearing of docked thread thr fields.
18975 Use pool fields instead of global gomp_* variables. Use
18976 gomp_barrier_wait_last when needed. Initialize ts.active_level.
18977 Create tasks for each member thread.
18978 (free_team): Only destroy team barrier, task_lock here and free it.
18979 (gomp_free_thread): Free last_team if non-NULL.
18980 (gomp_team_end): Call gomp_team_barrier_wait instead of
18981 gomp_barrier_wait. For nested case call one extra
18982 gomp_barrier_wait. Move here some destruction from free_team.
18983 Call free_team on pool->last_team if any, rather than freeing
18984 current team. Destroy work_share_list_free_lock ifndef
18985 HAVE_SYNC_BUILTINS.
18986 (gomp_new_icv): New function.
18987 (gomp_threads, gomp_threads_size, gomp_threads_used,
18988 gomp_threads_dock): Removed.
18989 (gomp_thread_destructor): New variable.
18990 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18992 (gomp_team_start): Create new pool if current thread doesn't have
18993 one. Use pool fields instead of global gomp_* variables.
18994 Initialize thread_pool field for new threads. Clear single_count.
18995 Change last argument from ws to team, don't create
18996 new team, set ts.work_share to &team->work_shares[0] and clear
18997 ts.last_work_share. Don't clear ts.work_share_generation.
18998 If number of threads changed, adjust atomically gomp_managed_threads.
18999 Use gomp_init_task instead of gomp_new_task,
19000 set thr->task to the corresponding implicit_task array entry.
19001 Create tasks for each member thread. Initialize ts.level.
19002 (initialize_team): Call pthread_key_create on
19003 gomp_thread_destructor.
19004 (team_destructor): New function.
19005 (new_team): Removed.
19006 (gomp_new_team): New function.
19007 (free_team): Free gomp_work_share blocks chained through next_alloc,
19008 instead of freeing work_shares and destroying work_share_lock.
19009 (gomp_team_end): Call gomp_fini_work_share. If number of threads
19010 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
19011 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
19012 of gomp_barrier_wait.
19013 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
19014 instead of gomp_barrier_wait. Call gomp_work_share_init_done
19015 if gomp_work_share_start returned true. Don't unlock ws->lock.
19016 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
19017 of gomp_barrier_wait.
19018 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
19019 gomp_work_share_init_done if gomp_work_share_start returned true.
19020 Don't unlock ws->lock.
19021 * work.c: Include stddef.h.
19022 (free_work_share): Use work_share_list_free_lock instead
19023 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
19024 Call gomp_fini_work_share and then either free ws if orphaned, or
19025 put it into work_share_list_free list of the current team.
19026 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
19028 (gomp_work_share_start, gomp_work_share_end,
19029 gomp_work_share_end_nowait): Rewritten.
19030 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
19031 (openmp_version): Set to 200805.
19032 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19033 omp_sched_guided, omp_sched_auto): New parameters.
19034 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19035 omp_set_max_active_levels, omp_get_max_active_levels,
19036 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19037 omp_get_active_level): New interfaces.
19038 * omp_lib.h.in (openmp_version): Set to 200805.
19039 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19040 omp_sched_guided, omp_sched_auto): New parameters.
19041 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19042 omp_set_max_active_levels, omp_get_max_active_levels,
19043 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19044 omp_get_active_level): New externals.
19045 * loop.c: Include limits.h.
19046 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
19048 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
19049 Likewise. Use gomp_icv.
19050 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
19051 ts.static_trip here.
19052 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
19053 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
19054 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
19055 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
19056 don't unlock ws->lock, otherwise lock it.
19057 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
19058 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
19059 (gomp_parallel_loop_start): Call gomp_new_team instead of
19060 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
19061 Adjust gomp_team_start caller. Pass 0 as second argument to
19062 gomp_resolve_num_threads.
19063 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
19064 If adding ws->chunk_size nthreads + 1 times after end won't
19065 overflow, set ws->mode to 1.
19066 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
19067 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
19068 GOMP_loop_ull_ordered_static_start,
19069 GOMP_loop_ull_ordered_dynamic_start,
19070 GOMP_loop_ull_ordered_guided_start,
19071 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
19072 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
19073 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
19074 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
19075 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
19077 * libgomp.map: Export lock routines also @@OMP_2.0.
19078 (GOMP_loop_ordered_dynamic_first,
19079 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
19080 GOMP_loop_ordered_static_first): Remove.
19081 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
19082 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
19083 GOMP_loop_ull_ordered_dynamic_next,
19084 GOMP_loop_ull_ordered_dynamic_start,
19085 GOMP_loop_ull_ordered_guided_next,
19086 GOMP_loop_ull_ordered_guided_start,
19087 GOMP_loop_ull_ordered_runtime_next,
19088 GOMP_loop_ull_ordered_runtime_start,
19089 GOMP_loop_ull_ordered_static_next,
19090 GOMP_loop_ull_ordered_static_start,
19091 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
19092 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
19093 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
19094 (omp_set_schedule, omp_get_schedule,
19095 omp_get_thread_limit, omp_set_max_active_levels,
19096 omp_get_max_active_levels, omp_get_level,
19097 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
19098 omp_set_schedule_, omp_set_schedule_8_,
19099 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19100 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19101 omp_get_max_active_levels_, omp_get_level_,
19102 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19103 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19104 New exports @@OMP_3.0.
19105 * omp.h.in (omp_sched_t): New type.
19106 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19107 omp_set_max_active_levels, omp_get_max_active_levels,
19108 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19109 omp_get_active_level): New prototypes.
19110 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
19111 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
19112 gomp_thread_limit_var, gomp_remaining_threads_count,
19113 gomp_remaining_threads_lock): New variables.
19114 (parse_spincount): New function.
19115 (initialize_env): Call gomp_init_num_threads unconditionally.
19116 Initialize gomp_available_cpus. Call parse_spincount,
19117 initialize gomp_{,throttled_}spin_count_var
19118 depending on presence and value of OMP_WAIT_POLICY and
19119 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
19120 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
19121 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
19122 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
19123 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
19124 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19125 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19126 (gomp_global_icv): New.
19127 (parse_schedule): Use it. Parse "auto".
19128 (omp_set_num_threads): Use gomp_icv.
19129 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
19131 (omp_get_max_threads): Move from parallel.c.
19132 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19133 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
19135 (parse_stacksize, parse_wait_policy): New functions.
19136 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
19137 both wrappers for compatibility and new locks.
19138 (omp_set_schedule, omp_get_schedule,
19139 omp_get_thread_limit, omp_set_max_active_levels,
19140 omp_get_max_active_levels, omp_get_level,
19141 omp_get_ancestor_thread_num, omp_get_team_size,
19142 omp_get_active_level): New ialias_redirect.
19143 (omp_set_schedule_, omp_set_schedule_8_,
19144 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19145 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19146 omp_get_max_active_levels_, omp_get_level_,
19147 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19148 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19150 * parallel.c: Include limits.h.
19151 (gomp_resolve_num_threads): Add count argument. Rewritten.
19152 (GOMP_parallel_start): Call gomp_new_team and pass that as last
19153 argument to gomp_team_start. Pass 0 as second argument to
19154 gomp_resolve_num_threads.
19155 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
19156 if gomp_thread_limit_var != ULONG_MAX.
19157 (omp_in_parallel): Implement using ts.active_level.
19158 (omp_get_max_threads): Move to env.c.
19159 (omp_get_level, omp_get_ancestor_thread_num,
19160 omp_get_team_size, omp_get_active_level): New functions,
19162 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
19163 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
19164 gomp_iter_dynamic_next instead of the _locked variant and don't take
19165 lock around it, otherwise acquire it before calling
19166 gomp_iter_dynamic_next_locked.
19167 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
19168 gomp_iter_dynamic_next instead of the _locked variant and don't take
19170 (GOMP_parallel_sections_start): Call gomp_new_team instead of
19171 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
19172 Adjust gomp_team_start caller. Pass count as second argument to
19173 gomp_resolve_num_threads, don't adjust num_threads after the call.
19175 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
19176 ws->chunk_size by incr.
19177 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
19179 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
19181 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
19182 (omp_check_defines): Check even the compat defines.
19183 * config/linux/ptrlock.c: New file.
19184 * config/linux/ptrlock.h: New file.
19185 * config/linux/wait.h: New file.
19186 * config/posix/ptrlock.c: New file.
19187 * config/posix/ptrlock.h: New file.
19188 * config/linux/bar.h (gomp_team_barrier_wait,
19189 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19190 (gomp_team_barrier_set_task_pending,
19191 gomp_team_barrier_clear_task_pending,
19192 gomp_team_barrier_set_waiting_for_tasks,
19193 gomp_team_barrier_waiting_for_tasks,
19194 gomp_team_barrier_done): New inlines.
19195 (gomp_barrier_t): Rewritten.
19196 (gomp_barrier_state_t): New typedef.
19197 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
19198 gomp_barrier_wait_start): Rewritten.
19199 (gomp_barrier_wait_end): Change second argument to
19200 gomp_barrier_state_t.
19201 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19203 * config/linux/bar.c: Include wait.h instead of libgomp.h and
19205 (gomp_barrier_wait_end): Rewritten.
19206 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19207 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
19208 * config/posix/bar.h (gomp_barrier_t): Add generation field.
19209 (gomp_barrier_state_t): New typedef.
19210 (gomp_team_barrier_wait,
19211 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19212 (gomp_barrier_wait_start): Or all but low 2 bits from generation
19213 into the return value. Return gomp_barrier_state_t.
19214 (gomp_team_barrier_set_task_pending,
19215 gomp_team_barrier_clear_task_pending,
19216 gomp_team_barrier_set_waiting_for_tasks,
19217 gomp_team_barrier_waiting_for_tasks,
19218 gomp_team_barrier_done): New inlines.
19219 (gomp_barrier_wait_end): Change second argument to
19220 gomp_barrier_state_t.
19221 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19223 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
19224 (gomp_barrier_wait_end): Change second argument to
19225 gomp_barrier_state_t.
19226 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19227 gomp_team_barrier_wake): New functions.
19228 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
19230 (gomp_futex_wake, gomp_futex_wait): New variables.
19231 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
19232 * config/linux/lock.c: Rewrite to make locks task owned,
19233 for backwards compatibility provide the old entrypoints
19234 if symbol versioning. Include wait.h instead of libgomp.h and
19236 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
19237 * config/posix95/lock.c: Rewrite to make locks task owned,
19238 for backwards compatibility provide the old entrypoints
19239 if symbol versioning.
19240 * config/posix/lock.c: Rewrite to make locks task owned,
19241 for backwards compatibility provide the old entrypoints
19242 if symbol versioning.
19243 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
19244 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
19245 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
19246 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19247 (sys_futex0): Return error code.
19248 (futex_wake, futex_wait): If ENOSYS was returned, clear
19249 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19250 (cpu_relax, atomic_write_barrier): New static inlines.
19251 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19252 (futex_wake, futex_wait): If ENOSYS was returned, clear
19253 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19254 (cpu_relax, atomic_write_barrier): New static inlines.
19255 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19256 (sys_futex0): Return error code.
19257 (futex_wake, futex_wait): If ENOSYS was returned, clear
19258 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19259 (cpu_relax, atomic_write_barrier): New static inlines.
19260 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19261 (sys_futex0): Return error code.
19262 (futex_wake, futex_wait): If ENOSYS was returned, clear
19263 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19264 (cpu_relax, atomic_write_barrier): New static inlines.
19265 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19266 (sys_futex0): Return error code.
19267 (futex_wake, futex_wait): If ENOSYS was returned, clear
19268 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19269 (cpu_relax, atomic_write_barrier): New static inlines.
19270 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19271 (sys_futex0): Return error code.
19272 (futex_wake, futex_wait): If ENOSYS was returned, clear
19273 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19274 (cpu_relax, atomic_write_barrier): New static inlines.
19275 * config/linux/sem.c: Include wait.h instead of libgomp.h and
19277 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
19278 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
19279 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
19281 (omp_nest_lock_t): Change owner into void *, add lock field.
19282 * config/posix95/omp-lock.h: Include semaphore.h.
19283 (omp_lock_25_t, omp_nest_lock_25_t): New types.
19284 (omp_lock_t): Use sem_t instead of mutex if semaphores
19286 (omp_nest_lock_t): Likewise. Change owner to void *.
19287 * config/posix/omp-lock.h: Include semaphore.h.
19288 (omp_lock_25_t, omp_nest_lock_25_t): New types.
19289 (omp_lock_t): Use sem_t instead of mutex if semaphores
19291 (omp_nest_lock_t): Likewise. Add owner field.
19293 2008-06-06 Jakub Jelinek <jakub@redhat.com>
19295 * testsuite/libgomp.c/collapse-1.c: New test.
19296 * testsuite/libgomp.c/collapse-2.c: New test.
19297 * testsuite/libgomp.c/collapse-3.c: New test.
19298 * testsuite/libgomp.c/icv-1.c: New test.
19299 * testsuite/libgomp.c/icv-2.c: New test.
19300 * testsuite/libgomp.c/lib-2.c: New test.
19301 * testsuite/libgomp.c/lock-1.c: New test.
19302 * testsuite/libgomp.c/lock-2.c: New test.
19303 * testsuite/libgomp.c/lock-3.c: New test.
19304 * testsuite/libgomp.c/loop-4.c: New test.
19305 * testsuite/libgomp.c/loop-5.c: New test.
19306 * testsuite/libgomp.c/loop-6.c: New test.
19307 * testsuite/libgomp.c/loop-7.c: New test.
19308 * testsuite/libgomp.c/loop-8.c: New test.
19309 * testsuite/libgomp.c/loop-9.c: New test.
19310 * testsuite/libgomp.c/nested-3.c: New test.
19311 * testsuite/libgomp.c/nestedfn-6.c: New test.
19312 * testsuite/libgomp.c/sort-1.c: New test.
19313 * testsuite/libgomp.c/task-1.c: New test.
19314 * testsuite/libgomp.c/task-2.c: New test.
19315 * testsuite/libgomp.c/task-3.c: New test.
19316 * testsuite/libgomp.c/task-4.c: New test.
19317 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
19318 to C++ testsuite default compiler options.
19319 * testsuite/libgomp.c++/collapse-1.C: New test.
19320 * testsuite/libgomp.c++/collapse-2.C: New test.
19321 * testsuite/libgomp.c++/ctor-10.C: New test.
19322 * testsuite/libgomp.c++/for-1.C: New test.
19323 * testsuite/libgomp.c++/for-2.C: New test.
19324 * testsuite/libgomp.c++/for-3.C: New test.
19325 * testsuite/libgomp.c++/for-4.C: New test.
19326 * testsuite/libgomp.c++/for-5.C: New test.
19327 * testsuite/libgomp.c++/loop-8.C: New test.
19328 * testsuite/libgomp.c++/loop-9.C: New test.
19329 * testsuite/libgomp.c++/loop-10.C: New test.
19330 * testsuite/libgomp.c++/task-1.C: New test.
19331 * testsuite/libgomp.c++/task-2.C: New test.
19332 * testsuite/libgomp.c++/task-3.C: New test.
19333 * testsuite/libgomp.c++/task-4.C: New test.
19334 * testsuite/libgomp.c++/task-5.C: New test.
19335 * testsuite/libgomp.c++/task-6.C: New test.
19336 * testsuite/libgomp.fortran/allocatable1.f90: New test.
19337 * testsuite/libgomp.fortran/allocatable2.f90: New test.
19338 * testsuite/libgomp.fortran/allocatable3.f90: New test.
19339 * testsuite/libgomp.fortran/allocatable4.f90: New test.
19340 * testsuite/libgomp.fortran/collapse1.f90: New test.
19341 * testsuite/libgomp.fortran/collapse2.f90: New test.
19342 * testsuite/libgomp.fortran/collapse3.f90: New test.
19343 * testsuite/libgomp.fortran/collapse4.f90: New test.
19344 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
19345 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
19346 * testsuite/libgomp.fortran/lib4.f90: New test.
19347 * testsuite/libgomp.fortran/lock-1.f90: New test.
19348 * testsuite/libgomp.fortran/lock-2.f90: New test.
19349 * testsuite/libgomp.fortran/nested1.f90: New test.
19350 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
19351 * testsuite/libgomp.fortran/strassen.f90: New test.
19352 * testsuite/libgomp.fortran/tabs1.f90: New test.
19353 * testsuite/libgomp.fortran/tabs2.f: New test.
19354 * testsuite/libgomp.fortran/task1.f90: New test.
19355 * testsuite/libgomp.fortran/task2.f90: New test.
19356 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
19357 * testsuite/libgomp.fortran/vla5.f90: Likewise.
19358 * testsuite/libgomp.c/pr26943-2.c: Likewise.
19359 * testsuite/libgomp.c/pr26943-3.c: Likewise.
19360 * testsuite/libgomp.c/pr26943-4.c: Likewise.
19362 2008-05-23 Jakub Jelinek <jakub@redhat.com>
19365 * testsuite/libgomp.c++/ctor-11.C: New test.
19366 * testsuite/libgomp.c++/ctor-12.C: New test.
19368 2008-05-15 Janis Johnson <janis187@us.ibm.com>
19370 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19372 2008-05-07 Jakub Jelinek <jakub@redhat.com>
19374 PR middle-end/36106
19375 * testsuite/libgomp.c/atomic-5.c: New test.
19376 * testsuite/libgomp.c/atomic-6.c: New test.
19377 * testsuite/libgomp.c/autopar-1.c: New test.
19379 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19381 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19382 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19383 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19384 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19385 * configure: Regenerate.
19386 * Makefile.in, testsuite/Makefile.in: Likewise.
19388 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
19391 * aclocal.m4: Regenerate.
19392 * configure: Regenerate.
19394 2008-03-18 Jakub Jelinek <jakub@redhat.com>
19396 PR middle-end/35611
19397 * testsuite/libgomp.c/atomic-4.c: New test.
19400 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19401 (gomp_iter_guided_next): Likewise.
19402 * testsuite/libgomp.c/pr35625.c: New test.
19404 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19406 * aclocal.m4: Regenerate.
19407 * configure: Likewise.
19408 * Makefile.in: Likewise.
19409 * testsuite/Makefile.in: Likewise.
19411 2008-03-13 Jakub Jelinek <jakub@redhat.com>
19413 PR middle-end/35185
19414 * testsuite/libgomp.c++/pr35185.C: New test.
19416 2008-03-12 Jakub Jelinek <jakub@redhat.com>
19418 PR middle-end/35549
19419 * testsuite/libgomp.c/pr35549.c: New test.
19421 2008-03-06 Jakub Jelinek <jakub@redhat.com>
19423 * testsuite/libgomp.c/atomic-3.c: New test.
19425 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19428 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
19429 .F08 file suffixes.
19431 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
19434 * configure.ac: Add ACX_HEADER_STRING.
19435 * env.c: Include strings.h.
19436 * aclocal.m4: Regenerate.
19437 * config.h.in: Regenerate.
19438 * configure: Regenerate.
19439 * Makefile.in: Regenerate.
19440 * testsuite/Makefile.in: Regenerate.
19442 2008-02-15 Jakub Jelinek <jakub@redhat.com>
19444 PR middle-end/35196
19445 * testsuite/libgomp.c/pr35196.c: New test.
19447 PR middle-end/35130
19448 * testsuite/libgomp.fortran/pr35130.f90: New test.
19449 * testsuite/libgomp.c/pr35130.c: New test.
19451 2008-01-25 Jakub Jelinek <jakub@redhat.com>
19453 PR middle-end/33880
19454 * testsuite/libgomp.c/pr33880.c: New test.
19455 * testsuite/libgomp.fortran/pr33880.f90: New test.
19457 2008-01-24 David Edelsohn <edelsohn@gnu.org>
19459 * configure: Regenerate.
19461 2008-01-08 Jakub Jelinek <jakub@redhat.com>
19463 * configure.ac: Move futex checking into ../config/futex.m4.
19464 * configure: Rebuilt.
19465 * aclocal.m4: Rebuilt.
19466 * Makefile.in: Rebuilt.
19468 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19469 2007-10-15 ../config/tls.m4 change.
19471 2007-12-19 Jakub Jelinek <jakub@redhat.com>
19474 * testsuite/libgomp.c/pr34513.c: New test.
19475 * testsuite/libgomp.c++/pr34513.C: New test.
19477 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
19480 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19482 2007-12-04 Jakub Jelinek <jakub@redhat.com>
19484 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
19486 2007-12-03 Jakub Jelinek <jakub@redhat.com>
19488 * testsuite/libgomp.c/private-1.c: New test.
19490 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
19491 Paolo Bonzini <bonzini@gnu.org>
19493 * Makefile.am: Use space as vpath separator. Use 'vpath %'
19494 instead of 'VPATH ='.
19495 * Makefile.in: Regenerate.
19497 2007-11-23 Matthias Klose <doko@ubuntu.com>
19499 * configure.ac: Adjust makeinfo version check.
19500 * configure: Regenerate.
19502 2007-11-10 Jakub Jelinek <jakub@redhat.com>
19505 * testsuite/libgomp.fortran/pr34020.f90: New test.
19507 2007-11-06 Jakub Jelinek <jakub@redhat.com>
19510 * testsuite/libgomp.c++/atomic-1.C: New test.
19512 2007-10-25 Jakub Jelinek <jakub@redhat.com>
19515 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19516 Make x and y integers rather than (implicit) reals. Add private (j)
19517 clause to the last omp parallel.
19519 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
19521 * configure: Regenerate following changes to ../config/tls.m4.
19523 2007-09-28 Jakub Jelinek <jakub@redhat.com>
19525 * testsuite/libgomp.fortran/stack.f90: New test.
19527 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
19529 * config/mingw32/proc.c: New file.
19531 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
19533 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19534 (main): Use __get_cpuid to get i386 target fetaures.
19535 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19536 (main): Use __get_cpuid to get x86_64 target fetaures.
19538 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
19541 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19542 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19544 2007-07-12 Jakub Jelinek <jakub@redhat.com>
19547 * testsuite/libgomp.fortran/pr32550.f90: New test.
19548 * testsuite/libgomp.fortran/crayptr2.f90: New test.
19550 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
19552 * aclocal.m4: Regenerated.
19554 2007-07-05 Tobias Burnus <burnus@net-b.de>
19557 * testsuite/libgomp.fortran/pr32359.f90: New.
19559 2007-07-02 Jakub Jelinek <jakub@redhat.com>
19562 * sections.c (GOMP_parallel_sections_start): Only decrease
19563 number of threads to COUNT if dyn_var is true.
19564 * testsuite/libgomp.c/pr32468.c: New test.
19566 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19569 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19571 2007-06-21 Jakub Jelinek <jakub@redhat.com>
19573 PR middle-end/32362
19574 * testsuite/libgomp.c/pr32362-1.c: New test.
19575 * testsuite/libgomp.c/pr32362-2.c: New test.
19576 * testsuite/libgomp.c/pr32362-3.c: New test.
19578 2007-06-07 Jakub Jelinek <jakub@redhat.com>
19580 * team.c (gomp_team_start): Fix setting up thread_attr
19583 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
19585 * configure: Regenerate.
19587 2007-05-23 Steve Ellcey <sje@cup.hp.com>
19589 * Makefile.in: Regenerate.
19590 * configure: Regenerate.
19591 * aclocal.m4: Regenerate.
19592 * testsuite/Makefile.in: Regenerate.
19594 2007-05-04 Jakub Jelinek <jakub@redhat.com>
19596 * config/linux/proc.c: New file.
19599 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19601 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
19603 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19605 2007-04-16 Matthias Klose <doko@debian.org>
19607 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19608 flags if not building with -m64.
19609 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19610 flag for i?86-*-* targets, if current target matches -m64.
19612 2007-04-14 Steve Ellcey <sje@cup.hp.com>
19614 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19615 * Makefile.in: Regenerate.
19617 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19620 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19622 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19624 2007-04-04 Jakub Jelinek <jakub@redhat.com>
19626 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19628 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19629 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19630 (parse_affinity): New function.
19631 (initialize_env): Call it and gomp_init_affinity.
19632 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19633 create new pthread_attr_t and call gomp_init_thread_affinity
19634 on it for each thread before passing the attribute to pthread_create.
19635 * config/linux/affinity.c: New file.
19636 * config/posix/affinity.c: New file.
19637 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19638 * configure: Rebuilt.
19639 * config.h.in: Rebuilt.
19640 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19641 * Makefile.in: Rebuilt.
19643 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19645 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19647 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19648 and use it if found.
19650 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
19652 * testsuite/config/default.exp: New file.
19653 * testsuite/lib/libgomp.exp: New file.
19654 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19655 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19656 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19657 (libgomp_load): Remove.
19658 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19659 always_ld_library_path, not ld_library_path. Set additional_flags
19660 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19661 (target_compile): Do not call libgomp_init. Append lang_library_path
19662 and lang_link_flags to options.
19663 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19664 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19666 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19667 always_ld_library_path. Set LD_LIBRARY_PATH here.
19668 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19669 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19670 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19672 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19673 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19674 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19675 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19676 * testsuite/libgomp.c/atomic-10.c: Ditto.
19678 2007-03-21 Jakub Jelinek <jakub@redhat.com>
19680 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19681 dg-final cleanup-modules line.
19682 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19683 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19684 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19685 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19686 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19687 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19688 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19690 2007-03-18 Andreas Schwab <schwab@suse.de>
19692 * acinclude.m4: Adjust regular expression for ld version
19694 * configure: Regenerate.
19696 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19698 * Makefile.am: Add install-pdf target as copied from
19699 automake v1.10 rules.
19700 * Makefile.in: Regenerate
19702 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19705 * configure: Regenerate.
19708 * testsuite/libgomp.c++/pr30703.C: New test.
19710 2007-02-02 Jakub Jelinek <jakub@redhat.com>
19713 2006-07-05 Eric Christopher <echristo@apple.com>
19714 * configure.ac: Depend addition of -pthread on host OS.
19715 * configure: Regenerate.
19717 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19719 * libgomp.texi: Fix spacing after abbreviations.
19721 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
19724 * configure.ac: Add check for makeinfo
19725 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19726 if an appropriate version of makeinfo is found.
19727 * aclocal.m4: Regenerated.
19728 * configure: Regenerated.
19729 * Makefile.in: Regenerated.
19730 * testsuite/Makefile.in: Regenerated.
19732 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
19735 * libgomp.texi: More about implementation-dependent settings.
19737 2007-01-26 Tobias Burnus <burnus@net-b.de>
19739 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19741 2007-01-24 Jakub Jelinek <jakub@redhat.com>
19743 PR middle-end/30494
19744 * testsuite/libgomp.c/pr30494.c: New test.
19746 2007-01-15 Tom Tromey <tromey@redhat.com>
19748 * configure: Rebuilt.
19749 * configure.ac: Fixed comment.
19751 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
19753 * libgomp.texi: Document implementation specific default values of
19754 environment variables.
19756 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19759 * libgomp.texi: New file.
19760 * configure.ac: Add --enable-generated-files-in-srcdir option.
19761 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19763 * Makefile.in: Regenerated.
19764 * config.h.in: Regenerated.
19765 * testsuite/Makefile.in: Regenerated.
19768 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
19771 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19773 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19775 * configure: Regenerate.
19777 2006-12-04 Jakub Jelinek <jakub@redhat.com>
19780 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19781 start if there shouldn't be any loop iterations.
19782 (gomp_loop_ordered_static_start): Remove start == end test.
19783 * testsuite/libgomp.c/pr29947-1.c: New test.
19784 * testsuite/libgomp.c/pr29947-2.c: New test.
19786 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19788 * configure.tgt: Force initial-exec TLS model on Linux only.
19790 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19792 * configure: Regenerated.
19794 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
19796 * env.c (parse_schedule): Reject out of range values.
19797 (parse_unsigned_long): Reject out of range, negative or zero values.
19799 2006-10-29 Jakub Jelinek <jakub@redhat.com>
19802 * testsuite/libgomp.fortran/pr29629.f90: New test.
19804 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19807 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19808 * config/posix95: New directory.
19809 * config/posix95/omp-lock.h: New file.
19810 * config/posix95/lock.c: Likewise.
19812 2006-10-14 Geoffrey Keating <geoffk@apple.com>
19814 * aclocal.m4: Regenerate.
19815 * configure: Regenerate.
19817 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19819 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19822 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19824 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19826 * configure: Regenerate.
19827 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19829 2006-09-26 Jakub Jelinek <jakub@redhat.com>
19831 PR middle-end/25261
19832 PR middle-end/28790
19833 * testsuite/libgomp.c/nestedfn-4.c: New test.
19834 * testsuite/libgomp.c/nestedfn-5.c: New test.
19835 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19838 * testsuite/libgomp.fortran/condinc1.f: New test.
19839 * testsuite/libgomp.fortran/condinc2.f: New test.
19840 * testsuite/libgomp.fortran/condinc3.f90: New test.
19841 * testsuite/libgomp.fortran/condinc4.f90: New test.
19842 * testsuite/libgomp.fortran/condinc1.inc: New file.
19844 2006-09-18 Tom Tromey <tromey@redhat.com>
19846 * configure: Rebuilt.
19848 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19851 PR preprocessor/14634
19852 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19854 * configure: Regenerate.
19856 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19858 * testsuite/libgomp.fortran/reduction3.f90: Change
19859 -2147483648 to -huge(i)-1 to avoid overflow.
19860 * testsuite/libgomp.fortran/reduction4.f90: Change
19861 Z'ffffffff' to not(0) to avoid overflow.
19863 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19866 * Makefile.am (libsubincludedir): New.
19867 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19868 * Makefile.in: Regenerate.
19870 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19873 * env.c: Include ctype.h.
19874 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19875 leading and/or trailing whitespace and compare strings case
19878 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19881 * testsuite/libgomp.fortran/pr28390.f: New test.
19883 2006-07-05 Eric Christopher <echristo@apple.com>
19885 * configure.ac: Depend addition of -pthread on host OS.
19886 * configure: Regenerate.
19888 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19890 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19891 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19894 2006-06-20 Jakub Jelinek <jakub@redhat.com>
19898 * configure.ac: If neither --enable-linux-futex nor
19899 --disable-linux-futex is passed, determine the default by checking
19900 for compiling and/or running against NPTL. With --enable-linux-futex,
19901 check if SYS_gettid and SYS_futex are defined.
19902 * configure: Rebuilt.
19904 2006-06-14 Richard Henderson <rth@redhat.com>
19907 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19908 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19910 2006-06-09 Richard Henderson <rth@redhat.com>
19912 * env.c (gomp_nthreads_var): Change to unsigned long.
19913 (gomp_run_sched_chunk): Likewise.
19914 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19915 (initialize_env): Initialize gomp_thread_attr.
19916 * libgomp.h (gomp_nthreads_var): Update decl.
19917 (gomp_run_sched_chunk): Likewise.
19918 (gomp_thread_attr): Declare.
19919 * team.c (gomp_thread_attr): Export.
19920 (initialize_team): Don't initialize it.
19922 2006-06-09 Jakub Jelinek <jakub@redhat.com>
19925 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19926 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19928 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19930 * config/mingw32/time.c: New file.
19931 * configure.tgt: Use it.
19933 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
19935 * Makefile.am: Add install-html target. Add install-html to .PHONY
19936 * Makefile.in: Regenerate.
19938 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19941 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19942 * testsuite/libgomp.c/critical-1.c: Likewise.
19943 * testsuite/libgomp.c/loop-1.c: Likewise.
19944 * testsuite/libgomp.c/loop-2.c: Likewise.
19945 * testsuite/libgomp.c/single-1.c: Likewise.
19946 * testsuite/libgomp.c/ordered-1.c: Likewise.
19947 * testsuite/libgomp.c/ordered-2.c: Likewise.
19949 2006-05-15 Jakub Jelinek <jakub@redhat.com>
19951 PR middle-end/27416
19952 * libgomp.fortran/pr27416-1.f90: New test.
19954 2006-05-03 Jakub Jelinek <jakub@redhat.com>
19957 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19958 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19960 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19963 * testsuite/libgomp.c/pr26943-1.c: New test.
19964 * testsuite/libgomp.c/pr26943-2.c: New test.
19965 * testsuite/libgomp.c/pr26943-3.c: New test.
19966 * testsuite/libgomp.c/pr26943-4.c: New test.
19967 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19968 * testsuite/libgomp.c++/pr26943.C: New test.
19970 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19972 PR middle-end/27337
19973 * testsuite/libgomp.c++/pr27337.C: New test.
19975 2006-04-26 Jakub Jelinek <jakub@redhat.com>
19978 * testsuite/libgomp.c/pr26171.c: New test.
19980 2006-04-25 Richard Henderson <rth@redhat.com>
19983 * configure.ac: Use GCC_CHECK_TLS.
19984 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19985 * Makefile.in, aclocal.m4, configure: Regenerate.
19987 2006-04-10 Matthias Klose <doko@debian.org>
19989 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19990 directory names containing underscores.
19992 2006-03-21 Jakub Jelinek <jakub@redhat.com>
19995 * testsuite/libgomp.c++/pr26691.C: New test.
19997 2006-03-13 Jakub Jelinek <jakub@redhat.com>
19999 * testsuite/libgomp.fortran/retval2.f90: New test.
20001 2006-03-09 Diego Novillo <dnovillo@redhat.com>
20003 * testsuite/libgomp.c++: New directory.
20005 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
20007 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
20008 * config/posix/sem.c: Implement the above.
20010 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
20012 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
20013 define HAVE_BROKEN_POSIX_SEMAPHORES.
20014 * configure: Rebuilt.
20015 * config.h.in: Rebuilt.
20017 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
20020 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
20021 for the other pthread check.
20022 * configure: Regenerate.
20023 * config.h.in: Regenerate.
20025 2006-02-15 Jakub Jelinek <jakub@redhat.com>
20029 * Makefile.am (fincludedir): New variable.
20030 (nodist_include_HEADERS): Remove Fortran files.
20031 (nodist_finclude_HEADERS): New variable.
20032 * Makefile.in: Regenerated.
20034 2006-02-13 Jakub Jelinek <jakub@redhat.com>
20036 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
20037 Remove tests for returning assumed character length arrays.
20039 2006-02-12 Roger Sayle <roger@eyesopen.com>
20040 John David Anglin <dave@hiauly1.hia.nrc.ca>
20043 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
20045 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
20047 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
20049 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
20051 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
20052 part of LD_LIBRARY_PATH manually.
20054 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
20057 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
20060 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
20063 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
20064 * configure.ac (PERL): Don't set.
20065 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
20066 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
20067 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
20068 * omp.h.in: Wrap the new configure substitutions with @ characters.
20069 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
20070 * aclocal.m4, configure, Makefile.in: Regenerate.
20071 * mkomp_h.pl: Delete.
20073 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
20076 * configure.ac: Use GCC_HEADER_STDINT.
20077 * libgomp.h: Include gstdint.h.
20078 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
20079 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
20081 2006-01-24 Richard Henderson <rth@redhat.com>
20084 * configure.ac: Add AM_MAINTAINER_MODE.
20085 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
20087 2006-01-24 Diego Novillo <dnovillo@redhat.com>
20089 * Makefile.in: Regenerate.
20090 * testsuite/Makefile.in: Regenerate.
20091 * aclocal.m4: Regenerate.
20093 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
20095 * config/posix/proc.c: Conditional include of sys/loadavg.h for
20097 * configure.ac: Add check for loadavg.h.
20098 (link_gomp): Adjust comment.
20099 * configure: Regenerate.
20100 * config.h.in: Regenerate.
20102 2006-01-21 Steve Ellcey <sje@cup.hp.com>
20105 * configure.ac: Remove check for alloca.h.
20106 * configure: Regenerate.
20107 * config.h.in: Regenerate.
20108 * libgomp.h: define gomp_alloca to be __builtin_alloca.
20109 * team.c: Remove use of alloca.h.
20110 Call gomp_alloca instead of alloca.
20112 2006-01-20 Steve Ellcey <sje@cup.hp.com>
20115 * team.c: Add include of alloca.h.
20116 * configure.ac: Add check for alloca.h.
20117 * configure: Regenerate.
20118 * config.h.in: Regenerate.
20120 2006-01-17 Jakub Jelinek <jakub@redhat.com>
20123 * testsuite/libgomp.fortran/pr25219.f90: New test.
20125 2005-12-05 Uros Bizjak <uros@kss-loka.si>
20127 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
20128 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
20129 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20130 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20131 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
20132 testsuite/libgomp.fortran/threadprivate1.f90,
20133 testsuite/libgomp.fortran/threadprivate2.f90,
20134 testsuite/libgomp.fortran/threadprivate3.f90,
20135 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20136 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20137 testsuite/libgomp.fortran/omp_parse3.f90: Change required
20138 effective-target to TLS runtime.
20140 * testsuite/libgomp.fortran/pr25162.f: Require
20141 effective-target TLS runtime.
20143 2005-12-01 Jakub Jelinek <jakub@redhat.com>
20145 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
20146 * testsuite/libgomp.c/nestedfn-3.c: New test.
20148 2005-11-30 Jakub Jelinek <jakub@redhat.com>
20151 * testsuite/libgomp.fortran/pr25162.f: New test.
20153 2005-11-28 Jakub Jelinek <jakub@redhat.com>
20155 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
20156 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
20158 2005-11-25 Jakub Jelinek <jakub@redhat.com>
20160 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
20161 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
20162 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
20163 single.c, team.c, work.c, config/linux/alpha/futex.h,
20164 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
20165 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
20166 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
20167 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
20168 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
20169 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
20170 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
20173 2005-11-18 Jakub Jelinek <jakub@redhat.com>
20175 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
20176 to nodist_noinst_HEADERS.
20177 * Makefile.in: Rebuilt.
20179 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
20180 add integer count field.
20181 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
20182 omp_nest_lock_t type change.
20183 (omp_init_nest_lock): Likewise. Initialize count to 0.
20184 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
20186 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
20188 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
20189 Increment count if successful and return the new nesting level.
20190 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
20191 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
20192 * testsuite/libgomp.c/lib-1.c: New test.
20193 * testsuite/libgomp.fortran/lib1.f90: New test.
20194 * testsuite/libgomp.fortran/lib2.f: New test.
20195 * testsuite/libgomp.fortran/lib3.f: New test.
20197 2005-11-17 Richard Henderson <rth@redhat.com>
20200 * Makefile.am (nodist_toolexeclib_HEADERS): New.
20201 * configure.ac (link_gomp): New. Substitute it.
20202 (AC_CONFIG_FILES): Add libgomp.spec.
20203 * libgomp.spec.in: New file.
20204 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
20205 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
20207 2005-11-18 Jakub Jelinek <jakub@redhat.com>
20209 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
20210 reduction(-:var) behaving the same as reduction(+:var).
20211 * testsuite/libgomp.c/reduction-4.c: New test.
20213 2005-11-15 Uros Bizjak <uros@kss-loka.si>
20215 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
20216 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
20217 testsuite/libgomp.c/copyin-3.c,
20218 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20219 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20220 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
20221 testsuite/libgomp.c++/pr24455.C,
20222 testsuite/libgomp.fortran/threadprivate1.f90,
20223 testsuite/libgomp.fortran/threadprivate2.f90,
20224 testsuite/libgomp.fortran/threadprivate3.f90,
20225 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20226 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20227 testsuite/libgomp.fortran/omp_parse3.f90: Require
20228 effective-target TLS.
20230 2005-11-14 Diego Novillo <dnovillo@redhat.com>
20234 2005-11-13 Jakub Jelinek <jakub@redhat.com>
20237 * team.c (initialize_team): Pass NULL rather than free as
20238 pthread_key_create destructor. Initialize thread specific data
20239 pointer in initial thread to a static local variable rather than
20242 2005-11-11 Uros Bizjak <uros@kss-loka.si>
20244 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
20245 its location to ld_library_path.
20247 2005-11-10 Diego Novillo <dnovillo@redhat.com>
20249 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
20251 2005-11-10 Diego Novillo <dnovillo@redhat.com>
20253 * testsuite/libgomp.c: Rename from libgomp.dg.
20255 2005-11-09 Diego Novillo <dnovillo@redhat.com>
20257 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
20258 threadprivate variable 'i'.
20260 2005-11-09 Jakub Jelinek <jakub@redhat.com>
20262 * config/linux/s390/futex.h: New file.
20263 * configure.tgt: Use it.
20265 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
20266 before the parallel.
20268 2005-11-08 Jakub Jelinek <jakub@redhat.com>
20271 * testsuite/libgomp.c++/master-1.C: New test.
20273 2005-11-07 Jakub Jelinek <jakub@redhat.com>
20275 * testsuite/libgomp.dg/copyin-3.c: New test.
20277 2005-11-07 Jakub Jelinek <jakub@redhat.com>
20279 * testsuite/libgomp.fortran/retval1.f90: New test.
20280 * testsuite/libgomp.fortran/vla7.f90: New test.
20282 2005-11-06 Jakub Jelinek <jakub@redhat.com>
20284 * testsuite/libgomp.fortran/vla2.f90: New test.
20285 * testsuite/libgomp.fortran/vla3.f90: New test.
20286 * testsuite/libgomp.fortran/vla4.f90: New test.
20287 * testsuite/libgomp.fortran/vla5.f90: New test.
20288 * testsuite/libgomp.fortran/vla6.f90: New test.
20290 2005-11-01 Jakub Jelinek <jakub@redhat.com>
20292 * config/linux/sparc/futex.h: New file.
20293 * configure.tgt: Use it.
20294 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
20296 * critical.c: Include stdlib.h.
20297 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
20298 ignoring return value.
20299 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
20300 LIBGOMP_CHECK_SYNC_BUILTINS check.
20301 * configure: Rebuilt.
20303 2005-10-31 Jakub Jelinek <jakub@redhat.com>
20305 * testsuite/libgomp.fortran/vla1.f90: New test.
20307 2005-10-31 Richard Henderson <rth@redhat.com>
20309 * testsuite/libgomp.fortran/character2.f90: Fix race condition
20310 setting 's' in different threads.
20312 2005-10-31 Jakub Jelinek <jakub@redhat.com>
20314 * libgomp.h (attribute_hidden, ialias): Define.
20315 * config/posix/proc.c (omp_get_num_procs): Add ialias.
20316 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
20317 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
20318 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20319 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20320 omp_test_lock, omp_test_nest_lock): Likewise.
20321 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
20322 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20323 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20324 omp_test_lock, omp_test_nest_lock): Likewise.
20325 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
20326 omp_get_dynamic, omp_get_nested): Likewise.
20327 * parallel.c (omp_get_num_threads, omp_get_max_threads,
20328 omp_get_thread_num, omp_in_parallel): Likewise.
20329 * fortran.c (ialias_redirect): Define.
20330 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
20331 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
20332 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
20333 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
20334 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
20335 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
20336 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
20337 omp_get_wtime): Add ialias_redirect.
20339 2005-10-30 Jakub Jelinek <jakub@redhat.com>
20341 * fortran.c: Include stdlib.h.
20343 2005-10-29 Jakub Jelinek <jakub@redhat.com>
20345 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
20346 * Makefile.in: Regenerated.
20348 2005-10-28 Jakub Jelinek <jakub@redhat.com>
20350 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
20351 * libgomp_f.h.in (omp_check_defines): New function.
20352 * env.c: Include libgomp_f.h.
20353 (initialize_env): Call omp_check_defines.
20355 * testsuite/libgomp.dg/copyin-2.c: New test.
20356 * testsuite/libgomp.c++/copyin-2.C: New test.
20357 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
20359 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
20360 * testsuite/libgomp.fortran/sharing2.f90: New test.
20362 * testsuite/libgomp.dg/copyin-1.c: New test.
20363 * testsuite/libgomp.c++/copyin-1.C: New test.
20365 2005-10-26 Jakub Jelinek <jakub@redhat.com>
20367 * testsuite/libgomp.fortran/crayptr1.f90: New test.
20369 * testsuite/libgomp.fortran/workshare1.f90: New test.
20371 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20373 * libgomp.fortran/sharing1.f90: New test.
20375 2005-10-24 Jakub Jelinek <jakub@redhat.com>
20378 * testsuite/libgomp.c++/loop-7.C: New test.
20380 * testsuite/libgomp.dg/nestedfn-2.c: New test.
20382 * testsuite/libgomp.dg/nestedfn-1.c: New test.
20383 * testsuite/libgomp.fortran/reduction6.f90: New test.
20384 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20386 2005-10-23 Richard Henderson <rth@redhat.com>
20388 * testsuite/libgomp.c++/ctor-1.C: New.
20389 * testsuite/libgomp.c++/ctor-2.C: New.
20390 * testsuite/libgomp.c++/ctor-3.C: New.
20391 * testsuite/libgomp.c++/ctor-4.C: New.
20392 * testsuite/libgomp.c++/ctor-5.C: New.
20393 * testsuite/libgomp.c++/ctor-6.C: New.
20394 * testsuite/libgomp.c++/ctor-7.C: New.
20395 * testsuite/libgomp.c++/ctor-8.C: New.
20396 * testsuite/libgomp.c++/ctor-9.C: New.
20398 2005-10-21 Diego Novillo <dnovillo@redhat.com>
20401 * testsuite/libgomp.c++/pr24455-1.C: New test.
20402 * testsuite/libgomp.c++/pr24455.C: New test.
20403 * testsuite/libgomp.dg/pr24455-1.c: New test.
20404 * testsuite/libgomp.dg/pr24455.c: New test.
20406 2005-10-20 Richard Henderson <rth@redhat.com>
20408 * testsuite/libgomp.c++/loop-6.C: New.
20409 * testsuite/libgomp.dg/loop-3.c: New.
20411 2005-10-20 Jakub Jelinek <jakub@redhat.com>
20413 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20414 explicitly private.
20415 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20418 2005-10-19 Diego Novillo <dnovillo@redhat.com>
20420 * testsuite/libgomp.fortran/jacobi.f: New test.
20422 2005-10-19 Richard Henderson <rth@redhat.com>
20424 * configure.tgt (i?86-linux): Default to with_arch instead of
20425 CFLAGS. Add -mtune to match target_cpu.
20426 (x86_64-linux): Tune to i686.
20428 * fortran.c (omp_test_nest_lock_): Fix typo.
20430 2005-10-19 Jakub Jelinek <jakub@redhat.com>
20432 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20433 gomp_ordered_sync): Do nothing if team->nthreads == 1.
20434 * testsuite/libgomp.dg/ordered-3.c: New test.
20436 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20437 Remove volatile keyword.
20439 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20440 in COMMON block to avoid warnings on 64-bit targets.
20442 2005-10-18 Diego Novillo <dnovillo@redhat.com>
20444 * testsuite/libgomp.dg/shared-3.c: New test.
20446 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20448 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20449 * testsuite/libgomp.fortran/reduction5.f90: New test.
20451 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20453 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20455 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
20456 flush loop now that __sync_synchronize has proper memory barrier.
20457 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20458 Add -ffixed-form to dg-options.
20460 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20462 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20463 from subdirectories.
20464 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20465 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20466 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20467 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20468 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20469 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20470 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20471 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20472 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20473 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20474 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20475 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20476 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20477 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20478 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20479 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20480 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20481 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20482 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20483 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20484 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20485 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20486 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20487 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20488 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20490 2005-10-17 Jakub Jelinek <jakub@redhat.com>
20492 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20493 lang_library_path exists. Use find instead of glob to gather tests.
20494 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20496 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20498 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20499 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20500 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20501 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20502 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20503 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20504 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20505 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20506 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20507 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20508 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20509 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20510 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20512 2005-10-15 Jakub Jelinek <jakub@redhat.com>
20514 * testsuite/libgomp.dg/vla-1.c: New test.
20516 * testsuite/libgomp.fortran/reference2.f90: New test.
20518 * testsuite/libgomp.fortran/character2.f90: Remove explicit
20519 declaration of omp_get_thread_num.
20520 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
20523 * testsuite/libgomp.fortran/reduction1.f90: New test.
20524 * testsuite/libgomp.fortran/reduction2.f90: New test.
20525 * testsuite/libgomp.fortran/reduction3.f90: New test.
20526 * testsuite/libgomp.fortran/reduction4.f90: New test.
20528 2005-10-13 Richard Henderson <rth@redhat.com>
20530 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20531 * Makefile.in: Regenerate.
20532 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20533 * libgomp.h: Include bar.h.
20534 (struct gomp_barrier): Remove.
20535 (struct gomp_team): Add barrier. Replace master_barrier with
20536 master_release. Replace threads with ordered_release.
20537 (struct gomp_thread): Replace barrier with release.
20538 * ordered.c (gomp_ordered_first): Update for ordered_release change.
20539 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20540 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20541 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20542 (GOMP_single_copy_end): Likewise.
20543 * team.c (gomp_threads_dock): New.
20544 (gomp_barrier_init, gomp_barrier_destroy): Remove.
20545 (gomp_thread_start): Use gomp_barrier_wait.
20546 (new_team, free_team): Update for gomp_team changes.
20547 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20548 (gomp_team_end): Use gomp_barrier_wait.
20549 (initialize_team): Update for gomp_thread changes.
20550 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20551 (gomp_work_share_end_nowait): Use atomic ops when available.
20552 * config/linux/bar.c, config/linux/bar.h: New files.
20553 * config/posix/bar.c, config/posix/bar.h: New files.
20555 2005-10-13 Jakub Jelinek <jakub@redhat.com>
20557 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20558 * testsuite/libgomp.dg/single-2.c: New test.
20560 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20561 lang_link_flags): Unset, so that they aren't inherited from previously
20564 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20566 2005-10-12 Richard Henderson <rth@redhat.com>
20568 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20569 (libgomp_init): Use lang_test_file, lang_library_path, and
20570 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
20572 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20573 (lang_test_file, lang_link_flags): New.
20574 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20576 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20577 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20578 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20579 testsuite/libgomp.c++/parallel-1.C,
20580 testsuite/libgomp.c++/reduction-1.C,
20581 testsuite/libgomp.c++/reduction-2.C,
20582 testsuite/libgomp.c++/reduction-3.C,
20583 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20584 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20585 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20586 New files, largely cribbed from the C testsuite.
20588 2005-10-12 Jakub Jelinek <jakub@redhat.com>
20590 * testsuite/libgomp.fortran/character1.f90: New test.
20591 * testsuite/libgomp.fortran/character2.f90: New test.
20593 * testsuite/libgomp.dg/nested-1.c: New test.
20594 * testsuite/libgomp.dg/nested-2.c: New test.
20595 * testsuite/libgomp.fortran/do1.f90: New test.
20596 * testsuite/libgomp.fortran/do2.f90: New test.
20598 * testsuite/libgomp.fortran/reference1.f90: New test.
20600 2005-10-11 Jakub Jelinek <jakub@redhat.com>
20602 * testsuite/libgomp.dg/reduction-1.c: New test.
20603 * testsuite/libgomp.dg/reduction-2.c: New test.
20604 * testsuite/libgomp.dg/reduction-3.c: New test.
20606 2005-10-10 Jakub Jelinek <jakub@redhat.com>
20608 * testsuite/libgomp.dg/atomic-1.c: New test.
20609 * testsuite/libgomp.dg/atomic-2.c: New test.
20611 2005-10-09 Richard Henderson <rth@redhat.com>
20613 * critical.c (atomic_lock): New.
20614 (initialize_critical): Initialize it.
20615 (GOMP_atomic_start, GOMP_atomic_end): New.
20616 * libgomp.map: Export them.
20617 * libgomp_g.h: Declare them.
20619 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20621 2005-10-02 Richard Henderson <rth@redhat.com>
20623 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20624 to XCFLAGS instead of CFLAGS.
20626 2005-09-30 Richard Henderson <rth@redhat.com>
20628 * configure.ac: Determine whether -pthread or -lpthread is needed.
20629 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20630 * Makefile.in, configure: Rebuild.
20632 2005-09-28 Richard Henderson <rth@redhat.com>
20634 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20635 * testsuite/libgomp.dg/omp-single-3.c: New test.
20637 2005-09-28 Diego Novillo <dnovillo@redhat.com>
20639 * testsuite/libgomp.dg/omp-single-2.c: New test.
20640 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20642 2005-09-27 Richard Henderson <rth@redhat.com>
20644 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20645 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20647 2005-09-27 Jakub Jelinek <jakub@redhat.com>
20649 * testsuite/libgomp.dg/omp-loop03.c: New test.
20651 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20653 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20655 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20657 * testsuite/libgomp.dg/omp-single-1.c: New test.
20658 * testsuite/libgomp.dg/shared-1.c: Return 0.
20659 Add prototype for abort.
20660 * testsuite/libgomp.dg/shared-2.c: Likewise.
20662 2005-09-26 Jakub Jelinek <jakub@redhat.com>
20664 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20667 2005-09-26 Diego Novillo <dnovillo@redhat.com>
20669 * testsuite/libgomp.dg/shared-1.c: New test.
20670 * testsuite/libgomp.dg/shared-2.c: New test.
20672 2005-09-24 Richard Henderson <rth@redhat.com>
20674 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20676 2005-09-24 Richard Henderson <rth@redhat.com>
20678 * iter.c (gomp_iter_static_next): Round up when computing number
20679 of iterations. Don't bother distributing a remainder equally.
20681 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20682 Don't call srand. Zero b before testing.
20685 2005-09-24 Jakub Jelinek <jakub@redhat.com>
20687 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20688 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20690 2005-09-23 Jakub Jelinek <jakub@redhat.com>
20692 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20693 without !$omp end do, followed immediately by subroutine end.
20695 2005-09-23 Diego Novillo <dnovillo@redhat.com>
20697 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20699 2005-09-22 Richard Henderson <rth@redhat.com>
20701 * critical.c (GOMP_critical_name_start): Change argument to void**.
20702 Reuse the pointer space if the mutex fits.
20703 (GOMP_critical_name_end): Likewise.
20704 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20705 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20706 (GOMP_critical_name_end): Likewise.
20707 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20708 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20710 2005-09-20 Richard Henderson <rth@redhat.com>
20712 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20713 (create_lock_lock): New.
20714 (initialize_critical): Initialize it.
20715 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20716 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20718 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20720 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20722 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20724 * testsuite/libgomp.dg/omp-loop01.c: New test.
20725 * testsuite/libgomp.dg/omp-loop02.c: New test.
20727 2005-09-20 Jakub Jelinek <jakub@redhat.com>
20729 * configure.ac (AC_PROG_FC): Add.
20730 (USE_FORTRAN): New automake conditional.
20731 * configure: Rebuilt.
20732 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20733 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20734 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20735 Add rules to build them.
20736 * Makefile.in: Rebuilt.
20737 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20738 OMP_NEST_LOCK_KIND.
20739 * libgomp.map: Add Fortran wrappers.
20740 * libgomp_f.h.in: New file.
20741 * omp_lib.h.in: New file.
20742 * omp_lib.f90.in: New file.
20743 * fortran.c: New file.
20744 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20745 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20746 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20747 libgfortran has been built.
20748 * testsuite/libgomp.fortran/fortran.exp: New file.
20749 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20750 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20751 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20752 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20753 * testsuite/libgomp.fortran/omp_hello.f: New test.
20754 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20755 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20756 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20757 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20758 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20759 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20760 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20761 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20763 2005-08-30 Richard Henderson <rth@redhat.com>
20765 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20766 function for when aliases are not usable.
20767 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20768 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20769 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20770 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20771 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20772 GOMP_loop_ordered_guided_next): Likewise.
20773 * ordered.c (GOMP_ordered_start): Likewise.
20775 2005-08-01 Diego Novillo <dnovillo@redhat.com>
20777 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20778 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20779 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20780 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20781 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20782 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20783 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20784 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20785 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20787 2005-07-07 Eric Christopher <echristo@redhat.com>
20788 Diego Novillo <dnovillo@redhat.com>
20790 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20791 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20793 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20794 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20795 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20796 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20797 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20798 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20799 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20801 2005-06-13 Diego Novillo <dnovillo@redhat.com>
20803 * TOPLEVEL.patch: Remove.
20805 2005-05-16 Richard Henderson <rth@redhat.com>
20807 * configure.ac: Test for clock_gettime.
20808 * config.h.in, configure: Rebuild.
20809 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20810 (omp_get_wtime): Use clock_gettime if available.
20811 (omp_get_wtick): Use clock_getres if available.
20813 2005-05-11 Richard Henderson <rth@redhat.com>
20815 * config/linux/ia64/futex.h: New file.
20816 * configure.tgt: Use it.
20818 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20820 2005-05-07 Richard Henderson <rth@redhat.com>
20822 * config/linux/powerpc/futex.h: New file.
20823 * configure.tgt: Use it.
20825 * config/linux/i486/futex.h: Merge ...
20826 * config/linux/x86_64/futex.h: ... into ...
20827 * config/linux/x86/futex.h: ... here.
20828 * configure.tgt: Update to match.
20830 2005-05-06 Richard Henderson <rth@redhat.com>
20832 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20833 * config/linux/i486/futex.h: Likewise.
20834 * config/linux/x86_64/futex.h: Likewise.
20836 * config/linux/lock.c: New file.
20837 * config/linux/omp-lock.h: New file.
20839 * critical.c, env.h: Don't include omp.h
20840 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20841 * config/posix/time.c: Likewise.
20842 * config/posix/omp-lock.h: New file.
20843 * libgomp.h: Include omp-lock.h and omp.h.
20844 * Makefile.am (nodist_include_HEADERS): New.
20846 * configure.ac (PERL): New.
20847 * mkomp_h.pl: New file.
20848 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20850 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20852 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20853 build directory. Re-add -march=i486 hack.
20855 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20856 (libgomp_link_flags): Remove.
20857 (libgomp_initialized): Remove.
20858 (libgomp_init): Don't protect from reinitialization. Copy code
20859 from libstdc++ for getting the multilib set correctly.
20861 2005-05-05 Richard Henderson <rth@redhat.com>
20863 * config/linux/alpha/futex.h: New file.
20864 * configure.tgt (alpha*-*-linux*): Use it.
20866 * config/posix/mutex.c: New file.
20867 * config/posix/sem.c: Use libgomp.h.
20869 * configure.tgt (x86_64-linux): Also test CC for -m32.
20870 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20872 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20875 * Makefile.am (SUBDIRS): New.
20876 (libgomp_la_LDFLAGS): Add -lpthread.
20877 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20878 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20880 * libgomp_g.h: New file.
20881 * libgomp.h: Split out all public declarations to libgomp_g.h.
20882 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20883 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20884 * config/linux/sem.h: Likewise.
20885 * config/posix/sem.h: Likewise.
20887 * Makefile.am (AM_LDFLAGS): New.
20888 (libgomp_version_script): Split out from ...
20889 (libgomp_la_LDFLAGS): ... here.
20890 (libgomp_version_info): New.
20891 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20892 (LIBGOMP_ENABLE): New.
20893 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20894 (LIBGOMP_ENABLE_SYMVERS): New.
20895 * configure.ac (AC_INIT): Version 1.0.
20896 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20897 (enable-linux-futex): Likewise. Rename from enable-futex.
20898 (libtool_VERSION): New.
20899 (LIBGOMP_ENABLE_SYMVERS): Use it.
20900 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20901 * Makefile.in, aclocal.m4, configure: Rebuild.
20903 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20904 (gomp_mutex_unlock_slow): Fix typo.
20905 * config/linux/sem.c: Similarly.
20906 (gomp_sem_post_slow): Fix typo.
20907 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20908 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20909 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20911 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20912 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20913 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20914 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20915 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20916 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20917 LDFLAGS. Pull enable_futex check to top-level.
20918 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20919 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20921 First attempt at real configury.
20922 * Makefile, config.h: Remove file.
20923 * Makefile.am, Makefile.in: New file.
20924 * acinclude.m4 aclocal.m4: New file.
20925 * configure.ac, configure.tgt, configure: New file.
20927 * config/posix/lock.c: Rename from sys-lock.c.
20928 * config/posix/mutex.h: Rename from sys-mutex.h.
20929 * config/posix/sem.c: Rename from sys-sem.c.
20930 * config/posix/sem.h: Rename from sys-sem.h.
20931 * config/posix/proc.c: Rename from sys-proc.c.
20932 * config/posix/time.c: Rename from sys-proc.c.
20934 * config/linux/mutex.c: New file.
20935 * config/linux/mutex.h: New file.
20936 * config/linux/sem.c: New file.
20937 * config/linux/sem.h: New file.
20938 * config/linux/i486/futex.h: New file.
20939 * config/linux/x86_64/futex.h: New file.
20941 2005-05-04 Richard Henderson <rth@redhat.com>
20943 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20944 * libgomp.h: Declare them.
20945 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20946 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20948 2005-05-04 Richard Henderson <rth@redhat.com>
20950 * libgomp-1 code drop
20952 2005-05-04 Richard Henderson <rth@redhat.com>
20954 * iter.c (gomp_iter_static_next): Return tri-state on 0.
20955 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20956 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20957 (gomp_iter_static_next): Update.
20958 (gomp_ordered_static_next): Update.
20959 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20960 (gomp_loop_ordered_static_start): Likewise. Exit early for a
20961 totally empty range.
20962 (gomp_loop_ordered_static_next): Refine test for calling
20963 gomp_ordered_static_next.
20964 * testsuite/ordered-1.c: Add case for more threads than iterations.
20966 * iter.c (gomp_iter_runtime_next_locked): Remove.
20967 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20968 gomp_loop_guided_start, gomp_loop_ordered_static_start,
20969 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20970 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20971 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20972 gomp_loop_ordered_guided_next): Downcase name, make static, add
20973 an external alias with the old name.
20974 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20975 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20976 switch and call one of the above static functions.
20977 * libgomp.h: Update.
20979 * work.c (gomp_work_share_start): Lock the mutex for !first too.
20980 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20981 GOMP_loop_guided_start, GOMP_loop_runtime_start,
20982 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20983 GOMP_loop_ordered_guided_start): Update to match.
20984 * sections.c (GOMP_sections_start): Likewise.
20985 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20987 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20988 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20989 Use bounds check instead of modulus.
20990 (gomp_ordered_sync): Split out of GOMP_ordered_start.
20991 (gomp_ordered_last): Don't sync with ordered_owner here.
20992 (gomp_ordered_next): Likewise.
20993 (gomp_ordered_static_loop_next): Likewise.
20994 * loop.c, libgomp.h: Update to match.
20996 * libgomp.h (GOMP_barrier): Declare.
20998 * testsuite/barrier-1.c: New file.
20999 * testsuite/critical-1.c: New file.
21000 * testsuite/ordered-2.c: New file.
21001 * testsuite/ordered-1.c: New file.
21002 * testsuite/sections-1.c: New file.
21003 * testsuite/single-1.c: New file.
21004 * testsuite/Makefile (TESTS): Add them.
21006 2005-05-04 Richard Henderson <rth@redhat.com>
21008 * libgomp.h (struct gomp_work_share): Add ordered_owner.
21009 * loop.c (GOMP_loop_static_start): If not the startup thread,
21010 acquire the mutex to wait for initialization complete.
21011 (GOMP_loop_ordered_static_start): Likewise.
21012 (GOMP_loop_ordered_runtime_start): Likewise.
21013 (GOMP_loop_ordered_static_first): Remove.
21014 (GOMP_loop_ordered_dynamic_first): Remove.
21015 (GOMP_loop_ordered_guided_first): Remove.
21016 (GOMP_loop_ordered_runtime_first): Remove.
21017 * ordered.c (gomp_ordered_loop_first): Post to own release when
21018 we're the first thread.
21019 (gomp_ordered_loop_last): Wait on release if not owner.
21020 (gomp_ordered_loop_next): Likewise.
21021 (gomp_ordered_static_loop_init): New.
21022 (gomp_ordered_static_loop_next): Use ordered_owner.
21023 (GOMP_ordered_start): Likewise.
21024 * work.c (gomp_new_work_share): Initialize ordered_owner.
21026 2005-05-03 Richard Henderson <rth@redhat.com>
21028 * Makefile (OPT): New.
21031 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
21032 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
21033 * libgomp.h, libgomp.map, NOTES: Update to match.
21035 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
21036 Add initialized and thr members.
21037 (gomp_thread_start): Pause when initially spawned to wait for
21038 the whole team to be created.
21039 (gomp_team_start): Release team members at the end.
21041 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
21042 (f_foo_1): Use GOMP_loop_end.
21043 (f_foo_2): Use GOMP_loop_end_nowait.
21045 * testsuite/loop-2.c: New file.
21046 * testsuite/Makefile (TESTS): Add it.
21048 2005-05-03 Richard Henderson <rth@redhat.com>
21050 * iter.c (gomp_iter_static_next): Fix overflow check typo.
21051 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
21052 * team.c (new_team): Initialize oldest_live_gen to 1 if no
21053 initial work_share.
21055 * testsuite/Makefile: New file.
21056 * testsuite/loop-1.c: New file.
21058 2005-05-03 Richard Henderson <rth@redhat.com>
21060 Initial implementation and checkin.
21062 Copyright (C) 2005-2024 Free Software Foundation, Inc.
21064 Copying and distribution of this file, with or without modification,
21065 are permitted in any medium without royalty provided the copyright
21066 notice and this notice are preserved.