1 2023-12-11 Lipeng Zhu <lipeng.zhu@intel.com>
3 * testsuite/libgomp.fortran/rwlock_1.f90: New file.
4 * testsuite/libgomp.fortran/rwlock_2.f90: New file.
5 * testsuite/libgomp.fortran/rwlock_3.f90: New file.
7 2023-12-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
9 * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
10 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
12 2023-12-11 Tobias Burnus <tobias@codesourcery.com>
14 * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
16 2023-12-08 Tobias Burnus <tobias@codesourcery.com>
18 * allocator.c (struct fort_alloc_splay_tree_key_s,
19 fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
20 * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
21 * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
22 GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
23 (GOMP_5.1.1): ... here.
24 * libgomp.texi (Impl. Status, Memory management): Update for
25 allocators/allocate directives.
26 * splay-tree.c: Handle splay_tree_static define to declare all
28 (splay_tree_lookup_node): New.
29 * splay-tree.h: Handle splay_tree_decl_only define.
30 (splay_tree_lookup_node): New prototype.
31 * target.c: Define splay_tree_static for 'reverse'.
32 * testsuite/libgomp.fortran/allocators-1.f90: New test.
33 * testsuite/libgomp.fortran/allocators-2.f90: New test.
34 * testsuite/libgomp.fortran/allocators-3.f90: New test.
35 * testsuite/libgomp.fortran/allocators-4.f90: New test.
36 * testsuite/libgomp.fortran/allocators-5.f90: New test.
38 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
40 * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
41 (TEAM_ARENA_FREE): Likewise.
42 (TEAM_ARENA_END): Likewise.
43 (GCN_LOWLAT_HEAP): New.
44 * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
45 (__gcn_lowlat_init): New prototype.
46 (gomp_gcn_enter_kernel): Initialize the low-latency heap.
47 * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
48 (TEAM_ARENA_FREE): Likewise.
49 (TEAM_ARENA_END): Likewise.
50 * plugin/plugin-gcn.c (lowlat_size): New variable.
51 (print_kernel_dispatch): Label the group_segment_size purpose.
52 (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
53 (create_kernel_dispatch): Pass low-latency head allocation to kernel.
54 (run_kernel): Use shadow; don't assume values.
55 * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
56 * config/gcn/allocator.c: New file.
57 * libgomp.texi: Document low-latency implementation details.
59 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
61 * allocator.c (MEMSPACE_VALIDATE): New macro.
62 (omp_init_allocator): Use MEMSPACE_VALIDATE.
63 (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
64 (omp_aligned_calloc): Likewise.
65 (omp_realloc): Likewise.
66 * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
67 (MEMSPACE_VALIDATE): New macro.
68 (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
69 * libgomp.texi: Document low-latency implementation details.
70 * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
71 * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
72 * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
73 * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
74 * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
75 * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
76 * testsuite/libgomp.c/omp_alloc-traits.c: New test.
78 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
79 Kwok Cheung Yeung <kcy@codesourcery.com>
80 Thomas Schwinge <thomas@codesourcery.com>
82 * allocator.c (MEMSPACE_ALLOC): New macro.
83 (MEMSPACE_CALLOC): New macro.
84 (MEMSPACE_REALLOC): New macro.
85 (MEMSPACE_FREE): New macro.
86 (predefined_alloc_mapping): New array. Add _Static_assert to match.
87 (ARRAY_SIZE): New macro.
88 (omp_aligned_alloc): Use MEMSPACE_ALLOC.
89 Implement fall-backs for predefined allocators. Simplify existing
91 (omp_free): Use MEMSPACE_FREE.
92 (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
93 predefined allocators. Simplify existing fall-backs.
94 (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
95 Implement fall-backs for predefined allocators. Simplify existing
97 * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
98 (__nvptx_lowlat_init): New prototype.
99 (gomp_nvptx_main): Call __nvptx_lowlat_init.
100 * libgomp.texi: Update memory space table.
101 * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
102 (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
103 (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
104 * basic-allocator.c: New file.
105 * config/nvptx/allocator.c: New file.
106 * testsuite/libgomp.c/omp_alloc-1.c: New test.
107 * testsuite/libgomp.c/omp_alloc-2.c: New test.
108 * testsuite/libgomp.c/omp_alloc-3.c: New test.
109 * testsuite/libgomp.c/omp_alloc-4.c: New test.
110 * testsuite/libgomp.c/omp_alloc-5.c: New test.
111 * testsuite/libgomp.c/omp_alloc-6.c: New test.
113 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
115 * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
116 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
117 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
118 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
119 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
120 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
121 * testsuite/libgomp.c/declare-variant-4.h: Likewise.
122 * testsuite/libgomp.c/declare-variant-4.c: New.
124 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
126 * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
128 * testsuite/libgomp.c/declare-variant-3.c: New.
129 * testsuite/libgomp.c/declare-variant-3.h: Extend.
131 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
133 * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
134 'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
135 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
136 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
137 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
138 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
139 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
140 * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
141 'scan-offload-tree-dump' to
142 'only_for_offload_target amdgcn-amdhsa'.
143 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
144 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
145 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
146 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
147 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
149 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
151 * testsuite/libgomp.c/declare-variant-3-sm30.c:
152 'dg-additional-options -foffload=nvptx-none'.
153 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
154 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
155 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
156 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
157 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
159 2023-11-29 Thomas Schwinge <thomas@codesourcery.com>
161 * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
162 'scan-offload-ipa-dump's to
163 'only_for_offload_target amdgcn-amdhsa'.
164 * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
165 * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
167 2023-11-24 Tobias Burnus <tobias@codesourcery.com>
169 * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
172 2023-11-22 Thomas Schwinge <thomas@codesourcery.com>
174 * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
175 (f75, f80, f): Add '__attribute__ ((noipa))'.
176 * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
177 (gfx908, gfx90a, f): Likewise.
179 2023-11-15 Andrew Stubbs <ams@codesourcery.com>
180 Andrew Jenner <andrew@codesourcery.com>
182 * plugin/plugin-gcn.c (max_isa_vgprs): New.
183 (run_kernel): CDNA2 devices have more VGPRs.
185 2023-11-10 Tobias Burnus <tobias@codesourcery.com>
187 * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
188 renamed section from TR11.
190 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
192 * config/linux/target-indirect.c: Move to...
193 * target-indirect.c: ...here.
195 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
197 * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
198 * Makefile.in: Regenerate.
199 * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
200 (GOMP_OFFLOAD_load_image): Add extra argument.
201 * libgomp.h (struct indirect_splay_tree_key_s): New.
202 (indirect_splay_tree_node, indirect_splay_tree,
203 indirect_splay_tree_key): New.
204 (indirect_splay_compare): New.
205 * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
206 * libgomp.texi (OpenMP 5.1): Update documentation on indirect
207 calls in target region and on indirect clause.
208 (Other new OpenMP 5.2 features): Add entry for virtual function calls.
209 * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
210 * oacc-host.c (host_load_image): Add extra argument.
211 * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
212 enough, read host indirect functions table and pass to
214 * config/accel/target-indirect.c: New.
215 * config/linux/target-indirect.c: New.
216 * config/gcn/team.c (build_indirect_map): Add prototype.
217 (gomp_gcn_enter_kernel): Initialize support for indirect
218 function calls on GCN target.
219 * config/nvptx/team.c (build_indirect_map): Add prototype.
220 (gomp_nvptx_main): Initialize support for indirect function
221 calls on NVPTX target.
222 * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
223 indirect functions count.
224 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
225 is high enough, build address translation table and copy it to target
227 * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
229 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
230 is high enough, Build address translation table and copy it to target
232 * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
233 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
234 * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
236 2023-11-05 Jakub Jelinek <jakub@redhat.com>
238 * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
241 2023-10-31 Thomas Schwinge <thomas@codesourcery.com>
243 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
244 'acc_map_data' variant.
246 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
248 * oacc-parallel.c (GOACC_data_start): Handle
249 'GOACC_FLAG_LOCAL_DEVICE'.
250 (GOACC_parallel_keyed): Simplify accordingly.
251 * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
253 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
255 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
256 * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
257 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
258 * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
259 * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
261 2023-10-25 Chung-Lin Tang <cltang@codesourcery.com>
263 * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
264 GOACC_FLAG_LOCAL_DEVICE case.
265 * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
267 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
269 * Makefile.am: Handle Darwin rpaths.
270 * Makefile.in: Regenerate.
271 * configure: Regenerate.
272 * configure.ac: Handle Darwin rpaths
274 2023-10-20 Andrew Stubbs <ams@codesourcery.com>
276 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
277 (isa_hsa_name): Recognise gfx1030.
278 (isa_code): Likewise.
279 * team.c (defined): Remove s_endpgm.
281 2023-10-20 Tobias Burnus <tobias@codesourcery.com>
283 * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
286 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
288 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
289 improve wording especially for Fortran; mention -fopenmp-simd.
290 (Enabling OpenACC): Minor cleanup; remove conditional compilation
293 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
295 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
296 Actually document what the function does.
297 (GCC_ACC_NOTIFY): Remove unused env var.
299 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
301 * libgomp.texi: Replace most future tense by present tense.
303 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
305 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
306 dg-additional-options "-fdump-tree-gimple"; fix scan.
308 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
310 * libgomp.texi: Fix some typos.
311 (Memory Management Routines): Document remaining 5.x routines.
312 (Memory allocation): Make clear when the section applies.
314 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
316 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
317 supports the allocate directive for stack variables.
318 * testsuite/libgomp.fortran/allocate-5.f90: New test.
319 * testsuite/libgomp.fortran/allocate-6.f90: New test.
320 * testsuite/libgomp.fortran/allocate-7.f90: New test.
321 * testsuite/libgomp.fortran/allocate-8.f90: New test.
323 2023-10-12 Tobias Burnus <tobias@codesourcery.com>
325 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
327 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
328 clarify MANDATORY behavior.
330 2023-10-12 Zhang, Jun <jun.zhang@intel.com>
332 * env.c (initialize_env): Use do_adjust_default_spincount.
333 * config/linux/x86/spincount.h: New file.
335 2023-10-08 Tobias Burnus <tobias@codesourcery.com>
337 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
339 2023-10-06 Tobias Burnus <tobias@codesourcery.com>
341 * libgomp.texi (Device Memory Routines): New.
343 2023-10-04 Tobias Burnus <tobias@codesourcery.com>
345 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
346 and that other target archs have no 'arch'/'isa' traits implemented.
348 2023-09-20 Tobias Burnus <tobias@codesourcery.com>
350 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
351 implemented for C only.
352 * testsuite/libgomp.c/allocate-4.c: New test.
353 * testsuite/libgomp.c/allocate-5.c: New test.
354 * testsuite/libgomp.c/allocate-6.c: New test.
356 2023-09-20 Jakub Jelinek <jakub@redhat.com>
359 * libgomp.texi: Mark decl attribute was added to the C++ attribute
360 syntax as implemented.
362 2023-09-19 Jakub Jelinek <jakub@redhat.com>
365 * env.c (initialize_env): Don't dereference environ if it is NULL.
368 2023-09-18 Richard Biener <rguenther@suse.de>
370 PR tree-optimization/111294
371 * team.c (gomp_team_start): Assert alloca size to avoid false
372 positive alloc-size diagnostic.
374 2023-09-12 Thomas Schwinge <thomas@codesourcery.com>
375 Chung-Lin Tang <cltang@codesourcery.com>
379 * configure.ac: Revert earlier changes, instead
380 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
381 * Makefile.in: Regenerate.
382 * configure: Likewise.
383 * testsuite/Makefile.in: Likewise.
384 * testsuite/lib/libgomp.exp (libgomp_init): Remove
385 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
386 If '--with-build-sysroot=[...]' was specified, use it for
388 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
389 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
390 (SYSROOT_CFLAGS_FOR_TARGET): Set.
391 * testsuite/libgomp.c++/c++.exp (lang_source_re)
392 (lang_include_flags): Set for build-tree testing.
393 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
394 (lang_include_flags): Likewise.
396 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
398 * libgomp.texi (Memory Management Routines): New; add documentation for
399 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
400 omp_get_default_allocator.
401 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
403 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
405 * target.c (gomp_unload_device): Remove tailing whitespace.
407 2023-09-04 Tobias Burnus <tobias@codesourcery.com>
408 Thomas Schwinge <thomas@codesourcery.com>
410 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
412 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
414 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
416 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
418 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
419 * testsuite/libgomp.fortran/imperfect1.f90: New.
420 * testsuite/libgomp.fortran/imperfect2.f90: New.
421 * testsuite/libgomp.fortran/imperfect3.f90: New.
422 * testsuite/libgomp.fortran/imperfect4.f90: New.
423 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
424 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
425 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
426 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
428 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
430 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
431 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
432 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
433 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
434 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
435 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
436 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
437 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
438 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
439 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
441 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
443 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
444 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
445 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
446 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
447 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
448 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
449 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
450 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
451 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
452 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
453 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
454 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
455 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
457 2023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
459 * testsuite/lib/libgomp.exp: Add effective target.
460 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
463 2023-08-22 Tobias Burnus <tobias@codesourcery.com>
465 * libgomp.texi (OpenMP 5.2 status): Add depobj with
466 destroy-var argument as 'N'. Mark defaultmap with
467 'all' category as 'Y'.
469 2023-08-19 Tobias Burnus <tobias@codesourcery.com>
472 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
474 2023-08-17 Tobias Burnus <tobias@codesourcery.com>
477 * allocator.c (gomp_init_libnuma): Call numa_available; if
478 not available or not returning 0, disable libnuma usage.
480 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
482 * configure: Regenerate.
484 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
486 * configure: Regenerate.
488 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
490 * configure: Regenerate.
492 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
494 * configure: Regenerate.
496 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
498 * configure: Regenerate.
500 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
502 * configure: Regenerate.
504 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
506 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
507 GOMP_OFFLOAD_CAP_SHARED_MEM.
508 (omp_target_memcpy_rect_copy): Likewise for lock condition.
509 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
511 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
512 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
513 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
515 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
517 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
518 GOMP_OFFLOAD_memcpy3d): New prototypes.
519 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
521 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
522 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
523 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
524 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
525 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
526 GOMP_OFFLOAD_memcpy3d): New.
527 * target.c (omp_target_memcpy_rect_worker):
528 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
529 Permit all device-to-device copyies; invoke new plugins for
530 2D and 3D copying when available.
531 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
532 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
533 * testsuite/libgomp.fortran/target-12.f90: Likewise.
534 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
536 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
538 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
539 (Tasking Routines): Document omp_in_explicit_task.
540 (Implementation-defined ICV Initialization): Use @ref not @code.
542 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
544 * libgomp.texi (OpenMP Runtime Library Routines):
545 Split long list by adding sections and moving routines there.
546 (OMP_ALLOCATORS): Fix typo.
548 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
551 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
552 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
554 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
555 test file; tests are in non-rectangular-loop-1.f90.
556 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
557 testcase to use a non-constant step to retain the 'sorry' test.
558 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
560 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
561 Chung-Lin Tang <cltang@codesourcery.com>
563 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
564 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
566 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
568 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
569 the traits. Add crossref to 'Memory allocation'.
570 (Memory allocation): Refer to OMP_ALLOCATOR for the available
571 traits and allocators/mem spaces; document the default value
572 for the pool_size trait.
574 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
576 * allocator.c (omp_init_allocator): Check whether symbol from
577 dlopened libnuma is available before using libnuma for
580 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
582 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
583 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
584 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
586 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
588 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
589 'Memory allocation' section which contains the full status.
590 (TR11): Remove differently worded duplicated entry.
592 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
594 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
595 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
596 add GOMP_MEMKIND_LIBNUMA.
597 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
598 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
599 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
600 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
602 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
603 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
604 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
605 updated for libnuma usage.
606 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
607 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
609 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
611 * allocator.c (omp_init_allocator): Use malloc for
612 omp_high_bw_mem_space when the memkind lib is unavailable
613 instead of returning omp_null_allocator.
614 * libgomp.texi (OpenMP 5.0): Fix typo.
615 (Memory allocation with libmemkind): Document implementation
618 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
620 * libgomp.texi: Use @var for ICV vars.
621 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
622 document which ICV is set and which scope the ICV has; extend/cleanup
624 (Implementation-defined ICV Initialization): New.
625 (nvptx): Document the implementation-defined used per-warp stack size.
627 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
629 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
632 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
634 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
635 as expected dg-output.
637 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
640 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
641 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
642 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
643 * testsuite/libgomp.c/target-19.c: Update expected value.
644 * testsuite/libgomp.c++/target-18.C: Likewise.
645 * testsuite/libgomp.c++/target-19.C: Likewise.
646 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
647 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
648 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
650 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
652 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
653 gomp_init_targets_once was called before using default-device-var.
654 * testsuite/libgomp.c/target-55.c: New test.
655 * testsuite/libgomp.c/target-55a.c: New test.
657 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
659 * env.c (gomp_def_allocator_envvar): New var.
660 (parse_allocator): Handle OpenMP 5.1 syntax.
662 (omp_display_env): Output gomp_def_allocator_envvar
663 for an allocator with traits.
664 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
665 OMP_DISPLAY_AFFINITY): New.
666 * testsuite/libgomp.c/allocator-1.c: New test.
667 * testsuite/libgomp.c/allocator-2.c: New test.
668 * testsuite/libgomp.c/allocator-3.c: New test.
669 * testsuite/libgomp.c/allocator-4.c: New test.
670 * testsuite/libgomp.c/allocator-5.c: New test.
671 * testsuite/libgomp.c/allocator-6.c: New test.
673 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
675 * target.c (resolve_device): Align a
676 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
677 * testsuite/libgomp.c/target-51.c: Adjust.
679 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
681 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
683 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
685 * testsuite/libgomp.c/simd-math-1.c: Remove
686 '-foffload-options=-lm'.
687 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
689 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
692 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
694 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
695 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
698 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
700 * testsuite/libgomp.c/target-51.c: Fix typo.
702 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
704 * env.c (gomp_default_icv_values): Init default_device_var to
705 an nonconforming value - INT_MIN.
706 (initialize_env): After env-var parsing, set default_device_var to
707 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
708 (omp_display_env): If default_device_var is INT_MIN, call
709 gomp_init_targets_once.
710 * icv-device.c (omp_get_default_device): Likewise.
711 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
712 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
713 * target.c (resolve_device): Improve error message device-num < 0
714 with 'mandatory' and no no-host devices available.
715 (gomp_target_init): Set default-device-var if INT_MIN.
716 * testsuite/libgomp.c/target-48.c: New test.
717 * testsuite/libgomp.c/target-49.c: New test.
718 * testsuite/libgomp.c/target-50.c: New test.
719 * testsuite/libgomp.c/target-50a.c: New test.
720 * testsuite/libgomp.c/target-51.c: New test.
721 * testsuite/libgomp.c/target-52.c: New test.
722 * testsuite/libgomp.c/target-53.c: New test.
723 * testsuite/libgomp.c/target-54.c: New test.
725 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
728 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
729 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
731 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
733 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
734 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
735 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
737 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
738 changed error message.
739 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
740 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
741 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
742 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
743 extend testcase to check that data is copied when needed.
744 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
745 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
747 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
748 Tobias Burnus <tobias@codesourcery.com>
750 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
751 also for non-offload_device targets; check that it runs
752 successfully for those and for all until a checkpoint for all
753 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
754 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
755 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
756 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
757 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
758 add missing vars to map clause.
760 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
762 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
763 unified_address requirement as supported.
764 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
765 'unified_address' from the not-supported requirements.
767 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
768 Tobias Burnus <tobias@codesourcery.com>
770 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
771 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
772 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
774 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
775 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
776 Emit runtime error if memory region not present.
777 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
778 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
779 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
780 * testsuite/libgomp.fortran/target-present-1.f90: New test.
781 * testsuite/libgomp.fortran/target-present-2.f90: New test.
782 * testsuite/libgomp.fortran/target-present-3.f90: New test.
784 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
787 * testsuite/lib/libgomp.exp: 'flock' through stdout.
788 * testsuite/flock: New.
789 * configure.ac (FLOCK): Point to that if no 'flock' available, but
791 * configure: Regenerate.
793 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
795 * configure.ac (PERL): Remove.
796 * configure: Regenerate.
797 * Makefile.in: Likewise.
798 * testsuite/Makefile.in: Likewise.
800 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
802 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
804 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
806 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
808 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
811 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
812 * config/nvptx/target.c (GOMP_teams4): Likewise.
813 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
814 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
815 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
816 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
818 2023-05-19 Jakub Jelinek <jakub@redhat.com>
821 * configure.ac (link_gomp): Include also $DL_LIBS.
822 * configure: Regenerated.
824 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
826 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
828 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
829 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
830 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
831 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
833 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
836 * configure.ac: Look for 'flock'.
837 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
838 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
839 * testsuite/lib/libgomp.exp: ... but here, instead.
840 (libgomp_load): Override for parallel testing.
841 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
842 * configure: Regenerate.
843 * Makefile.in: Regenerate.
844 * testsuite/Makefile.in: Regenerate.
846 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
847 Thomas Schwinge <thomas@codesourcery.com>
850 * testsuite/Makefile.am (PWD_COMMAND): New variable.
851 (%/site.exp): New target.
852 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
853 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
854 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
856 (check_DEJAGNU_libgomp_targets): New variables.
857 ($(check_DEJAGNU_libgomp_targets)): New target.
858 ($(check_DEJAGNU_libgomp_targets)): New dependency.
859 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
860 * testsuite/Makefile.in: Regenerate.
861 * testsuite/lib/libgomp.exp: For parallel testing,
862 'load_file ../libgomp-test-support.exp'.
864 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
867 * configure.ac: 'AC_SUBST(CXX)'.
868 * configure: Regenerate.
869 * Makefile.in: Likewise.
870 * testsuite/Makefile.in: Likewise.
871 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
872 (GFORTRAN_UNDER_TEST): Set.
873 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
874 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
875 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
876 * testsuite/libgomp.fortran/fortran.exp: Use
877 'GFORTRAN_UNDER_TEST'.
878 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
880 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
883 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
885 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
886 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
887 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
888 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
890 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
891 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
892 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
895 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
898 * testsuite/libgomp.c++/target-map-class-1.C: New test.
899 * testsuite/libgomp.c++/target-map-class-2.C: New test.
901 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
903 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
904 'lang_library_path' into a list of 'lang_library_paths'.
905 * testsuite/libgomp.c++/c++.exp: Adjust.
906 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
907 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
909 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
911 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
913 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
914 at 'lang_test_file_found'.
915 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
916 'return' early if not able to test. Simplify 'ld_library_path' setup.
917 * testsuite/libgomp.fortran/fortran.exp: Likewise.
918 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
919 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
921 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
923 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
925 * testsuite/libgomp.fortran/fortran.exp: Likewise.
926 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
927 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
929 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
931 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
932 * testsuite/libgomp.c/c.exp: Likewise.
933 * testsuite/libgomp.fortran/fortran.exp: Likewise.
934 * testsuite/libgomp.graphite/graphite.exp: Likewise.
935 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
936 * testsuite/libgomp.oacc-c/c.exp: Likewise.
937 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
939 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
941 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
942 * testsuite/libgomp.fortran/fortran.exp: Likewise.
943 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
944 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
945 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
947 * testsuite/libgomp.oacc-c/c.exp: Likewise.
948 * testsuite/libgomp.graphite/graphite.exp: Likewise.
949 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
950 'lang_test_file_found' instead of 'lang_test_file'.
952 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
954 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
956 * testsuite/libgomp.c++/c++.exp: Likewise.
957 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
959 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
961 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
962 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
964 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
966 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
967 of 'libstdcxx_includes'.
968 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
970 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
972 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
973 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
974 * libgomp.h (gomp_target_rev): Adjust.
975 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
976 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
977 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
978 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
979 (rev_off_host_to_dev_cpy): Remove.
980 (GOMP_OFFLOAD_run): Adjust.
982 2023-05-04 Julian Brown <julian@codesourcery.com>
985 * testsuite/libgomp.fortran/pr109622.f90: Move test...
986 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
987 vector length warning.
988 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
989 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
990 missing copyin/copyout variable. Ignore vector length warnings.
991 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
992 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
993 vector length warnings.
994 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
996 2023-04-28 Julian Brown <julian@codesourcery.com>
999 * testsuite/libgomp.fortran/pr109622.f90: New test.
1000 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
1001 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
1003 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
1005 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
1006 * testsuite/libgomp.c/scan-23.c: New test.
1007 * testsuite/libgomp.fortran/scan-2.f90: New test.
1009 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1011 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
1012 weak_undefined options.
1014 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
1016 * libgomp.texi (Offload-Target Specifics): Grammar fix.
1018 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
1021 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
1024 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1027 * target.c (gomp_map_vars_internal): Allow for
1028 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
1029 * oacc-parallel.c (GOACC_parallel_keyed): Pass
1030 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
1031 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
1032 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1034 (gomp_offload_free): Remove.
1035 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1036 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1037 (cuda_free_argmem): Remove.
1038 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1041 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1043 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1044 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1047 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1049 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1050 'GOMP_MAP_IF_PRESENT'.
1051 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1052 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1053 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1054 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1055 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1057 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1059 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1061 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1064 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1066 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1067 another aspect of OpenACC 'async' semantics.
1069 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1071 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1073 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1074 Verify 'acc_ev_alloc', 'acc_ev_free'.
1076 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
1079 * env.c (wait_policy): Initialize to -1.
1080 (initialize_icvs): Initialize icvs->wait_policy to -1.
1081 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1083 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
1085 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1087 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1088 Paul-Antoine Arras <pa@codesourcery.com>
1090 * testsuite/libgomp.c/simd-math-1.c: New testcase.
1092 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
1094 PR middle-end/108546
1095 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1096 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1098 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
1100 * testsuite/libgomp.fortran/alloc-10.f90: Use
1101 '-Wno-complain-wrong-lang'.
1102 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1103 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1104 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1105 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1106 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1107 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1108 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1109 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1110 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1111 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1113 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1115 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1116 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1117 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1118 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1121 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1123 * libgomp.texi: Fix typos - theads -> threads.
1125 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1127 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1128 comment typo and improve its wording.
1130 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1132 * target.c (gomp_target_rev): Dereference ptr
1133 to get device address.
1134 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1135 for unallocated allocatable.
1137 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1139 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1141 (GOMP_target_enter_exit_data): If the next map item is
1142 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1143 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1145 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
1148 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1149 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1150 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1151 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1152 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1153 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1155 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
1157 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1158 offloading compilation.
1160 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1162 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1163 freeing not allocated memory.
1164 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1166 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1168 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1170 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1171 reverse-offload requirement.
1173 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
1175 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1176 (DEFAULT_TEAM_ARENA_SIZE): New define.
1177 (struct heap): Move to this file.
1178 (struct kernargs_abi): Likewise.
1179 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1181 * libgomp.h: Include libgomp-gcn.h.
1182 (TEAM_ARENA_SIZE): Remove.
1183 (team_malloc): Update the error message.
1184 * plugin/plugin-gcn.c (struct kernargs): Move common content to
1185 struct kernargs_abi.
1186 (struct agent_info): Rename team arenas to ephemeral memories.
1187 (struct team_arena_list): Rename ....
1188 (struct ephemeral_memories_list): to this.
1189 (struct heap): Delete.
1190 (team_arena_size): New variable.
1191 (stack_size): New variable.
1192 (print_kernel_dispatch): Update debug messages.
1193 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1194 Read GCN_STACK_SIZE.
1195 (get_team_arena): Rename ...
1196 (configure_ephemeral_memories): ... to this, and set up stacks.
1197 (release_team_arena): Rename ...
1198 (release_ephemeral_memories): ... to this.
1199 (destroy_team_arenas): Rename ...
1200 (destroy_ephemeral_memories): ... to this.
1201 (create_kernel_dispatch): Add num_threads parameter.
1202 Adjust for kernargs_abi refactor and ephemeral memories.
1203 (release_kernel_dispatch): Adjust for ephemeral memories.
1204 (run_kernel): Pass thread-count to create_kernel_dispatch.
1205 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1206 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1208 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
1210 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1212 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1214 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1215 usage, remove unused -fdump-tree-original.
1216 * testsuite/libgomp.fortran/allocate-4.f90: New.
1218 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1220 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1221 (GCN): Add item about 'omp requires'.
1222 (nvptx): Likewise; add item about reverse offload.
1224 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
1227 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1229 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
1231 * libgomp.texi (OpenMP 5.0): Set non-rectangular
1232 loop nest back to 'P' as Fortran support is incomplete.
1234 2023-01-19 Jakub Jelinek <jakub@redhat.com>
1236 PR middle-end/108459
1237 * testsuite/libgomp.c/pr108459.c: New test.
1239 2023-01-17 Martin Liska <mliska@suse.cz>
1241 * Makefile.in: Regenerate.
1242 * configure: Regenerate.
1244 2023-01-07 LIU Hao <lh_mouse@126.com>
1246 PR middle-end/108300
1247 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1250 2023-01-05 Jakub Jelinek <jakub@redhat.com>
1253 * testsuite/libgomp.c++/pr108286.C: New test.
1255 2023-01-02 Jakub Jelinek <jakub@redhat.com>
1257 * libgomp.texi: Bump @copying's copyright year.
1259 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
1262 * config/nvptx/bar.c (generation_to_barrier): Remove.
1263 (futex_wait,futex_wake,do_spin,do_wait): Remove.
1264 (GOMP_WAIT_H): Remove.
1265 (#include "../linux/bar.c"): Remove.
1266 (gomp_barrier_wait_end): New function.
1267 (gomp_barrier_wait): Likewise.
1268 (gomp_barrier_wait_last): Likewise.
1269 (gomp_team_barrier_wait_end): Likewise.
1270 (gomp_team_barrier_wait): Likewise.
1271 (gomp_team_barrier_wait_final): Likewise.
1272 (gomp_team_barrier_wait_cancel_end): Likewise.
1273 (gomp_team_barrier_wait_cancel): Likewise.
1274 (gomp_team_barrier_cancel): Likewise.
1275 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1276 (gomp_barrier_init): Remove init of waiters, lock fields.
1277 (gomp_team_barrier_wake): Remove prototype, add new static inline
1280 2022-12-21 Jakub Jelinek <jakub@redhat.com>
1283 * testsuite/libgomp.c++/pr108180.C: New test.
1285 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
1287 PR libfortran/108056
1288 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1289 accidentally added file.
1291 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
1293 PR libfortran/108056
1294 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1296 2022-12-14 Julian Brown <julian@codesourcery.com>
1298 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1301 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
1303 * libgomp.h (struct target_mem_desc): Predeclare; move
1304 below after 'reverse_splay_tree_node' and add rev_array
1306 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1307 (reverse_splay_tree_node, reverse_splay_tree,
1308 reverse_splay_tree_key): New typedef.
1309 (struct gomp_device_descr): Add mem_map_rev member.
1310 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1311 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1312 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1313 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1314 splay_tree_callback but returning int not void.
1315 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1316 taking splay_tree_callback_stop as argument.
1317 * splay-tree.c (splay_tree_foreach_internal_lazy,
1318 splay_tree_foreach_lazy): New; but early exit if callback returns
1320 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1321 (gomp_map_lookup_rev): New.
1322 (gomp_load_image_to_device): Handle reverse-offload function
1324 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1325 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1326 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1327 gomp_map_cdata_lookup): New auxiliary structs and functions for
1329 (gomp_target_rev): Implement reverse offloading and its mapping.
1330 (gomp_target_init): Init current_device.mem_map_rev.root.
1331 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1332 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1333 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1334 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1335 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1336 mapping of on-device allocated variables.
1338 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
1340 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1341 item about 'align'; mark clause as 'Y' and directive as 'N'.
1342 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1343 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1345 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1347 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1348 allow processing of device-specific values.
1349 (omp_set_teams_thread_limit): Likewise.
1351 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1352 (omp_set_teams_thread_limit): Likewise.
1354 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1356 (omp_set_teams_thread_limit): Likewise.
1357 * icv.c (omp_set_teams_thread_limit): Removed.
1358 (omp_get_teams_thread_limit): Likewise.
1360 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1361 to the limitation of the number of teams.
1362 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1363 the number of teams by twice the number of compute units.
1364 (parse_target_attributes): Limit the number of teams on gcn offload
1366 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1368 (gomp_load_image_to_device): Added a size check for the ICVs struct
1370 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1371 copy back the ICV values from device to host.
1372 (GOMP_target_ext): Update the number of teams and threads in the kernel
1373 args also considering device-specific values.
1374 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1375 of OMP_TEAMS_THREAD_LIMIT from the environment.
1376 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1377 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1378 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1379 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1380 * testsuite/libgomp.fortran/icv-5.f90: New test.
1381 * testsuite/libgomp.fortran/icv-6.f90: New test.
1383 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
1385 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1386 (TR11): Add missing '@tab N @tab'.
1388 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
1390 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1392 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1394 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1395 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1396 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1397 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1398 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1399 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1400 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1402 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
1404 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1406 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1408 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1409 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1410 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1411 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1413 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1415 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1416 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1417 as valid and the code having no reverse-offload code.
1418 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1420 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1422 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1423 and status for Technical Report (TR) 11.
1425 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
1427 * config/gcn/libgomp-gcn.h (struct output):
1428 Remove 'msg_u64' from the union, change
1429 value_u64[2] to value_u64[6].
1430 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1431 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1434 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
1436 * config/gcn/libgomp-gcn.h: New file; contains
1437 struct output, declared previously in plugin-gcn.c.
1438 * config/gcn/target.c: Include it.
1439 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1440 (GOMP_target_ext): Handle reverse offload.
1441 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1442 (struct kernargs): Replace struct def by the one
1443 from libgomp-gcn.h for output_data.
1444 (process_reverse_offload): New.
1445 (console_output): Call it.
1447 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
1448 Andrew Stubbs <ams@codesourcery.com>
1450 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1451 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1453 2022-11-14 Martin Liska <mliska@suse.cz>
1456 2022-11-14 Martin Liska <mliska@suse.cz>
1458 * doc/amd-radeon-gcn.rst: New file.
1459 * doc/conf.py: New file.
1460 * doc/copyright.rst: New file.
1461 * doc/cuda-streams-usage.rst: New file.
1462 * doc/enabling-openacc.rst: New file.
1463 * doc/enabling-openmp.rst: New file.
1464 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1465 * doc/first-invocation-openacc-library-api.rst: New file.
1466 * doc/funding.rst: New file.
1467 * doc/general-public-license-3.rst: New file.
1468 * doc/gnu-free-documentation-license.rst: New file.
1469 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1470 * doc/index.rst: New file.
1471 * doc/indices-and-tables.rst: New file.
1472 * doc/introduction.rst: New file.
1473 * doc/memory-allocation-with-libmemkind.rst: New file.
1474 * doc/nvptx.rst: New file.
1475 * doc/offload-target-specifics.rst: New file.
1476 * doc/openacc-environment-variables.rst: New file.
1477 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1478 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1479 * doc/openacc-environment-variables/accproflib.rst: New file.
1480 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1481 * doc/openacc-introduction.rst: New file.
1482 * doc/openacc-library-and-environment-variables.rst: New file.
1483 * doc/openacc-library-interoperability.rst: New file.
1484 * doc/openacc-profiling-interface.rst: New file.
1485 * doc/openacc-runtime-library-routines.rst: New file.
1486 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1487 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1488 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1489 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1490 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1491 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1492 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1493 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1494 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1495 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1496 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1497 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1498 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1499 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1500 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1501 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1502 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1503 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1504 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1505 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1506 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1507 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1508 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1509 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1510 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1511 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1512 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1513 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1514 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1515 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1516 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1517 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1518 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1519 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1520 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1521 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1522 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1523 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1524 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1525 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1526 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1527 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1528 * doc/openmp-context-selectors.rst: New file.
1529 * doc/openmp-environment-variables.rst: New file.
1530 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1531 * doc/openmp-environment-variables/gompdebug.rst: New file.
1532 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1533 * doc/openmp-environment-variables/gompspincount.rst: New file.
1534 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1535 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1536 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1537 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1538 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1539 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1540 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1541 * doc/openmp-environment-variables/ompnested.rst: New file.
1542 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1543 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1544 * doc/openmp-environment-variables/ompplaces.rst: New file.
1545 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1546 * doc/openmp-environment-variables/ompschedule.rst: New file.
1547 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1548 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1549 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1550 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1551 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1552 * doc/openmp-implementation-specifics.rst: New file.
1553 * doc/openmp-implementation-status.rst: New file.
1554 * doc/openmp-implementation-status/openmp-45.rst: New file.
1555 * doc/openmp-implementation-status/openmp-50.rst: New file.
1556 * doc/openmp-implementation-status/openmp-51.rst: New file.
1557 * doc/openmp-implementation-status/openmp-52.rst: New file.
1558 * doc/openmp-runtime-library-routines.rst: New file.
1559 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1560 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1561 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1562 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1563 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1564 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1565 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1566 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1567 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1568 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1569 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1570 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1571 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1572 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1573 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1574 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1575 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1576 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1577 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1578 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1579 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1580 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1581 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1582 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1583 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1584 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1585 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1586 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1587 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1588 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1589 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1590 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1591 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1592 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1593 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1594 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1595 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1596 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1597 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1598 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1599 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1600 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1601 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1602 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1603 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1604 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1605 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1606 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1607 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1608 * doc/reporting-bugs.rst: New file.
1609 * doc/the-libgomp-abi.rst: New file.
1610 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1611 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1612 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1613 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1615 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1616 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1617 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1618 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1619 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1620 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1621 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1622 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1623 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1624 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1625 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1627 2022-11-14 Martin Liska <mliska@suse.cz>
1630 2022-11-14 Martin Liska <mliska@suse.cz>
1632 * Makefile.in: Support Sphinx based documentation.
1634 2022-11-14 Martin Liska <mliska@suse.cz>
1637 2022-11-14 Martin Liska <mliska@suse.cz>
1639 * libgomp.texi: Removed.
1641 2022-11-14 Martin Liska <mliska@suse.cz>
1644 2022-11-14 Martin Liska <mliska@suse.cz>
1646 * Makefile.in: Support --with-sphinx-build.
1647 * configure.ac: Likewise..
1648 * configure: Regenerate.
1650 2022-11-14 Martin Liska <mliska@suse.cz>
1653 2022-11-09 Martin Liska <mliska@suse.cz>
1655 * Makefile.in: Build info pages conditionally.
1657 2022-11-14 Martin Liska <mliska@suse.cz>
1660 2022-11-14 Martin Liska <mliska@suse.cz>
1662 * doc/amd-radeon-gcn.rst:
1663 Add trailing newline.
1664 * doc/copyright.rst:
1665 Add trailing newline.
1666 * doc/cuda-streams-usage.rst:
1667 Add trailing newline.
1668 * doc/enabling-openacc.rst:
1669 Add trailing newline.
1670 * doc/enabling-openmp.rst:
1671 Add trailing newline.
1672 * doc/first-invocation-nvidia-cublas-library-api.rst:
1673 Add trailing newline.
1674 * doc/first-invocation-openacc-library-api.rst:
1675 Add trailing newline.
1677 Add trailing newline.
1678 * doc/general-public-license-3.rst:
1679 Add trailing newline.
1680 * doc/gnu-free-documentation-license.rst:
1681 Add trailing newline.
1682 * doc/implementation-status-and-implementation-defined-behavior.rst:
1683 Add trailing newline.
1685 Add trailing newline.
1686 * doc/indices-and-tables.rst:
1687 Add trailing newline.
1688 * doc/introduction.rst:
1689 Add trailing newline.
1690 * doc/memory-allocation-with-libmemkind.rst:
1691 Add trailing newline.
1693 Add trailing newline.
1694 * doc/offload-target-specifics.rst:
1695 Add trailing newline.
1696 * doc/openacc-environment-variables.rst:
1697 Add trailing newline.
1698 * doc/openacc-environment-variables/accdevicenum.rst:
1699 Add trailing newline.
1700 * doc/openacc-environment-variables/accdevicetype.rst:
1701 Add trailing newline.
1702 * doc/openacc-environment-variables/accproflib.rst:
1703 Add trailing newline.
1704 * doc/openacc-environment-variables/gccaccnotify.rst:
1705 Add trailing newline.
1706 * doc/openacc-introduction.rst:
1707 Add trailing newline.
1708 * doc/openacc-library-and-environment-variables.rst:
1709 Add trailing newline.
1710 * doc/openacc-library-interoperability.rst:
1711 Add trailing newline.
1712 * doc/openacc-profiling-interface.rst:
1713 Add trailing newline.
1714 * doc/openacc-runtime-library-routines.rst:
1715 Add trailing newline.
1716 * doc/openacc-runtime-library-routines/accasynctest.rst:
1717 Add trailing newline.
1718 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1719 Add trailing newline.
1720 * doc/openacc-runtime-library-routines/accattach.rst:
1721 Add trailing newline.
1722 * doc/openacc-runtime-library-routines/acccopyin.rst:
1723 Add trailing newline.
1724 * doc/openacc-runtime-library-routines/acccopyout.rst:
1725 Add trailing newline.
1726 * doc/openacc-runtime-library-routines/acccreate.rst:
1727 Add trailing newline.
1728 * doc/openacc-runtime-library-routines/accdelete.rst:
1729 Add trailing newline.
1730 * doc/openacc-runtime-library-routines/accdetach.rst:
1731 Add trailing newline.
1732 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1733 Add trailing newline.
1734 * doc/openacc-runtime-library-routines/accfree.rst:
1735 Add trailing newline.
1736 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1737 Add trailing newline.
1738 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1739 Add trailing newline.
1740 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1741 Add trailing newline.
1742 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1743 Add trailing newline.
1744 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1745 Add trailing newline.
1746 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1747 Add trailing newline.
1748 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1749 Add trailing newline.
1750 * doc/openacc-runtime-library-routines/acchostptr.rst:
1751 Add trailing newline.
1752 * doc/openacc-runtime-library-routines/accinit.rst:
1753 Add trailing newline.
1754 * doc/openacc-runtime-library-routines/accispresent.rst:
1755 Add trailing newline.
1756 * doc/openacc-runtime-library-routines/accmalloc.rst:
1757 Add trailing newline.
1758 * doc/openacc-runtime-library-routines/accmapdata.rst:
1759 Add trailing newline.
1760 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1761 Add trailing newline.
1762 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1763 Add trailing newline.
1764 * doc/openacc-runtime-library-routines/accondevice.rst:
1765 Add trailing newline.
1766 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1767 Add trailing newline.
1768 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1769 Add trailing newline.
1770 * doc/openacc-runtime-library-routines/accproflookup.rst:
1771 Add trailing newline.
1772 * doc/openacc-runtime-library-routines/accprofregister.rst:
1773 Add trailing newline.
1774 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1775 Add trailing newline.
1776 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1777 Add trailing newline.
1778 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1779 Add trailing newline.
1780 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1781 Add trailing newline.
1782 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1783 Add trailing newline.
1784 * doc/openacc-runtime-library-routines/accshutdown.rst:
1785 Add trailing newline.
1786 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1787 Add trailing newline.
1788 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1789 Add trailing newline.
1790 * doc/openacc-runtime-library-routines/accupdateself.rst:
1791 Add trailing newline.
1792 * doc/openacc-runtime-library-routines/accwait.rst:
1793 Add trailing newline.
1794 * doc/openacc-runtime-library-routines/accwaitall.rst:
1795 Add trailing newline.
1796 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1797 Add trailing newline.
1798 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1799 Add trailing newline.
1800 * doc/openmp-context-selectors.rst:
1801 Add trailing newline.
1802 * doc/openmp-environment-variables.rst:
1803 Add trailing newline.
1804 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1805 Add trailing newline.
1806 * doc/openmp-environment-variables/gompdebug.rst:
1807 Add trailing newline.
1808 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1809 Add trailing newline.
1810 * doc/openmp-environment-variables/gompspincount.rst:
1811 Add trailing newline.
1812 * doc/openmp-environment-variables/gompstacksize.rst:
1813 Add trailing newline.
1814 * doc/openmp-environment-variables/ompcancellation.rst:
1815 Add trailing newline.
1816 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1817 Add trailing newline.
1818 * doc/openmp-environment-variables/ompdisplayenv.rst:
1819 Add trailing newline.
1820 * doc/openmp-environment-variables/ompdynamic.rst:
1821 Add trailing newline.
1822 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1823 Add trailing newline.
1824 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1825 Add trailing newline.
1826 * doc/openmp-environment-variables/ompnested.rst:
1827 Add trailing newline.
1828 * doc/openmp-environment-variables/ompnumteams.rst:
1829 Add trailing newline.
1830 * doc/openmp-environment-variables/ompnumthreads.rst:
1831 Add trailing newline.
1832 * doc/openmp-environment-variables/ompplaces.rst:
1833 Add trailing newline.
1834 * doc/openmp-environment-variables/ompprocbind.rst:
1835 Add trailing newline.
1836 * doc/openmp-environment-variables/ompschedule.rst:
1837 Add trailing newline.
1838 * doc/openmp-environment-variables/ompstacksize.rst:
1839 Add trailing newline.
1840 * doc/openmp-environment-variables/omptargetoffload.rst:
1841 Add trailing newline.
1842 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1843 Add trailing newline.
1844 * doc/openmp-environment-variables/ompthreadlimit.rst:
1845 Add trailing newline.
1846 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1847 Add trailing newline.
1848 * doc/openmp-implementation-specifics.rst:
1849 Add trailing newline.
1850 * doc/openmp-implementation-status.rst:
1851 Add trailing newline.
1852 * doc/openmp-implementation-status/openmp-45.rst:
1853 Add trailing newline.
1854 * doc/openmp-implementation-status/openmp-50.rst:
1855 Add trailing newline.
1856 * doc/openmp-implementation-status/openmp-51.rst:
1857 Add trailing newline.
1858 * doc/openmp-implementation-status/openmp-52.rst:
1859 Add trailing newline.
1860 * doc/openmp-runtime-library-routines.rst:
1861 Add trailing newline.
1862 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1863 Add trailing newline.
1864 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1865 Add trailing newline.
1866 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1867 Add trailing newline.
1868 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1869 Add trailing newline.
1870 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1871 Add trailing newline.
1872 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1873 Add trailing newline.
1874 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1875 Add trailing newline.
1876 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1877 Add trailing newline.
1878 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1879 Add trailing newline.
1880 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1881 Add trailing newline.
1882 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1883 Add trailing newline.
1884 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1885 Add trailing newline.
1886 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1887 Add trailing newline.
1888 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1889 Add trailing newline.
1890 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1891 Add trailing newline.
1892 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1893 Add trailing newline.
1894 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1895 Add trailing newline.
1896 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1897 Add trailing newline.
1898 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1899 Add trailing newline.
1900 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1901 Add trailing newline.
1902 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1903 Add trailing newline.
1904 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1905 Add trailing newline.
1906 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1907 Add trailing newline.
1908 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1909 Add trailing newline.
1910 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1911 Add trailing newline.
1912 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1913 Add trailing newline.
1914 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1915 Add trailing newline.
1916 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1917 Add trailing newline.
1918 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1919 Add trailing newline.
1920 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1921 Add trailing newline.
1922 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1923 Add trailing newline.
1924 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1925 Add trailing newline.
1926 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1927 Add trailing newline.
1928 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1929 Add trailing newline.
1930 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1931 Add trailing newline.
1932 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1933 Add trailing newline.
1934 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1935 Add trailing newline.
1936 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1937 Add trailing newline.
1938 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1939 Add trailing newline.
1940 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1941 Add trailing newline.
1942 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1943 Add trailing newline.
1944 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1945 Add trailing newline.
1946 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1947 Add trailing newline.
1948 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1949 Add trailing newline.
1950 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1951 Add trailing newline.
1952 * doc/openmp-runtime-library-routines/omptestlock.rst:
1953 Add trailing newline.
1954 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1955 Add trailing newline.
1956 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1957 Add trailing newline.
1958 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1959 Add trailing newline.
1960 * doc/reporting-bugs.rst:
1961 Add trailing newline.
1962 * doc/the-libgomp-abi.rst:
1963 Add trailing newline.
1964 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1965 Add trailing newline.
1966 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1967 Add trailing newline.
1968 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1969 Add trailing newline.
1970 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1971 Add trailing newline.
1972 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1973 Add trailing newline.
1974 * doc/the-libgomp-abi/implementing-for-construct.rst:
1975 Add trailing newline.
1976 * doc/the-libgomp-abi/implementing-master-construct.rst:
1977 Add trailing newline.
1978 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1979 Add trailing newline.
1980 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1981 Add trailing newline.
1982 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1983 Add trailing newline.
1984 * doc/the-libgomp-abi/implementing-private-clause.rst:
1985 Add trailing newline.
1986 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1987 Add trailing newline.
1988 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1989 Add trailing newline.
1990 * doc/the-libgomp-abi/implementing-single-construct.rst:
1991 Add trailing newline.
1992 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1993 Add trailing newline.
1995 2022-11-14 Martin Liska <mliska@suse.cz>
1998 2022-11-09 Martin Liska <mliska@suse.cz>
2000 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2002 2022-11-14 Martin Liska <mliska@suse.cz>
2005 2022-11-14 Martin Liska <mliska@suse.cz>
2007 * doc/conf.py: Add newline at last line.
2009 2022-11-14 Martin Liska <mliska@suse.cz>
2012 2022-11-14 Martin Liska <mliska@suse.cz>
2015 * configure: Regenerate.
2016 * configure.ac: Always set sphinx-build.
2018 2022-11-13 Martin Liska <mliska@suse.cz>
2021 * configure: Regenerate.
2022 * configure.ac: Always set sphinx-build.
2024 2022-11-12 Jakub Jelinek <jakub@redhat.com>
2027 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
2028 unsigned long. Change type of upper from unsigned to unsigned long.
2030 2022-11-10 Martin Liska <mliska@suse.cz>
2032 * doc/conf.py: Add newline at last line.
2034 2022-11-09 Martin Liska <mliska@suse.cz>
2036 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2038 2022-11-09 Martin Liska <mliska@suse.cz>
2040 * doc/amd-radeon-gcn.rst:
2041 Add trailing newline.
2042 * doc/copyright.rst:
2043 Add trailing newline.
2044 * doc/cuda-streams-usage.rst:
2045 Add trailing newline.
2046 * doc/enabling-openacc.rst:
2047 Add trailing newline.
2048 * doc/enabling-openmp.rst:
2049 Add trailing newline.
2050 * doc/first-invocation-nvidia-cublas-library-api.rst:
2051 Add trailing newline.
2052 * doc/first-invocation-openacc-library-api.rst:
2053 Add trailing newline.
2055 Add trailing newline.
2056 * doc/general-public-license-3.rst:
2057 Add trailing newline.
2058 * doc/gnu-free-documentation-license.rst:
2059 Add trailing newline.
2060 * doc/implementation-status-and-implementation-defined-behavior.rst:
2061 Add trailing newline.
2063 Add trailing newline.
2064 * doc/indices-and-tables.rst:
2065 Add trailing newline.
2066 * doc/introduction.rst:
2067 Add trailing newline.
2068 * doc/memory-allocation-with-libmemkind.rst:
2069 Add trailing newline.
2071 Add trailing newline.
2072 * doc/offload-target-specifics.rst:
2073 Add trailing newline.
2074 * doc/openacc-environment-variables.rst:
2075 Add trailing newline.
2076 * doc/openacc-environment-variables/accdevicenum.rst:
2077 Add trailing newline.
2078 * doc/openacc-environment-variables/accdevicetype.rst:
2079 Add trailing newline.
2080 * doc/openacc-environment-variables/accproflib.rst:
2081 Add trailing newline.
2082 * doc/openacc-environment-variables/gccaccnotify.rst:
2083 Add trailing newline.
2084 * doc/openacc-introduction.rst:
2085 Add trailing newline.
2086 * doc/openacc-library-and-environment-variables.rst:
2087 Add trailing newline.
2088 * doc/openacc-library-interoperability.rst:
2089 Add trailing newline.
2090 * doc/openacc-profiling-interface.rst:
2091 Add trailing newline.
2092 * doc/openacc-runtime-library-routines.rst:
2093 Add trailing newline.
2094 * doc/openacc-runtime-library-routines/accasynctest.rst:
2095 Add trailing newline.
2096 * doc/openacc-runtime-library-routines/accasynctestall.rst:
2097 Add trailing newline.
2098 * doc/openacc-runtime-library-routines/accattach.rst:
2099 Add trailing newline.
2100 * doc/openacc-runtime-library-routines/acccopyin.rst:
2101 Add trailing newline.
2102 * doc/openacc-runtime-library-routines/acccopyout.rst:
2103 Add trailing newline.
2104 * doc/openacc-runtime-library-routines/acccreate.rst:
2105 Add trailing newline.
2106 * doc/openacc-runtime-library-routines/accdelete.rst:
2107 Add trailing newline.
2108 * doc/openacc-runtime-library-routines/accdetach.rst:
2109 Add trailing newline.
2110 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2111 Add trailing newline.
2112 * doc/openacc-runtime-library-routines/accfree.rst:
2113 Add trailing newline.
2114 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2115 Add trailing newline.
2116 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2117 Add trailing newline.
2118 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2119 Add trailing newline.
2120 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2121 Add trailing newline.
2122 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2123 Add trailing newline.
2124 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2125 Add trailing newline.
2126 * doc/openacc-runtime-library-routines/accgetproperty.rst:
2127 Add trailing newline.
2128 * doc/openacc-runtime-library-routines/acchostptr.rst:
2129 Add trailing newline.
2130 * doc/openacc-runtime-library-routines/accinit.rst:
2131 Add trailing newline.
2132 * doc/openacc-runtime-library-routines/accispresent.rst:
2133 Add trailing newline.
2134 * doc/openacc-runtime-library-routines/accmalloc.rst:
2135 Add trailing newline.
2136 * doc/openacc-runtime-library-routines/accmapdata.rst:
2137 Add trailing newline.
2138 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2139 Add trailing newline.
2140 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2141 Add trailing newline.
2142 * doc/openacc-runtime-library-routines/accondevice.rst:
2143 Add trailing newline.
2144 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2145 Add trailing newline.
2146 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2147 Add trailing newline.
2148 * doc/openacc-runtime-library-routines/accproflookup.rst:
2149 Add trailing newline.
2150 * doc/openacc-runtime-library-routines/accprofregister.rst:
2151 Add trailing newline.
2152 * doc/openacc-runtime-library-routines/accprofunregister.rst:
2153 Add trailing newline.
2154 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2155 Add trailing newline.
2156 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2157 Add trailing newline.
2158 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2159 Add trailing newline.
2160 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2161 Add trailing newline.
2162 * doc/openacc-runtime-library-routines/accshutdown.rst:
2163 Add trailing newline.
2164 * doc/openacc-runtime-library-routines/accunmapdata.rst:
2165 Add trailing newline.
2166 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2167 Add trailing newline.
2168 * doc/openacc-runtime-library-routines/accupdateself.rst:
2169 Add trailing newline.
2170 * doc/openacc-runtime-library-routines/accwait.rst:
2171 Add trailing newline.
2172 * doc/openacc-runtime-library-routines/accwaitall.rst:
2173 Add trailing newline.
2174 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2175 Add trailing newline.
2176 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2177 Add trailing newline.
2178 * doc/openmp-context-selectors.rst:
2179 Add trailing newline.
2180 * doc/openmp-environment-variables.rst:
2181 Add trailing newline.
2182 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2183 Add trailing newline.
2184 * doc/openmp-environment-variables/gompdebug.rst:
2185 Add trailing newline.
2186 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2187 Add trailing newline.
2188 * doc/openmp-environment-variables/gompspincount.rst:
2189 Add trailing newline.
2190 * doc/openmp-environment-variables/gompstacksize.rst:
2191 Add trailing newline.
2192 * doc/openmp-environment-variables/ompcancellation.rst:
2193 Add trailing newline.
2194 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2195 Add trailing newline.
2196 * doc/openmp-environment-variables/ompdisplayenv.rst:
2197 Add trailing newline.
2198 * doc/openmp-environment-variables/ompdynamic.rst:
2199 Add trailing newline.
2200 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2201 Add trailing newline.
2202 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2203 Add trailing newline.
2204 * doc/openmp-environment-variables/ompnested.rst:
2205 Add trailing newline.
2206 * doc/openmp-environment-variables/ompnumteams.rst:
2207 Add trailing newline.
2208 * doc/openmp-environment-variables/ompnumthreads.rst:
2209 Add trailing newline.
2210 * doc/openmp-environment-variables/ompplaces.rst:
2211 Add trailing newline.
2212 * doc/openmp-environment-variables/ompprocbind.rst:
2213 Add trailing newline.
2214 * doc/openmp-environment-variables/ompschedule.rst:
2215 Add trailing newline.
2216 * doc/openmp-environment-variables/ompstacksize.rst:
2217 Add trailing newline.
2218 * doc/openmp-environment-variables/omptargetoffload.rst:
2219 Add trailing newline.
2220 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2221 Add trailing newline.
2222 * doc/openmp-environment-variables/ompthreadlimit.rst:
2223 Add trailing newline.
2224 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2225 Add trailing newline.
2226 * doc/openmp-implementation-specifics.rst:
2227 Add trailing newline.
2228 * doc/openmp-implementation-status.rst:
2229 Add trailing newline.
2230 * doc/openmp-implementation-status/openmp-45.rst:
2231 Add trailing newline.
2232 * doc/openmp-implementation-status/openmp-50.rst:
2233 Add trailing newline.
2234 * doc/openmp-implementation-status/openmp-51.rst:
2235 Add trailing newline.
2236 * doc/openmp-implementation-status/openmp-52.rst:
2237 Add trailing newline.
2238 * doc/openmp-runtime-library-routines.rst:
2239 Add trailing newline.
2240 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2241 Add trailing newline.
2242 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2243 Add trailing newline.
2244 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2245 Add trailing newline.
2246 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2247 Add trailing newline.
2248 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2249 Add trailing newline.
2250 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2251 Add trailing newline.
2252 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2253 Add trailing newline.
2254 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2255 Add trailing newline.
2256 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2257 Add trailing newline.
2258 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2259 Add trailing newline.
2260 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2261 Add trailing newline.
2262 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2263 Add trailing newline.
2264 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2265 Add trailing newline.
2266 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2267 Add trailing newline.
2268 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2269 Add trailing newline.
2270 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2271 Add trailing newline.
2272 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2273 Add trailing newline.
2274 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2275 Add trailing newline.
2276 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2277 Add trailing newline.
2278 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2279 Add trailing newline.
2280 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2281 Add trailing newline.
2282 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2283 Add trailing newline.
2284 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2285 Add trailing newline.
2286 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2287 Add trailing newline.
2288 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2289 Add trailing newline.
2290 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2291 Add trailing newline.
2292 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2293 Add trailing newline.
2294 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2295 Add trailing newline.
2296 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2297 Add trailing newline.
2298 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2299 Add trailing newline.
2300 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2301 Add trailing newline.
2302 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2303 Add trailing newline.
2304 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2305 Add trailing newline.
2306 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2307 Add trailing newline.
2308 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2309 Add trailing newline.
2310 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2311 Add trailing newline.
2312 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2313 Add trailing newline.
2314 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2315 Add trailing newline.
2316 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2317 Add trailing newline.
2318 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2319 Add trailing newline.
2320 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2321 Add trailing newline.
2322 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2323 Add trailing newline.
2324 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2325 Add trailing newline.
2326 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2327 Add trailing newline.
2328 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2329 Add trailing newline.
2330 * doc/openmp-runtime-library-routines/omptestlock.rst:
2331 Add trailing newline.
2332 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2333 Add trailing newline.
2334 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2335 Add trailing newline.
2336 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2337 Add trailing newline.
2338 * doc/reporting-bugs.rst:
2339 Add trailing newline.
2340 * doc/the-libgomp-abi.rst:
2341 Add trailing newline.
2342 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2343 Add trailing newline.
2344 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2345 Add trailing newline.
2346 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2347 Add trailing newline.
2348 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2349 Add trailing newline.
2350 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2351 Add trailing newline.
2352 * doc/the-libgomp-abi/implementing-for-construct.rst:
2353 Add trailing newline.
2354 * doc/the-libgomp-abi/implementing-master-construct.rst:
2355 Add trailing newline.
2356 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2357 Add trailing newline.
2358 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2359 Add trailing newline.
2360 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2361 Add trailing newline.
2362 * doc/the-libgomp-abi/implementing-private-clause.rst:
2363 Add trailing newline.
2364 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2365 Add trailing newline.
2366 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2367 Add trailing newline.
2368 * doc/the-libgomp-abi/implementing-single-construct.rst:
2369 Add trailing newline.
2370 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2371 Add trailing newline.
2373 2022-11-09 Martin Liska <mliska@suse.cz>
2375 * Makefile.in: Build info pages conditionally.
2377 2022-11-09 Martin Liska <mliska@suse.cz>
2379 * Makefile.in: Support --with-sphinx-build.
2380 * configure.ac: Likewise..
2381 * configure: Regenerate.
2383 2022-11-09 Martin Liska <mliska@suse.cz>
2385 * libgomp.texi: Removed.
2387 2022-11-09 Martin Liska <mliska@suse.cz>
2389 * Makefile.in: Support Sphinx based documentation.
2391 2022-11-09 Martin Liska <mliska@suse.cz>
2393 * doc/amd-radeon-gcn.rst: New file.
2394 * doc/conf.py: New file.
2395 * doc/copyright.rst: New file.
2396 * doc/cuda-streams-usage.rst: New file.
2397 * doc/enabling-openacc.rst: New file.
2398 * doc/enabling-openmp.rst: New file.
2399 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2400 * doc/first-invocation-openacc-library-api.rst: New file.
2401 * doc/funding.rst: New file.
2402 * doc/general-public-license-3.rst: New file.
2403 * doc/gnu-free-documentation-license.rst: New file.
2404 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2405 * doc/index.rst: New file.
2406 * doc/indices-and-tables.rst: New file.
2407 * doc/introduction.rst: New file.
2408 * doc/memory-allocation-with-libmemkind.rst: New file.
2409 * doc/nvptx.rst: New file.
2410 * doc/offload-target-specifics.rst: New file.
2411 * doc/openacc-environment-variables.rst: New file.
2412 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2413 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2414 * doc/openacc-environment-variables/accproflib.rst: New file.
2415 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2416 * doc/openacc-introduction.rst: New file.
2417 * doc/openacc-library-and-environment-variables.rst: New file.
2418 * doc/openacc-library-interoperability.rst: New file.
2419 * doc/openacc-profiling-interface.rst: New file.
2420 * doc/openacc-runtime-library-routines.rst: New file.
2421 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2422 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2423 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2424 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2425 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2426 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2427 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2428 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2429 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2430 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2431 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2432 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2433 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2434 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2435 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2436 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2437 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2438 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2439 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2440 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2441 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2442 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2443 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2444 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2445 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2446 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2447 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2448 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2449 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2450 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2451 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2452 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2453 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2454 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2455 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2456 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2457 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2458 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2459 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2460 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2461 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2462 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2463 * doc/openmp-context-selectors.rst: New file.
2464 * doc/openmp-environment-variables.rst: New file.
2465 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2466 * doc/openmp-environment-variables/gompdebug.rst: New file.
2467 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2468 * doc/openmp-environment-variables/gompspincount.rst: New file.
2469 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2470 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2471 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2472 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2473 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2474 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2475 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2476 * doc/openmp-environment-variables/ompnested.rst: New file.
2477 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2478 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2479 * doc/openmp-environment-variables/ompplaces.rst: New file.
2480 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2481 * doc/openmp-environment-variables/ompschedule.rst: New file.
2482 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2483 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2484 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2485 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2486 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2487 * doc/openmp-implementation-specifics.rst: New file.
2488 * doc/openmp-implementation-status.rst: New file.
2489 * doc/openmp-implementation-status/openmp-45.rst: New file.
2490 * doc/openmp-implementation-status/openmp-50.rst: New file.
2491 * doc/openmp-implementation-status/openmp-51.rst: New file.
2492 * doc/openmp-implementation-status/openmp-52.rst: New file.
2493 * doc/openmp-runtime-library-routines.rst: New file.
2494 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2495 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2496 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2497 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2498 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2499 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2500 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2501 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2502 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2503 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2504 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2505 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2506 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2507 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2508 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2509 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2510 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2511 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2512 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2513 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2514 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2515 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2516 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2517 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2518 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2519 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2520 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2521 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2522 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2523 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2524 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2525 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2526 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2527 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2528 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2529 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2530 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2531 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2532 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2533 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2534 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2535 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2536 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2537 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2538 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2539 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2540 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2541 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2542 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2543 * doc/reporting-bugs.rst: New file.
2544 * doc/the-libgomp-abi.rst: New file.
2545 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2546 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2547 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2548 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2550 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2551 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2552 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2553 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2554 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2555 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2556 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2557 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2558 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2559 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2560 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2562 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2564 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2565 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2567 * plugin/configfrag.ac <enable_offload_targets>
2568 [*-intelmic-* | *-intelmicemul-*]: Remove.
2569 * configure: Regenerate.
2570 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2572 (offload_target_to_openacc_device_type)
2573 [$offload_target = *-intelmic*]: Remove.
2574 (check_effective_target_offload_device_intel_mic)
2575 (check_effective_target_offload_device_any_intel_mic): Remove.
2576 * testsuite/libgomp.c-c++-common/on_device_arch.h
2577 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2578 (any_device_arch_intel_mic): Remove.
2579 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2580 'offload_device_any_intel_mic' XFAIL.
2581 * testsuite/libgomp.fortran/target10.f90: Likewise.
2583 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
2585 * testsuite/libgomp.fortran/target-11.f90: New test.
2586 * testsuite/libgomp.fortran/target-13.f90: New test.
2588 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2592 * oacc-mem.c (goacc_enter_data_internal): Support
2593 OpenACC 'declare create' with Fortran allocatable arrays, part II.
2594 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2596 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2598 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2601 * oacc-mem.c (goacc_enter_data_internal): Support
2602 OpenACC 'declare create' with Fortran allocatable arrays, part I.
2603 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2605 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2608 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2610 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2613 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2615 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2618 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
2619 Thomas Schwinge <thomas@codesourcery.com>
2621 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2623 2022-10-28 Julian Brown <julian@codesourcery.com>
2624 Thomas Schwinge <thomas@codesourcery.com>
2627 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2628 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2629 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2630 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2631 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2633 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
2635 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2636 'ptx_dev->rev_data'.
2638 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
2640 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2641 'static' for this variable.
2642 * config/nvptx/libgomp-nvptx.h: New file.
2643 * config/nvptx/target.c: Include it.
2644 (GOMP_ADDITIONAL_ICVS): Declare extern var.
2645 (GOMP_REV_OFFLOAD_VAR): Declare var.
2646 (GOMP_target_ext): Handle reverse offload.
2647 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2648 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2649 * target.c (gomp_target_rev): ... this new stub function.
2650 * libgomp.h (gomp_target_rev): Declare.
2651 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2652 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2653 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2654 (struct ptx_device): Add rev_data member.
2655 (nvptx_open_device): Remove async_engines query, last used in
2656 r10-304-g1f4c5b9b; add unified-address assert check.
2657 (GOMP_OFFLOAD_get_num_devices): Claim unified address
2659 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2660 offload functions exist. Make offload var available
2662 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2663 (GOMP_OFFLOAD_run): Handle reverse offload.
2665 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
2667 PR tree-optimization/107195
2669 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2672 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
2674 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2676 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2677 on_device_arch_gcn): New.
2678 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2679 requires-4.c but using heap-allocated memory.
2681 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
2684 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2686 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
2688 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2689 '-foffload-options' syntax.
2691 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
2693 * testsuite/libgomp.fortran/task-7.f90: New test.
2694 * testsuite/libgomp.fortran/task-8.f90: New test.
2695 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2696 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2697 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2698 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2699 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2701 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2703 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2704 in deprecation bullet.
2706 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2708 * omp.h.in (omp_in_explicit_task): Declare.
2709 * omp_lib.h.in (omp_in_explicit_task): Likewise.
2710 * omp_lib.f90.in (omp_in_explicit_task): New interface.
2711 * libgomp.map (OMP_5.2): New symbol version, export
2712 omp_in_explicit_task and omp_in_explicit_task_.
2713 * task.c (omp_in_explicit_task): New function.
2714 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2715 (omp_in_explicit_task_): New function.
2716 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2717 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2718 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2719 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2721 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2723 * task.c (gomp_create_artificial_team): Fix up handling of invocations
2724 from within explicit task.
2725 * target.c (GOMP_target_ext): Likewise.
2726 * testsuite/libgomp.c/task-7.c: New test.
2727 * testsuite/libgomp.c/task-8.c: New test.
2728 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2729 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2731 2022-10-12 Martin Liska <mliska@suse.cz>
2733 * configure: Regenerate.
2735 2022-10-11 Olivier Hainque <hainque@adacore.com>
2736 Olivier Hainque <hainque@adacore.com>
2738 * configure: Regenerate.
2740 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
2742 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2744 2022-10-04 Jakub Jelinek <jakub@redhat.com>
2746 * libgomp.texi (Support begin/end declare target syntax in C/C++):
2747 Mark as implemented.
2749 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
2752 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2754 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
2756 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2757 for C/C++. Remove duplicated 'begin declare target' entry.
2759 2022-09-24 Jakub Jelinek <jakub@redhat.com>
2762 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2764 2022-09-14 Julian Brown <julian@codesourcery.com>
2766 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2767 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2768 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2769 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2770 test to here, make "run" test.
2772 2022-09-13 Jakub Jelinek <jakub@redhat.com>
2775 * env.c (get_icv_member_addr): Cast false to void * before assigning
2776 it to icv_addr[1], and comment the whole assignment out.
2778 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
2780 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2783 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2785 * libgomp.texi (Offload-Target Specifics: nvptx): Document
2786 that reverse offload requires >= -march=sm_35.
2787 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2789 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2790 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2791 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2792 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2793 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2795 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2797 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2798 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2800 2022-09-12 Jakub Jelinek <jakub@redhat.com>
2803 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2804 (main): Avoid tests for which corresponding non-_ALL suffixed variable
2805 is in the environment, or for OMP_NUM_TEAMS on the device
2806 OMP_NUM_TEAMS_DEV_?.
2808 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
2810 * env.c (initialize_env): Include libiberty environ.h.
2812 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2814 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2815 function address table '$offload_func_table' if rev_fn_table
2818 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2820 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2821 .offload_func_table to populate rev_fn_table when requested.
2823 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2825 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2826 'uint64_t **rev_fn_table' argument.
2827 * oacc-host.c (host_load_image): Likewise.
2828 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2830 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2831 * target.c (gomp_load_image_to_device): Update call but pass
2834 2022-09-09 Jakub Jelinek <jakub@redhat.com>
2837 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2838 char * for dest[1] initialization from params[1]. Formatting fixes.
2840 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2843 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2845 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2847 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2848 section; move OpenMP Context Selectors from ...
2849 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2852 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
2854 * config/gcn/icv-device.c (omp_get_default_device): Return device-
2856 (omp_get_max_teams): Added for GCN devices.
2857 (omp_set_num_teams): Likewise.
2859 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2861 (omp_get_max_teams): Added for NVPTX devices.
2862 (omp_set_num_teams): Likewise.
2864 * env.c (struct gomp_icv_list): New struct to store entries of initial
2866 (struct gomp_offload_icv_list): New struct to store entries of device-
2867 specific ICV values that are copied to the device and back.
2868 (struct gomp_default_icv_values): New struct to store default values of
2869 ICVs according to the OpenMP standard.
2870 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2871 (print_env_var_error): Function that prints an error for invalid values
2873 (parse_unsigned_long_1): Removed getenv. Generalized.
2874 (parse_unsigned_long): Likewise.
2875 (parse_int_1): Likewise.
2876 (parse_int): Likewise.
2877 (parse_int_secure): Likewise.
2878 (parse_unsigned_long_list): Likewise.
2879 (parse_target_offload): Likewise.
2880 (parse_bind_var): Likewise.
2881 (parse_stacksize): Likewise.
2882 (parse_boolean): Likewise.
2883 (parse_wait_policy): Likewise.
2884 (parse_allocator): Likewise.
2885 (omp_display_env): Extended to output different variants of environment
2887 (print_schedule): New helper function for omp_display_env which prints
2888 the values of run_sched_var.
2889 (print_proc_bind): New helper function for omp_display_env which prints
2890 the values of proc_bind_var.
2891 (enum gomp_parse_type): Collection of types used for parsing environment
2893 (ENTRY): Preprocess string lengths of environment variables.
2894 (OMP_VAR_CNT): Preprocess table size.
2895 (OMP_HOST_VAR_CNT): Likewise.
2896 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2898 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2899 (gomp_set_icv_flag): Sets a flag for a particular ICV.
2900 (print_device_specific_icvs): New helper function for omp_display_env to
2901 print device specific ICV values.
2902 (get_device_num): New helper function for parse_device_specific.
2903 Extracts the device number from an environment variable name.
2904 (get_icv_member_addr): Gets the memory address for a particular member
2906 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2907 (initialize_icvs): New function to initialize a gomp_initial_icvs
2909 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2910 (startswith): Checks if a string starts with a given prefix.
2911 (initialize_env): Extended to parse the new syntax of environment
2913 * icv-device.c (omp_get_max_teams): Added.
2915 (omp_set_num_teams): Likewise.
2916 * icv.c (omp_set_num_teams): Moved to icv-device.c.
2917 (omp_get_max_teams): Likewise.
2919 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2920 (GOMP_ADDITIONAL_ICVS): New target-side struct that
2921 holds the designated ICVs of the target device.
2922 * libgomp.h (enum gomp_icvs): Collection of ICVs.
2923 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2925 (enum gomp_env_suffix): Collection of possible suffixes of environment
2927 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2929 (struct gomp_default_icv):New struct to hold ICVs for which we need
2930 to store initial values.
2931 (struct gomp_icv_list): Definition of a linked list that is used for
2932 storing ICVs for the devices and also for _DEV, _ALL, and without
2934 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2936 (struct gomp_offload_icv_list): Definition of a linked list that holds
2937 device-specific ICVs that are copied to devices.
2938 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2939 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2940 * libgomp.texi: Updated.
2941 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2942 further ICVs from the offload image.
2943 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2944 * target.c (gomp_get_offload_icv_item): Get a list item of
2945 gomp_offload_icv_list.
2946 (get_gomp_offload_icvs): New. Returns the ICV values
2947 depending on the device num and the variable hierarchy.
2948 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2949 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2950 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2951 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2952 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2953 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2954 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2956 2022-09-08 Jakub Jelinek <jakub@redhat.com>
2958 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2960 * testsuite/libgomp.c/doacross-4.c: New test.
2961 * testsuite/libgomp.c/doacross-5.c: New test.
2962 * testsuite/libgomp.c/doacross-6.c: New test.
2963 * testsuite/libgomp.c/doacross-7.c: New test.
2965 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
2967 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2969 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
2971 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2972 refer to 'requires'.
2973 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2974 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2975 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2976 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2978 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2980 PR middle-end/106548
2981 * testsuite/libgomp.c/linear-2.c: New test.
2983 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2985 * splay-tree.h: Fix splay_* macro unsetting if
2986 splay_tree_prefix is defined.
2988 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
2990 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2992 2022-07-29 Jakub Jelinek <jakub@redhat.com>
2994 PR middle-end/106449
2995 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2997 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
2999 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
3001 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
3003 PR middle-end/101551
3004 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
3005 'offloading_enabled' diagnostics issue.
3007 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
3009 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
3010 '_Pragma' diagnostics verification.
3012 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
3014 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
3015 improved warning locations.
3016 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
3018 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
3020 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
3021 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
3022 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3023 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3024 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3026 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3028 * target.c (GOMP_offload_register, GOMP_offload_unregister):
3029 Denote as legacy entry points.
3030 * testsuite/lib/libgomp.exp
3031 (check_effective_target_offload_target_any): New proc.
3032 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
3033 'offload_target_any'.
3034 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3035 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3036 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3038 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3040 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3041 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3043 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3045 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3047 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
3049 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3051 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
3053 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3054 Jakub Jelinek <jakub@redhat.com>
3056 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3058 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3059 Chung-Lin Tang <cltang@codesourcery.com>
3060 Thomas Schwinge <thomas@codesourcery.com>
3062 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3063 omp_requires_mask arg.
3064 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3065 return -1 when device available but omp_requires_mask != 0.
3066 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3067 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3069 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3070 goacc_attach_host_thread_to_device, acc_get_num_devices,
3071 acc_set_device_num, get_property_any): Likewise.
3072 * target.c (omp_requires_mask): New global var.
3073 (gomp_requires_to_name): New.
3074 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3075 (gomp_target_init): Handle omp_requires_mask.
3076 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3077 (OpenMP 5.1): Add a missed item.
3078 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3079 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3080 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3081 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3082 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3083 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3084 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3085 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3086 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3087 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3088 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3089 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3090 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3091 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3092 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3093 * testsuite/libgomp.fortran/requires-1.f90: New test.
3095 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
3097 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3098 with fromto as implemented.
3100 2022-06-28 Martin Liska <mliska@suse.cz>
3102 * acinclude.m4: Fix typo in mold linker detection.
3103 * Makefile.in: Regenerate.
3104 * configure: Regenerate.
3106 2022-06-21 Jakub Jelinek <jakub@redhat.com>
3107 Paul Iannetta <piannetta@kalrayinc.com>
3110 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3112 2022-06-17 Martin Liska <mliska@suse.cz>
3114 * libgomp.texi: Add table header for new features of
3117 2022-06-15 Jakub Jelinek <jakub@redhat.com>
3119 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3120 q to ddress of an automatic variable. Use -5 instead of -1 in
3121 omp_get_mapped_ptr call. Add test with omp_initial_device.
3122 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3123 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
3124 Renumber stop arguments afterwards.
3126 2022-06-13 Jakub Jelinek <jakub@redhat.com>
3128 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3129 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3131 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3132 * target.c (resolve_device): Add remapped argument, handle
3133 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3134 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3135 if remapped, otherwise treat omp_initial_device that way. For
3136 omp_invalid_device, always emit gomp_fatal, even when
3137 OMP_TARGET_OFFLOAD isn't mandatory.
3138 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3139 GOMP_target_update, GOMP_target_update_ext,
3140 GOMP_target_enter_exit_data): Pass true as remapped argument to
3142 (omp_target_alloc, omp_target_free, omp_target_is_present,
3143 omp_target_memcpy_check, omp_target_associate_ptr,
3144 omp_target_disassociate_ptr, omp_get_mapped_ptr,
3145 omp_target_is_accessible): Pass false as remapped argument to
3146 resolve_device. Treat omp_initial_device the same as
3147 gomp_get_num_devices (). Don't bypass resolve_device calls if
3148 device_num is negative.
3149 (omp_pause_resource): Treat omp_initial_device the same as
3150 gomp_get_num_devices (). Call resolve_device.
3151 * icv-device.c (omp_set_default_device): Always set to device_num
3152 even when it is negative.
3153 * libgomp.texi: Document that Conforming device numbers,
3154 omp_initial_device and omp_invalid_device is implemented.
3155 * testsuite/libgomp.c/target-41.c (main): Add test with
3157 * testsuite/libgomp.c/target-45.c: New test.
3158 * testsuite/libgomp.c/target-46.c: New test.
3159 * testsuite/libgomp.c/target-47.c: New test.
3160 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3161 test with omp_initial_device. Use -5 instead of -1 for negative value
3163 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3164 Likewise. Reorder stop numbers.
3166 2022-06-10 Jakub Jelinek <jakub@redhat.com>
3168 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3169 rather than "libmemkind.so".
3171 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
3173 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3174 * plugin/configfrag.ac (--with-cuda-driver)
3175 (--with-cuda-driver-include, --with-cuda-driver-lib)
3176 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3177 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3179 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3180 (cuda_driver_lib): Remove.
3181 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3182 * Makefile.in: Regenerate.
3183 * configure: Likewise.
3184 * testsuite/Makefile.in: Likewise.
3186 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3188 * config/linux/allocator.c: Fix up #include directive.
3190 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3192 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3193 (enum gomp_memkind_kind): New type.
3194 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3196 (struct gomp_memkind_data): New type.
3197 (memkind_data, memkind_data_once): New variables.
3198 (gomp_init_memkind, gomp_get_memkind): New functions.
3199 (omp_init_allocator): Initialize data.memkind, don't fail for
3200 omp_high_bw_mem_space if libmemkind supports it.
3201 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3202 memkind support of LIBGOMP_USE_MEMKIND is defined.
3203 * config/linux/allocator.c: New file.
3205 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
3207 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3208 * testsuite/libgomp.fortran/scope-2.f90: New test.
3210 2022-06-02 David Malcolm <dmalcolm@redhat.com>
3212 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3214 2022-05-31 Jakub Jelinek <jakub@redhat.com>
3216 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3217 scope construct with allocate clause.
3218 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3219 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3221 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
3223 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3224 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3225 explicit 'to' and 'enter' clause.
3226 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3228 2022-05-28 Jakub Jelinek <jakub@redhat.com>
3231 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3232 defined(HAVE__ALIGNED_MALLOC) case.
3233 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3234 handling as last option before fallback instead of first.
3235 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3238 2022-05-27 Jakub Jelinek <jakub@redhat.com>
3240 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3242 * testsuite/libgomp.c/target-41.c: Likewise.
3244 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
3246 * libgomp.texi (Other new OpenMP 5.1 features): Add
3247 'begin declare target'.
3248 (Other new OpenMP 5.2 features): New.
3250 2022-05-25 Jakub Jelinek <jakub@redhat.com>
3252 * task.c (gomp_task_run_post_handle_dependers): If empty_task
3253 is the last task taskwait depend depends on, wake it up.
3254 Similarly if it is the last child of a taskgroup, use atomic
3255 store instead of decrement and awak taskgroup wait if any.
3256 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3258 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
3260 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3261 EF_AMDGPU_MACH_AMDGCN_GFX90a.
3262 (gcn_gfx90a_s): New.
3263 (isa_hsa_name): Support gfx90a.
3264 (isa_code): Likewise.
3266 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
3269 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3270 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3272 2022-05-24 Jakub Jelinek <jakub@redhat.com>
3275 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3276 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3277 * task.c (empty_task): New function.
3278 (gomp_task_run_post_handle_depend_hash): Declare earlier.
3279 (gomp_task_run_post_handle_depend): Declare.
3280 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3282 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3283 (GOMP_taskwait_depend_nowait): New function.
3284 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3286 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
3289 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3290 Support attach for GOMP_MAP_FIRSTPRIVATE.
3291 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3292 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3293 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3295 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3297 * libgomp.map: Added omp_target_memcpy_async and
3298 omp_target_memcpy_rect_async.
3299 * libgomp.texi: Both functions are now supported.
3300 * omp.h.in: Added omp_target_memcpy_async and
3301 omp_target_memcpy_rect_async.
3302 * omp_lib.f90.in: Added interfaces for both new functions.
3303 * omp_lib.h.in: Likewise.
3304 * target.c (ialias_redirect): Added for GOMP_task.
3305 (omp_target_memcpy): Restructured into check and copy part.
3306 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3307 omp_target_memcpy_async that checks requirements.
3308 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3309 omp_target_memcpy_async that performs the memcpy.
3310 (omp_target_memcpy_async_helper): New helper function that is used in
3311 omp_target_memcpy_async for the asynchronous task.
3312 (omp_target_memcpy_async): Added.
3313 (omp_target_memcpy_rect): Restructured into check and copy part.
3314 (omp_target_memcpy_rect_check): New helper function for
3315 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3317 (omp_target_memcpy_rect_copy): New helper function for
3318 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3320 (omp_target_memcpy_rect_async_helper): New helper function that is used
3321 in omp_target_memcpy_rect_async for the asynchronous task.
3322 (omp_target_memcpy_rect_async): Added.
3323 * task.c (ialias): Added for GOMP_task.
3324 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3325 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3326 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3327 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3328 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3329 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3330 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3331 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3333 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
3335 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3336 (OpenMP Context Selectors): Add missing comma.
3337 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3338 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3339 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3340 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3342 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3344 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3345 comment for omp_display_env feature.
3347 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3349 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3350 to document OpenMP context selectors.
3352 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3354 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3355 from bool to unsigned char.
3356 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3357 Ignore dependencies where
3358 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3359 rather than just task->depend[i].is_in && ent->is_in. Remember
3360 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3362 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3363 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3364 rather than just elem.is_in && ent->is_in.
3365 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3366 inoutset depend-kind.
3367 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3368 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3369 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3371 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3373 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3375 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3377 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3378 * testsuite/libgomp.fortran/depend-5.f90: New test.
3379 * testsuite/libgomp.fortran/depend-6.f90: New test.
3380 * testsuite/libgomp.fortran/depend-7.f90: New test.
3382 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3384 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3385 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3386 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3388 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3390 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3392 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3394 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3396 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3398 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3399 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3400 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3401 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3402 * Makefile.in: Regenerate.
3404 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3406 * Makefile.am (libgomp_la_LIBADD): Initialize.
3407 * plugin/configfrag.ac (DL_LIBS): New.
3408 (PLUGIN_GCN_LIBS): Remove.
3409 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3410 * plugin/Makefrag.am (libgomp_la_LIBADD)
3411 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3412 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3413 * Makefile.in: Regenerate.
3414 * config.h.in: Likewise.
3415 * configure: Likewise.
3416 * testsuite/Makefile.in: Likewise.
3418 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3420 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3421 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3422 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3423 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3424 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3425 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3426 * Makefile.in: Regenerate.
3427 * config.h.in: Likewise.
3428 * configure: Likewise.
3430 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3432 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3433 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3434 * Makefile.in: Regenerate.
3435 * config.h.in: Likewise.
3436 * configure: Likewise.
3437 * testsuite/Makefile.in: Likewise.
3439 2022-05-12 Jakub Jelinek <jakub@redhat.com>
3441 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3442 * task.c (gomp_init_task): Initialize depend_all_memory.
3443 (gomp_task_handle_depend): Handle omp_all_memory.
3444 (gomp_task_run_post_handle_depend_hash): Clear
3445 parent->depend_all_memory if equal to current task.
3446 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3447 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3448 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3449 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3451 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3453 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3454 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3455 * Makefile.in: Regenerate.
3456 * configure: Likewise.
3457 * testsuite/Makefile.in: Likewise.
3459 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3461 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3462 consider 'PLUGIN_GCN_CPPFLAGS'.
3463 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3464 'PLUGIN_GCN_LDFLAGS'.
3465 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3467 * Makefile.in: Regenerate.
3468 * configure: Likewise.
3469 * testsuite/Makefile.in: Likewise.
3471 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3473 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3474 (HSA_RUNTIME_LDFLAGS): Remove.
3475 * configure: Regenerate.
3477 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3479 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3480 'append always_ld_library_path ":$hsa_runtime_lib"'.
3481 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3483 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3485 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3486 multi-device testing.
3488 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3490 * libgomp.map: Added omp_target_is_accessible.
3491 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3492 * omp.h.in: Added omp_target_is_accessible.
3493 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3494 * omp_lib.h.in: Likewise.
3495 * target.c (omp_target_is_accessible): Added implementation of
3496 omp_target_is_accessible.
3497 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3498 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3500 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3502 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3504 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3506 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3508 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3510 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3512 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3514 * libgomp.map: Added omp_get_mapped_ptr.
3515 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3516 * omp.h.in: Added omp_get_mapped_ptr.
3517 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3518 * omp_lib.h.in: Likewise.
3519 * target.c (omp_get_mapped_ptr): Added implementation of
3521 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3522 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3523 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3524 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3525 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3526 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3527 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3528 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3530 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3533 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3534 privatization scanning. For GCN offloading compilation, raise
3535 '-mgang-private-size'.
3537 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3540 * work.c (gomp_init_work_share): Don't mask of adjustment for
3541 dynamic long long realignment if struct gomp_work_share has smaller
3542 alignof than long long.
3543 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3544 struct gomp_work_share has smaller alignof than long long or if
3545 sizeof (struct gomp_work_share) is smaller than
3546 INLINE_ORDERED_TEAM_IDS_OFF.
3547 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3548 * sections.c (GOMP_sections2_start): Likewise.
3550 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3551 Thomas Schwinge <thomas@codesourcery.com>
3554 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3556 2022-04-13 Jakub Jelinek <jakub@redhat.com>
3558 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3560 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3562 * plugin/cuda/cuda.h: Remove file.
3563 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3564 "cuda/cuda.h" instead of <cuda.h>.
3565 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3566 'PLUGIN_NVPTX_CPPFLAGS'.
3567 * configure: Regenerate.
3569 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3571 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3573 2022-04-04 Tom de Vries <tdevries@suse.de>
3575 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3576 on_device_arch_nvptx instead of offload_target_nvptx.
3577 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3579 2022-04-01 Tom de Vries <tdevries@suse.de>
3581 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3583 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3585 2022-04-01 Tom de Vries <tdevries@suse.de>
3587 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3590 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3591 Lulu Cheng <chenglulu@loongson.cn>
3593 * configure.tgt: Add LoongArch triplet.
3595 2022-03-28 Tom de Vries <tdevries@suse.de>
3597 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3598 instead of /libexec/.
3599 * configure: Regenerate.
3601 2022-03-25 Tom de Vries <tdevries@suse.de>
3604 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3606 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3607 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3609 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
3611 PR middle-end/104285
3612 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3613 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3614 * testsuite/libgomp.c++/target-same-name-2.C: New test.
3615 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3616 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3617 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3619 2022-03-22 Tom de Vries <tdevries@suse.de>
3623 * testsuite/libgomp.c/pr104783-2.c: New test.
3625 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
3628 * testsuite/libgomp.fortran/associate4.f90: New test.
3630 2022-03-18 Tom de Vries <tdevries@suse.de>
3633 * testsuite/libgomp.c/pr104952-1.c: New test.
3634 * testsuite/libgomp.c/pr104952-2.c: New test.
3636 2022-03-18 Jakub Jelinek <jakub@redhat.com>
3638 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3639 variable next to pl variable.
3641 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3643 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3645 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3646 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3648 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3651 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3652 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3654 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
3656 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3657 omp_set_max_active_levels.
3658 * testsuite/libgomp.fortran/icv-8.f90: New test.
3660 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
3663 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3665 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
3667 * libgomp.texi: Fix typo.
3669 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3671 PR middle-end/100280
3672 PR middle-end/104892
3673 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3674 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3675 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3677 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3679 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3680 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3681 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3684 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3686 PR middle-end/104892
3687 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3689 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3690 enable '--param=openacc-kernels=decompose' and adjust.
3691 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3693 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3694 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3697 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3700 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3701 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3702 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3703 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3705 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3707 PR middle-end/100280
3708 PR middle-end/104086
3709 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3711 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3713 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3715 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3718 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
3720 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3721 trait. Test last index in w and v array. Remove redundant
3722 assignment to V(1). Move alignment checks at the end of
3725 2022-03-10 Tom de Vries <tdevries@suse.de>
3727 * testsuite/libgomp.c/pr104783.c: New test.
3729 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3732 PR middle-end/102330
3733 PR middle-end/104774
3734 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3736 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3738 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3740 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3742 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3744 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3746 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3748 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3750 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3752 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3754 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3756 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3758 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3760 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3762 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3763 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3764 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3766 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3769 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3770 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3771 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3772 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3774 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3777 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3778 expected diagnostics.
3780 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3782 PR middle-end/104784
3783 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3784 Test with '--param=openacc-kernels=decompose'.
3785 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3787 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3789 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3791 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3793 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3795 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3797 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3799 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3801 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3803 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3805 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3807 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3809 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3811 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3813 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3815 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3817 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3819 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3821 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3823 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3825 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3827 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3829 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3831 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3833 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3835 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3837 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3839 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3841 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3843 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3845 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3847 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3850 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3852 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3853 Test '-fopt-info-omp-all'.
3854 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3856 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3858 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3860 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3862 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3864 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3866 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3868 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3870 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3872 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3874 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3876 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3878 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3880 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3882 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3884 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3886 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3888 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3890 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3892 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3894 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3896 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3898 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3900 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3902 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3904 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3906 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3908 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3910 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3912 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3914 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3916 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3919 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3921 PR middle-end/100280
3922 PR middle-end/104132
3923 PR middle-end/104133
3924 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3927 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3929 PR middle-end/100280
3930 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3931 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3934 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3936 PR middle-end/100280
3937 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3938 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3941 2022-02-28 Tom de Vries <tdevries@suse.de>
3943 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3944 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3945 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3946 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3947 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3948 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3950 2022-02-24 Tom de Vries <tdevries@suse.de>
3952 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3953 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3954 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3955 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3956 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3957 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3958 * testsuite/libgomp.c/declare-variant-3.h: New header file.
3960 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
3962 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3963 gang-redundant execution.
3965 2022-02-22 Tom de Vries <tdevries@suse.de>
3968 * config/nvptx/bar.c (generation_to_barrier): New function, copied
3969 from config/rtems/bar.c.
3970 (futex_wait, futex_wake): New function.
3971 (do_spin, do_wait): New function, copied from config/linux/wait.h.
3972 (gomp_barrier_wait_end, gomp_barrier_wait_last)
3973 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3974 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3975 and replace with include of config/linux/bar.c.
3976 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3977 (gomp_barrier_init): Init new fields.
3978 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3980 * testsuite/libgomp.c/pr99555-1.c: Same.
3981 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3983 2022-02-22 Tom de Vries <tdevries@suse.de>
3986 * testsuite/libgomp.c++/pr96390.C: Add additional-option
3987 -foffload=-Wa,--verify for nvptx.
3988 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3990 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
3992 * testsuite/libgomp.fortran/depend-4.f90: New test.
3994 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
3997 * testsuite/libgomp.c++/target-virtual-1.C: New test.
3999 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
4001 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
4002 * target.c (copy_firstprivate_data): Copy only if host address is not
4004 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
4005 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
4006 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
4007 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
4008 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
4009 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
4010 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
4011 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
4012 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
4013 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
4015 2022-02-08 Jakub Jelinek <jakub@redhat.com>
4018 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
4020 * testsuite/libgomp.c/pr104385.c: New test.
4022 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4024 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
4025 STOP of previous commit.
4027 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4029 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
4030 from is_64bit_aligned_.
4031 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
4032 and use it, more implicit none, remove unused argument.
4034 2022-02-03 David Seifert <soap@gentoo.org>
4035 Jakub Jelinek <jakub@redhat.com>
4037 * configure.ac: Support --disable-werror.
4038 * configure: Regenerate.
4040 2022-02-01 Tom de Vries <tdevries@suse.de>
4042 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4044 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4045 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4047 2022-02-01 Tom de Vries <tdevries@suse.de>
4049 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4050 num_workers for nvidia accelerator to fix libgomp error 'insufficient
4052 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4054 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4056 2022-02-01 Tom de Vries <tdevries@suse.de>
4058 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4060 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4062 2022-01-31 Martin Liska <mliska@suse.cz>
4064 * acinclude.m4: Detect *_ld_is_mold and use it.
4065 * configure: Regenerate.
4067 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
4069 * libgomp.texi (OpenMP 5.0): Update implementation status.
4071 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
4073 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4074 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4075 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4076 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4077 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4078 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4079 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4080 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4081 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4082 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4083 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4084 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4085 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4086 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4087 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4089 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
4091 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4092 "static") to make the device num available in the offload image.
4094 2022-01-19 Martin Liska <mliska@suse.cz>
4095 Thomas Schwinge <thomas@codesourcery.com>
4097 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4099 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4100 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4102 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4103 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4104 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4105 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4106 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4108 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4110 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4112 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4114 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4116 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4118 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4119 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4120 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4122 2022-01-18 Martin Liska <mliska@suse.cz>
4124 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4126 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4127 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4128 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4129 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4130 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4131 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4132 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4133 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4134 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4135 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4136 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4137 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4138 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4139 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4140 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4142 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
4144 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4145 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4146 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4148 2022-01-17 Julian Brown <julian@codesourcery.com>
4149 Thomas Schwinge <thomas@codesourcery.com>
4151 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4152 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4153 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4155 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4156 Andrew Stubbs <ams@codesourcery.com>
4158 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4159 the number of teams and threads if necessary.
4160 (gcn_exec): Automatically set the number of gangs and workers if
4163 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
4165 * testsuite/libgomp.fortran/allocate-1.c: New test.
4166 * testsuite/libgomp.fortran/allocate-1.f90: New test.
4167 * libgomp.texi: Remove string that says that allocate clause
4168 support is for C/C++ only.
4170 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4172 * testsuite/libgomp.c-c++-common/on_device_arch.h
4173 (any_device_arch, any_device_arch_intel_mic): New.
4174 * testsuite/lib/libgomp.exp
4175 (check_effective_target_offload_device_any_intel_mic): New.
4176 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4177 * testsuite/libgomp.fortran/target10.f90: Likewise.
4179 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4181 PR tree-optimization/102192
4182 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4183 '-Wuninitialized' diagnostics.
4185 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4187 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4188 current '-Wuninitialized' diagnostics.
4189 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4190 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4191 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4192 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4193 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4194 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4195 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4196 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4197 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4198 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4199 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4202 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4204 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4205 for 'offload_device_intel_mic'.
4207 2022-01-13 Julian Brown <julian@codesourcery.com>
4208 Thomas Schwinge <thomas@codesourcery.com>
4210 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4211 offloading execution XFAIL.
4213 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4215 PR middle-end/100280
4216 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4218 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4219 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4222 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4224 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4226 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4228 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4229 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4230 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4231 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4232 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4234 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4235 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4236 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4237 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4239 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
4241 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4242 * testsuite/libgomp.fortran/target10.f90: Likewise.
4244 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
4246 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4247 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4248 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4250 2022-01-03 Jakub Jelinek <jakub@redhat.com>
4252 * libgomp.texi: Bump @copying's copyright year.
4254 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
4256 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4257 * testsuite/libgomp.fortran/atomic-19.f90: New test.
4259 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
4261 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4262 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4263 table, not individual symbols.
4265 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
4267 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4268 "target offload_device_nonshared_as"
4269 * testsuite/libgomp.c++/target-this-3.C: Likewise.
4270 * testsuite/libgomp.c++/target-this-4.C: Likewise.
4272 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4274 * target.c (gomp_map_vars_existing): Make sure attached pointer is
4275 not overwritten during cross-host/device copying.
4276 (gomp_update): Likewise.
4277 (gomp_exit_data): Likewise.
4278 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4279 * testsuite/libgomp.c++/target-12.C: Likewise.
4280 * testsuite/libgomp.c++/target-15.C: Likewise.
4281 * testsuite/libgomp.c++/target-16.C: Likewise.
4282 * testsuite/libgomp.c++/target-17.C: Likewise.
4283 * testsuite/libgomp.c++/target-21.C: Likewise.
4284 * testsuite/libgomp.c++/target-23.C: Likewise.
4285 * testsuite/libgomp.c/target-23.c: Likewise.
4286 * testsuite/libgomp.c/target-29.c: Likewise.
4287 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4289 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4292 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4293 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4294 (goacc_enter_data_internal): Likewise.
4295 * target.c (gomp_map_vars_existing): Update assert condition to
4296 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4297 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4298 parameter, add support for mapping a pointer with NULL target.
4299 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4300 parameter, add support for attaching a pointer with NULL target.
4301 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4302 gomp_attach_pointer, add handling for
4303 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4304 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4305 * testsuite/libgomp.c++/target-23.C: New testcase.
4306 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4307 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4308 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4309 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4310 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4311 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4312 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4314 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4316 * libgomp.texi (OpenMP 5.1): Update status.
4318 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4320 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4322 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4325 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4326 * testsuite/libgomp.fortran/pr90030.f90: New test.
4328 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4329 Thomas Schwinge <thomas@codesourcery.com>
4331 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4334 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4335 Thomas Schwinge <thomas@codesourcery.com>
4337 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4340 2021-11-29 Richard Biener <rguenther@suse.de>
4342 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4345 2021-11-24 Jakub Jelinek <jakub@redhat.com>
4347 PR middle-end/103384
4348 * testsuite/libgomp.c/declare-variant-2.c: New test.
4350 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
4352 * alloc.c (gomp_aligned_alloc): Fix typo.
4354 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4357 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4358 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4359 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4360 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4361 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4362 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4363 gomp_aligned_alloc instead of team_malloc.
4365 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4368 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4369 memalign over posix_memalign over aligned_alloc over fallback
4370 with malloc instead of aligned_alloc over _aligned_alloc over
4371 posix_memalign over memalign over fallback with malloc. For
4372 aligned_alloc, round up size up to multiple of al.
4374 2021-11-16 Jakub Jelinek <jakub@redhat.com>
4376 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4377 construct as implemented.
4379 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
4381 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4383 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4385 * task.c (gomp_create_target_task): Copy args array as well.
4386 * target.c (gomp_target_fallback): Add args argument.
4387 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4388 (GOMP_target): Adjust gomp_target_fallback caller.
4389 (GOMP_target_ext): Likewise.
4390 (gomp_target_task_fn): Likewise.
4391 * config/nvptx/team.c (gomp_nvptx_main): Set
4392 gomp_global_icv.thread_limit_var.
4393 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4395 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4397 * config/nvptx/team.c (__gomp_team_num): Define as
4398 __attribute__((shared)) var.
4399 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4400 * config/nvptx/target.c (__gomp_team_num): Declare as
4401 extern __attribute__((shared)) var.
4402 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4403 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4404 is bigger than num_blocks, use num_teams_lower teams and arrange for
4405 bumping of __gomp_team_num if !first and returning false once we run
4407 * config/nvptx/teams.c (__gomp_team_num): Declare as
4408 extern __attribute__((shared)) var.
4409 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4411 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4413 * testsuite/libgomp.c/teams-5.c: New test.
4415 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4418 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4420 * config/gcn/teams.c: ... here. New file.
4422 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4424 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4425 implicit map handling to allow a "superset" existing map as valid case.
4426 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4427 (get_implicit): New function to extract implicit status.
4428 (gomp_map_fields_existing): Adjust arguments in calls to
4429 gomp_map_vars_existing, and add uses of get_implicit.
4430 (gomp_map_vars_internal): Likewise.
4431 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4433 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4435 * libgomp_g.h (GOMP_teams4): Declare.
4436 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4437 * target.c (GOMP_teams4): New function.
4438 * config/nvptx/target.c (GOMP_teams): Remove.
4439 (GOMP_teams4): New function.
4440 * config/gcn/target.c (GOMP_teams): Remove.
4441 (GOMP_teams4): New function.
4442 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4443 teams instead of <= 2.
4444 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4446 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
4448 * testsuite/libgomp.fortran/teams-1.f90: New test.
4450 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4452 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4453 * team.c (struct gomp_thread_start_data): Likewise.
4454 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4455 (gomp_team_start): Initialize start_data->num_teams and
4456 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4457 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4458 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4459 instead of gomp_num_teams and gomp_team_num.
4460 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4461 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4462 * testsuite/libgomp.c/teams-4.c: New test.
4464 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4466 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4468 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4470 * env.c (parse_gomp_openacc_dim): Restore parsing.
4472 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4474 PR middle-end/102972
4475 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4477 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4478 * testsuite/libgomp.c/target-3.c: Likewise.
4479 * testsuite/libgomp.c/target-5.c: Likewise.
4480 * testsuite/libgomp.c/target-6.c: Likewise.
4481 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4482 * testsuite/libgomp.c/teams-1.c: Likewise.
4483 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4484 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4485 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4486 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4487 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4488 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4489 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4491 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
4493 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4494 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4496 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4498 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4499 aren't implemented for Fortran yet.
4501 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4503 * testsuite/libgomp.c/loop-26.c: New test.
4504 * testsuite/libgomp.c/loop-27.c: New test.
4506 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4509 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4510 instead of #include <alloca.h> + alloca.
4512 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4514 * libgomp.texi (Support of strictly structured blocks in Fortran):
4516 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4518 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4520 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4521 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4523 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4526 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4527 (struct gomp_work_share): Only use aligned(64) attribute if
4528 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4529 add padding before lock to ensure lock is at offset 64 bytes
4531 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4532 New poor man's static assertions.
4533 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4534 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4536 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4537 Richard Biener <rguenther@suse.de>
4539 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4541 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4543 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4544 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4546 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4555 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4557 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4559 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4560 type from char [50] to const char *.
4561 (places_array): Add a testcase for simplified syntax place followed
4562 by length or length and stride.
4564 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4566 * env.c (parse_one_place): Handle non-negative-number the same
4567 as { non-negative-number }. Reject even !number:1 and
4568 !number:1:stride or !place:1 or !place:1:stride instead of just
4569 length other than 1.
4570 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4571 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4572 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4574 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4577 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4579 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4580 clearly reject return value 0 as invalid handle the case where end
4581 pointer is the same as first argument as invalid.
4582 (parse_unsigned_long_1): Likewise.
4583 (parse_one_place): Likewise.
4584 (parse_places_var): Likewise.
4585 (parse_stacksize): Likewise.
4586 (parse_spincount): Likewise.
4587 (parse_affinity): Likewise.
4588 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4589 Make code valid C89.
4590 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4591 For strtoul calls which don't clearly reject return value 0 as
4592 invalid handle the case where end pointer is the same as first
4593 argument as invalid.
4594 (gomp_affinity_init_level_1): Likewise.
4595 (gomp_affinity_init_numa_domains): Likewise.
4596 * config/rtems/proc.c (parse_thread_pools): Likewise.
4598 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4600 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4601 after creating count places clean up and return immediately.
4602 * testsuite/libgomp.c/places-6.c: New test.
4603 * testsuite/libgomp.c/places-7.c: New test.
4604 * testsuite/libgomp.c/places-8.c: New test.
4605 * testsuite/libgomp.c/places-9.c: New test.
4606 * testsuite/libgomp.c/places-10.c: New test.
4608 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4610 * env.c (parse_places_var): Handle numa_domains as level 5.
4611 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4613 (gomp_affinity_init_level): Use it instead of
4614 gomp_affinity_init_level_1 for level == 5.
4615 * testsuite/libgomp.c/places-5.c: New test.
4617 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4619 * env.c (parse_places_var): Handle ll_caches as level 4.
4620 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4622 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4624 (gomp_affinity_init_level): Likewise.
4625 * testsuite/libgomp.c/places-1.c: New test.
4626 * testsuite/libgomp.c/places-2.c: New test.
4627 * testsuite/libgomp.c/places-3.c: New test.
4628 * testsuite/libgomp.c/places-4.c: New test.
4630 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4632 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4635 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4637 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4639 2021-10-12 Julian Brown <julian@codesourcery.com>
4641 * target.c (gomp_copy_host2dev): Release device lock on cbuf
4644 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
4646 * testsuite/libgomp.fortran/icv-3.f90: New.
4647 * testsuite/libgomp.fortran/icv-4.f90: New.
4649 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4651 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4652 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4653 OMP_TEAMS_THREAD_LIMIT): Document.
4655 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4657 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4658 to avoid makeinfo warnings.
4660 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4662 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4663 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4665 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4669 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4670 allocation sizes from 420 to 320 and from 768 to 568.
4671 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4672 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4673 for cr from 16 to 4.
4675 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4677 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4678 * testsuite/libgomp.c/scan-12.c: Likewise.
4679 * testsuite/libgomp.c/scan-13.c: Likewise.
4680 * testsuite/libgomp.c/scan-14.c: Likewise.
4681 * testsuite/libgomp.c/scan-15.c: Likewise.
4682 * testsuite/libgomp.c/scan-16.c: Likewise.
4683 * testsuite/libgomp.c/scan-17.c: Likewise.
4684 * testsuite/libgomp.c/scan-18.c: Likewise.
4685 * testsuite/libgomp.c/scan-19.c: Likewise.
4686 * testsuite/libgomp.c/scan-20.c: Likewise.
4687 * testsuite/libgomp.c/scan-21.c: Likewise.
4688 * testsuite/libgomp.c/scan-22.c: Likewise.
4689 * testsuite/libgomp.c++/scan-9.C: Likewise.
4690 * testsuite/libgomp.c++/scan-10.C: Likewise.
4691 * testsuite/libgomp.c++/scan-11.C: Likewise.
4692 * testsuite/libgomp.c++/scan-12.C: Likewise.
4693 * testsuite/libgomp.c++/scan-13.C: Likewise.
4694 * testsuite/libgomp.c++/scan-14.C: Likewise.
4695 * testsuite/libgomp.c++/scan-15.C: Likewise.
4696 * testsuite/libgomp.c++/scan-16.C: Likewise.
4698 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
4700 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4702 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
4704 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4706 * omp.h.in: Add deprecated flag for omp_atv_sequential.
4707 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4708 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4709 * testsuite/libgomp.fortran/alloc-12.f90: New test.
4711 2021-10-11 Jakub Jelinek <jakub@redhat.com>
4713 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4714 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4715 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4716 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4717 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4718 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4719 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4720 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4721 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4722 omp_set_teams_thread_limit{,_,_8_}.
4723 * icv.c (omp_set_num_teams, omp_get_max_teams,
4724 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4726 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4727 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4728 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4730 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4731 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
4732 is not specified, use gomp_nteams_var.
4733 * fortran.c (omp_set_num_teams, omp_get_max_teams,
4734 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4736 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4737 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4738 omp_get_teams_thread_limit_): New functions.
4740 2021-10-09 liuhongt <hongtao.liu@intel.com>
4742 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4743 * testsuite/libgomp.c++/scan-11.C: Ditto.
4744 * testsuite/libgomp.c++/scan-12.C: Ditto.
4745 * testsuite/libgomp.c++/scan-13.C: Ditto.
4746 * testsuite/libgomp.c++/scan-14.C: Ditto.
4747 * testsuite/libgomp.c++/scan-15.C: Ditto.
4748 * testsuite/libgomp.c++/scan-16.C: Ditto.
4749 * testsuite/libgomp.c++/scan-9.C: Ditto.
4750 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4751 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4752 * testsuite/libgomp.c/scan-11.c: Ditto.
4753 * testsuite/libgomp.c/scan-12.c: Ditto.
4754 * testsuite/libgomp.c/scan-13.c: Ditto.
4755 * testsuite/libgomp.c/scan-14.c: Ditto.
4756 * testsuite/libgomp.c/scan-15.c: Ditto.
4757 * testsuite/libgomp.c/scan-16.c: Ditto.
4758 * testsuite/libgomp.c/scan-17.c: Ditto.
4759 * testsuite/libgomp.c/scan-18.c: Ditto.
4760 * testsuite/libgomp.c/scan-19.c: Ditto.
4761 * testsuite/libgomp.c/scan-20.c: Ditto.
4762 * testsuite/libgomp.c/scan-21.c: Ditto.
4763 * testsuite/libgomp.c/scan-22.c: Ditto.
4765 2021-10-09 Jakub Jelinek <jakub@redhat.com>
4767 * libgomp.texi (OpenMP 5.1): Mention implemented support for
4768 structured block sequences in C/C++. Mention support for
4769 unconstrained/reproducible modifiers on order clause.
4770 Mention partial (C/C++ only) support of extentensions to atomics
4771 construct. Mention partial (C/C++ on clause only) support of
4772 align/allocator modifiers on allocate clause.
4774 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
4776 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4777 based on libgomp.c-c++-common/order-reproducible-1.c.
4778 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4779 * testsuite/libgomp.fortran/my-usleep.c: New test.
4781 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
4783 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4784 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4785 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4786 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4787 based on libgomp.c-c++-common/alloc-9.c.
4789 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4791 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4792 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4794 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4796 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4798 * env.c (handle_omp_display_env): Use ialias_call.
4799 * icv-device.c: Move ialias right below each function.
4800 (omp_get_device_num): Use ialias_call.
4801 * fortran.c (omp_fulfill_event): Add ialias_redirect.
4802 * icv.c (omp_get_active_level): Add ialias_redirect.
4804 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4806 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4807 __alloc_align__ (1) attribute.
4808 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4810 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4812 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4813 for -fintrinsic-modules-path= warning of the C compiler.
4814 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4815 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4817 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4819 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4820 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4821 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4823 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4825 * testsuite/libgomp.fortran/alloc-10.f90: New test.
4826 * testsuite/libgomp.fortran/alloc-6.f90: New test.
4827 * testsuite/libgomp.fortran/alloc-7.c: New test.
4828 * testsuite/libgomp.fortran/alloc-7.f90: New test.
4829 * testsuite/libgomp.fortran/alloc-8.f90: New test.
4830 * testsuite/libgomp.fortran/alloc-9.f90: New test.
4832 2021-09-30 Jakub Jelinek <jakub@redhat.com>
4834 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4835 omp_realloc): New prototypes.
4836 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4838 * allocator.c: Include string.h.
4839 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
4840 variable and use it instead of alignment so that when retrying the old
4841 alignment is used again. Don't retry if new alignment is the same
4842 as old alignment, unless allocator had pool size.
4843 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4844 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4845 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4846 omp_aligned_calloc and omp_realloc.
4847 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4848 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4849 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4850 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4851 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4852 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4854 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
4857 * configure.ac: Only check for int-type = 2*size_t support when
4858 building with Fortran support.
4859 * configure: Regenerate.
4861 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
4863 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4864 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4866 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
4868 * team.c: Initialize start_data.
4869 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4870 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4872 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4874 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4875 dg-message back to dg-note.
4877 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4880 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4881 expected dg-note output.
4883 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
4886 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4887 r12-3722 by removing -Wno-missing-include-dirs.
4888 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4890 2021-09-22 Jakub Jelinek <jakub@redhat.com>
4892 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4893 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4895 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
4898 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4900 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4902 2021-09-18 Jakub Jelinek <jakub@redhat.com>
4904 * testsuite/libgomp.c++/default-1.C: New test.
4905 * testsuite/libgomp.c-c++-common/default-1.c: New test.
4906 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4907 to default clause in C and C++" as implemented.
4909 2021-09-17 Julian Brown <julian@codesourcery.com>
4911 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4913 2021-09-17 Julian Brown <julian@codesourcery.com>
4915 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4917 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4919 * libgomp.texi (OpenMP 5.1): Spelling fix,
4920 declare variante -> declare variant.
4922 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4924 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4925 Use /* */ comments instead of //.
4926 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4927 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4928 * testsuite/libgomp.c++/atomic-16.C: New test.
4929 * testsuite/libgomp.c++/atomic-17.C: New test.
4931 2021-09-10 Jakub Jelinek <jakub@redhat.com>
4933 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4934 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4935 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4937 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4939 * libgomp.texi (OpenMP Implementation Status): Extend
4941 (OpenACC Profiling Interface): Fix typo.
4943 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4945 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4946 not to 4.5; link to new section.
4947 (OpenMP Implementation Status): New.
4949 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
4951 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4953 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
4955 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4957 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4959 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4960 Jakub Jelinek <jakub@redhat.com>
4962 * testsuite/libgomp.c/address-space-1.c: New file.
4964 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4966 * testsuite/lib/libgomp.exp
4967 (check_effective_target_offload_target_intelmic): Remove 'proc'.
4968 (check_effective_target_offload_device_intel_mic): New 'proc'.
4969 * testsuite/libgomp.c-c++-common/on_device_arch.h
4970 (device_arch_intel_mic, on_device_arch_intel_mic): New.
4971 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4973 * testsuite/libgomp.fortran/target10.f90: Likewise.
4975 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
4977 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4978 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4979 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4980 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4982 2021-08-23 Jakub Jelinek <jakub@redhat.com>
4984 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4985 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4986 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4988 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
4990 * config/nvptx/error.c (fwrite, exit): Override, too.
4991 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4992 of offloading testing.
4993 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4995 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
4997 * testsuite/libgomp.fortran/error-1.f90: New test.
4999 2021-08-20 Jakub Jelinek <jakub@redhat.com>
5001 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
5002 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
5003 * error.c (GOMP_warning, GOMP_error): New functions.
5004 * testsuite/libgomp.c-c++-common/error-1.c: New test.
5006 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
5008 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
5009 omp_target_free. omp_target_is_present, omp_target_memcpy,
5010 omp_target_memcpy_rect, omp_target_associate_ptr,
5011 omp_target_disassociate_ptr): Add interface.
5012 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
5013 omp_target_free. omp_target_is_present, omp_target_memcpy,
5014 omp_target_memcpy_rect, omp_target_associate_ptr,
5015 omp_target_disassociate_ptr): Add interface.
5016 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
5017 interface block for omp_alloc + omp_free.
5018 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
5019 * testsuite/libgomp.fortran/refcount-1.f90: New test.
5020 * testsuite/libgomp.fortran/target-12.f90: New test.
5022 2021-08-18 Jakub Jelinek <jakub@redhat.com>
5024 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
5026 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
5028 * testsuite/libgomp.fortran/scope-1.f90: New test.
5029 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
5031 2021-08-17 Jakub Jelinek <jakub@redhat.com>
5033 * Makefile.am (libgomp_la_SOURCES): Add scope.c
5034 * Makefile.in: Regenerated.
5035 * libgomp_g.h (GOMP_scope_start): Declare.
5036 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5037 * scope.c: New file.
5038 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5039 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5041 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
5043 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5046 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
5048 * testsuite/libgomp.fortran/masked-1.f90: New test.
5050 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
5052 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5054 2021-08-12 Jakub Jelinek <jakub@redhat.com>
5056 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5058 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
5060 * env.c (parse_bind_var): Accept 'primary' as alias for
5062 (omp_display_env): Add TODO comment to
5063 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5064 * libgomp.texi: Change 'master thread' to 'primary thread'
5065 in line with OpenMP 5.1.
5066 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5067 omp_proc_bind_master is an alias of it.
5068 (OMP_PROC_BIND): Mention 'PRIMARY'.
5069 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5070 (omp_proc_bind_primary): Add.
5071 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5072 * omp_lib.f90.in (omp_proc_bind_primary): Add.
5073 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5074 * omp_lib.h.in (omp_proc_bind_primary): Add.
5075 * testsuite/libgomp.c/affinity-1.c: Check that
5076 'primary' works and is identical to 'master'.
5078 2021-08-09 Julian Brown <julian@codesourcery.com>
5079 Kwok Cheung Yeung <kcy@codesourcery.com>
5080 Thomas Schwinge <thomas@codesourcery.com>
5082 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5084 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5085 [acc_device_radeon]: Update.
5086 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5087 [ACC_DEVICE_TYPE_radeon]: Likewise.
5088 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5089 [acc_device_radeon]: Likewise.
5090 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5091 [ACC_DEVICE_TYPE_radeon]: Likewise.
5092 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5093 'openacc_radeon_accel_selected' and '-O0'.
5094 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5096 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
5098 * icv-device.c (omp_get_device_num): New API function, host side.
5099 * fortran.c (omp_get_device_num_): New interface function.
5100 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5101 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5102 omp_get_device_num_.
5103 * libgomp.texi (omp_get_device_num): Add documentation for new API
5105 * omp.h.in (omp_get_device_num): Add declaration.
5106 * omp_lib.f90.in (omp_get_device_num): Likewise.
5107 * omp_lib.h.in (omp_get_device_num): Likewise.
5108 * target.c (gomp_load_image_to_device): If additional entry for device
5109 number exists at end of returned entries from 'load_image_func' hook,
5110 copy the assigned device number over to the device variable.
5111 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5112 (omp_get_device_num): New API function, device side.
5113 * plugin/plugin-gcn.c ("symcat.h"): Add include.
5114 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5115 at end of returned 'target_table' entries.
5116 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5117 (omp_get_device_num): New API function, device side.
5118 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5119 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5120 at end of returned 'target_table' entries.
5121 * testsuite/lib/libgomp.exp
5122 (check_effective_target_offload_target_intelmic): New function for
5123 testing for intelmic offloading.
5124 * testsuite/libgomp.c-c++-common/target-45.c: New test.
5125 * testsuite/libgomp.fortran/target10.f90: New test.
5127 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
5128 Ulrich Drepper <drepper@redhat.com>
5130 * fortran.c (omp_display_env_, omp_display_env_8_): Only
5131 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5133 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
5134 Julian Brown <julian@codesourcery.com>
5135 Kwok Cheung Yeung <kcy@codesourcery.com>
5137 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5138 's%oaccdevlow%oaccloops%g'.
5139 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5140 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5141 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5143 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5145 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5147 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5149 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5151 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5153 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5155 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5157 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5159 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
5161 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5163 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5165 2021-07-27 Ulrich Drepper <drepper@gmail.com>
5167 * env.c (wait_policy, stacksize): New static variables,
5168 move out of handle_omp_display_env.
5169 (omp_display_env): New function. The meat of the old
5170 handle_omp_display_env function.
5171 (handle_omp_display_env): Change to not take parameters
5172 and instead use the global variables. Only perform
5173 parsing, defer to omp_display_env for the implementation.
5174 (initialize_env): Remove local variables wait_policy and
5175 stacksize. Don't pass parameters to handle_omp_display_env.
5176 * fortran.c: Add ialias_redirect for omp_display_env.
5177 (omp_display_env_, omp_display_env_8_): New functions.
5178 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
5179 omp_display_env_, and omp_display_env_8_.
5180 * omp.h.in: Declare omp_display_env.
5181 * omp_lib.f90.in: Likewise.
5182 * omp_lib.h.in: Likewise.
5184 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5185 Julian Brown <julian@codesourcery.com>
5187 * target.c (gomp_coalesce_buf_add): Update comment.
5188 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5190 (gomp_map_vars_internal): Only 'if (!aq)', do
5191 'gomp_coalesce_buf_add'.
5192 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5195 2021-07-27 Julian Brown <julian@codesourcery.com>
5196 Thomas Schwinge <thomas@codesourcery.com>
5198 * libgomp.h (gomp_copy_host2dev): Update prototype.
5199 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5200 argument to gomp_copy_host2dev (false).
5201 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5202 (copy_data): Don't free src.
5203 (queue_push_copy): Remove free_src handling.
5204 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5205 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5207 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5209 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5210 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
5211 data when true, and set up deferred freeing of temporary buffer.
5212 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5213 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5214 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5215 calls to gomp_copy_host2dev with appropriate ephemeral argument.
5216 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5219 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5220 Tom de Vries <tom@codesourcery.com>
5222 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5223 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5225 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5227 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5228 sequencing of 'async' data copying vs. profiling events.
5229 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5232 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5233 Julian Brown <julian@codesourcery.com>
5235 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5236 'async'/'wait' issue.
5237 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5238 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5239 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5241 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
5242 Joseph Myers <joseph@codesourcery.com>
5243 Cesar Philippidis <cesar@codesourcery.com>
5245 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5247 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5249 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5251 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5253 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
5256 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5257 '-Wno-error=array-bounds'.
5258 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5259 * libgomp.h [__AMDGCN__]: Likewise.
5261 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
5264 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5265 * libgomp.h [__AMDGCN__]: Likewise.
5267 2021-07-13 Jakub Jelinek <jakub@redhat.com>
5268 Florian Weimer <fweimer@redhat.com>
5270 * config/linux/sem.h: Don't include limits.h.
5271 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5272 * config/linux/affinity.c: Include limits.h.
5274 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5277 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5279 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5282 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5283 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5284 avoid disabling other offload targets.
5285 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5286 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5287 * testsuite/libgomp.c/target-44.c: Likewise.
5289 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5291 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5292 target has shared memory and disable some scalar pointer/allocatable
5293 checks if not as firstprivate does not work.
5295 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5298 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5299 Add "target offload_device_nonshared_as" condition for enabling test.
5301 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5303 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5304 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5305 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5306 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5308 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5310 PR middle-end/101167
5311 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5313 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5315 * hashtab.h (htab_clear): New function with initialization code
5316 factored out from...
5317 (htab_create): ...here, adjust to use htab_clear function.
5318 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5319 special refcount values, add comments.
5320 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5321 (REFCOUNT_LINK): Likewise.
5322 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5324 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5326 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5327 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5328 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5329 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5330 (struct splay_tree_key_s): Add structelem_refcount and
5331 structelem_refcount_ptr fields into a union with dynamic_refcount.
5333 (gomp_map_vars): Delete declaration.
5334 (gomp_map_vars_async): Likewise.
5335 (gomp_unmap_vars): Likewise.
5336 (gomp_unmap_vars_async): Likewise.
5337 (goacc_map_vars): New declaration.
5338 (goacc_unmap_vars): Likewise.
5339 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5340 (goacc_enter_datum): Likewise.
5341 (goacc_enter_data_internal): Likewise.
5342 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5343 and goacc_unmap_vars.
5344 (GOACC_data_start): Adjust to use goacc_map_vars.
5345 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5346 * target.c (hash_entry_type): New typedef.
5347 (htab_alloc): New function hook for hashtab.h.
5348 (htab_free): Likewise.
5349 (htab_hash): Likewise.
5350 (htab_eq): Likewise.
5351 (hashtab.h): Add file include.
5352 (gomp_increment_refcount): New function.
5353 (gomp_decrement_refcount): Likewise.
5354 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5355 gomp_increment_refcount.
5356 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5357 to gomp_map_vars_existing.
5358 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5359 variable to guard OpenMP specific paths, adjust calls to
5360 gomp_map_vars_existing, add structure element sibling splay_tree_key
5361 sequence creation code, adjust Fortran map case to avoid increment
5363 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5364 local refcount_set if caller passed in NULL, adjust call to
5365 gomp_map_vars_internal.
5366 (gomp_map_vars_async): Adjust and rename into...
5367 (goacc_map_vars): ...this new function, adjust call to
5368 gomp_map_vars_internal.
5369 (gomp_remove_splay_tree_key): New function with code factored out from
5370 gomp_remove_var_internal.
5371 (gomp_remove_var_internal): Add code to handle removing multiple
5372 splay_tree_key sequence for structure elements, adjust code to use
5373 gomp_remove_splay_tree_key for splay-tree key removal.
5374 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5375 gomp_decrement_refcount.
5376 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5377 local refcount_set if caller passed in NULL, adjust call to
5378 gomp_unmap_vars_internal.
5379 (gomp_unmap_vars_async): Adjust and rename into...
5380 (goacc_unmap_vars): ...this new function, adjust call to
5381 gomp_unmap_vars_internal.
5382 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5384 (GOMP_target_ext): Likewise.
5385 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5386 (GOMP_target_data): Likewise.
5387 (GOMP_target_data_ext): Likewise.
5388 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5389 (gomp_exit_data): Add refcount_set parameter, adjust to use
5390 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5392 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5393 gomp_map_vars and gomp_exit_data.
5394 (gomp_target_task_fn): Likewise.
5395 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5396 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5397 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5398 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5399 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5400 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5402 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5405 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5407 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5408 Thomas Schwinge <thomas@codesourcery.com>
5410 * libgomp.map (GOACC_2.0.2): New symbol version.
5411 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5412 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5414 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5415 Andrew Stubbs <ams@codesourcery.com>
5417 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5419 (GOACC_enter_exit_data): ... here.
5420 (GOACC_declare): Use it.
5422 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5424 * oacc-parallel.c (GOACC_declare): Move...
5425 * oacc-mem.c: ... here.
5426 * libgomp_g.h: Adjust.
5428 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5429 Thomas Schwinge <thomas@codesourcery.com>
5431 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5434 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5436 PR tree-optimization/100981
5437 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5438 dsdotr and dsdoti to 0.
5440 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5442 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5443 if atomic compare-and-swap is supported on 'int'.
5445 2021-06-09 Richard Biener <rguenther@suse.de>
5447 PR tree-optimization/100981
5448 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5450 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5452 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5454 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5456 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5457 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5459 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5461 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5462 '-DACC_MEM_SHARED=0'.
5463 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5464 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5465 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5466 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5467 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5468 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5469 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5470 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5471 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5472 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5473 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5474 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5475 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5476 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5477 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5478 'acc_device_radeon' testing.
5479 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5480 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5481 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5482 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5483 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5484 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5485 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5486 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5487 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5488 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5489 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5490 for non-'openacc_nvidia_accel_selected'.
5491 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5492 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5493 all implement this checking".
5494 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5495 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5496 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5497 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5498 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5500 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5502 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5503 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5505 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5507 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5508 for 'acc_device_radeon'.
5510 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5512 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5513 for non-'acc_device_nvidia'.
5515 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5517 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5518 'acc_device_radeon' testing.
5519 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5520 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5521 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5523 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5525 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5526 require 'openacc_nvidia_accel_selected'. Fix up for
5527 'ACC_DEVICE_TYPE_radeon'.
5529 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5531 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5532 'openacc_nvidia_accel_selected'.
5533 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5535 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5537 * testsuite/lib/libgomp.exp
5538 (check_effective_target_openacc_radeon_accel_selected):
5541 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5543 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5546 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5548 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5549 <acc_device_nvidia>: Update comment.
5551 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5553 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5555 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5557 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5558 check_effective_target_openacc_cublas,
5559 check_effective_target_openacc_cudart): New.
5560 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5561 target openacc_cublas.
5562 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5563 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5564 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5565 target openacc_cuda.
5566 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5567 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5568 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5569 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5570 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5571 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5572 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5573 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5574 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5575 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5576 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5577 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5578 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5579 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5580 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5581 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5582 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5583 targets openacc_cublas and openacc_cudart.
5584 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5585 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5586 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5587 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5588 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5589 Require effective target openacc_cudart.
5590 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5591 for effective target openacc_cuda and add && defined USE_CUDA_H to
5592 preprocessor conditionals. Guard -lcuda also on openacc_cuda
5595 2021-05-26 Jakub Jelinek <jakub@redhat.com>
5598 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5599 GOMP_target_end_data, GOMP_target_update_ext,
5600 GOMP_target_enter_exit_data): New dummy entrypoints.
5601 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5602 GOMP_target_end_data, GOMP_target_update_ext,
5603 GOMP_target_enter_exit_data): Likewise.
5604 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5605 OMPFROM, OMPTO): Define.
5606 (main): Remove #pragma omp target teams around all the tests.
5607 * testsuite/libgomp.c-c++-common/target-41.c: New test.
5608 * testsuite/libgomp.c-c++-common/target-42.c: New test.
5610 2021-05-25 Jakub Jelinek <jakub@redhat.com>
5613 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5615 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
5618 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5619 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5620 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5622 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
5625 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5626 uninteresting/varying diagnostics.
5628 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5631 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5632 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5634 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5637 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5639 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5640 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5641 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5643 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5645 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5647 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5649 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5651 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5653 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5655 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5657 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5659 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5661 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5663 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5665 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5667 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5669 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5671 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5673 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5675 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5677 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5679 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5681 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5683 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5684 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5685 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5686 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5687 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5688 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5689 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5690 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5691 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5692 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5693 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5694 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5695 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5696 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5697 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5699 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5701 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5703 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5705 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5706 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5708 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5709 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5710 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5711 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5712 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5713 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5714 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5716 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5718 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5720 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5722 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5724 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5726 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5728 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5730 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5732 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5734 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5736 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5738 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5740 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5741 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5742 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5744 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5746 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5747 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5748 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5750 2021-05-21 Julian Brown <julian@codesourcery.com>
5751 Chung-Lin Tang <cltang@codesourcery.com>
5752 Thomas Schwinge <thomas@codesourcery.com>
5755 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5757 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5759 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5762 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5764 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5765 for nvptx offloading.
5767 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
5769 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5771 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
5774 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5776 2021-05-19 Julian Brown <julian@codesourcery.com>
5778 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5780 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5782 * testsuite/lib/libgomp.exp
5783 (check_effective_target_offload_target_nvptx): Don't shadow global
5784 'offload_targets' variable.
5786 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5788 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5789 '-latomic' to nvptx offloading compilation.
5790 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5792 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5794 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5795 offloading compilation.
5797 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
5799 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5800 if new tasks generated.
5801 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5803 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
5805 * testsuite/libgomp.fortran/parallel-master.f90: New test.
5807 2021-05-13 Martin Liska <mliska@suse.cz>
5810 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5811 * testsuite/libgomp.c/pr46032-2.c: Likewise.
5812 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5813 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5815 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
5817 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5818 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5820 2021-05-11 Jakub Jelinek <jakub@redhat.com>
5822 PR middle-end/100471
5823 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5824 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5826 * testsuite/libgomp.c/task-reduction-4.c: New test.
5828 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
5829 Tom de Vries <tdevries@suse.de>
5831 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5832 complex/floating-point || + && reduction with 'omp target'.
5833 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5835 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5837 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5838 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5839 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5840 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5842 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5845 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5846 declaration to scope of non-'depend'-guarded assignment to avoid races.
5848 2021-05-03 Tom de Vries <tdevries@suse.de>
5851 * testsuite/libgomp.c/target-44.c: New test.
5853 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
5855 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5857 2021-04-29 Tom de Vries <tdevries@suse.de>
5859 * testsuite/libgomp.c/pr81778.c: New test.
5861 2021-04-29 Tom de Vries <tdevries@suse.de>
5864 * testsuite/libgomp.c/target-43.c: New file.
5866 2021-04-28 Jakub Jelinek <jakub@redhat.com>
5867 Tobias Burnus <tobias@codesourcery.com>
5869 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5870 * target.c (gomp_load_plugin_for_device): If set and if a plugin
5871 can't be dlopened, silently assume it has no devices.
5872 * Makefile.in: Regenerate.
5873 * config.h.in: Regenerate.
5874 * configure: Regenerate.
5876 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5878 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5879 Use [Ww]arning in dg-bogus as FE diagnostic and default
5880 diagnostic differ and the result depends on ENABLE_OFFLOAD.
5881 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5882 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5883 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5885 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5887 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5888 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5889 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5890 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5891 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5893 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5894 Nathan Sidwell <nathan@codesourcery.com>
5895 Tom de Vries <vries@codesourcery.com>
5896 Julian Brown <julian@codesourcery.com>
5897 Kwok Cheung Yeung <kcy@codesourcery.com>
5899 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5900 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5901 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5902 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5903 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5904 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5905 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5907 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5908 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5909 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5910 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5912 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5913 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5915 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5916 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5917 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5918 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5919 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5920 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5922 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5923 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5924 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5925 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5926 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5927 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5928 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5929 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5930 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5931 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5932 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5934 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5936 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5938 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5939 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5941 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5942 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5943 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5944 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5945 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5946 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5947 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5949 2021-04-22 Richard Biener <rguenther@suse.de>
5951 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5954 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5956 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5957 omp_depend_kind instead of defining it as 16.
5959 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5961 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5962 New, based on check_effective_target_offload_target_nvptx.
5963 (check_effective_target_offload_target_nvptx): Call it.
5964 (check_effective_target_offload_target_amdgcn): New.
5965 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5966 Require target offload_target_nvptx || offload_target_amdgcn.
5967 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5968 * testsuite/libgomp.c/pr86416-1.c: Likewise.
5969 * testsuite/libgomp.c/pr86416-2.c: Likewise.
5971 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5973 * testsuite/libgomp.fortran/depobj-1.f90: New test.
5975 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
5977 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5978 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5979 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5981 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5983 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5985 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
5988 * testsuite/lib/libgomp.exp
5989 (check_effective_target_offload_device_nvptx): New.
5990 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5991 resolved, make sure that we exit quickly, with error status,
5993 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5994 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5996 2021-04-14 Jakub Jelinek <jakub@redhat.com>
5999 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
6000 cp = omp_alloc with cp, p arguments instead of cq, q and call
6001 c_f_pointer after last cq = omp_alloc with cq, q.
6003 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
6006 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
6007 for loop with GT/GE condition.
6008 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6010 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
6015 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
6017 2021-04-09 Jakub Jelinek <jakub@redhat.com>
6020 * team.c (gomp_thread_start): Call pthread_setspecific for
6021 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
6022 has been initialized to avoid false positive warning.
6024 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
6027 * testsuite/lib/on_device_arch.c: Move to ...
6028 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
6029 * testsuite/libgomp.fortran/on_device_arch.c: New file;
6030 #include on_device_arch.h.
6031 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
6032 on_device_arch.h instead of using dg-additional-source.
6033 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6034 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
6035 on_device_arch.c without relative paths.
6037 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6039 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6040 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6041 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6042 * config.h.in: Regenerate.
6043 * configure: Likewise.
6045 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6048 * testsuite/lib/on_device_arch.c: New file.
6049 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6050 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6051 skip for nvptx offloading, with error status.
6052 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6054 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6056 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6057 OpenACC 'serial' construct diagnostic for nvptx offloading.
6059 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
6062 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6064 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
6067 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6069 2021-03-04 Jakub Jelinek <jakub@redhat.com>
6071 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6072 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6073 checking of -m32 or -mx32 options on the command line.
6074 * config.h.in: Regenerated.
6075 * configure: Regenerated.
6077 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
6079 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6080 support from the target.
6082 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6083 Jakub Jelinek <jakub@redhat.com>
6086 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6087 (struct gomp_task): Replace detach and completion_sem fields with
6088 union containing completion_sem and detach_team. Add deferred_p
6090 (struct gomp_team): Remove task_detach_queue.
6091 * task.c: Include assert.h.
6092 (gomp_init_task): Initialize deferred_p and completion_sem fields.
6093 Rearrange initialization order of fields.
6094 (task_fulfilled_p): Delete.
6095 (GOMP_task): Use address of task as the event handle. Remove
6096 initialization of detach field. Initialize deferred_p field.
6097 Use automatic local for completion_sem. Initialize detach_team field
6099 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6100 Set kind of suspended detach task to GOMP_TASK_DETACHED and
6101 decrement task_running_count. Move finish_cancelled block out of
6102 else branch. Relocate call to gomp_team_barrier_done.
6103 (GOMP_taskwait): Handle tasks with completion events that have not
6105 (GOMP_taskgroup_end): Likewise.
6106 (omp_fulfill_event): Use address of task as event handle. Post to
6107 completion_sem for undeferred tasks. Clear detach_team if task
6108 has not finished. For finished tasks, handle post-execution tasks,
6109 call gomp_team_barrier_wake if necessary, and free task.
6110 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6111 (free_team): Remove free of task_detach_queue.
6112 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6113 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6114 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6115 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6116 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6117 Change data-sharing of detach events on enclosing parallel to private.
6118 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
6120 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6121 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6122 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6123 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6124 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6125 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6126 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6127 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6128 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6129 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6130 Change data-sharing of detach events on enclosing parallel to private.
6131 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
6133 * testsuite/libgomp.fortran/task-detach-7.f90: New.
6134 * testsuite/libgomp.fortran/task-detach-8.f90: New.
6135 * testsuite/libgomp.fortran/task-detach-9.f90: New.
6136 * testsuite/libgomp.fortran/task-detach-10.f90: New.
6137 * testsuite/libgomp.fortran/task-detach-11.f90: New.
6139 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
6142 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6144 2021-02-17 Julian Brown <julian@codesourcery.com>
6146 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6149 2021-02-17 Julian Brown <julian@codesourcery.com>
6151 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6152 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6154 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6156 * config/linux/x86/futex.h (__futex_wait):
6157 Revert output type back to long.
6158 (__futex_wake): Ditto.
6159 (futex_wait): Update for revert.
6160 (futex_wake): Ditto.
6162 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6164 * config/linux/x86/futex.h (__futex_wait): New static inline
6165 wrapper function. Correct output type to int and
6166 timeout type to void *.
6167 (__futex_wake): New static inline wrapper function.
6168 Correct output type to int.
6169 (futex_wait): Use __futex_wait.
6170 (futex_wake): Use __futex_wake.
6172 2021-02-10 Julian Brown <julian@codesourcery.com>
6175 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6178 2021-02-04 Julian Brown <julian@codesourcery.com>
6180 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6182 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
6184 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6185 EF_AMDGPU_MACH_AMDGCN_GFX908.
6186 (gcn_gfx908_s): New constant string.
6187 (isa_hsa_name): Add gfx908.
6188 (isa_code): Add gfx908.
6190 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6192 * libgomp.texi (omp_fulfill_event): New entry.
6194 2021-01-20 Jakub Jelinek <jakub@redhat.com>
6196 * task.c (GOMP_task): Rename priority argument to priority_arg,
6197 add priority automatic variable and modify that variable. Instead of
6198 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6199 check flags for that bit.
6201 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
6204 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6206 2021-01-18 Andreas Schwab <schwab@suse.de>
6208 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6210 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6212 * config/rtems/sem.h (gomp_sem_getcount): New function.
6214 2021-01-18 Jakub Jelinek <jakub@redhat.com>
6216 * config/linux/sem.h (gomp_sem_getcount): New function.
6217 * config/posix/sem.h (gomp_sem_getcount): New function.
6218 * config/posix/sem.c (gomp_sem_getcount): New function.
6219 * config/accel/sem.h (gomp_sem_getcount): New function.
6220 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6221 (omp_fulfill_event): Likewise.
6223 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
6225 * fortran.c (omp_fulfill_event_): New.
6226 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6227 (struct gomp_team): Add task_detach_queue and task_detach_count
6229 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6230 * libgomp_g.h (GOMP_task): Add extra argument.
6231 * omp.h.in (enum omp_event_handle_t): New.
6232 (omp_fulfill_event): New.
6233 * omp_lib.f90.in (omp_event_handle_kind): New.
6234 (omp_fulfill_event): New.
6235 * omp_lib.h.in (omp_event_handle_kind): New.
6236 (omp_fulfill_event): Declare.
6237 * priority_queue.c (priority_tree_find): New.
6238 (priority_list_find): New.
6239 (priority_queue_find): New.
6240 * priority_queue.h (priority_queue_predicate): New.
6241 (priority_queue_find): New.
6242 * task.c (gomp_init_task): Initialize detach field.
6243 (task_fulfilled_p): New.
6244 (GOMP_task): Add detach argument. Ignore detach argument if
6245 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
6246 field. Copy address of completion_sem into detach argument and
6247 into the start of the data record. Wait for detach event if task
6249 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6250 Remove completed tasks and requeue dependent tasks.
6251 (omp_fulfill_event): New.
6252 * team.c (gomp_new_team): Initialize task_detach_queue and
6253 task_detach_count fields.
6254 (free_team): Free task_detach_queue field.
6255 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6256 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6257 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6258 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6259 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6260 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6261 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6262 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6263 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6264 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6265 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6266 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6268 2021-01-15 Jakub Jelinek <jakub@redhat.com>
6271 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6272 be added through preprocessor check on
6273 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6275 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
6278 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6280 * configure: Regenerate.
6281 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6284 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6286 * configure: Re-generate.
6288 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6290 * configure: Re-generate.
6292 2021-01-05 Julian Brown <julian@codesourcery.com>
6294 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6295 (struct ptx_device): Add omp_stacks struct.
6296 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6297 (nvptx_close_device): Free cached stacks block and mutex.
6298 (nvptx_stacks_free): New function.
6299 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6300 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6301 (nvptx_stacks_alloc): Rename to...
6302 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6303 size or smaller is required.
6304 (nvptx_stacks_free): Remove.
6305 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6306 during kernel execution.
6308 2021-01-01 Jakub Jelinek <jakub@redhat.com>
6310 * libgomp.texi: Bump @copying's copyright year.
6312 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6314 * libgomp.texi (Top): Avoid bad "up" link.
6316 2020-12-18 Jakub Jelinek <jakub@redhat.com>
6318 * testsuite/libgomp.c/task-6.c: New test.
6320 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
6322 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6323 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6325 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
6327 * testsuite/libgomp.fortran/scan-1.f90: New test.
6329 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6332 * configure: Regenerate.
6334 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
6336 * configure: Regenerate.
6338 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6340 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6341 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6343 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
6345 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6348 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
6350 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6351 (reserved): Delete unused define.
6353 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6355 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6356 Tcl 8.5-specific behavior.
6357 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6359 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6361 * env.c (gomp_global_icv): Remove nest_var field. Add
6362 max_active_levels_var field.
6363 (gomp_max_active_levels_var): Remove.
6364 (parse_boolean): Return true on success.
6365 (handle_omp_display_env): Express OMP_NESTED in terms of
6366 max_active_levels_var. Change format specifier for
6367 max_active_levels_var.
6368 (initialize_env): Set max_active_levels_var from
6369 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6371 * icv.c (omp_set_nested): Express in terms of
6372 max_active_levels_var.
6373 (omp_get_nested): Likewise.
6374 (omp_set_max_active_levels): Use max_active_levels_var field instead
6375 of gomp_max_active_levels_var.
6376 (omp_get_max_active_levels): Likewise.
6377 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6378 max_active_levels_var field.
6379 (gomp_supported_active_levels): Set to UCHAR_MAX.
6380 (gomp_max_active_levels_var): Delete.
6381 * libgomp.texi (omp_get_nested): Update documentation.
6382 (omp_set_nested): Likewise.
6383 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6384 (OMP_NESTED): Likewise.
6385 (OMP_NUM_THREADS): Likewise.
6386 (OMP_PROC_BIND): Likewise.
6387 * parallel.c (gomp_resolve_num_threads): Replace reference
6388 to nest_var with max_active_levels_var. Use max_active_levels_var
6389 field instead of gomp_max_active_levels_var.
6391 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
6393 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6394 nvptx_usleep; use also for device={arch(gcn)}.
6396 2020-11-14 Jakub Jelinek <jakub@redhat.com>
6398 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6399 (foo): Add tests for non-VLA private and firstprivate clauses on
6401 (bar): Likewise. Remove taking of address from private/firstprivate
6403 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6404 (foo): Add p, q, px and s arguments. Add tests for array reductions
6405 and for non-VLA private and firstprivate clauses on omp task.
6407 (main): Adjust foo caller. Don't call bar.
6409 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6410 Thomas Schwinge <thomas@codesourcery.com>
6412 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6414 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6416 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6418 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6419 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6421 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6422 Thomas Schwinge <thomas@codesourcery.com>
6425 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6427 2020-11-13 Jakub Jelinek <jakub@redhat.com>
6429 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6430 for array reductions.
6431 (main): Adjust foo callers.
6433 2020-11-12 Jakub Jelinek <jakub@redhat.com>
6435 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6436 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6437 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6438 * allocator.c (omp_aligned_alloc): New for now static function,
6439 add alignment argument and handle it.
6440 (omp_alloc): Reimplement using omp_aligned_alloc.
6441 (GOMP_alloc, GOMP_free): New functions.
6442 (omp_free): Add ialias.
6443 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6444 * testsuite/libgomp.c++/allocate-1.C: New test.
6446 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6449 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6451 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6453 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6455 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6456 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6457 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6458 (goacc_enter_data_internal): Likewise.
6459 * target.c (gomp_map_vars_internal):
6460 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6461 of gomp_attach_pointer for OpenMP cases.
6462 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6463 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6464 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6466 2020-11-05 Ulrich Drepper <drepper@redhat.com>
6467 Kwok Cheung Yeung <kcy@codesourcery.com>
6469 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6470 * Makefile.in: Regenerate.
6471 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6472 pragmas to ignore -Wdeprecated-declarations warnings.
6474 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6475 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6476 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6477 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6479 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6481 * testsuite/libgomp.c/affinity-1.c: Likewise.
6482 * testsuite/libgomp.c/affinity-2.c: Likewise.
6483 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6484 * testsuite/libgomp.c/lib-1.c: Likewise.
6485 * testsuite/libgomp.c/nested-1.c: Likewise.
6486 * testsuite/libgomp.c/nested-2.c: Likewise.
6487 * testsuite/libgomp.c/nested-3.c: Likewise.
6488 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6489 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6490 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6491 * testsuite/libgomp.c/pr35549.c: Likewise.
6492 * testsuite/libgomp.c/pr42942.c: Likewise.
6493 * testsuite/libgomp.c/pr61200.c: Likewise.
6494 * testsuite/libgomp.c/sort-1.c: Likewise.
6495 * testsuite/libgomp.c/target-5.c: Likewise.
6496 * testsuite/libgomp.c/target-6.c: Likewise.
6497 * testsuite/libgomp.c/teams-1.c: Likewise.
6498 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6499 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6500 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6501 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6502 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6503 * testsuite/libgomp.fortran/lib2.f: Likewise.
6504 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6505 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6507 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6510 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6511 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6512 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6514 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6518 * testsuite/lib/libgomp.exp (libgomp_init): Set
6519 'gcc_warning_prefix', 'gcc_error_prefix'.
6521 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6523 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6524 even in field_tgt_clear initializer.
6526 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6528 * testsuite/libgomp.c/target-42.c: New test.
6530 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6531 Tom de Vries <tdevries@suse.de>
6534 * testsuite/libgomp.c/usleep.h: New file.
6535 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6536 (main): Use tgt_usleep instead of usleep.
6537 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6538 (main): Use tgt_usleep instead of usleep.
6540 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6543 * testsuite/libgomp.c/declare-variant-1.c: New test.
6545 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6547 * testsuite/libgomp.c/target-41.c: New test.
6549 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6551 * icv.c (omp_get_initial_device): Remove including corresponding
6553 * icv-device.c (omp_get_initial_device): New function. Return
6554 gomp_get_num_devices (). Add ialias.
6555 * target.c (resolve_device): Don't fail with
6556 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6557 gomp_get_num_devices ().
6558 (omp_target_alloc, omp_target_free, omp_target_is_present,
6559 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6560 omp_target_disassociate_ptr, omp_pause_resource): Use
6561 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6562 first use in the functions, in uses dominated by the
6563 gomp_get_num_devices call use num_devices_openmp instead.
6564 * libgomp.texi (omp_get_initial_device): Document.
6565 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6567 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6568 * testsuite/libgomp.c/target-40.c: New test.
6570 2020-10-21 Jakub Jelinek <jakub@redhat.com>
6572 * env.c (parse_target_offload): Change new_offload var type to int,
6573 preinitialize to -1, remove found var and test new_offload != -1
6576 2020-10-20 Jakub Jelinek <jakub@redhat.com>
6578 * target.c (gomp_target_init): Inside of the function, use automatic
6579 variables corresponding to num_devices, num_devices_openmp and devices
6580 global variables and update the globals only at the end of the
6583 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6585 * env.c (gomp_target_offload_var): New.
6586 (parse_target_offload): New.
6587 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6588 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6589 * libgomp.h (gomp_target_offload_t): New.
6590 (gomp_target_offload_var): New.
6591 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6592 * target.c (resolve_device): Generate error if device not found and
6593 offloading is mandatory.
6594 (gomp_target_fallback): Generate error if offloading is mandatory.
6595 (GOMP_target): Add argument in call to gomp_target_fallback.
6596 (GOMP_target_ext): Likewise.
6597 (gomp_target_data_fallback): Generate error if offloading is mandatory.
6598 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6599 (GOMP_target_data_ext): Likewise.
6600 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6601 (gomp_target_init): Return early if offloading is disabled.
6603 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
6605 * libgomp.texi (omp_get_max_active_levels): Modify description.
6606 (omp_get_supported_active_levels): Make descriptions consistent.
6608 2020-10-14 Jakub Jelinek <jakub@redhat.com>
6610 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6612 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6614 * env.c (gomp_max_active_levels_var): Initialize to
6615 gomp_supported_active_levels.
6616 (initialize_env): Limit gomp_max_active_levels_var to be at most
6617 equal to gomp_supported_active_levels.
6618 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6619 (omp_get_supported_active_levels_): New.
6620 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6621 to at most equal to gomp_supported_active_levels.
6622 (omp_get_supported_active_levels): New.
6623 * libgomp.h (gomp_supported_active_levels): New.
6624 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6625 omp_get_supported_active_levels_.
6626 * libgomp.texi (omp_get_supported_active_levels): New.
6627 (omp_set_max_active_levels): Update. Add reference to
6628 omp_get_supported_active_levels.
6629 * omp.h.in (omp_get_supported_active_levels): New.
6630 * omp_lib.f90.in (omp_get_supported_active_levels): New.
6631 * omp_lib.h.in (omp_get_supported_active_levels): New.
6632 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6633 against omp_get_supported_active_levels.
6634 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6636 2020-10-11 Clement Chigot <clement.chigot@atos.net>
6638 * config/t-aix: Delete and recreate libgomp before creating
6641 2020-10-08 Tom de Vries <tdevries@suse.de>
6644 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6647 2020-10-06 Tom de Vries <tdevries@suse.de>
6649 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6651 2020-10-06 Tom de Vries <tdevries@suse.de>
6654 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6656 2020-10-05 Tom de Vries <tdevries@suse.de>
6659 * testsuite/libgomp.fortran/pr95654.f90: New test.
6661 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
6663 * Makefile.in: Regenerate with automake 1.15.1.
6664 * aclocal.m4: Likewise.
6665 * configure: Likewise.
6666 * testsuite/Makefile.in: Likewise.
6668 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
6670 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6673 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6675 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6677 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
6679 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6680 total number of threads is one.
6681 (gomp_team_barrier_wake): Likewise.
6682 (gomp_team_barrier_wait_end): Likewise.
6683 (gomp_team_barrier_wait_cancel_end): Likewise.
6684 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6685 (gomp_team_barrier_wake): Likewise.
6686 (gomp_team_barrier_wait_end): Likewise.
6687 (gomp_team_barrier_wait_cancel_end): Likewise.
6688 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6690 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6693 * testsuite/libgomp.c++/pr96390.C: New test.
6694 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6696 2020-09-27 Clement Chigot <clement.chigot@atos.net>
6698 * config/t-aix: Use $(AR) without -X32_64.
6700 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6702 * testsuite/libgomp.c/loop-25.c: New test.
6704 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
6707 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6709 2020-09-22 Tom de Vries <tdevries@suse.de>
6711 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6714 2020-09-16 Nathan Sidwell <nathan@acm.org>
6716 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6718 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6721 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6723 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6726 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6727 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6728 (gomp_map_vars_existing): Update call to it.
6729 (gomp_map_fields_existing): Likewise
6730 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6731 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6733 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6735 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6736 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6738 2020-09-14 Tom de Vries <tdevries@suse.de>
6740 * config/nvptx/atomic.c: New file. Add
6741 __sync_val_compare_and_swap_16.
6742 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6743 target offload_target_nvptx.
6745 2020-09-08 Julian Brown <julian@codesourcery.com>
6747 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6748 iteration-ordering assumptions.
6750 2020-09-08 Julian Brown <julian@codesourcery.com>
6752 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6753 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6755 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
6757 * plugin/plugin-nvptx.c (nvptx_free):
6758 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6759 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6762 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
6764 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6766 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6768 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6770 2020-08-13 Jakub Jelinek <jakub@redhat.com>
6772 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6773 * testsuite/libgomp.c/loop-23.c (main): Likewise.
6774 * testsuite/libgomp.c/loop-24.c: New test.
6776 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6777 Tobias Burnus <tobias@codesourcery.com>
6780 * testsuite/libgomp.fortran/pr93553.f90: New test.
6782 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6784 * testsuite/libgomp.c/loop-22.c: New test.
6785 * testsuite/libgomp.c/loop-23.c: New test.
6787 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6790 * testsuite/libgomp.c/teams-3.c: New test.
6791 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6793 (N(test)): Use it before all N(f*) calls.
6794 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6795 (main): Don't call all test_* functions from within
6796 #pragma omp teams reduction(|:err), call them directly.
6798 2020-08-04 Tom de Vries <tdevries@suse.de>
6801 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6802 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6804 2020-08-03 Julian Brown <julian@codesourcery.com>
6805 Thomas Schwinge <thomas@codesourcery.com>
6807 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6808 shared-memory devices. Extend with further checking.
6810 2020-08-03 Martin Jambor <mjambor@suse.cz>
6812 * plugin/Makefrag.am: Remove configuration of HSA plugin.
6813 * aclocal.m4: Regenerated.
6814 * Makefile.in: Regenerated.
6815 * config.h.in: Regenerated.
6816 * configure: Regenerated.
6817 * plugin/configfrag.ac: Likewise.
6818 * plugin/hsa_ext_finalize.h: Removed.
6819 * plugin/plugin-hsa.c: Likewise.
6820 * testsuite/Makefile.in: Regenerated.
6821 * testsuite/lib/libgomp.exp
6822 (offload_target_to_openacc_device_type): Remove hsa case.
6823 (check_effective_target_hsa_offloading_selected_nocache): Removed
6824 (check_effective_target_hsa_offloading_selected): Likewise.
6825 (libgomp_init): Do not add -Wno-hsa to additional_flags.
6826 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6827 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6828 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6829 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6830 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6831 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6832 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6833 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6834 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6835 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6836 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6837 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6838 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6839 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6840 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6841 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6842 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6843 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6844 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6845 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6846 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6847 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6848 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6849 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6851 2020-07-27 Julian Brown <julian@codesourcery.com>
6852 Thomas Schwinge <thomas@codesourcery.com>
6854 * libgomp.h (struct target_var_desc): Rename do_detach field to
6856 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
6857 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6858 (goacc_enter_data_internal): Don't affect reference counts
6859 for attach mappings.
6860 (goacc_exit_data_internal): Don't affect reference counts for detach
6862 * target.c (gomp_map_vars_existing): Don't affect reference counts for
6864 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6865 mark attach mappings.
6866 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6867 reference count for attach mappings.
6868 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6869 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6870 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6871 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6873 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6874 gracefully in no-finalize mode.
6875 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6877 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
6879 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6881 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6882 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6884 2020-07-23 Julian Brown <julian@codesourcery.com>
6885 Thomas Schwinge <thomas@codesourcery.com>
6887 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6888 finalization for detach operation.
6889 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6892 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
6894 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6895 * libgomp_f.h.in (omp_check_defines): Check whether
6896 sizeof of determined Fortran kind and C typedef match.
6897 * omp_lib.f90.in: Add omp_depened_kind.
6898 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6899 * configure: Regenerate.
6900 * Makefile.in: Regenerate.
6901 * testsuite/Makefile.in: Regenerate.
6903 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6905 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6906 gcc/testsuite/c-c++-common/gomp/.
6907 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6908 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6909 from gcc/testsuite/gfortran.dg/gomp/.
6910 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6912 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6914 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6915 * omp_lib.h.in: Likewise.
6917 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
6920 * testsuite/libgomp.c/pr95620.c: New test.
6922 2020-07-16 Julian Brown <julian@codesourcery.com>
6923 Thomas Schwinge <thomas@codesourcery.com>
6925 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6926 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6928 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6930 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6931 avoid conversion on 32bit systems from 32bit to 64bit due
6932 to -fdefault-integer-8.
6934 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6936 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6937 variables; add character(kind=4) tests; update TODO comment.
6939 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6941 * allocator.c: Add ialias for omp_init_allocator and
6942 omp_destroy_allocator.
6943 * configure.ac: Set INTPTR_T_KIND.
6944 * configure: Regenerate.
6945 * Makefile.in: Regenerate.
6946 * testsuite/Makefile.in: Regenerate.
6947 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6948 omp_set_default_allocator_, omp_get_default_allocator_): New
6949 functions and ialias_redirect.
6950 * icv.c: Add ialias for omp_set_default_allocator and
6951 omp_get_default_allocator.
6952 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6953 omp_destroy_allocator_, omp_set_default_allocator_ and
6954 omp_get_default_allocator_.
6955 * omp_lib.f90.in: Add allocator traits parameters, declare
6956 allocator routines and add related kind parameters.
6957 * omp_lib.h.in: Likewise.
6958 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6959 * testsuite/libgomp.fortran/alloc-1.F90: New test.
6960 * testsuite/libgomp.fortran/alloc-2.F90: New test.
6961 * testsuite/libgomp.fortran/alloc-3.F: New test.
6962 * testsuite/libgomp.fortran/alloc-4.f90: New test.
6963 * testsuite/libgomp.fortran/alloc-5.f90: New test.
6965 2020-07-14 Tom de Vries <tom@codesourcery.com>
6966 Cesar Philippidis <cesar@codesourcery.com>
6967 Thomas Schwinge <thomas@codesourcery.com>
6968 Kwok Cheung Yeung <kcy@codesourcery.com>
6970 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6972 (acc_init_1): Set acc_init_thread to pthread_self (). Set
6973 acc_init_state to initializing at the start, and to initialized at the
6975 (self_initializing_p): New function.
6976 (acc_get_device_type): Return acc_device_none if called by thread that
6977 is currently executing acc_init_1.
6978 * libgomp.texi (acc_get_device_type): Update documentation.
6979 (Implementation Status and Implementation-Defined Behavior): Likewise.
6980 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6982 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
6984 * config/t-aix: Set BITS from compiler cpp macro.
6986 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6988 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6990 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6993 * testsuite/libgomp.fortran/target-map-1.f90: New test.
6995 2020-07-14 Jakub Jelinek <jakub@redhat.com>
6997 * testsuite/libgomp.c/loop-21.c: New test.
6999 2020-07-13 Julian Brown <julian@codesourcery.com>
7000 Thomas Schwinge <thomas@codesourcery.com>
7002 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
7004 2020-07-10 Julian Brown <julian@codesourcery.com>
7005 Thomas Schwinge <thomas@codesourcery.com>
7007 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
7009 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7010 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
7012 (acc_unmap_data): Update comment.
7013 (goacc_map_var_existing, goacc_enter_datum): Adjust for
7014 dynamic_refcount semantics.
7015 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
7016 Adjust for dynamic_refcount semantics.
7017 (goacc_enter_data_internal): Implement "present" case of dynamic
7018 memory-map handling here. Update "non-present" case for
7019 dynamic_refcount semantics.
7020 (goacc_exit_data_internal): Use goacc_exit_datum_1.
7021 * target.c (gomp_map_vars_internal): Remove
7022 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
7024 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
7025 (gomp_load_image_to_device): Substitute dynamic_refcount for
7027 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
7028 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
7029 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
7030 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
7031 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
7033 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
7035 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7037 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7038 Remove stale comment.
7039 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7040 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7041 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7042 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7043 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7044 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7046 2020-07-10 Julian Brown <julian@codesourcery.com>
7047 Thomas Schwinge <thomas@codesourcery.com>
7049 * oacc-mem.c (goacc_map_var_existing): New function.
7050 (goacc_enter_datum): Use above function.
7051 (goacc_exit_datum_1): New function.
7052 (goacc_exit_datum): Use above function.
7054 2020-07-09 Julian Brown <julian@codesourcery.com>
7055 Thomas Schwinge <thomas@codesourcery.com>
7058 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7059 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7061 2020-07-09 Julian Brown <julian@codesourcery.com>
7063 * oacc-mem.c (find_group_last): Group data-movement clauses
7064 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7065 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
7067 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7069 * testsuite/libgomp.c/loop-19.c: New test.
7070 * testsuite/libgomp.c/loop-20.c: New test.
7072 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7074 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7075 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
7076 it. Remove __omp_alloctrait_value_max__.
7077 * allocator.c (omp_init_allocator): Handle omp_atv_default for
7078 omp_atk_alignment and omp_atk_pool_size.
7080 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7082 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7083 behavior for 'GOMP_MAP_FORCE_FROM'.
7084 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7086 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7088 * oacc-mem.c (goacc_exit_data_internal): Remove
7089 'GOMP_MAP_ALWAYS_FROM' handling.
7091 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7093 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7094 'scan-assembler' with 'scan-offload-rtl'.
7095 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7096 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7097 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7098 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7100 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7102 * target.c (gomp_map_vars_existing): Assert 'kind !=
7104 (gomp_map_vars_internal): Clean up.
7106 2020-06-27 Jakub Jelinek <jakub@redhat.com>
7108 * testsuite/libgomp.c/loop-17.c: New test.
7109 * testsuite/libgomp.c/loop-18.c: New test.
7111 2020-06-26 Marek Polacek <polacek@redhat.com>
7113 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7115 2020-06-23 Alexandre Oliva <oliva@adacore.com>
7117 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7118 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7120 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
7122 * Makefile.am: Use -include.
7123 * Makefile.in: Regenerate.
7125 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
7127 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7128 * Makefile.in: Regenerate
7129 * configure.ac (tmake_file): Substitute.
7130 * configure: Regenerate.
7131 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7132 * config/t-aix: New file.
7134 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
7137 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7140 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
7142 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7143 variant for HSA_RUNTIME_LIB name.
7144 (find_executable_symbol_1): Delete.
7145 (find_executable_symbol): Delete.
7146 (init_kernel_properties): Add ".kd" suffix to symbol names.
7147 (find_load_offset): Delete.
7148 (create_and_finalize_hsa_program): Remove relocation handling.
7150 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
7152 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7154 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
7158 * testsuite/libgomp.fortran/target-var.f90: New test.
7160 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7161 Julian Brown <julian@codesourcery.com>
7163 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7166 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7167 Julian Brown <julian@codesourcery.com>
7169 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7172 2020-06-05 Julian Brown <julian@codesourcery.com>
7174 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7175 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7177 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7179 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7180 Evaluate 'copyfrom' individually for each entry.
7181 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7183 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7185 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7186 Evaluate 'finalize' individually for each entry.
7187 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7188 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7191 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7193 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7195 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7197 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7198 Julian Brown <julian@codesourcery.com>
7200 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7202 (acc_unmap_data, goacc_exit_data_internal): Restore
7203 'is_tgt_unmapped' checking.
7204 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7206 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7207 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7208 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7209 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7210 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7211 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7213 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7214 Julian Brown <julian@codesourcery.com>
7216 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7218 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7221 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7223 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7226 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7229 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7230 Julian Brown <julian@codesourcery.com>
7232 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7234 (acc_map_data): Clean up accordingly.
7236 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7238 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7239 of over-eager 'finalize' clause.
7240 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7242 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7243 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7244 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7245 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7246 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7247 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7248 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7249 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7251 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7253 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7255 2020-06-04 Julian Brown <julian@codesourcery.com>
7257 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7259 (goacc_detach_internal): Likewise.
7261 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7263 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7265 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7266 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7267 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7268 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7269 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7271 2020-06-02 Jakub Jelinek <jakub@redhat.com>
7273 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7276 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7278 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7280 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7282 * allocator.c (omp_alloc): For size == 0, return NULL early.
7284 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
7287 * configure: Regenerated.
7289 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7292 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7294 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7296 * omp.h.in (omp_uintptr_t): New typedef.
7297 (__GOMP_UINTPTR_T_ENUM): Define.
7298 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7299 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7300 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7301 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7302 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7303 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7304 (gomp_def_allocator): Declare.
7305 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7306 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7307 omp_alloc and omp_free.
7308 * team.c (gomp_team_start): Copy over ts.def_allocator.
7309 * env.c (gomp_def_allocator): New variable.
7310 (parse_wait_policy): Adjust function comment.
7311 (parse_allocator): New function.
7312 (handle_omp_display_env): Print OMP_ALLOCATOR.
7313 (initialize_env): Call parse_allocator.
7314 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7315 * allocator.c: New file.
7316 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7318 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7319 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7320 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7321 * Makefile.in: Regenerated.
7323 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7326 * configure: Regenerated.
7328 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7331 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7333 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7335 * configure: Regenerated.
7337 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7339 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7341 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
7344 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7345 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7346 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7347 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7348 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7349 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7350 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7352 2020-05-12 Jakub Jelinek <jakub@redhat.com>
7354 * testsuite/libgomp.c/target-39.c: New test.
7356 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7358 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7359 * openacc.f90 (acc_device_current): Likewise.
7360 * openacc.h (acc_device_current): Likewise.
7361 * openacc_lib.h (acc_device_current): Likewise.
7364 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7365 'dg-allow-blank-lines-in-output'.
7367 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7368 * testsuite/lib/libgomp.exp
7369 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7370 'radeon'. Adjust all users.
7371 (check_effective_target_openacc_amdgcn_accel_present): Rename
7373 (check_effective_target_openacc_radeon_accel_present): ... this.
7375 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7376 (check_effective_target_openacc_radeon_accel_selected): ... this.
7379 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7382 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
7386 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7388 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7389 hsa_agent_iterate_regions.
7391 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7394 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7397 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
7400 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7403 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
7406 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7408 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7411 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7413 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7415 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7417 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7419 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7421 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7423 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7425 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7427 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7429 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7431 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7433 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7435 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7437 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7439 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7441 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7443 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7445 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7447 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7449 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7451 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7453 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7455 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7457 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7459 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7461 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7463 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7465 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7467 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7469 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7471 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7473 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7476 2020-04-10 Julian Brown <julian@codesourcery.com>
7477 Thomas Schwinge <thomas@codesourcery.com>
7480 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7482 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7484 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7486 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7488 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7490 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7492 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7494 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7496 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7498 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7500 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7502 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7504 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7506 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7508 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7510 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7513 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7515 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7518 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7521 * libgomp.oacc-c++/declare-pr94120.C: New.
7523 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7525 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7527 * configure: Regenerate.
7528 * testsuite/libgomp-site-extra.exp.in: New file.
7529 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7531 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7533 * testsuite/Makefile.in: Regenerate.
7535 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7537 PR tree-optimization/89713
7539 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7541 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7543 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7545 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7546 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7548 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7551 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7553 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7556 * target.c (gomp_load_image_to_device): Fix link
7559 2020-03-19 Jakub Jelinek <jakub@redhat.com>
7562 * testsuite/libgomp.c++/pr93931.C: New test.
7564 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
7566 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7567 dg-allow-blank-lines-in-output.
7569 2020-03-18 Julian Brown <julian@codesourcery.com>
7570 Tobias Burnus <tobias@codesourcery.com>
7572 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7573 it work concurrently.
7575 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
7577 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7578 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7579 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7581 2020-03-14 Jakub Jelinek <jakub@redhat.com>
7584 * testsuite/libgomp.c/pr93566.c: New test.
7586 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
7588 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7589 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7590 integer(acc_device_property) for the type of the return value of
7593 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
7595 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7596 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7597 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7598 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7599 (acc_set_device_num): Fix Fortran argument name, use same name for C.
7600 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7601 corrections; add note about the previous interface and named constant.
7602 (OpenACC library and environment variables): Fix two typos.
7603 * openacc.f90: Use for all procedures the argument names from the spec
7604 as for …_h they are user visible.
7605 (openacc_kinds): Rename acc_device_property to
7606 acc_device_property_kinds and change value to int32 ; and update users.
7607 Re-add acc_device_property for for backward compatibility.
7608 (acc_get_property_string_h): Clean up as acc_device_property_kind
7610 (acc_get_property_h): Likewise and return c_size_t instead of
7611 acc_device_property.
7612 (openacc): Also export acc_device_property_kinds.
7613 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7614 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7615 handling; check against /= 0 instead of == 1 to match C.
7616 * openacc_lib.h: Use for all procedures the argument names from the spec
7617 as for …_h they are user visible. Place !GCC$ into the first column to
7618 be active also for fixed-form souce form.
7619 (acc_device_current, acc_device_property_kind, acc_device_property,
7620 acc_property_memory, acc_property_free_memory, acc_property_name,
7621 acc_property_vendor, acc_property_driver): New named constants.
7622 (acc_get_property, acc_get_property_string): New generic interface.
7624 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
7627 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7628 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7630 (gomp_target_task_fn): Assert "devicep->async_run_func".
7631 (clear_unsupported_flags): New function to remove unsupported flags
7632 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7633 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7634 * testsuite/libgomp.c/target-33.c:
7635 Remove xfail for offload_target_nvptx.
7636 * testsuite/libgomp.c/target-34.c: Likewise.
7638 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
7640 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7641 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7642 * testsuite/libgomp.c/target-34.c: Likewise.
7643 * testsuite/libgomp.c/target-link-1.c: Add xfail for
7644 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7646 2020-02-09 Jakub Jelinek <jakub@redhat.com>
7648 * testsuite/libgomp.c/target-38.c: New test.
7650 2020-02-06 Jakub Jelinek <jakub@redhat.com>
7653 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7655 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
7657 * testsuite/lib/libgomp.exp
7658 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7659 and not as 'source' argument to libgomp_target_compile.
7661 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
7663 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7664 (gcn_gfx801_s): Remove.
7665 (isa_hsa_name): Remove gfx801.
7666 (isa_gcc_name): Remove gfx801/carizzo.
7667 (isa_code): Remove gfx801.
7669 2020-02-03 Julian Brown <julian@codesourcery.com>
7670 Tobias Burnus <tobias@codesourcery.com>
7672 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7673 and *_finalize variants; document acc_attach and acc_detach; update
7674 references from OpenACC 2.0 to 2.6.
7675 * openacc.f90 (openacc_version): Update to 201711.
7676 * openacc_lib.h (openacc_version): Update to 201711.
7677 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7678 openacc_version to 201711.
7679 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7681 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
7683 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7684 and vgpr_count fields.
7685 (struct kernel_info): Add a field for a hsa_kernel_description.
7686 (run_kernel): Reduce the number of threads/workers if the requested
7687 number would require too many VGPRs.
7688 (init_basic_kernel_info): Initialize description field with
7689 the hsa_kernel_description entry for the kernel.
7691 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
7694 * plugin/configfrag.ac (enable_offload_targets): Skip
7695 HSA and GCN plugin besides -m32 also for -mx32.
7696 * configure: Regenerate.
7698 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7700 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7702 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7704 * plugin-gcn.c (struct agent_info): Add fields "name" and
7706 (GOMP_OFFLOAD_init_device): ... and init from here.
7707 (struct hsa_context_info): Add field "driver_version_s" ...
7708 (init_hsa_contest): ... and init from here.
7709 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7711 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7712 Enable test execution for amdgcn and host offloading targets.
7713 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7714 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7715 (expect_device_properties): Split function into ...
7716 (expect_device_string_properties): ... this new function ...
7717 (expect_device_memory): ... and this new function.
7718 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7721 2020-01-28 Julian Brown <julian@codesourcery.com>
7723 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7724 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7725 component/non-component variable refs in a single directive.
7726 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7728 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
7730 * configure.ac: Handle `--with-toolexeclibdir='.
7731 * Makefile.in: Regenerate.
7732 * aclocal.m4: Regenerate.
7733 * configure: Regenerate.
7734 * testsuite/Makefile.in: Regenerate.
7736 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
7738 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7739 (expect_device_properties): Remove "expected_free_mem" argument,
7740 change "expected_total_mem" argument type to size_t;
7741 change types of acc_get_property results to size_t,
7742 adapt format strings.
7743 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7744 Use %zu instead of %zd to print size_t values.
7745 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7747 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7748 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7750 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7752 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
7754 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7757 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
7759 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7760 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7761 Adjust test dimensions for amdgcn.
7762 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7763 gang/worker/vector expectations dynamically.
7764 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7766 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7767 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7768 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7769 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7770 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7771 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7772 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7773 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7774 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7775 (acc_gang): Recognise acc_device_radeon.
7776 (acc_worker): Likewise.
7777 (acc_vector): Likewise.
7778 (main): Set expectations for amdgcn.
7779 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7780 (main): Adjust gang/worker/vector expectations dynamically.
7781 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7782 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7783 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7784 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7787 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
7789 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7791 (openacc): Likewise.
7792 * openacc.f90 (openacc_kinds): Likewise.
7793 (openacc): Likewise.
7794 * openacc.h (acc_device_t): Likewise.
7795 * openacc_lib.h: Likewise.
7796 * testsuite/lib/libgomp.exp
7797 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7798 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7799 (cb_compute_construct_end): Likewise.
7800 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7801 (cb_enqueue_launch_start): Likewise.
7802 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7803 (cb_enter_data_end): Likewise.
7804 (cb_exit_data_start): Likewise.
7805 (cb_exit_data_end): Likewise.
7806 (cb_compute_construct_end): Likewise.
7807 (cb_enqueue_launch_start): Likewise.
7808 (cb_enqueue_launch_end): Likewise.
7809 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7812 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
7814 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
7815 to use this instead of 'enum gomp_device_property'.
7816 (GOMP_OFFLOAD_get_property): Rename to...
7817 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
7818 * libgomp.h (struct gomp_device_descr): Move
7819 'GOMP_OFFLOAD_openacc_get_property'...
7820 (struct acc_dispatch_t): ... here. Adjust all users.
7821 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7823 * target.c (gomp_map_vars_internal)
7824 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7827 2020-01-10 Jakub Jelinek <jakub@redhat.com>
7830 * libgomp.h (gomp_print_string): Change return type from void to int.
7831 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
7832 not all characters have been written.
7834 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
7836 * libgomp.texi: Fix typos, use https.
7838 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
7840 * testsuite/libgomp.fortran/optional-map.f90: Add test for
7841 unallocated/disassociated actual arguments to nonallocatable/nonpointer
7842 dummy arguments; those are/shall be regarded as absent arguments.
7843 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7844 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7846 2020-01-01 Jakub Jelinek <jakub@redhat.com>
7848 Update copyright years.
7850 * libgomp.texi: Bump @copying's copyright year.
7852 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
7855 * oacc-init.c (goacc_runtime_deinitialize): New function.
7857 2019-12-28 Jakub Jelinek <jakub@redhat.com>
7860 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7861 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
7863 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
7864 Frederik Harwath <frederik@codesourcery.com>
7865 Thomas Schwinge <tschwinge@codesourcery.com>
7867 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7868 * libgomp-plugin.h (gomp_device_property_value): New union.
7869 (gomp_device_property_value): New prototype.
7870 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7872 (acc_device_property_t): New enum.
7873 (acc_get_property, acc_get_property_string): New prototypes.
7874 * oacc-init.c (acc_get_device_type): Also assert that result
7875 is not `acc_device_current'.
7876 (get_property_any, acc_get_property, acc_get_property_string):
7878 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7879 `acc_property_memory', `acc_property_free_memory',
7880 `acc_property_name', `acc_property_vendor' and
7881 `acc_property_driver' constants. Add `acc_device_property' data
7883 (openacc_internal): Add `acc_get_property' and
7884 `acc_get_property_string' interfaces. Add `acc_get_property_h',
7885 `acc_get_property_string_h', `acc_get_property_l' and
7886 `acc_get_property_string_l'.
7887 * oacc-host.c (host_get_property): New function.
7888 (host_dispatch): Wire it.
7889 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7890 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7891 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7892 * libgomp.texi (OpenACC Runtime Library Routines): Add
7894 (acc_get_property): New node.
7895 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7897 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7898 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7899 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7901 (GOMP_OFFLOAD_get_property): New function.
7902 (struct ptx_device): Add new field "name".
7903 (cuda_driver_version_s): Add new static variable ...
7904 (nvptx_init): ... and init from here.
7906 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7907 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7908 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7909 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7910 with test helper functions.
7912 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7914 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
7916 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7919 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
7921 * target.c (gomp_map_vars_internal): Restore 'omp declare target
7924 2019-12-19 Julian Brown <julian@codesourcery.com>
7926 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7927 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7928 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7930 2019-12-19 Julian Brown <julian@codesourcery.com>
7931 Cesar Philippidis <cesar@codesourcery.com>
7933 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7934 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7935 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7936 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7937 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7938 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7939 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7940 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7941 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7942 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7943 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7944 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7945 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7947 2019-12-19 Julian Brown <julian@codesourcery.com>
7949 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7950 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7951 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7952 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7953 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7954 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7955 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7956 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7957 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7958 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7959 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7960 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7962 2019-12-19 Julian Brown <julian@codesourcery.com>
7964 * libgomp.h (struct target_var_desc): Add do_detach flag.
7965 * oacc-init.c (acc_shutdown_1): Free aux block if present.
7966 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7967 struct components. Tidy up and add some new checks.
7968 (goacc_enter_data_internal): Update call to find_group_last.
7969 (goacc_exit_data_internal): Support detach operations and
7971 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7972 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
7973 attach/detach in enter/exit data detection code.
7974 * target.c (gomp_map_vars_existing): Initialise do_detach field of
7976 (gomp_map_vars_internal): Support attach.
7977 (gomp_unmap_vars_internal): Support detach.
7979 2019-12-19 Julian Brown <julian@codesourcery.com>
7980 Thomas Schwinge <thomas@codesourcery.com>
7982 * libgomp.h (struct splay_tree_aux): Add attach_count field.
7983 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7984 * libgomp.map (OACC_2.6): New section. Add acc_attach,
7985 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7986 acc_detach_finalize_async.
7987 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7988 acc_detach, acc_detach_async, acc_detach_finalize,
7989 acc_detach_finalize_async): New functions.
7990 * openacc.h (acc_attach, acc_attach_async, acc_detach,
7991 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7993 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7994 (gomp_remove_var_internal): Free attachment counts if present.
7995 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7996 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7998 2019-12-19 Julian Brown <julian@codesourcery.com>
7999 Cesar Philippidis <cesar@codesourcery.com>
8001 * libgomp.h (gomp_map_val): Add prototype.
8002 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
8003 open-coding device-address calculation.
8004 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
8007 2019-12-19 Julian Brown <julian@codesourcery.com>
8009 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
8010 field for virtual_refcount.
8011 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8012 (gomp_free_memmap): Remove prototype.
8013 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
8014 instead of calling gomp_free_memmap.
8015 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
8017 (acc_unmap_data): Open code instead of forcing target_mem_desc's
8018 to_free field to NULL then calling gomp_unmap_vars. Handle
8019 REFCOUNT_INFINITY on target blocks.
8020 (goacc_enter_data): Rename to...
8021 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
8022 handling for mapping groups. Use virtual_refcount instead of
8023 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
8024 map_map_vars_async call. Re-do lookup for target pointer return value.
8025 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
8026 renamed goacc_enter_datum function.
8027 (goacc_exit_data): Rename to...
8028 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
8029 (acc_delete, acc_delete_async, acc_delete_finalize,
8030 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
8031 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
8032 goacc_exit_datum function.
8033 (gomp_acc_remove_pointer, find_pointer): Remove functions.
8034 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
8036 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8037 goacc_exit_data_internal helper functions.
8038 * target.c (gomp_map_vars_internal): Handle
8039 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
8041 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8042 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8043 virtual_refcount field instead of dynamic_refcount.
8044 (gomp_free_memmap): Remove function.
8045 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8046 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8047 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8049 2019-12-19 Julian Brown <julian@codesourcery.com>
8050 Thomas Schwinge <thomas@codesourcery.com>
8052 * libgomp.h (struct splay_tree_aux): New.
8053 (struct splay_tree_key_s): Replace link_key field with aux pointer.
8054 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8056 (gomp_remove_var_internal): Free aux block if present.
8057 (gomp_load_image_to_device): Zero-initialise aux field instead of
8059 (omp_target_associate_pointer): Zero-initialise aux field.
8061 2019-12-18 Jakub Jelinek <jakub@redhat.com>
8064 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8066 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8069 2019-12-19 Julian Brown <julian@codesourcery.com>
8070 Maciej W. Rozycki <macro@codesourcery.com>
8071 Tobias Burnus <tobias@codesourcery.com>
8072 Thomas Schwinge <thomas@codesourcery.com>
8074 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8075 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8076 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8077 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8078 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8079 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8080 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8081 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8082 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8084 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
8086 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8088 (goacc_insert_pointer): ... from here, "present" case.
8089 (goacc_insert_pointer): Inline function into...
8090 (GOACC_enter_exit_data): ... here, and simplify.
8092 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8094 (goacc_insert_pointer): ... from here, "not present" case.
8096 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
8099 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8100 'goacc_enter_data', 'goacc_exit_data'.
8102 * oacc-mem.c (delete_copyout): Refactor into...
8103 (goacc_exit_data): ... this. Adjust all users.
8105 * oacc-mem.c (present_create_copy): Refactor into...
8106 (goacc_enter_data): ... this. Adjust all users.
8108 * target.c (gomp_unmap_vars_internal): Add a safeguard to
8111 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8112 like 'GOMP_MAP_FROM'.
8117 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8119 (GOACC_enter_exit_data): Simplify accordingly.
8120 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8122 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8123 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8125 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8127 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8128 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8130 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8132 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8134 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8135 'finalize' handling.
8138 * oacc-mem.c (acc_map_data, present_create_copy)
8139 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8140 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8141 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8142 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8143 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8144 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8145 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8146 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8149 * target.c (gomp_unmap_tgt): Make it 'static'.
8150 * libgomp.h (gomp_unmap_tgt): Remove.
8152 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
8155 * testsuite/libgomp.c/pr86416-1.c: New.
8156 * testsuite/libgomp.c/pr86416-2.c: New.
8158 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
8160 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8161 all symbols as public except for the 'use …, only' imported symbol,
8163 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8164 all symbols from module openacc_kinds as PUBLIC
8165 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8167 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8169 2019-12-13 Julian Brown <julian@codesourcery.com>
8173 * libgomp.h (gomp_remove_var_async): Add prototype.
8174 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8176 * target.c (gomp_unref_tgt): Change return type to bool, indicating
8177 whether target_mem_desc was unmapped.
8178 (gomp_unref_tgt_void): New.
8179 (gomp_remove_var): Reimplement in terms of...
8180 (gomp_remove_var_internal): ...this new helper function.
8181 (gomp_remove_var_async): New, implemented using above helper function.
8182 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8185 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
8187 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8188 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8189 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8190 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8191 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8193 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8194 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8196 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
8198 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8199 as public except for the 'use …, only' imported symbol, which is
8201 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8202 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8203 attributes for acc_copyout_finalize and acc_delete_finalize.
8205 2019-12-11 Jakub Jelinek <jakub@redhat.com>
8208 * testsuite/libgomp.fortran/atomic1.f90: New test.
8210 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8213 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8214 reference counting for structured 'REFCOUNT_INFINITY'. Add some
8216 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8217 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8218 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8219 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8220 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8222 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8223 * oacc-mem.c: ... here.
8224 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8225 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8226 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8228 * libgomp_g.h: Update.
8230 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8231 * oacc-async.c: ... here.
8232 * oacc-int.h (goacc_wait): Declare.
8233 * libgomp_g.h: Update
8236 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8238 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8240 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8242 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8244 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8246 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8249 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8250 Julian Brown <julian@codesourcery.com>
8252 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8253 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8255 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8257 * omp_lib.h.in: Fix spelling of function declaration
8258 omp_get_cancell(l)ation.
8259 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8261 * env.c: Fix comment typos.
8262 * oacc-host.c: Likewise.
8263 * ordered.c: Likewise.
8266 * config/gcn/task.c: Likewise.
8267 * config/gcn/team.c: Likewise.
8268 * config/nvptx/task.c: Likewise.
8269 * config/nvptx/team.c: Likewise.
8270 * plugin/plugin-gcn.c: Likewise.
8271 * testsuite/libgomp.fortran/jacobi.f: Likewise.
8272 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8273 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8275 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8277 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8278 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8279 unnecessary 'dg-additional-options "-w"'.
8281 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8282 Julian Brown <julian@codesourcery.com>
8287 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8288 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8290 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8292 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8294 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8296 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8299 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8300 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8302 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8304 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8306 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8308 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8310 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8312 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8313 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8314 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8315 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8316 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8317 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8318 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8319 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8320 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8321 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8324 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8325 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8326 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8328 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8330 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8332 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8333 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8336 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8338 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8340 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8342 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8344 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8345 ... with their content moved into, and extended in this new file.
8346 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8348 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8350 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8352 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8355 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8358 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8360 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8362 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8364 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
8366 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8368 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8369 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8370 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8371 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8373 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8374 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8376 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8378 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8380 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
8381 Kwok Cheung Yeung <kcy@codesourcery.com>
8383 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8384 if input it a NULL pointer.
8385 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8386 diagnostic of NULL pointer.
8387 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8388 * testsuite/libgomp.fortran/optional-map.f90: New.
8389 * testsuite/libgomp.fortran/use_device_addr-1.f90
8390 (test_dummy_opt_callee_1_absent): New.
8391 (test_dummy_opt_call_1): Call it.
8392 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8393 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8394 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8395 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8396 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8397 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8398 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8399 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8400 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8401 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8402 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8403 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8404 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8405 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8406 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8407 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8409 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
8411 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8412 expect dg-output of 'Error termination.' for GCN.
8413 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8414 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8416 2019-12-04 Jakub Jelinek <jakub@redhat.com>
8419 * testsuite/libgomp.fortran/teams1.f90: New test.
8420 * testsuite/libgomp.fortran/teams2.f90: New test.
8422 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
8424 * oacc-init.c (acc_known_device_type): Add function.
8425 (unknown_device_type_error): Add function.
8426 (name_of_acc_device_t): Change to call unknown_device_type_error
8428 (resolve_device): Use acc_known_device_type.
8429 (acc_init): Fail if acc_device_t argument is not valid.
8430 (acc_shutdown): Likewise.
8431 (acc_get_num_devices): Likewise.
8432 (acc_set_device_type): Likewise.
8433 (acc_get_device_num): Likewise.
8434 (acc_set_device_num): Likewise.
8435 (acc_on_device): Add comment that argument validity is not checked.
8437 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
8439 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8441 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8442 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8443 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8444 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8445 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8447 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8450 * configure.tgt: Avoid IE tls on *-*-musl*.
8452 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
8454 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8455 adding a common-block test case.
8457 2019-11-29 Jakub Jelinek <jakub@redhat.com>
8460 * testsuite/libgomp.c++/udr-20.C: New test.
8461 * testsuite/libgomp.c++/udr-21.C: New test.
8463 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8465 * testsuite/lib/libgomp.exp
8466 (check_effective_target_offload_target_nvptx): New proc.
8467 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8469 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8470 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8471 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8473 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8475 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8476 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8477 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8478 * testsuite/libgomp.c/private-1.c: Likewise.
8479 * testsuite/libgomp.c/task-1.c: Likewise.
8480 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8482 2019-11-20 Julian Brown <julian@codesourcery.com>
8484 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8486 (queue_push_launch): Lock aq->mutex before calling
8487 wait_for_queue_nonfull.
8488 (queue_push_callback): Likewise.
8489 (queue_push_asyncwait): Likewise.
8490 (queue_push_placeholder): Likewise.
8492 2019-11-20 Julian Brown <julian@codesourcery.com>
8494 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8495 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8496 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8499 2019-11-20 Julian Brown <julian@codesourcery.com>
8503 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8504 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8505 in non-present/create case.
8506 (delete_copyout): Change error condition to fail only on copies outside
8507 of mapped block. Adjust error message accordingly.
8508 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8509 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8510 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8512 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8513 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8514 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8516 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8518 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8519 libatomic in build-tree testing.
8521 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8523 * testsuite/Makefile.in: Regenerate.
8525 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8527 * testsuite/libgomp.c/target-print-1.c: New file.
8528 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8529 * testsuite/libgomp.oacc-c/print-1.c: New file.
8530 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8532 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8533 Kwok Cheung Yeung <kcy@codesourcery.com>
8534 Julian Brown <julian@codesourcery.com>
8535 Tom de Vries <tom@codesourcery.com>
8537 * plugin/Makefrag.am: Add amdgcn plugin support.
8538 * plugin/configfrag.ac: Likewise.
8539 * plugin/plugin-gcn.c: New file.
8540 * configure: Regenerate.
8541 * Makefile.in: Regenerate.
8542 * testsuite/Makefile.in: Regenerate.
8544 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8546 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8547 and use team_malloc variants.
8548 (gomp_gcn_exit_kernel): Use team_free.
8549 * libgomp.h (TEAM_ARENA_SIZE): Define.
8550 (TEAM_ARENA_START): Define.
8551 (TEAM_ARENA_FREE): Define.
8552 (TEAM_ARENA_END): Define.
8553 (team_malloc): New function.
8554 (team_malloc_cleared): New function.
8555 (team_free): New function.
8556 * team.c (gomp_new_team): Initialize and use team_malloc.
8557 (free_team): Use team_free.
8558 (gomp_free_thread): Use team_free.
8559 (gomp_pause_host): Use team_free.
8560 * work.c (gomp_init_work_share): Use team_malloc.
8561 (gomp_fini_work_share): Use team_free.
8563 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8564 Kwok Cheung Yeung <kcy@codesourcery.com>
8565 Julian Brown <julian@codesourcery.com>
8566 Tom de Vries <tom@codesourcery.com>
8568 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8569 * Makefile.in: Regenerate.
8570 * config.h.in (PLUGIN_GCN): Add new undef.
8571 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8572 * config/gcn/affinity-fmt.c: New file.
8573 * config/gcn/bar.c: New file.
8574 * config/gcn/bar.h: New file.
8575 * config/gcn/doacross.h: New file.
8576 * config/gcn/icv-device.c: New file.
8577 * config/gcn/oacc-target.c: New file.
8578 * config/gcn/simple-bar.h: New file.
8579 * config/gcn/target.c: New file.
8580 * config/gcn/task.c: New file.
8581 * config/gcn/team.c: New file.
8582 * config/gcn/time.c: New file.
8583 * configure.ac: Add amdgcn*-*-*.
8584 * configure: Regenerate.
8585 * configure.tgt: Add amdgcn*-*-*.
8586 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8587 * libgomp.h (gcn_thrs): Add amdgcn variant.
8588 (set_gcn_thrs): Likewise.
8589 (gomp_thread): Likewise.
8590 * oacc-int.h (goacc_thread): Likewise.
8591 * oacc-target.c: New file.
8592 * openacc.f90 (acc_device_gcn): New parameter.
8593 * openacc.h (acc_device_t): Add acc_device_gcn.
8594 * team.c (gomp_free_pool_helper): Add amdgcn support.
8596 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8597 Julian Brown <julian@codesourcery.com>
8599 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8601 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8603 * oacc-host.c (host_openacc_async_construct): Add device parameter.
8604 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8607 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8609 * configure.tgt (nvptx*-*-*): Add "accel" directory.
8610 * config/nvptx/libgomp-plugin.c: Move ...
8611 * config/accel/libgomp-plugin.c: ... to here.
8612 * config/nvptx/lock.c: Move ...
8613 * config/accel/lock.c: ... to here.
8614 * config/nvptx/mutex.c: Move ...
8615 * config/accel/mutex.c: ... to here.
8616 * config/nvptx/mutex.h: Move ...
8617 * config/accel/mutex.h: ... to here.
8618 * config/nvptx/oacc-async.c: Move ...
8619 * config/accel/oacc-async.c: ... to here.
8620 * config/nvptx/oacc-cuda.c: Move ...
8621 * config/accel/oacc-cuda.c: ... to here.
8622 * config/nvptx/oacc-host.c: Move ...
8623 * config/accel/oacc-host.c: ... to here.
8624 * config/nvptx/oacc-init.c: Move ...
8625 * config/accel/oacc-init.c: ... to here.
8626 * config/nvptx/oacc-mem.c: Move ...
8627 * config/accel/oacc-mem.c: ... to here.
8628 * config/nvptx/oacc-plugin.c: Move ...
8629 * config/accel/oacc-plugin.c: ... to here.
8630 * config/nvptx/omp-lock.h: Move ...
8631 * config/accel/omp-lock.h: ... to here.
8632 * config/nvptx/openacc.f90: Move ...
8633 * config/accel/openacc.f90: ... to here.
8634 * config/nvptx/pool.h: Move ...
8635 * config/accel/pool.h: ... to here.
8636 * config/nvptx/proc.c: Move ...
8637 * config/accel/proc.c: ... to here.
8638 * config/nvptx/ptrlock.c: Move ...
8639 * config/accel/ptrlock.c: ... to here.
8640 * config/nvptx/ptrlock.h: Move ...
8641 * config/accel/ptrlock.h: ... to here.
8642 * config/nvptx/sem.c: Move ...
8643 * config/accel/sem.c: ... to here.
8644 * config/nvptx/sem.h: Move ...
8645 * config/accel/sem.h: ... to here.
8646 * config/nvptx/thread-stacksize.h: Move ...
8647 * config/accel/thread-stacksize.h: ... to here.
8649 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
8650 Tobias Burnus <tobias@codesourcery.com>
8651 Frederik Harwath <frederik@codesourcery.com>
8652 Thomas Schwinge <thomas@codesourcery.com>
8655 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8656 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8657 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8659 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
8660 Kwok Cheung Yeung <kcy@codesourcery.com>
8662 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8663 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8665 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
8667 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8669 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8671 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8672 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8674 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
8676 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8677 Add expected warnings about missing reduction clauses.
8678 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8680 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8682 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8685 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8687 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8688 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8689 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8690 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8691 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8692 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8694 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8697 * testsuite/libgomp.fortran/allocatable2.f90: Use
8698 unique numbers with 'stop'.
8699 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8700 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8701 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8702 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8703 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8705 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
8707 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8708 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8709 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8710 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8711 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8712 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8714 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8716 * testsuite/libgomp.fortran/target9.f90: New.
8718 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8720 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8721 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8722 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8723 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8724 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8725 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8726 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8727 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8728 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8729 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8730 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8731 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8732 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8733 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8734 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8735 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8736 * testsuite/libgomp.fortran/associate1.f90: Ditto.
8737 * testsuite/libgomp.fortran/associate2.f90: Ditto.
8738 * testsuite/libgomp.fortran/associate3.f90: Ditto.
8739 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8740 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8741 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8742 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8743 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8744 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8745 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8746 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8747 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8748 * testsuite/libgomp.fortran/character1.f90: Ditto.
8749 * testsuite/libgomp.fortran/character2.f90: Ditto.
8750 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8751 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8752 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8753 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8754 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8755 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8756 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8757 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8758 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8759 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8760 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8761 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8762 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8763 * testsuite/libgomp.fortran/do1.f90: Ditto.
8764 * testsuite/libgomp.fortran/do2.f90: Ditto.
8765 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8766 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8767 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8768 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8769 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8770 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8771 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8772 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8773 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8774 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8775 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8776 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8777 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8778 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8779 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8780 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8781 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8782 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8783 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8784 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8785 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8786 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8787 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8788 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8789 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8790 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8791 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8792 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8793 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8794 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8795 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8796 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8797 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8798 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8799 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8800 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8801 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8802 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8803 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8804 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8805 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8806 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8807 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8808 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8809 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8810 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8811 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8812 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8813 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8814 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8815 * testsuite/libgomp.fortran/lib1.f90: Ditto.
8816 * testsuite/libgomp.fortran/lib4.f90: Ditto.
8817 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8818 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8819 * testsuite/libgomp.fortran/nested1.f90: Ditto.
8820 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8821 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8822 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8823 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8824 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8825 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8826 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8827 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8828 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8829 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8830 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8831 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8832 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8833 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8834 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8835 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8836 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8837 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8838 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8839 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8840 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8841 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8842 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8843 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8844 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8845 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8846 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8847 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8848 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8849 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8850 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8851 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8852 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8853 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8854 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8855 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8856 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8857 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8858 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8859 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8860 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8861 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8862 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8863 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8864 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8865 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8866 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8867 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8868 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8869 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8870 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8871 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8872 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8873 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8874 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8875 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8876 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8877 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8878 * testsuite/libgomp.fortran/reference1.f90: Ditto.
8879 * testsuite/libgomp.fortran/reference2.f90: Ditto.
8880 * testsuite/libgomp.fortran/retval1.f90: Ditto.
8881 * testsuite/libgomp.fortran/retval2.f90: Ditto.
8882 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8883 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8884 * testsuite/libgomp.fortran/simd1.f90: Ditto.
8885 * testsuite/libgomp.fortran/simd2.f90: Ditto.
8886 * testsuite/libgomp.fortran/simd3.f90: Ditto.
8887 * testsuite/libgomp.fortran/simd4.f90: Ditto.
8888 * testsuite/libgomp.fortran/simd5.f90: Ditto.
8889 * testsuite/libgomp.fortran/simd6.f90: Ditto.
8890 * testsuite/libgomp.fortran/simd7.f90: Ditto.
8891 * testsuite/libgomp.fortran/stack.f90: Ditto.
8892 * testsuite/libgomp.fortran/strassen.f90: Ditto.
8893 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8894 * testsuite/libgomp.fortran/tabs2.f: Ditto.
8895 * testsuite/libgomp.fortran/target1.f90: Ditto.
8896 * testsuite/libgomp.fortran/target2.f90: Ditto.
8897 * testsuite/libgomp.fortran/target3.f90: Ditto.
8898 * testsuite/libgomp.fortran/target4.f90: Ditto.
8899 * testsuite/libgomp.fortran/target5.f90: Ditto.
8900 * testsuite/libgomp.fortran/target6.f90: Ditto.
8901 * testsuite/libgomp.fortran/target7.f90: Ditto.
8902 * testsuite/libgomp.fortran/target8.f90: Ditto.
8903 * testsuite/libgomp.fortran/task1.f90: Ditto.
8904 * testsuite/libgomp.fortran/task2.f90: Ditto.
8905 * testsuite/libgomp.fortran/task3.f90: Ditto.
8906 * testsuite/libgomp.fortran/task4.f90: Ditto.
8907 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8908 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8909 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8910 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8911 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8912 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8913 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8914 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8915 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8916 * testsuite/libgomp.fortran/udr1.f90: Ditto.
8917 * testsuite/libgomp.fortran/udr10.f90: Ditto.
8918 * testsuite/libgomp.fortran/udr11.f90: Ditto.
8919 * testsuite/libgomp.fortran/udr12.f90: Ditto.
8920 * testsuite/libgomp.fortran/udr13.f90: Ditto.
8921 * testsuite/libgomp.fortran/udr14.f90: Ditto.
8922 * testsuite/libgomp.fortran/udr15.f90: Ditto.
8923 * testsuite/libgomp.fortran/udr2.f90: Ditto.
8924 * testsuite/libgomp.fortran/udr3.f90: Ditto.
8925 * testsuite/libgomp.fortran/udr4.f90: Ditto.
8926 * testsuite/libgomp.fortran/udr5.f90: Ditto.
8927 * testsuite/libgomp.fortran/udr6.f90: Ditto.
8928 * testsuite/libgomp.fortran/udr7.f90: Ditto.
8929 * testsuite/libgomp.fortran/udr8.f90: Ditto.
8930 * testsuite/libgomp.fortran/udr9.f90: Ditto.
8931 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8932 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8933 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8934 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8935 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8936 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8937 * testsuite/libgomp.fortran/vla7.f90: Ditto.
8938 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8939 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8940 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8942 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8944 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8945 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8946 Ditto; add 'dg-do run' for torture testing.
8947 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
8948 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8949 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8950 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8951 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8952 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8953 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8954 * testsuite/libgomp.fortran/task2.f90: Ditto.
8955 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8956 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8957 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8958 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8959 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8960 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8962 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
8964 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8965 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8966 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8967 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8968 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8969 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8970 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8971 Use 'stop' not abort().
8972 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8973 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8974 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8975 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8976 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8977 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8978 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8979 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8980 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8981 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8982 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8983 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8984 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8985 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8986 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8987 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8988 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8990 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8992 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8994 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8996 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8998 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
9000 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
9002 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
9004 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
9006 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
9008 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
9010 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
9012 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
9014 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
9016 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
9017 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
9018 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
9019 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
9020 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9021 Likewise and also add 'dg-do run'.
9022 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9025 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
9026 Tobias Burnus <tobias@codesourcery.com>
9028 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
9029 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
9030 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
9032 2019-10-14 Jakub Jelinek <jakub@redhat.com>
9035 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9038 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9040 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9041 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9043 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
9046 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9049 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
9052 * testsuite/libgomp.fortran/fortran.exp: Conditionally
9054 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9056 2019-10-09 Jakub Jelinek <jakub@redhat.com>
9059 * target.c (gomp_map_vars_internal): Readd the previous
9060 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9061 though do that just in the !not_found_cnt case.
9063 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
9065 * gfortran.dg/gomp/target-simd.f90: New.
9067 2019-10-02 Julian Brown <julian@codesourcery.com>
9068 Cesar Philippidis <cesar@codesourcery.com>
9070 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9071 * target.c (FIELD_TGT_EMPTY): Define.
9072 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
9073 as switch instead of list of ifs.
9074 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9076 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
9078 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9079 include. Replace alloca () with __builtin_alloca ().
9080 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9082 2019-10-01 Jakub Jelinek <jakub@redhat.com>
9084 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9085 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9086 * oacc-parallel.c: Don't include "libgomp_g.h".
9087 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9088 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9089 * aclocal.m4: Regenerated.
9090 * config.h.in: Regenerated.
9091 * configure: Regenerated.
9092 * Makefile.in: Regenerated.
9094 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
9096 * libgomp_g.h: Include stdint.h instead of gstdint.h.
9098 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
9100 * configure: Regenerate.
9102 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
9104 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9105 string is initialized.
9107 2019-09-06 Florian Weimer <fweimer@redhat.com>
9109 * configure: Regenerate.
9111 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
9114 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9115 scanning to conform to the GNU Coding Standards.
9116 * configure: Regenerate.
9118 2019-08-28 Jakub Jelinek <jakub@redhat.com>
9121 * testsuite/libgomp.c/scan-21.c: New test.
9122 * testsuite/libgomp.c/scan-22.c: New test.
9124 2019-08-27 Jakub Jelinek <jakub@redhat.com>
9127 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9129 * testsuite/libgomp.c/scan-12.c: Likewise.
9130 * testsuite/libgomp.c/scan-13.c: Likewise.
9131 * testsuite/libgomp.c/scan-14.c: Likewise.
9132 * testsuite/libgomp.c/scan-15.c: Likewise.
9133 * testsuite/libgomp.c/scan-16.c: Likewise.
9134 * testsuite/libgomp.c/scan-17.c: Likewise.
9135 * testsuite/libgomp.c/scan-18.c: Likewise.
9136 * testsuite/libgomp.c/scan-19.c: Likewise.
9137 * testsuite/libgomp.c/scan-20.c: Likewise.
9138 * testsuite/libgomp.c++/scan-9.C: Likewise.
9139 * testsuite/libgomp.c++/scan-10.C: Likewise.
9140 * testsuite/libgomp.c++/scan-11.C: Likewise.
9141 * testsuite/libgomp.c++/scan-12.C: Likewise.
9142 * testsuite/libgomp.c++/scan-14.C: Likewise.
9143 * testsuite/libgomp.c++/scan-15.C: Likewise.
9144 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
9145 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9146 * testsuite/libgomp.c++/scan-16.C: Likewise.
9148 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
9151 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9152 -std=legacy so invalid code in the test case is accepted.
9154 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9157 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9160 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9162 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9163 perform the lookup in the first loop only if !not_found_cnt, otherwise
9164 perform lookups for it in the second loop guarded with
9165 if (not_found_cnt || has_firstprivate).
9166 * testsuite/libgomp.c/target-37.c: New test.
9167 * testsuite/libgomp.c++/target-22.C: New test.
9169 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9171 * testsuite/libgomp.c/target-18.c (struct S): New type.
9172 (foo): Use use_device_addr clause instead of use_device_ptr clause
9173 where required by OpenMP 5.0, add further tests for both use_device_ptr
9174 and use_device_addr clauses.
9175 * testsuite/libgomp.c++/target-9.C (struct S): New type.
9176 (foo): Use use_device_addr clause instead of use_device_ptr clause
9177 where required by OpenMP 5.0, add further tests for both use_device_ptr
9178 and use_device_addr clauses. Add t and u arguments.
9179 (main): Adjust caller.
9181 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9183 * testsuite/libgomp.c++/loop-13.C: New test.
9184 * testsuite/libgomp.c++/loop-14.C: New test.
9185 * testsuite/libgomp.c++/loop-15.C: New test.
9187 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9190 * testsuite/libgomp.c++/for-27.C: New test.
9192 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
9194 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9195 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9197 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9199 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9201 2019-07-08 Jakub Jelinek <jakub@redhat.com>
9203 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9204 * testsuite/libgomp.c++/scan-16.C: Likewise.
9206 2019-07-06 Jakub Jelinek <jakub@redhat.com>
9208 * testsuite/libgomp.c/scan-19.c: New test.
9209 * testsuite/libgomp.c/scan-20.c: New test.
9211 * testsuite/libgomp.c/scan-11.c: New test.
9212 * testsuite/libgomp.c/scan-12.c: New test.
9213 * testsuite/libgomp.c/scan-13.c: New test.
9214 * testsuite/libgomp.c/scan-14.c: New test.
9215 * testsuite/libgomp.c/scan-15.c: New test.
9216 * testsuite/libgomp.c/scan-16.c: New test.
9217 * testsuite/libgomp.c/scan-17.c: New test.
9218 * testsuite/libgomp.c/scan-18.c: New test.
9219 * testsuite/libgomp.c++/scan-9.C: New test.
9220 * testsuite/libgomp.c++/scan-10.C: New test.
9221 * testsuite/libgomp.c++/scan-11.C: New test.
9222 * testsuite/libgomp.c++/scan-12.C: New test.
9223 * testsuite/libgomp.c++/scan-13.C: New test.
9224 * testsuite/libgomp.c++/scan-14.C: New test.
9225 * testsuite/libgomp.c++/scan-15.C: New test.
9226 * testsuite/libgomp.c++/scan-16.C: New test.
9228 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9230 * testsuite/libgomp.c/scan-9.c: New test.
9231 * testsuite/libgomp.c/scan-10.c: New test.
9233 2019-07-03 Jakub Jelinek <jakub@redhat.com>
9235 * testsuite/libgomp.c++/scan-1.C: New test.
9236 * testsuite/libgomp.c++/scan-2.C: New test.
9237 * testsuite/libgomp.c++/scan-3.C: New test.
9238 * testsuite/libgomp.c++/scan-4.C: New test.
9239 * testsuite/libgomp.c++/scan-5.C: New test.
9240 * testsuite/libgomp.c++/scan-6.C: New test.
9241 * testsuite/libgomp.c++/scan-7.C: New test.
9242 * testsuite/libgomp.c++/scan-8.C: New test.
9243 * testsuite/libgomp.c/scan-1.c: New test.
9244 * testsuite/libgomp.c/scan-2.c: New test.
9245 * testsuite/libgomp.c/scan-3.c: New test.
9246 * testsuite/libgomp.c/scan-4.c: New test.
9247 * testsuite/libgomp.c/scan-5.c: New test.
9248 * testsuite/libgomp.c/scan-6.c: New test.
9249 * testsuite/libgomp.c/scan-7.c: New test.
9250 * testsuite/libgomp.c/scan-8.c: New test.
9252 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9254 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9255 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9258 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9261 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
9263 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9266 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9269 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9271 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9272 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9273 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9274 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9277 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9280 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9282 2019-06-16 Tom de Vries <tdevries@suse.de>
9284 PR tree-optimization/89376
9285 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9287 2019-06-15 Tom de Vries <tdevries@suse.de>
9289 PR tree-optimization/89713
9290 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9291 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9293 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9296 * testsuite/libgomp.c/pr90779.c: New test.
9297 * testsuite/libgomp.fortran/pr90779.f90: New test.
9299 2019-06-15 Tom de Vries <tdevries@suse.de>
9301 PR tree-optimization/90009
9302 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9304 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9306 PR tree-optimization/89713
9307 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9309 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9312 * testsuite/libgomp.c/pr90811.c: New test.
9314 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9316 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9317 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9319 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9321 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9322 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9323 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9324 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9326 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9328 * configure.ac: Call AX_COUNT_CPUS.
9329 Substitute CPU_COUNT.
9330 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9332 * aclocal.m4: Regenerate.
9333 * configure: Regenerate.
9334 * Makefile.in, testsuite/Makefile.in: Regenerate.
9336 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9338 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9340 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9341 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9342 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9344 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9346 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9348 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9351 * work.c (gomp_init_work_share): Instead of aligning final ordered
9352 value to multiples of long long alignment, align to that the
9353 first part (ordered team ids) and if inline_ordered_team_ids
9354 is not on a long long alignment boundary within the structure,
9355 use __alignof__ (long long) - 1 pad size always.
9356 * loop.c (GOMP_loop_start): Fix *mem computation if
9357 inline_ordered_team_ids is not aligned on long long alignment boundary
9358 within the structure.
9359 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9360 * sections.c (GOMP_sections2_start): Likewise.
9362 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9364 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9365 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9368 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9369 HAVE_INTTYPES_H is defined.
9370 (print_uint64_t): New typedef.
9371 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9372 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9373 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9374 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9375 before casting to void *.
9376 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9377 * oacc-mem.c: Don't include config.h nor stdint.h.
9378 * target.c: Don't include config.h.
9379 * oacc-cuda.c: Likewise.
9380 * oacc-host.c: Don't include stdint.h.
9382 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9385 * alloc.c (_GNU_SOURCE): Define.
9387 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9389 * acc_prof.h: New file.
9390 * oacc-profiling.c: Likewise.
9391 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9392 Add these, respectively.
9393 * Makefile.in: Regenerate.
9394 * env.c (initialize_env): Call goacc_profiling_initialize.
9395 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9396 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9397 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9398 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9399 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9400 acc_prof_register, acc_prof_unregister, and acc_register_library.
9401 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9402 GOMP_PLUGIN_goacc_thread.
9403 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9404 prof_callbacks_enabled members.
9405 (goacc_prof_enabled, goacc_profiling_initialize)
9406 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9407 (goacc_profiling_dispatch): Declare.
9408 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9409 (GOACC_PROFILING_SETUP_P): Define.
9410 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9411 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9412 OpenACC Profiling Interface.
9413 * oacc-cuda.c (acc_get_current_cuda_device)
9414 (acc_get_current_cuda_context, acc_get_cuda_stream)
9415 (acc_set_cuda_stream): Likewise.
9416 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9417 (acc_init, acc_set_device_type, acc_get_device_type)
9418 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9419 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9420 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9421 (acc_unmap_data, present_create_copy, delete_copyout)
9422 (update_dev_host): Likewise.
9423 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9424 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9426 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9427 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9429 * libgomp.texi: Update.
9430 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9432 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9433 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9435 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9437 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9439 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9442 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9444 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9445 (struct goacc_asyncqueue_list): Likewise.
9446 (goacc_aq): Likewise.
9447 (goacc_aq_list): Likewise.
9448 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9449 (GOMP_OFFLOAD_openacc_async_test): Remove.
9450 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9451 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9452 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9453 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9454 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9455 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9456 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9457 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9458 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9459 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9460 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9461 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9462 (GOMP_OFFLOAD_openacc_async_test): Declare.
9463 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9464 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9465 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9466 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9467 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9469 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9470 (gomp_acc_insert_pointer): Adjust declaration.
9471 (gomp_copy_host2dev): New declaration.
9472 (gomp_copy_dev2host): Likewise.
9473 (gomp_map_vars_async): Likewise.
9474 (gomp_unmap_tgt): Likewise.
9475 (gomp_unmap_vars_async): Likewise.
9476 (gomp_fini_device): Likewise.
9478 * oacc-async.c (get_goacc_thread): New function.
9479 (get_goacc_thread_device): New function.
9480 (lookup_goacc_asyncqueue): New function.
9481 (get_goacc_asyncqueue): New function.
9482 (acc_async_test): Adjust code to use new async design.
9483 (acc_async_test_all): Likewise.
9484 (acc_wait): Likewise.
9485 (acc_wait_async): Likewise.
9486 (acc_wait_all): Likewise.
9487 (acc_wait_all_async): Likewise.
9488 (goacc_async_free): New function.
9489 (goacc_init_asyncqueues): Likewise.
9490 (goacc_fini_asyncqueues): Likewise.
9491 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9493 (acc_set_cuda_stream): Likewise.
9494 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9495 (host_openacc_register_async_cleanup): Remove.
9496 (host_openacc_async_exec): New function.
9497 (host_openacc_async_test): Adjust parameters.
9498 (host_openacc_async_test_all): Remove.
9499 (host_openacc_async_wait): Remove.
9500 (host_openacc_async_wait_async): Remove.
9501 (host_openacc_async_wait_all): Remove.
9502 (host_openacc_async_wait_all_async): Remove.
9503 (host_openacc_async_set_async): Remove.
9504 (host_openacc_async_synchronize): New function.
9505 (host_openacc_async_serialize): New function.
9506 (host_openacc_async_host2dev): New function.
9507 (host_openacc_async_dev2host): New function.
9508 (host_openacc_async_queue_callback): New function.
9509 (host_openacc_async_construct): New function.
9510 (host_openacc_async_destruct): New function.
9511 (struct gomp_device_descr host_dispatch): Remove initialization of old
9512 interface, add initialization of new async sub-struct.
9513 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9514 (goacc_attach_host_thread_to_device): Remove old async code usage.
9515 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9516 (goacc_fini_asyncqueues): Likewise.
9517 (goacc_async_copyout_unmap_vars): Likewise.
9518 (goacc_async_free): Likewise.
9519 (get_goacc_asyncqueue): Likewise.
9520 (lookup_goacc_asyncqueue): Likewise.
9521 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9523 (present_create_copy): Adjust code to use new async design.
9524 (delete_copyout): Likewise.
9525 (update_dev_host): Likewise.
9526 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9528 (gomp_acc_remove_pointer): Adjust code to use new async design.
9529 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9531 (GOACC_enter_exit_data): Likewise.
9532 (goacc_wait): Likewise.
9533 (GOACC_update): Likewise.
9534 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9535 when called, warn as obsolete in comment.
9536 * target.c (goacc_device_copy_async): New function.
9537 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9538 add goacc_device_copy_async case.
9539 (gomp_copy_dev2host): Likewise.
9540 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9541 (gomp_map_pointer): Likewise.
9542 (gomp_map_fields_existing): Likewise.
9543 (gomp_map_vars_internal): New always_inline function, renamed from
9545 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9546 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9547 passing goacc_asyncqueue argument.
9548 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9549 (gomp_unref_tgt): New function.
9550 (gomp_unmap_vars_internal): New always_inline function, renamed from
9552 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9553 (gomp_unmap_vars_async): Implement by calling
9554 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9555 (gomp_fini_device): New function.
9556 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9557 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9558 new async interface.
9559 (gomp_target_fini): Adjust code to call gomp_fini_device.
9561 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9562 (struct ptx_stream): Remove.
9563 (struct nvptx_thread): Remove current_stream field.
9564 (cuda_map_create): Remove.
9565 (cuda_map_destroy): Remove.
9570 (struct goacc_asyncqueue): Define.
9571 (struct nvptx_callback): Define.
9572 (struct ptx_free_block): Define.
9573 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9574 stream_lock, and next fields.
9575 (enum ptx_event_type): Remove.
9576 (struct ptx_event): Remove.
9577 (ptx_event_lock): Remove.
9578 (ptx_events): Remove.
9579 (init_streams_for_device): Remove.
9580 (fini_streams_for_device): Remove.
9581 (select_stream_for_async): Remove.
9582 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9583 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9585 (nvptx_open_device): Add free_blocks initialization, remove
9586 init_streams_for_device call.
9587 (nvptx_close_device): Remove fini_streams_for_device call, add
9588 free_blocks destruct code.
9590 (event_add): Remove.
9591 (nvptx_exec): Adjust parameters and code.
9592 (nvptx_free): Likewise.
9593 (nvptx_host2dev): Remove.
9594 (nvptx_dev2host): Remove.
9595 (nvptx_set_async): Remove.
9596 (nvptx_async_test): Remove.
9597 (nvptx_async_test_all): Remove.
9598 (nvptx_wait): Remove.
9599 (nvptx_wait_async): Remove.
9600 (nvptx_wait_all): Remove.
9601 (nvptx_wait_all_async): Remove.
9602 (nvptx_get_cuda_stream): Remove.
9603 (nvptx_set_cuda_stream): Remove.
9604 (GOMP_OFFLOAD_alloc): Adjust code.
9605 (GOMP_OFFLOAD_free): Likewise.
9606 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9607 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9608 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9609 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9610 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9611 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9612 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9613 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9614 (cuda_free_argmem): New function.
9615 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9616 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9617 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9618 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9619 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9620 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9621 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9622 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9623 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9624 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9625 (cuda_callback_wrapper): New function.
9626 (cuda_memcpy_sanity_check): New function.
9627 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9628 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9629 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9630 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9632 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
9635 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9637 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
9639 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9641 2019-03-27 Kevin Buettner <kevinb@redhat.com>
9643 * team.c (gomp_team_start): Initialize pool->threads[0].
9645 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9647 * testsuite/libgomp.oacc-c++/c++.exp: Specify
9648 "-foffload=$offload_target".
9649 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9650 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9651 * testsuite/lib/libgomp.exp
9652 (check_effective_target_openacc_nvidia_accel_configured): Remove,
9653 as (conceptually) merged into
9654 check_effective_target_openacc_nvidia_accel_selected. Adjust all
9657 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9658 * testsuite/libgomp-test-support.exp.in: Adjust.
9659 * testsuite/lib/libgomp.exp: Likewise. Don't populate
9660 openacc_device_types_s.
9661 (offload_target_to_openacc_device_type): New proc.
9662 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9663 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9664 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9665 * Makefile.in: Regenerate.
9666 * configure: Likewise.
9667 * testsuite/Makefile.in: Likewise.
9669 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9670 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9671 instead of OFFLOAD_TARGETS.
9672 * target.c (gomp_target_init): Adjust.
9673 * testsuite/libgomp-test-support.exp.in: Likewise.
9674 * testsuite/lib/libgomp.exp: Likewise. Populate
9675 openacc_device_types_s instead of offload_targets_s_openacc.
9676 (check_effective_target_openacc_nvidia_accel_selected)
9677 (check_effective_target_openacc_host_selected): Adjust.
9678 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9679 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9680 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9681 * Makefile.in: Regenerate.
9682 * config.h.in: Likewise.
9683 * configure: Likewise.
9684 * testsuite/Makefile.in: Likewise.
9686 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9687 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
9688 "offloading: supported, but hardware not accessible".
9689 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9690 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9692 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
9695 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9697 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9698 and related adjustment.
9700 2019-01-30 Jakub Jelinek <jakub@redhat.com>
9703 * testsuite/libgomp.c++/pr88988.C: New test.
9705 2019-01-28 Jakub Jelinek <jakub@redhat.com>
9708 * testsuite/libgomp.c/pr89002.c: New test.
9710 2019-01-28 Richard Biener <rguenther@suse.de>
9713 PR tree-optimization/86865
9714 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9716 2019-01-24 Tom de Vries <tdevries@suse.de>
9718 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9719 once instantiated_devices drops to 0.
9721 2019-01-23 Tom de Vries <tdevries@suse.de>
9724 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9726 (nvptx_exec): Don't call map_push if mapnum == 0.
9727 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9729 2019-01-23 Tom de Vries <tdevries@suse.de>
9733 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9734 (map_fini): Remove "assert (!s->map->active)".
9735 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9737 2019-01-23 Tom de Vries <tdevries@suse.de>
9740 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9741 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9743 2019-01-15 Tom de Vries <tdevries@suse.de>
9746 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9749 2019-01-12 Tom de Vries <tdevries@suse.de>
9751 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9752 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9753 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9754 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9756 2019-01-12 Tom de Vries <tdevries@suse.de>
9758 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9760 2019-01-12 Tom de Vries <tdevries@suse.de>
9762 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9763 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9764 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9766 2019-01-12 Tom de Vries <tdevries@suse.de>
9769 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9770 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9772 2019-01-12 Tom de Vries <tdevries@suse.de>
9775 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9776 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9778 2019-01-12 Tom de Vries <tdevries@suse.de>
9780 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9781 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9782 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9784 2019-01-12 Tom de Vries <tdevries@suse.de>
9786 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9787 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9788 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9790 2019-01-12 Tom de Vries <tdevries@suse.de>
9792 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9793 resources diagnostic.
9795 2019-01-12 Tom de Vries <tdevries@suse.de>
9797 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9798 vector length to be 128.
9799 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9800 length 2097152 to be reduced to 1024 instead of 32.
9802 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
9803 James Norris <jnorris@codesourcery.com>
9805 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9806 Library Routines", and "Environment Variables".
9808 2019-01-11 Tom de Vries <tdevries@suse.de>
9810 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9813 2019-01-11 Tom de Vries <tdevries@suse.de>
9815 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9817 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9818 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9819 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9820 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9822 2019-01-11 Tom de Vries <tdevries@suse.de>
9824 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9827 2019-01-10 Nathan Sidwell <nathan@acm.org>
9828 Julian Brown <julian@codesourcery.com>
9831 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9832 * testsuite/libgomp.oacc-c++/pr71959.C: New.
9834 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9836 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9839 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9841 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
9842 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9845 2019-01-09 Tom de Vries <tdevries@suse.de>
9848 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9849 #define instead of "const int".
9850 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9851 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9852 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9853 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9855 2019-01-09 Tom de Vries <tdevries@suse.de>
9857 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9860 2019-01-07 Tom de Vries <tdevries@suse.de>
9862 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9863 GOMP_OPENACC_DIM argument.
9865 2019-01-03 Tom de Vries <tdevries@suse.de>
9867 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9868 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9870 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9872 Update copyright years.
9874 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9876 * libgomp.texi: Bump @copying's copyright year.
9878 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9880 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9881 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9882 (GOACC_declare): Redefine the "device" argument to "flags".
9884 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9885 Cesar Philippidis <cesar@codesourcery.com>
9887 * target.c (struct gomp_coalesce_chunk): New structure.
9888 (struct gomp_coalesce_buf): Update the chunks member to use that
9889 type. Adjust all users.
9891 2018-12-19 Tom de Vries <tdevries@suse.de>
9893 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9894 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9895 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9897 2018-12-19 Tom de Vries <tdevries@suse.de>
9899 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9900 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9901 gcc/testsuite/gcc.dg/goacc.
9902 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9904 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9905 Chung-Lin Tang <cltang@codesourcery.com>
9907 * oacc-mem.c (acc_present_or_create): Remove definition and change
9908 to alias of acc_create.
9909 (acc_present_or_copyin): Remove definition and change to alias of
9911 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9912 of acc_present_or_create.
9913 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9914 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9915 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9916 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9917 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9918 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9919 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9920 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9921 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9922 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9923 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9924 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9925 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9926 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9927 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9928 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9930 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9933 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9934 "identical parameters".
9935 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9936 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9939 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9940 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9943 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9944 (nvptx_wait_async): Unseen async-argument is a no-op.
9945 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9946 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9947 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9948 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9949 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9950 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9951 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
9952 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9953 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
9955 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9956 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9958 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
9960 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9961 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9962 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9964 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9967 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9968 (acc_set_cuda_stream): Clarify.
9969 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9971 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9973 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9974 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9975 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9976 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9978 2018-12-14 Tom de Vries <tdevries@suse.de>
9980 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9981 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9982 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9983 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9984 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9986 2018-12-13 Tom de Vries <tdevries@suse.de>
9988 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9989 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9990 * fortran.c (omp_display_affinity_): ... here.
9991 * libgomp.h (gomp_print_string): Declare.
9992 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
9993 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9996 2018-12-13 Jakub Jelinek <jakub@redhat.com>
9999 * testsuite/libgomp.c++/for-24.C (results): Include it in
10000 omp declare target region.
10001 (main): Use map (always, tofrom: results) instead of
10002 map (tofrom: results).
10004 2018-12-12 Jakub Jelinek <jakub@redhat.com>
10007 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
10008 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
10010 * testsuite/libgomp.c-c++-common/for-16.c: New test.
10012 2018-12-12 Andreas Schwab <schwab@suse.de>
10014 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
10017 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
10020 * testsuite/libgomp.fortran/async_io_8.f90: New test.
10022 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
10023 Jakub Jelinek <jakub@redhat.com>
10025 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
10026 devicep->host2dev_func.
10028 2018-12-08 Jakub Jelinek <jakub@redhat.com>
10031 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
10032 tls_runtime effective target.
10033 (t): New threadprivate variable.
10034 (main): Set t in threads which execute iterations of the worksharing
10035 loop. Propagate that to the task after the loop and don't abort
10036 if the current taskgroup hasn't been cancelled.
10038 2018-12-02 Jakub Jelinek <jakub@redhat.com>
10040 * testsuite/libgomp.c/task-reduction-3.c: New test.
10042 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10044 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
10047 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10048 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10050 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
10052 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10054 2018-10-19 Richard Biener <rguenther@suse.de>
10056 PR tree-optimization/88182
10057 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10059 2018-11-26 Jakub Jelinek <jakub@redhat.com>
10061 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10062 (RUNTEST): Don't define.
10063 (RUNTESTDEFAULTFLAGS): Add.
10064 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10065 (distclean-am): Depend on distclean-DEJAGNU.
10066 (check-am): If -j% option is present in MFLAGS and if
10067 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10068 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10069 * testsuite/Makefile.in: Regenerated.
10071 2018-11-26 Richard Biener <rguenther@suse.de>
10073 PR tree-optimization/88182
10074 * testsuite/libgomp.c++/pr88182.C: New testcase.
10076 2018-11-20 Jakub Jelinek <jakub@redhat.com>
10079 * config/mingw32/affinity-fmt.c: New file.
10081 2018-11-09 Jakub Jelinek <jakub@redhat.com>
10083 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10084 (gomp_display_affinity): Use __builtin_choose_expr to handle
10085 properly handle argument having integral, or pointer or some other
10086 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
10087 with uint64_t type instead of %llx and unsigned long long.
10089 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10090 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10092 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10094 * affinity.c: Include <string.h>, <stdio.h>.
10095 (gomp_display_affinity_place): Remove cpusetp.
10096 * teams.c: Include <limits.h>.
10098 2018-11-08 Jakub Jelinek <jakub@redhat.com>
10100 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10101 in_reduction clause for s[0].
10103 * affinity.c (gomp_display_affinity_place): New function.
10104 * affinity-fmt.c: New file.
10105 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10106 * config/linux/affinity.c (gomp_display_affinity_place): New function.
10107 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10108 Move these functions to ...
10109 * config/nvptx/teams.c: ... here. New file.
10110 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10112 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10114 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10115 and _aligned_malloc.
10116 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10117 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10118 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10119 gomp_affinity_format_len): New variables.
10120 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10121 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
10122 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10123 modifiers. Display (non-default) chunk sizes. Print
10124 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10125 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
10126 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10127 * fortran.c: Include stdio.h and string.h.
10128 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10129 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10130 (omp_set_affinity_format_, omp_get_affinity_format_,
10131 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10132 omp_pause_resource_all_): New functions.
10133 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10135 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10137 * teams.c: ... here. New file.
10138 * libgomp_g.h: Include gstdint.h.
10139 (GOMP_loop_nonmonotonic_runtime_start,
10140 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10141 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10142 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10143 GOMP_parallel_loop_nonmonotonic_runtime,
10144 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10145 GOMP_loop_ull_nonmonotonic_runtime_start,
10146 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10147 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10148 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10149 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10150 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10151 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10152 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10153 GOMP_teams_reg): Declare.
10154 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10155 gomp_aligned_alloc uses fallback implementation.
10156 (gomp_aligned_alloc, gomp_aligned_free): Declare.
10157 (enum gomp_schedule_type): Add GFS_MONOTONIC.
10158 (struct gomp_doacross_work_share): Add extra field.
10159 (struct gomp_work_share): Add task_reductions field.
10160 (struct gomp_taskgroup): Add workshare and reductions fields.
10161 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10162 (gomp_thread_handle): New typedef.
10163 (gomp_display_affinity_place, gomp_set_affinity_format,
10164 gomp_display_string, gomp_display_affinity,
10165 gomp_display_affinity_thread): Declare.
10166 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10167 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10168 gomp_workshare_task_reduction_register): Declare.
10169 (gomp_team_start): Add taskgroup argument.
10170 (gomp_pause_host): Declare.
10171 (gomp_init_work_share, gomp_work_share_start): Change bool argument
10173 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10174 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10175 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10176 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10177 GOMP_loop_ull_doacross_start,
10178 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10179 GOMP_loop_maybe_nonmonotonic_runtime_next,
10180 GOMP_loop_maybe_nonmonotonic_runtime_start,
10181 GOMP_loop_nonmonotonic_runtime_next,
10182 GOMP_loop_nonmonotonic_runtime_start,
10183 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10184 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10185 GOMP_loop_ull_nonmonotonic_runtime_next,
10186 GOMP_loop_ull_nonmonotonic_runtime_start,
10187 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10188 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10189 GOMP_taskgroup_reduction_register,
10190 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10191 GOMP_teams_reg and GOMP_taskwait_depend.
10192 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10193 omp_{capture,display}_affinity{,_}, and
10194 omp_[gs]et_affinity_format{,_}.
10195 * loop.c: Include string.h.
10196 (GOMP_loop_runtime_next): Add ialias.
10197 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10198 (gomp_loop_static_start, gomp_loop_dynamic_start,
10199 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10200 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10201 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10202 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10203 or gomp_doacross_init callers.
10204 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10205 GOMP_loop_doacross_start): New functions.
10206 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10207 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10208 Mask off GFS_MONOTONIC bit.
10209 (GOMP_loop_maybe_nonmonotonic_runtime_next,
10210 GOMP_loop_maybe_nonmonotonic_runtime_start,
10211 GOMP_loop_nonmonotonic_runtime_next,
10212 GOMP_loop_nonmonotonic_runtime_start,
10213 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10214 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10216 (gomp_parallel_loop_start): Pass NULL as taskgroup to
10218 * loop_ull.c: Include string.h.
10219 (GOMP_loop_ull_runtime_next): Add ialias.
10220 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10221 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10222 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10223 gomp_loop_ull_ordered_dynamic_start,
10224 gomp_loop_ull_ordered_guided_start,
10225 gomp_loop_ull_doacross_static_start,
10226 gomp_loop_ull_doacross_dynamic_start,
10227 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10228 and gomp_doacross_ull_init callers.
10229 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10230 GOMP_loop_ull_doacross_start): New functions.
10231 (GOMP_loop_ull_runtime_start,
10232 GOMP_loop_ull_ordered_runtime_start,
10233 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10234 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10235 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10236 GOMP_loop_ull_nonmonotonic_runtime_next,
10237 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10238 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10239 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10240 (omp_pause_resource_t, omp_depend_t): New typedefs.
10241 (enum omp_lock_hint_t): Renamed to ...
10242 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
10243 enumerators using numbers and omp_lock_hint_* as their aliases.
10244 (omp_lock_hint_t): New typedef. Rename to ...
10245 (omp_sync_hint_t): ... this.
10246 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10247 omp_sync_hint_t instead of omp_lock_hint_t.
10248 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10249 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10251 (omp_target_is_present, omp_target_disassociate_ptr):
10252 Change first argument from void * to const void *.
10253 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10254 from void * to const void *.
10255 (omp_target_associate_ptr): Change first and second arguments from
10256 void * to const void *.
10257 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10258 omp_pause_hard): New parameters.
10259 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10260 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10262 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10263 omp_pause_hard): New parameters.
10264 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10265 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10267 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10268 EXTRA argument. If not needed to prepare array, if extra is 0,
10269 clear ws->doacross, otherwise allocate just doacross structure and
10270 extra payload. If array is needed, allocate also extra payload.
10271 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10272 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10274 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10276 (GOMP_parallel): Likewise. Formatting fix.
10277 (GOMP_parallel_reductions): New function.
10278 (GOMP_cancellation_point): If taskgroup has workshare
10279 flag set, check cancelled of prev taskgroup if any.
10280 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10281 on prev taskgroup if any.
10282 * sections.c: Include string.h.
10283 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10284 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10285 (GOMP_sections2_start): New function.
10286 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10287 Pass NULL as taskgroup to gomp_team_start.
10288 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10289 gomp_work_share_start callers.
10290 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10291 If taskgroup has workshare flag set, check cancelled on prev
10292 taskgroup if any. Guard all cancellation tests with
10293 gomp_cancel_var test.
10294 (omp_target_is_present, omp_target_disassociate_ptr):
10295 Change ptr argument from void * to const void *.
10296 (omp_target_memcpy): Change src argument from void * to const void *.
10297 (omp_target_memcpy_rect): Likewise.
10298 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10299 instead of char * where needed.
10300 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10301 from void * to const void *.
10302 (omp_pause_resource, omp_pause_resource_all): New functions.
10303 * task.c (gomp_task_handle_depend): Handle new depend array format
10304 in addition to the old. Handle mutexinoutset kinds the same as
10305 inout for now, handle unspecified kinds.
10306 (gomp_create_target_task): If taskgroup has workshare flag set, check
10307 cancelled on prev taskgroup if any. Guard all cancellation tests with
10308 gomp_cancel_var test. Handle new depend array format count in
10309 addition to the old.
10310 (GOMP_task): Likewise. Adjust function comment.
10311 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10312 cancelled on prev taskgroup if any. Guard all cancellation tests with
10313 gomp_cancel_var test.
10314 (GOMP_taskwait_depend): New function.
10315 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10316 format in addition to the old. Handle mutexinoutset kinds the same as
10317 inout for now, handle unspecified kinds. Fix a function comment typo.
10318 (gomp_taskgroup_init): New function.
10319 (GOMP_taskgroup_start): Use it.
10320 (gomp_reduction_register, gomp_create_artificial_team,
10321 GOMP_taskgroup_reduction_register,
10322 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10323 gomp_parallel_reduction_register,
10324 gomp_workshare_task_reduction_register,
10325 gomp_workshare_taskgroup_start,
10326 GOMP_workshare_task_reduction_unregister): New functions.
10327 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10328 check cancelled on prev taskgroup if any. Guard all cancellation
10329 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10330 by calling GOMP_taskgroup_reduction_register.
10331 * team.c (gomp_thread_attr): Remove comment.
10332 (struct gomp_thread_start_data): Add handle field.
10333 (gomp_thread_start): Call pthread_detach.
10334 (gomp_new_team): Adjust gomp_init_work_share caller.
10335 (gomp_free_pool_helper): Call pthread_detach.
10336 (gomp_team_start): Add taskgroup argument, initialize implicit
10337 tasks' taskgroup field to that. Don't call
10338 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10339 (gomp_team_end): Determine nesting by thr->ts.level != 0
10340 rather than thr->ts.team != NULL.
10341 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10342 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10343 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10344 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10345 if more than 1 allocate also extra payload at the end of array. Never
10346 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10347 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10348 return true instead of ws.
10349 * Makefile.in: Regenerated.
10350 * configure: Regenerated.
10351 * config.h.in: Regenerated.
10352 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10354 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10355 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10356 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10357 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10358 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10359 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10360 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10361 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10362 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10363 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10364 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10365 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10366 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10367 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10368 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10369 define a different N(test), don't define N(f0) to N(f14), but instead
10370 define N(f20) to N(f34) using != comparisons.
10371 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10372 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10373 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10374 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10375 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10376 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10377 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10378 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10379 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10380 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10381 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10382 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10383 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10384 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10385 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10386 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10387 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10388 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10389 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10390 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10391 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10392 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10393 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10394 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10395 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10396 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10397 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10398 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10399 * testsuite/libgomp.c++/depend-1.C: New test.
10400 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10401 * testsuite/libgomp.c++/depobj-1.C: New test.
10402 * testsuite/libgomp.c++/for-16.C: New test.
10403 * testsuite/libgomp.c++/for-21.C: New test.
10404 * testsuite/libgomp.c++/for-22.C: New test.
10405 * testsuite/libgomp.c++/for-23.C: New test.
10406 * testsuite/libgomp.c++/for-24.C: New test.
10407 * testsuite/libgomp.c++/for-25.C: New test.
10408 * testsuite/libgomp.c++/for-26.C: New test.
10409 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10410 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10411 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10412 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10413 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10414 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10415 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10416 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10417 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10418 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10419 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10420 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10421 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10422 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10423 * testsuite/libgomp.c/task-reduction-1.c: New test.
10424 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10425 * testsuite/libgomp.c/task-reduction-2.c: New test.
10426 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10427 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10428 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10429 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10430 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10431 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10432 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10433 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10434 * testsuite/libgomp.c/teams-1.c: New test.
10435 * testsuite/libgomp.c/teams-2.c: New test.
10436 * testsuite/libgomp.c/thread-limit-4.c: New test.
10437 * testsuite/libgomp.c/thread-limit-5.c: New test.
10438 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10440 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10442 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10443 acc_memcpy_to/from_device functions, now with async parameter.
10444 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10445 (acc_memcpy_from_device): Likewise.
10446 (acc_memcpy_to_device_async): New API function.
10447 (acc_memcpy_from_device_async): Likewise.
10448 (present_create_copy): Add async parameter and async setting/unsetting.
10449 (acc_create): Adjust present_create_copy call.
10450 (acc_copyin): Likewise.
10451 (acc_present_or_create): Likewise.
10452 (acc_present_or_copyin): Likewise.
10453 (acc_create_async): New API function.
10454 (acc_copyin_async): New API function.
10455 (delete_copyout): Add async parameter and async setting/unsetting.
10456 (acc_delete): Adjust delete_copyout call.
10457 (acc_copyout): Likewise.
10458 (acc_delete_async): New API function.
10459 (acc_copyout_async): Likewise.
10460 (update_dev_host): Add async parameter and async setting/unsetting.
10461 (acc_update_device): Adjust update_dev_host call.
10462 (acc_update_self): Likewise.
10463 (acc_update_device_async): New API function.
10464 (acc_update_self_async): Likewise.
10465 * openacc.h (acc_copyin_async): Declare new API function.
10466 (acc_create_async): Likewise.
10467 (acc_copyout_async): Likewise.
10468 (acc_delete_async): Likewise.
10469 (acc_update_device_async): Likewise.
10470 (acc_update_self_async): Likewise.
10471 (acc_memcpy_to_device_async): Likewise.
10472 (acc_memcpy_from_device_async): Likewise.
10473 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10474 (acc_copyin_async_64_h): New subroutine.
10475 (acc_copyin_async_array_h): New subroutine.
10476 (acc_create_async_32_h): New subroutine.
10477 (acc_create_async_64_h): New subroutine.
10478 (acc_create_async_array_h): New subroutine.
10479 (acc_copyout_async_32_h): New subroutine.
10480 (acc_copyout_async_64_h): New subroutine.
10481 (acc_copyout_async_array_h): New subroutine.
10482 (acc_delete_async_32_h): New subroutine.
10483 (acc_delete_async_64_h): New subroutine.
10484 (acc_delete_async_array_h): New subroutine.
10485 (acc_update_device_async_32_h): New subroutine.
10486 (acc_update_device_async_64_h): New subroutine.
10487 (acc_update_device_async_array_h): New subroutine.
10488 (acc_update_self_async_32_h): New subroutine.
10489 (acc_update_self_async_64_h): New subroutine.
10490 (acc_update_self_async_array_h): New subroutine.
10491 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10492 (acc_copyin_async_64_h): New subroutine.
10493 (acc_copyin_async_array_h): New subroutine.
10494 (acc_create_async_32_h): New subroutine.
10495 (acc_create_async_64_h): New subroutine.
10496 (acc_create_async_array_h): New subroutine.
10497 (acc_copyout_async_32_h): New subroutine.
10498 (acc_copyout_async_64_h): New subroutine.
10499 (acc_copyout_async_array_h): New subroutine.
10500 (acc_delete_async_32_h): New subroutine.
10501 (acc_delete_async_64_h): New subroutine.
10502 (acc_delete_async_array_h): New subroutine.
10503 (acc_update_device_async_32_h): New subroutine.
10504 (acc_update_device_async_64_h): New subroutine.
10505 (acc_update_device_async_array_h): New subroutine.
10506 (acc_update_self_async_32_h): New subroutine.
10507 (acc_update_self_async_64_h): New subroutine.
10508 (acc_update_self_async_array_h): New subroutine.
10509 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10510 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10511 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10512 acc_memcpy_to_device_async*, acc_update_device_async*, and
10513 acc_update_self_async* entries.
10514 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10515 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10516 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10518 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10521 * Makefile.am: Include multilib.am
10522 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10523 (CLEANFILES): Remove libgomp.info.
10524 * configure.ac: Remove AC_PREREQ.
10525 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10526 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10529 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10530 Julian Brown <julian@codesourcery.com>
10532 * testsuite/libgomp.oacc-c++/this.C: New.
10534 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10536 * plugin/plugin-nvptx.c (struct cuda_map): New.
10537 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10538 h_tail with (cuda_map *) map.
10539 (cuda_map_create): New function.
10540 (cuda_map_destroy): New function.
10541 (map_init): Update to use a linked list of cuda_map objects.
10542 (map_fini): Likewise.
10543 (map_pop): Likewise.
10544 (map_push): Likewise. Return CUdeviceptr instead of void.
10545 (init_streams_for_device): Remove stales references to ptx_stream
10547 (select_stream_for_async): Likewise.
10548 (nvptx_exec): Update call to map_init.
10550 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10551 Julian Brown <julian@codesourcery.com>
10553 PR middle-end/86336
10554 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10556 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10557 Thomas Koenig <tkoenig@gcc.gnu.org>
10560 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10561 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10562 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10563 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10564 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10565 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10566 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10568 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10569 Tom de Vries <tdevries@suse.de>
10572 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10573 (cuOccupancyMaxPotentialBlockSize): Declare.
10574 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10575 CUDA_ONE_CALL_MAYBE_NULL.
10576 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10577 CUoccupancyB2DSize and declare
10578 cuOccupancyMaxPotentialBlockSize.
10579 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10580 default num_gangs and num_workers when the driver supports it.
10582 2018-08-08 Tom de Vries <tdevries@suse.de>
10584 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10585 CUDA_ONE_CALL_MAYBE_NULL.
10586 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10587 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10588 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10591 2018-08-08 Tom de Vries <tdevries@suse.de>
10593 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10594 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10597 2018-08-08 Tom de Vries <tdevries@suse.de>
10599 * plugin/plugin-nvptx.c
10600 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10601 (nvptx_open_device): Use
10602 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10604 2018-08-08 Tom de Vries <tdevries@suse.de>
10606 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10607 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
10609 2018-08-07 Tom de Vries <tdevries@suse.de>
10611 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10612 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10613 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
10614 corresponding call in CUDA_ONE_CALL. Add def/undef of
10615 CUDA_ONE_CALL_MAYBE_NULL.
10616 (CUDA_CALL_EXISTS): Define.
10618 2018-08-07 Tom de Vries <tdevries@suse.de>
10620 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10621 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10622 corresponding undefs right after.
10624 2018-08-04 Tom de Vries <tdevries@suse.de>
10626 * plugin/configfrag.ac: For --without-cuda-driver, set
10627 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
10628 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10629 * configure: Regenerate.
10631 2018-08-02 Tom de Vries <tdevries@suse.de>
10634 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10635 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10636 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10638 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10639 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10640 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10642 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10643 Thomas Schwinge <thomas@codesourcery.com>
10645 * config/nvptx/oacc-parallel.c: Truncate.
10647 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10648 James Norris <jnorris@codesourcery.com>
10650 * plugin/plugin-nvptx.c (struct map): Removed.
10651 (map_init, map_pop): Remove use of struct map.
10652 (map_push): Likewise and change argument list.
10653 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10655 2018-08-01 Tom de Vries <tdevries@suse.de>
10657 * plugin/cuda-lib.def: New file. Factor out of ...
10658 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10659 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10662 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
10664 Revert 'AsyncI/O patch committed'.
10665 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10666 Thomas Koenig <tkoenig@gcc.gnu.org>
10669 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10670 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10671 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10672 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10673 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10674 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10675 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10677 2018-07-30 Tom de Vries <tdevries@suse.de>
10679 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10680 (nvptx_exec): Ensure worker and vector default dims don't exceed
10681 targ_fn->max_threads_per_block.
10683 2018-07-30 Tom de Vries <tdevries@suse.de>
10685 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10686 (nvptx_open_device): Init default_dims for device.
10687 (nvptx_exec): Use default_dims from device.
10689 2018-07-26 Jakub Jelinek <jakub@redhat.com>
10692 * testsuite/libgomp.c++/for-15.C (results): Include it in
10693 omp declare target region.
10694 (main): Use map (always, tofrom: results) instead of
10695 map (tofrom: results).
10697 PR middle-end/86660
10698 * testsuite/libgomp.c/pr86660.c: New test.
10700 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10701 Tom de Vries <tdevries@suse.de>
10703 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10704 sufficient resources to launch a kernel, and give a hint on how to fix
10707 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10708 Tom de Vries <tdevries@suse.de>
10710 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10711 max_threads_per_block and max_threads_per_multiprocessor fields.
10712 (nvptx_open_device): Initialize new fields.
10713 (nvptx_exec): Use num_sms, and new fields.
10715 2018-07-26 Tom de Vries <tdevries@suse.de>
10717 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10718 to correct locations. Remove xfail.
10720 2018-07-26 Tom de Vries <tdevries@suse.de>
10722 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10723 acc_wait. Move acc_async_test calls to correct locations. Remove
10726 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10727 Thomas Koenig <tkoenig@gcc.gnu.org>
10730 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10731 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10732 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10733 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10734 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10735 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10736 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10738 2018-07-17 Jakub Jelinek <jakub@redhat.com>
10740 PR middle-end/86542
10741 * testsuite/libgomp.c++/pr86542.C: New test.
10743 PR middle-end/86539
10744 * testsuite/libgomp.c++/pr86539.C: New test.
10746 2018-07-11 Jakub Jelinek <jakub@redhat.com>
10749 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10750 (results): Make sure the variable is not inside declare target region.
10751 (qux): Remove unused function.
10753 2018-07-10 Jakub Jelinek <jakub@redhat.com>
10756 * testsuite/libgomp.c++/for-15.C: New test.
10758 2018-06-26 Jakub Jelinek <jakub@redhat.com>
10761 * testsuite/libgomp.c++/pr86291.C: New test.
10763 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
10765 * libgomp.texi (Top): Move www.openmp.org to https.
10766 (Enabling OpenMP): Ditto.
10767 (omp_get_active_level): Ditto.
10768 (omp_get_ancestor_thread_num): Ditto.
10769 (omp_get_cancellation): Ditto.
10770 (omp_get_default_device): Ditto.
10771 (omp_get_dynamic): Ditto.
10772 (omp_get_level): Ditto.
10773 (omp_get_max_active_levels): Ditto.
10774 (omp_get_max_task_priority): Ditto.
10775 (omp_get_max_threads): Ditto.
10776 (omp_get_nested): Ditto.
10777 (omp_get_num_devices): Ditto.
10778 (omp_get_num_procs): Ditto.
10779 (omp_get_num_teams): Ditto.
10780 (omp_get_num_threads): Ditto.
10781 (omp_get_proc_bind): Ditto.
10782 (omp_get_schedule): Ditto.
10783 (omp_get_team_num): Ditto.
10784 (omp_get_team_size): Ditto.
10785 (omp_get_thread_limit): Ditto.
10786 (omp_get_thread_num): Ditto.
10787 (omp_in_parallel): Ditto.
10788 (omp_in_final): Ditto.
10789 (omp_is_initial_device): Ditto.
10790 (omp_set_default_device): Ditto.
10791 (omp_set_dynamic): Ditto.
10792 (omp_set_max_active_levels): Ditto.
10793 (omp_set_nested): Ditto.
10794 (omp_set_num_threads): Ditto.
10795 (omp_set_schedule): Ditto.
10796 (omp_init_lock): Ditto.
10797 (omp_set_lock): Ditto.
10798 (omp_test_lock): Ditto.
10799 (omp_unset_lock): Ditto.
10800 (omp_destroy_lock): Ditto.
10801 (omp_init_nest_lock): Ditto.
10802 (omp_set_nest_lock): Ditto.
10803 (omp_test_nest_lock): Ditto.
10804 (omp_unset_nest_lock): Ditto.
10805 (omp_destroy_nest_lock): Ditto.
10806 (omp_get_wtick): Ditto.
10807 (omp_get_wtime): Ditto.
10808 (OMP_CANCELLATION): Ditto.
10809 (OMP_DISPLAY_ENV): Ditto.
10810 (OMP_DEFAULT_DEVICE): Ditto.
10811 (OMP_DYNAMIC): Ditto.
10812 (OMP_MAX_ACTIVE_LEVELS): Ditto.
10813 (OMP_MAX_TASK_PRIORITY): Ditto.
10814 (OMP_NESTED): Ditto.
10815 (OMP_NUM_THREADS): Ditto.
10816 (OMP_PROC_BIND): Ditto.
10817 (OMP_PLACES): Ditto.
10818 (OMP_STACKSIZE): Ditto.
10819 (OMP_SCHEDULE): Ditto.
10820 (OMP_THREAD_LIMIT): Ditto.
10821 (OMP_WAIT_POLICY): Ditto.
10823 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
10824 James Norris <jnorris@codesourcery.com>
10825 Julian Brown <julian@codesourcery.com>
10826 Thomas Schwinge <thomas@codesourcery.com>
10827 Tom de Vries <tom@codesourcery.com>
10829 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10830 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10831 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10832 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10833 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10834 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10835 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10836 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10837 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10838 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10840 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10842 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10844 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10846 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10848 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10850 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10852 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10854 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10856 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10858 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10860 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10862 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10864 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10866 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10868 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10870 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10872 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10874 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10876 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10878 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10880 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10882 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10884 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10886 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10888 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10890 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10892 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10893 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10894 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10895 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10896 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10897 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10898 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10899 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10900 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10902 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10904 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10905 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10906 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10908 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10909 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10910 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10912 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10914 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10916 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10918 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10920 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10922 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10924 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10926 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10928 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10930 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10932 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10934 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10936 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10938 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10940 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10941 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10942 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10943 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10944 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10945 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10946 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10948 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
10949 Thomas Schwinge <thomas@codesourcery.com>
10950 Cesar Philippidis <cesar@codesourcery.com>
10952 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10953 (gomp_acc_remove_pointer): Update declaration.
10954 (gomp_acc_declare_allocate): Declare.
10955 (gomp_remove_var): Declare.
10956 * libgomp.map (OACC_2.5): Define.
10957 * oacc-mem.c (acc_map_data): Update refcount.
10958 (acc_unmap_data): Likewise.
10959 (present_create_copy): Likewise.
10960 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10961 (acc_copyin): Likewise.
10962 (FLAG_FINALIZE): Define.
10963 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10964 (acc_delete_finalize): New function.
10965 (acc_delete_finalize_async): New function.
10966 (acc_copyout_finalize): New function.
10967 (acc_copyout_finalize_async): New function.
10968 (gomp_acc_insert_pointer): Update refcounts.
10969 (gomp_acc_remove_pointer): Return if data is not present on the
10971 * oacc-parallel.c (find_pset): Rename to find_pointer.
10972 (find_pointer): Add support for GOMP_MAP_POINTER.
10973 (handle_ftn_pointers): New function.
10974 (GOACC_parallel_keyed): Update refcounts of variables.
10975 (GOACC_enter_exit_data): Add support for finalized data mappings.
10976 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10978 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10979 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10980 for GOMP_MAP_FORCE_FROM.
10981 * openacc.f90 (module openacc_internal): Add
10982 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10983 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10984 acc_copyout_finalize and acc_delete_finalize.
10985 (acc_copyout_finalize_32_h): New subroutine.
10986 (acc_copyout_finalize_64_h): New subroutine.
10987 (acc_copyout_finalize_array_h): New subroutine.
10988 (acc_delete_finalize_32_h): New subroutine.
10989 (acc_delete_finalize_64_h): New subroutine.
10990 (acc_delete_finalize_array_h): New subroutine.
10991 * openacc.h (acc_copyout_finalize): Declare.
10992 (acc_copyout_finalize_async): Declare.
10993 (acc_delete_finalize): Declare.
10994 (acc_delete_finalize_async): Declare.
10995 * openacc_lib.h (acc_copyout_finalize): New interface.
10996 (acc_delete_finalize): New interface.
10997 * target.c (gomp_map_vars): Update dynamic_refcount.
10998 (gomp_remove_var): New function.
10999 (gomp_unmap_vars): Use it.
11000 (gomp_unload_image_from_device): Likewise.
11001 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
11002 case to utilize OpenACC 2.5 data clause semantics.
11003 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11004 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11005 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11006 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11007 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11008 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11009 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11010 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11011 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11012 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11013 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11014 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
11015 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
11016 utilize OpenACC 2.5 data clause semantics.
11017 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11018 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11019 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11020 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11021 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11022 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11023 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11024 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11025 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11027 2018-05-21 Janus Weil <janus@gcc.gnu.org>
11031 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
11032 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
11033 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
11034 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
11035 * testsuite/libgomp.fortran/task2.f90: Ditto.
11036 * testsuite/libgomp.fortran/vla1.f90: Ditto.
11037 * testsuite/libgomp.fortran/vla2.f90: Ditto.
11038 * testsuite/libgomp.fortran/vla3.f90: Ditto.
11039 * testsuite/libgomp.fortran/vla4.f90: Ditto.
11040 * testsuite/libgomp.fortran/vla5.f90: Ditto.
11041 * testsuite/libgomp.fortran/vla6.f90: Ditto.
11042 * testsuite/libgomp.fortran/vla8.f90: Ditto.
11043 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11044 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11046 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
11049 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11051 2018-05-09 Tom de Vries <tom@codesourcery.com>
11054 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11055 to GOACC_enter_exit_data.
11057 2018-05-09 Tom de Vries <tom@codesourcery.com>
11060 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11061 (async_synchronous_p): New function.
11062 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11064 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11065 async_valid_stream_id_p.
11066 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11067 * oacc-parallel.c (GOACC_parallel_keyed): Same.
11069 2018-05-07 Tom de Vries <tom@codesourcery.com>
11072 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11073 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11075 2018-05-03 Tom de Vries <tom@codesourcery.com>
11078 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11079 extra_tool_flags if it contains an -foffload=-fdump-* flag.
11080 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11081 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11083 2018-05-02 Tom de Vries <tom@codesourcery.com>
11086 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11087 GOMP_OPENACC_DIM ...
11088 * env.c (parse_gomp_openacc_dim): ... here. New function.
11089 (initialize_env): Call parse_gomp_openacc_dim.
11090 (goacc_default_dims): Define.
11091 * libgomp.h (goacc_default_dims): Declare.
11092 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11093 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11094 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11095 GOMP_PLUGIN_acc_default_dim.
11096 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11097 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11099 2018-05-02 Tom de Vries <tom@codesourcery.com>
11102 * testsuite/libgomp.c++/udr-9.C: Update.
11103 * testsuite/libgomp.c++/atomic-16.C: Remove.
11104 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11105 * testsuite/libgomp.c++/loop-13.C: Remove.
11106 * testsuite/libgomp.c++/loop-14.C: Remove.
11107 * testsuite/libgomp.c++/loop-15.C: Remove.
11108 * testsuite/libgomp.c++/monotonic-1.C: Remove.
11109 * testsuite/libgomp.c++/monotonic-2.C: Remove.
11110 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11111 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11112 * testsuite/libgomp.c++/ordered-1.C: Remove.
11113 * testsuite/libgomp.c++/pr45784.C: Remove.
11114 * testsuite/libgomp.c++/pr64824.C: Remove.
11115 * testsuite/libgomp.c++/pr64868.C: Remove.
11116 * testsuite/libgomp.c++/pr66199-1.C: Remove.
11117 * testsuite/libgomp.c++/pr66199-2.C: Remove.
11118 * testsuite/libgomp.c++/pr66199-3.C: Remove.
11119 * testsuite/libgomp.c++/pr66199-4.C: Remove.
11120 * testsuite/libgomp.c++/pr66199-5.C: Remove.
11121 * testsuite/libgomp.c++/pr66199-6.C: Remove.
11122 * testsuite/libgomp.c++/pr66199-7.C: Remove.
11123 * testsuite/libgomp.c++/pr66199-8.C: Remove.
11124 * testsuite/libgomp.c++/pr66199-9.C: Remove.
11125 * testsuite/libgomp.c++/pr69389.C: Remove.
11126 * testsuite/libgomp.c++/simd10.C: Remove.
11127 * testsuite/libgomp.c++/simd11.C: Remove.
11128 * testsuite/libgomp.c++/simd12.C: Remove.
11129 * testsuite/libgomp.c++/simd13.C: Remove.
11130 * testsuite/libgomp.c++/target-1.C: Remove.
11131 * testsuite/libgomp.c++/target-3.C: Remove.
11132 * testsuite/libgomp.c++/target-4.C: Remove.
11133 * testsuite/libgomp.c++/target-5.C: Remove.
11134 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11135 * testsuite/libgomp.c++/taskloop-1.C: Remove.
11136 * testsuite/libgomp.c++/taskloop-2.C: Remove.
11137 * testsuite/libgomp.c++/taskloop-3.C: Remove.
11138 * testsuite/libgomp.c++/taskloop-4.C: Remove.
11139 * testsuite/libgomp.c++/udr-9.C: Remove.
11140 * testsuite/libgomp.c++/for-10.C: Remove.
11141 * testsuite/libgomp.c++/for-11.C: Remove.
11142 * testsuite/libgomp.c++/for-12.C: Remove.
11143 * testsuite/libgomp.c++/for-13.C: Remove.
11144 * testsuite/libgomp.c++/for-14.C: Remove.
11145 * testsuite/libgomp.c++/for-9.C: Remove.
11146 * testsuite/libgomp.c/atomic-18.c: Move ...
11147 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11148 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11149 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11150 * testsuite/libgomp.c/loop-13.c: Move ...
11151 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11152 * testsuite/libgomp.c/loop-14.c: Move ...
11153 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11154 * testsuite/libgomp.c/loop-15.c: Remove.
11155 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11156 * testsuite/libgomp.c/monotonic-1.c: Move ...
11157 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11158 * testsuite/libgomp.c/monotonic-2.c: Move ...
11159 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11160 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11161 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11162 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11163 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11164 * testsuite/libgomp.c/ordered-4.c: Move ...
11165 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11166 * testsuite/libgomp.c/pr45784.c: Move ...
11167 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11168 * testsuite/libgomp.c/pr64824.c: Move ...
11169 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11170 * testsuite/libgomp.c/pr64868.c: Move ...
11171 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11172 * testsuite/libgomp.c/pr66199-1.c: Move ...
11173 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11174 * testsuite/libgomp.c/pr66199-2.c: Move ...
11175 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11176 * testsuite/libgomp.c/pr66199-3.c: Move ...
11177 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11178 * testsuite/libgomp.c/pr66199-4.c: Move ...
11179 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11180 * testsuite/libgomp.c/pr66199-5.c: Move ...
11181 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11182 * testsuite/libgomp.c/pr66199-6.c: Move ...
11183 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11184 * testsuite/libgomp.c/pr66199-7.c: Move ...
11185 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11186 * testsuite/libgomp.c/pr66199-8.c: Move ...
11187 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11188 * testsuite/libgomp.c/pr66199-9.c: Move ...
11189 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11190 * testsuite/libgomp.c/pr69389.c: Move ...
11191 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11192 * testsuite/libgomp.c/simd-14.c: Move ...
11193 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11194 * testsuite/libgomp.c/simd-15.c: Move ...
11195 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11196 * testsuite/libgomp.c/simd-16.c: Move ...
11197 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11198 * testsuite/libgomp.c/simd-17.c: Move ...
11199 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11200 * testsuite/libgomp.c/target-1.c: Move ...
11201 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11202 * testsuite/libgomp.c/target-10.c: Move ...
11203 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11204 * testsuite/libgomp.c/target-13.c: Move ...
11205 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11206 * testsuite/libgomp.c/target-2.c: Move ...
11207 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11208 * testsuite/libgomp.c/taskgroup-1.c: Move ...
11209 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11210 * testsuite/libgomp.c/taskloop-1.c: Move ...
11211 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11212 * testsuite/libgomp.c/taskloop-2.c: Move ...
11213 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11214 * testsuite/libgomp.c/taskloop-3.c: Move ...
11215 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11216 * testsuite/libgomp.c/taskloop-4.c: Move ...
11217 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11218 * testsuite/libgomp.c/udr-1.c: Move ...
11219 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11220 * testsuite/libgomp.c/for-1.c: Move ...
11221 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11222 * testsuite/libgomp.c/for-1.h: Move ...
11223 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11224 * testsuite/libgomp.c/for-2.c: Move ...
11225 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11226 * testsuite/libgomp.c/for-2.h: Move ...
11227 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11228 * testsuite/libgomp.c/for-3.c: Move ...
11229 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11230 * testsuite/libgomp.c/for-4.c: Move ...
11231 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11232 * testsuite/libgomp.c/for-5.c: Move ...
11233 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11234 * testsuite/libgomp.c/for-6.c: Move ...
11235 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11237 2018-05-02 Tom de Vries <tom@codesourcery.com>
11240 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11241 __builtin_goacc_parlevel_{id,size}.
11242 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11243 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11244 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11245 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11246 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11247 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11248 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11249 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11250 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11251 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11252 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11253 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11254 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11255 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11256 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11257 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11258 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11259 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11260 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11261 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11262 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11263 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11264 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11266 2018-05-02 Tom de Vries <tom@codesourcery.com>
11269 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11271 2018-05-02 Tom de Vries <tom@codesourcery.com>
11274 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11276 2018-04-29 Julian Brown <julian@codesourcery.com>
11277 Tom de Vries <tom@codesourcery.com>
11280 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11281 arbitrary order for iterations of atomic subtract check.
11283 2018-04-28 Tom de Vries <tom@codesourcery.com>
11286 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11287 atomic capture results obtained in parallel loop to an array, instead of
11290 2018-04-26 Tom de Vries <tom@codesourcery.com>
11293 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11294 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11295 (process_GOMP_NVPTX_JIT): New function.
11296 (link_ptx): Use process_GOMP_NVPTX_JIT.
11298 2018-04-26 Richard Biener <rguenther@suse.de>
11299 Tom de Vries <tom@codesourcery.com>
11302 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11304 2018-04-26 Tom de Vries <tom@codesourcery.com>
11307 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11308 recursion depth from 25 to 23.
11309 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11311 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11313 * configure: Regenerated.
11315 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11316 Tom de Vries <tom@codesourcery.com>
11319 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11321 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11324 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11325 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11326 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11327 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11328 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11329 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11331 PR libfortran/85166
11332 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11334 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11336 2018-04-19 Jakub Jelinek <jakub@redhat.com>
11338 * configure: Regenerated.
11340 2018-04-18 David Malcolm <dmalcolm@redhat.com>
11343 * configure: Regenerate.
11345 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11346 Tom de Vries <tom@codesourcery.com>
11348 PR middle-end/84955
11349 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11350 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11352 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11356 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11357 test from gfortran.dg to here.
11359 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11361 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11362 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11364 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11366 PR middle-end/84955
11367 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11368 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11370 2018-04-05 Tom de Vries <tom@codesourcery.com>
11373 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11375 2018-03-26 Tom de Vries <tom@codesourcery.com>
11377 PR tree-optimization/85063
11378 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11379 * testsuite/libgomp.c/switch-conversion.c: New test.
11380 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11381 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11383 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11386 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11387 call abort by STOP n.
11388 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11389 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11390 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11391 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11392 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11393 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11394 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11395 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11396 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11397 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11398 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11399 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11400 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11401 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11402 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11403 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11404 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11405 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11406 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11407 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11408 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11409 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11410 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11411 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11412 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11413 * testsuite/libgomp.fortran/character1.f90: Likewise.
11414 * testsuite/libgomp.fortran/character2.f90: Likewise.
11415 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11416 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11417 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11418 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11419 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11420 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11421 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11422 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11423 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11424 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11425 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11426 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11427 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11428 * testsuite/libgomp.fortran/do1.f90: Likewise.
11429 * testsuite/libgomp.fortran/do2.f90: Likewise.
11430 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11431 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11432 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11433 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11434 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11435 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11436 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11437 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11438 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11439 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11440 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11441 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11442 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11443 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11444 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11445 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11446 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11447 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11448 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11449 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11450 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11451 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11452 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11453 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11454 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11455 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11456 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11457 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11458 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11459 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11460 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11461 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11462 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11463 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11464 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11465 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11466 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11467 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11468 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11469 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11470 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11471 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11472 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11473 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11474 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11475 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11476 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11477 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11478 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11479 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11480 * testsuite/libgomp.fortran/lib2.f: Likewise.
11481 * testsuite/libgomp.fortran/lib3.f: Likewise.
11482 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11483 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11484 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11485 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11486 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11487 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11488 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11489 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11490 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11491 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11492 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11493 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11494 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11495 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11496 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11497 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11498 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11499 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11500 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11501 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11502 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11503 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11504 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11505 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11506 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11507 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11508 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11509 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11510 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11511 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11512 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11513 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11514 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11515 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11516 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11517 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11518 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11519 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11520 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11521 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11522 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11523 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11524 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11525 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11526 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11527 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11528 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11529 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11530 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11531 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11532 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11533 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11534 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11535 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11536 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11537 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11538 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11539 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11540 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11541 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11542 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11543 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11544 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11545 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11546 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11547 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11548 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11549 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11550 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11551 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11552 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11553 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11554 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11555 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11556 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11557 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11558 * testsuite/libgomp.fortran/stack.f90: Likewise.
11559 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11560 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11561 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11562 * testsuite/libgomp.fortran/target1.f90: Likewise.
11563 * testsuite/libgomp.fortran/target2.f90: Likewise.
11564 * testsuite/libgomp.fortran/target3.f90: Likewise.
11565 * testsuite/libgomp.fortran/target4.f90: Likewise.
11566 * testsuite/libgomp.fortran/target5.f90: Likewise.
11567 * testsuite/libgomp.fortran/target6.f90: Likewise.
11568 * testsuite/libgomp.fortran/target7.f90: Likewise.
11569 * testsuite/libgomp.fortran/target8.f90: Likewise.
11570 * testsuite/libgomp.fortran/task1.f90: Likewise.
11571 * testsuite/libgomp.fortran/task2.f90: Likewise.
11572 * testsuite/libgomp.fortran/task3.f90: Likewise.
11573 * testsuite/libgomp.fortran/task4.f90: Likewise.
11574 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11575 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11576 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11577 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11578 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11579 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11580 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11581 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11582 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11583 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11584 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11585 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11586 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11587 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11588 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11589 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11590 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11591 * testsuite/libgomp.fortran/udr3.f90: Likewise.
11592 * testsuite/libgomp.fortran/udr4.f90: Likewise.
11593 * testsuite/libgomp.fortran/udr5.f90: Likewise.
11594 * testsuite/libgomp.fortran/udr6.f90: Likewise.
11595 * testsuite/libgomp.fortran/udr7.f90: Likewise.
11596 * testsuite/libgomp.fortran/udr8.f90: Likewise.
11597 * testsuite/libgomp.fortran/udr9.f90: Likewise.
11598 * testsuite/libgomp.fortran/vla1.f90: Likewise.
11599 * testsuite/libgomp.fortran/vla2.f90: Likewise.
11600 * testsuite/libgomp.fortran/vla3.f90: Likewise.
11601 * testsuite/libgomp.fortran/vla4.f90: Likewise.
11602 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11603 * testsuite/libgomp.fortran/vla6.f90: Likewise.
11604 * testsuite/libgomp.fortran/vla7.f90: Likewise.
11605 * testsuite/libgomp.fortran/vla8.f90: Likewise.
11606 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11607 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11608 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11609 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11610 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11611 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11612 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11613 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11614 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11615 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11616 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11617 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11618 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11619 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11620 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11621 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11622 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11623 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11624 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11625 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11626 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11627 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11628 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11629 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11630 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11631 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11632 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11633 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11634 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11635 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11636 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11637 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11638 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11639 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11640 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11641 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11642 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11643 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11644 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11645 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11646 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11647 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11648 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11649 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11650 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11651 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11652 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11653 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11654 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11655 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11656 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11657 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11658 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11659 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11660 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11661 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11662 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11663 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11664 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11665 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11666 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11667 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11668 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11669 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11670 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11671 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11672 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11673 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11674 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11675 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11676 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11677 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11678 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11679 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11680 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11681 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11682 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11683 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11684 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11685 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11686 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11687 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11688 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11689 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11690 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11691 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11692 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11693 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11694 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11695 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11696 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11697 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11698 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11699 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11701 2018-03-20 Richard Biener <rguenther@suse.de>
11703 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11704 parallelizable loop.
11706 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11709 * configure: Regenerate.
11711 2018-02-16 Jakub Jelinek <jakub@redhat.com>
11714 * libgomp.fortran/pr84418-1.f90: New test.
11715 * libgomp.fortran/pr84418-2.f90: New test.
11717 2018-02-14 Jakub Jelinek <jakub@redhat.com>
11720 * testsuite/libgomp.fortran/threadprivate4.f90: Add
11721 -std=f2003 -fall-intrinsics into dg-additional-options.
11723 2018-02-08 Martin Jambor <mjambor@suse.cz>
11725 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11728 2018-02-08 Martin Jambor <mjambor@suse.cz>
11730 * testsuite/libgomp.hsa.c/staticvar.c: New test.
11732 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11734 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11735 [__cplusplus]: Declare extern "C".
11737 2018-02-07 Tom de Vries <tom@codesourcery.com>
11740 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11742 2018-01-29 Christoph Spiel <cspiel@freenet.de>
11743 Jakub Jelinek <jakub@redhat.com>
11746 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11747 instead of omp_lock_t.
11749 2018-01-25 Tom de Vries <tom@codesourcery.com>
11752 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11754 2018-01-24 Tom de Vries <tom@codesourcery.com>
11757 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11759 2018-01-24 Tom de Vries <tom@codesourcery.com>
11762 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11764 2018-01-19 Tom de Vries <tom@codesourcery.com>
11765 Cesar Philippidis <cesar@codesourcery.com>
11768 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11769 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11771 2018-01-03 Jakub Jelinek <jakub@redhat.com>
11773 Update copyright years.
11775 * libgomp.texi: Bump @copying's copyright year.
11777 2017-12-30 Tom de Vries <tom@codesourcery.com>
11780 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11781 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11783 2017-12-27 Tom de Vries <tom@codesourcery.com>
11786 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11787 (test_nonstatic): Fix return type to workaround PR83046.
11789 2017-12-05 Jakub Jelinek <jakub@redhat.com>
11792 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11793 j suffix instead of i.
11794 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11797 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
11799 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11800 call to acc_wait (1).
11802 2017-11-24 Jakub Jelinek <jakub@redhat.com>
11805 * testsuite/libgomp.fortran/pr81304.f90: New test.
11807 2017-11-23 Jakub Jelinek <jakub@redhat.com>
11810 * libgomp.fortran/pr81841.f90: New test.
11812 2017-11-22 Jakub Jelinek <jakub@redhat.com>
11815 * target.c (gomp_target_init): Compute lengths just once and
11816 use them in both malloc size and subsequent copying.
11818 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11820 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11821 * acinclude.m4: Add cet.m4.
11822 * configure: Regenerate.
11823 * Makefile.in: Likewise.
11824 * testsuite/Makefile.in: Likewise.
11826 2017-11-15 Tom de Vries <tom@codesourcery.com>
11828 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11829 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
11830 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11831 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
11832 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11833 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
11835 2017-11-14 Tom de Vries <tom@codesourcery.com>
11837 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11838 non-nvidia devices.
11840 2017-11-07 Jakub Jelinek <jakub@redhat.com>
11843 * testsuite/libgomp.c++/pr82835.C: New test.
11845 2017-11-06 Martin Liska <mliska@suse.cz>
11847 * testsuite/libgomp.c++/loop-2.C: Return a value
11848 for functions with non-void return type, or change type to void,
11849 or add -Wno-return-type for test.
11850 * testsuite/libgomp.c++/loop-4.C: Likewise.
11851 * testsuite/libgomp.c++/parallel-1.C: Likewise.
11852 * testsuite/libgomp.c++/shared-1.C: Likewise.
11853 * testsuite/libgomp.c++/single-1.C: Likewise.
11854 * testsuite/libgomp.c++/single-2.C: Likewise.
11856 2017-10-31 Tom de Vries <tom@codesourcery.com>
11858 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11859 "do {} while (false)".
11860 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11861 after HSA_DEBUG call.
11863 2017-10-28 Jakub Jelinek <jakub@redhat.com>
11865 * target.c (struct gomp_coalesce_buf): New type.
11866 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11867 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11868 (gomp_copy_host2dev): Add CBUF argument, if copying into
11869 the cached ranges, memcpy into buffer instead of copying
11871 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11872 Add CBUF argument, pass it through to other calls.
11873 (gomp_map_vars): Aggregate copies from host to device if small enough
11874 and with small enough gaps in between into memcpy into a buffer and
11875 fewer host to device copies from the buffer.
11876 (gomp_update): Adjust gomp_copy_host2dev caller.
11878 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
11880 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11882 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11883 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11884 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11885 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11887 2017-10-16 Tom de Vries <tom@codesourcery.com>
11889 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11890 openacc_nvidia_accel_selected.
11891 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11892 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11893 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11894 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11895 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11896 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11897 openacc_nvidia_accel_selected. Skip for shared memory device.
11898 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11899 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11901 2017-10-09 Martin Jambor <mjambor@suse.cz>
11904 * testsuite/libgomp.hsa.c/pr82416.c: New test.
11906 2017-10-07 Tom de Vries <tom@codesourcery.com>
11908 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11909 Remove acc_device_nvidia references.
11910 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11913 2017-10-05 Tom de Vries <tom@codesourcery.com>
11915 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11916 vector_length(32) clause from acc parallel directive.
11917 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11919 2017-10-04 Tom de Vries <tom@codesourcery.com>
11921 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11922 (main): Reduce sum of arr elements. Assert that hres is exactly
11923 representable in 32-bit floating point.
11924 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11925 (main): Reduce sum of arr elements. Assert that hres and hmres are
11926 exactly representable in 32-bit floating point.
11927 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11929 2017-09-28 Tom de Vries <tom@codesourcery.com>
11931 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11933 * testsuite/libgomp.c++/pr69393.C: Same.
11934 * testsuite/libgomp.c++/taskloop-1.C: Same.
11935 * testsuite/libgomp.c++/taskloop-3.C: Same.
11936 * testsuite/libgomp.c++/taskloop-4.C: Same.
11937 * testsuite/libgomp.c/for-4.c: Same.
11938 * testsuite/libgomp.c/pr66199-3.c: Same.
11939 * testsuite/libgomp.c/pr66199-4.c: Same.
11940 * testsuite/libgomp.c/pr66199-6.c: Same.
11941 * testsuite/libgomp.c/taskloop-1.c: Same.
11942 * testsuite/libgomp.c/taskloop-3.c: Same.
11943 * testsuite/libgomp.c/taskloop-4.c: Same.
11944 * testsuite/libgomp.fortran/aligned1.f03: Same.
11945 * testsuite/libgomp.fortran/condinc1.f: Same.
11946 * testsuite/libgomp.fortran/condinc3.f90: Same.
11947 * testsuite/libgomp.fortran/crayptr1.f90: Same.
11948 * testsuite/libgomp.fortran/crayptr2.f90: Same.
11949 * testsuite/libgomp.fortran/crayptr3.f90: Same.
11950 * testsuite/libgomp.fortran/omp_cond1.f: Same.
11951 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11952 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11953 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11954 * testsuite/libgomp.fortran/recursion1.f90: Same.
11955 * testsuite/libgomp.fortran/target2.f90: Same.
11956 * testsuite/libgomp.fortran/target5.f90: Same.
11957 * testsuite/libgomp.fortran/task3.f90: Same.
11959 2017-09-28 Tom de Vries <tom@codesourcery.com>
11961 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11962 vector_length(32) clause from acc parallel directive.
11963 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11965 2017-09-27 Tom de Vries <tom@codesourcery.com>
11967 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11968 Remove acc_device_nvidia references.
11970 2017-09-16 Tom de Vries <tom@codesourcery.com>
11973 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11975 2017-09-14 Tom de Vries <tom@codesourcery.com>
11977 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11978 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11979 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11980 * testsuite/libgomp.c/c.exp: Include test-cases from
11981 libgomp.c-c++-common.
11982 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
11985 2017-09-14 Jakub Jelinek <jakub@redhat.com>
11988 * testsuite/libgomp.c++/pr81314.C: New test.
11990 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
11992 * libgomp.texi (Top): www.openacc.org now uses https.
11993 (Enabling OpenACC): Ditto.
11994 (acc_get_num_devices): Ditto.
11995 (acc_set_device_type): Ditto.
11996 (acc_get_device_type): Ditto.
11997 (acc_set_device_num): Ditto.
11998 (acc_get_device_num): Ditto.
11999 (acc_async_test): Ditto.
12000 (acc_async_test_all): Ditto.
12002 (acc_wait_all): Ditto.
12003 (acc_wait_all_async): Ditto.
12004 (acc_wait_async): Ditto.
12006 (acc_shutdown): Ditto.
12007 (acc_on_device): Ditto.
12008 (acc_malloc): Ditto.
12010 (acc_copyin): Ditto.
12011 (acc_present_or_copyin): Ditto.
12012 (acc_create): Ditto.
12013 (acc_present_or_create): Ditto.
12014 (acc_copyout): Ditto.
12015 (acc_delete): Ditto.
12016 (acc_update_device): Ditto.
12017 (acc_update_self): Ditto.
12018 (acc_map_data): Ditto.
12019 (acc_unmap_data): Ditto.
12020 (acc_deviceptr): Ditto.
12021 (acc_hostptr): Ditto.
12022 (acc_is_present): Ditto.
12023 (acc_memcpy_to_device): Ditto.
12024 (acc_memcpy_from_device): Ditto.
12025 (acc_get_current_cuda_device): Ditto.
12026 (acc_get_current_cuda_context): Ditto.
12027 (acc_get_cuda_stream): Ditto.
12028 (acc_set_cuda_stream): Ditto.
12029 (ACC_DEVICE_TYPE): Ditto.
12030 (ACC_DEVICE_NUM): Ditto.
12031 (OpenACC Library Interoperability): Ditto.
12033 2017-08-09 Jakub Jelinek <jakub@redhat.com>
12036 * testsuite/libgomp.c/pr81687-1.c: New test.
12037 * testsuite/libgomp.c/pr81687-2.c: New test.
12039 2017-08-07 Jakub Jelinek <jakub@redhat.com>
12042 * testsuite/libgomp.c/pr69389.c: New test.
12043 * testsuite/libgomp.c++/pr69389.C: New test.
12045 2017-08-07 Tom de Vries <tom@codesourcery.com>
12047 PR middle-end/78266
12048 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12049 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12051 2017-07-27 Jakub Jelinek <jakub@redhat.com>
12054 * testsuite/libgomp.c/pr45784.c: New test.
12055 * testsuite/libgomp.c++/pr45784.C: New test.
12057 2017-07-19 Tom de Vries <tom@codesourcery.com>
12059 * testsuite/libgomp.oacc-c/vec.c: New test.
12061 2017-07-03 Tom de Vries <tom@codesourcery.com>
12063 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12065 2017-06-27 Tom de Vries <tom@codesourcery.com>
12067 * plugin/plugin-nvptx.c (notify_var): New function.
12068 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12070 2017-06-27 Tom de Vries <tom@codesourcery.com>
12072 * env.c (parse_unsigned_long_1): Factor out of ...
12073 (parse_unsigned_long): ... here.
12074 (parse_int_1): Factor out of ...
12075 (parse_int): ... here.
12076 (parse_int_secure): New function.
12077 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12078 * secure_getenv.h: Factor out of ...
12079 * plugin/plugin-hsa.c: ... here.
12080 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12082 2017-06-21 Jakub Jelinek <jakub@redhat.com>
12085 * testsuite/libgomp.c++/pr81130.C: New test.
12087 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12089 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12091 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12092 dg-xfail-run-if default args.
12094 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12096 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12097 * testsuite/libgomp.c/pr39591-3.c: Likewise.
12099 2017-05-30 Jakub Jelinek <jakub@redhat.com>
12102 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12103 (gomp_affinity_init_level): Use it. Always analyze the core and thread
12104 sibling lists, depending on level just pick up what CPUs to put
12105 together into a place vs. whether add multiple ordered places.
12107 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
12109 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12110 * libgomp.map (OACC_2.0.1): Add these.
12111 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12112 for "acc_wait", and "acc_wait_all", respectively.
12113 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12114 for "acc_wait", and "acc_wait_all", respectively.
12115 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12116 * libgomp.texi (acc_wait, acc_wait_all): Update.
12117 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12118 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12119 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12121 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12122 acc_present_or_copyin and acc_present_or_create procedures,
12124 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12125 generally different variants of OpenACC Runtime Library functions.
12126 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12128 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12129 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12131 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12132 of preprocessor definitions.
12133 * libgomp.h (strong_alias): Guard by "#ifdef
12134 HAVE_ATTRIBUTE_ALIAS".
12135 * oacc-mem.c: Provide "acc_pcreate" as alias for
12136 "acc_present_or_create", and "acc_pcopyin" as alias for
12137 "acc_present_or_copyin".
12138 * libgomp.map: New version "OACC_2.0.1".
12139 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12140 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12141 its content into...
12142 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12145 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12146 when disabling nvptx offloading.
12148 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
12150 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12151 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12152 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12154 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12155 * testsuite/lib/libgomp.exp
12156 (check_effective_target_openacc_nvidia_accel_configured): New
12158 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12159 (check_effective_target_c++): New procs.
12160 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12161 (check_effective_target_c++): Likewise.
12163 2017-05-22 Jakub Jelinek <jakub@redhat.com>
12165 PR middle-end/80809
12166 * testsuite/libgomp.c/pr80809-2.c: New test.
12167 * testsuite/libgomp.c/pr80809-3.c: New test.
12169 PR middle-end/80809
12170 * testsuite/libgomp.c/pr80809-1.c: New test.
12172 PR middle-end/80853
12173 * testsuite/libgomp.c/pr80853.c: New test.
12175 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
12177 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12178 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12179 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12180 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12181 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12183 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12184 Debug output for failure.
12186 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12188 * testsuite/lib/libgomp.exp: Load scanlang.exp.
12190 2017-04-27 Jakub Jelinek <jakub@redhat.com>
12193 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12194 bootstrap compare failures.
12196 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
12198 * testsuite/libgomp.c/target-36.c: New testcase.
12200 2017-04-13 Jakub Jelinek <jakub@redhat.com>
12202 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12205 2017-04-11 Jakub Jelinek <jakub@redhat.com>
12208 * testsuite/libgomp.c/pr80394.c: New test.
12210 2017-04-04 Jakub Jelinek <jakub@redhat.com>
12213 * config/posix/thread-stacksize.h: New file.
12214 * config/darwin/thread-stacksize.h: New file.
12215 * config/nvptx/thread-stacksize.h: New file.
12216 * env.c: Include thread-stacksize.h.
12217 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12218 instead of 0. Call pthread_attr_setstacksize even if
12219 GOMP_DEFAULT_STACKSIZE is non-zero.
12221 2017-03-30 Jakub Jelinek <jakub@redhat.com>
12223 * env.c (initialize_env): Initialize stacksize to 0.
12225 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
12228 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12230 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12233 * testsuite/libgomp.c/pr79940.c: New test.
12235 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12237 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12239 Add __float128 options.
12241 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
12243 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12244 hppa*-*-* dg-skip-if directive.
12246 2017-02-09 Jakub Jelinek <jakub@redhat.com>
12248 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12249 dg-skip-if directive into a comment.
12251 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12252 Chung-Lin Tang <cltang@codesourcery.com>
12254 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12255 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12256 add additional case.
12257 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12258 "openacc_nvidia_accel_selected".
12259 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12260 Add num_workers(8) clause.
12262 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
12264 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12266 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12267 include complex.h on hppa*-*-hpux*.
12268 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12270 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
12272 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12274 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12275 GOMP_OFFLOAD_openacc_exec. Adjust all users.
12276 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12277 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
12278 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12279 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
12280 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12281 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
12282 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12283 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
12285 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12287 * libgomp-plugin.h: #include <stdbool.h>.
12288 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12289 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12290 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12291 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12292 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12293 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12294 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12295 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12296 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12297 (GOMP_OFFLOAD_openacc_async_test)
12298 (GOMP_OFFLOAD_openacc_async_test_all)
12299 (GOMP_OFFLOAD_openacc_async_wait)
12300 (GOMP_OFFLOAD_openacc_async_wait_async)
12301 (GOMP_OFFLOAD_openacc_async_wait_all)
12302 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12303 (GOMP_OFFLOAD_openacc_async_set_async)
12304 (GOMP_OFFLOAD_openacc_create_thread_data)
12305 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12306 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12307 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12308 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12309 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12310 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12312 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12313 (GOMP_OFFLOAD_unload_image): Fix argument types.
12315 2017-01-26 Jakub Jelinek <jakub@redhat.com>
12317 * testsuite/lib/libgomp.exp
12318 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12319 check_compile invocation. Fix up removal of executable. Drop
12320 bogus "2>&1" argument.
12322 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12325 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
12326 Martin Jambor <mjambor@suse.cz>
12328 * plugin/hsa.h: Moved to top level include.
12329 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12331 2017-01-21 Jakub Jelinek <jakub@redhat.com>
12334 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12335 of cat to get version from BASE-VER file.
12336 * testsuite/Makefile.in: Regenerated.
12338 2017-01-19 Jakub Jelinek <jakub@redhat.com>
12340 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12343 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12345 * plugin/hsa.h: Add GCC runtime library exception.
12346 * plugin/hsa_ext_finalize.h: Likewise.
12348 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12349 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12350 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12351 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12352 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12353 library to link ptx plugin against.
12354 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12355 (CUDA_CALLS): Define.
12356 (cuda_lib, cuda_lib_inited): New variables.
12357 (init_cuda_lib): New function.
12358 (CUDA_CALL_PREFIX): Define.
12359 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12360 (CUDA_CALL): Use FN instead of (FN).
12361 (CUDA_CALL_NOCHECK): Define.
12362 (cuda_error, fini_streams_for_device, select_stream_for_async,
12363 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12364 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12365 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12366 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12368 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12370 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12371 Use CUDA_CALL_NOCHECK.
12372 * plugin/cuda/cuda.h: New file.
12373 * config.h.in: Regenerated.
12374 * configure: Regenerated.
12377 * configure.ac: Add GCC_BASE_VER.
12378 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12379 get version from BASE-VER file.
12380 * testsuite/Makefile.in: Regenerated.
12381 * configure: Regenerated.
12382 * Makefile.in: Regenerated.
12384 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12387 * Makefile.am: Make fincludedir multilib-aware.
12388 * Makefile.in: Regenerate.
12390 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12392 Update copyright years.
12394 * libgomp.texi: Bump @copying's copyright year.
12396 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12398 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12399 pthread_spinlock_t instead of gomp_mutex_t lock.
12400 (gomp_get_thread_pool): Likewise.
12401 (gomp_release_thread_pool): Likewise.
12402 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12405 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12407 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12408 thread pool in case nthreads == 1.
12410 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12412 * config/nvptx/env.c: Delete.
12413 * icv.c: Move definitions of ICV variables back ...
12414 * env.c: ...here. Do not compile environment-related functionality if
12415 LIBGOMP_OFFLOADED_ONLY is set.
12417 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12419 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12420 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12421 * configure: Regenerate.
12422 * config.h.in: Likewise.
12424 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12426 * Makefile.in: Regenerate with automake-1.11.6.
12427 * aclocal.m4: Likewise.
12428 * configure: Likewise.
12429 * testsuite/Makefile.in: Likewise.
12431 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
12433 * config/nvptx/critical.c: Delete to use generic implementation.
12435 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12437 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12438 ../../affinity.c as fallback.
12439 * config/nvptx/affinity.c: Delete to use fallback implementation.
12441 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
12442 Jakub Jelinek <jakub@redhat.com>
12443 Dmitry Melnik <dm@ispras.ru>
12445 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12446 * Makefile.in. Regenerate.
12447 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12448 (LIBGOMP_USE_PTHREADS): ...here; new define.
12449 * configure: Regenerate.
12450 * config.h.in: Likewise.
12451 * config/posix/affinity.c: Move to...
12452 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12453 interface by LIBGOMP_USE_PTHREADS.
12454 * critical.c: Split out GOMP_atomic_{start,end} into...
12455 * atomic.c: ...here (new file).
12456 * env.c: Split out ICV definitions into...
12457 * icv.c: ...here (new file) and...
12458 * icv-device.c: ...here. New file.
12459 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12460 (gomp_destroy_lock_30): Ditto.
12461 (gomp_set_lock_30): Ditto.
12462 (gomp_unset_lock_30): Ditto.
12463 (gomp_test_lock_30): Ditto.
12464 (gomp_init_nest_lock_30): Ditto.
12465 (gomp_destroy_nest_lock_30): Ditto.
12466 (gomp_set_nest_lock_30): Ditto.
12467 (gomp_unset_nest_lock_30): Ditto.
12468 (gomp_test_nest_lock_30): Ditto.
12470 * config/nvptx/lock.c: New.
12471 * config/nvptx/bar.c: New.
12472 * config/nvptx/bar.h: New.
12473 * config/nvptx/doacross.h: New.
12474 * config/nvptx/error.c: New.
12475 * config/nvptx/icv-device.c: New.
12476 * config/nvptx/mutex.h: New.
12477 * config/nvptx/pool.h: New.
12478 * config/nvptx/proc.c: New.
12479 * config/nvptx/ptrlock.h: New.
12480 * config/nvptx/sem.h: New.
12481 * config/nvptx/simple-bar.h: New.
12482 * config/nvptx/target.c: New.
12483 * config/nvptx/task.c: New.
12484 * config/nvptx/team.c: New.
12485 * config/nvptx/time.c: New.
12486 * config/posix/simple-bar.h: New.
12487 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12488 (gomp_num_teams_var): Declare.
12489 (struct gomp_thread_pool): Change threads_dock member to
12490 gomp_simple_barrier_t.
12491 [__nvptx__] (gomp_thread): New implementation.
12492 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12493 (gomp_thread_destructor): Ditto.
12494 (gomp_init_thread_affinity): Ditto.
12495 * team.c: Guard uses of Pthreads-specific interfaces by
12496 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12497 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12498 * config/nvptx/alloc.c: Delete.
12499 * config/nvptx/barrier.c: Ditto.
12500 * config/nvptx/fortran.c: Ditto.
12501 * config/nvptx/iter.c: Ditto.
12502 * config/nvptx/iter_ull.c: Ditto.
12503 * config/nvptx/loop.c: Ditto.
12504 * config/nvptx/loop_ull.c: Ditto.
12505 * config/nvptx/ordered.c: Ditto.
12506 * config/nvptx/parallel.c: Ditto.
12507 * config/nvptx/priority_queue.c: Ditto.
12508 * config/nvptx/sections.c: Ditto.
12509 * config/nvptx/single.c: Ditto.
12510 * config/nvptx/splay-tree.c: Ditto.
12511 * config/nvptx/work.c: Ditto.
12512 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12513 -foffload=-lgfortran in addition to -lgfortran.
12514 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12515 * plugin/plugin-nvptx.c: Include <limits.h>.
12516 (struct targ_fn_descriptor): Add new fields.
12517 (struct ptx_device): Ditto. Set them...
12518 (nvptx_open_device): ...here.
12519 (nvptx_adjust_launch_bounds): New.
12520 (nvptx_host2dev): Allow NULL 'nvthd'.
12521 (nvptx_dev2host): Ditto.
12522 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12523 (link_ptx): Adjust log sizes.
12524 (nvptx_host2dev): Allow NULL 'nvthd'.
12525 (nvptx_dev2host): Ditto.
12526 (nvptx_set_clocktick): New. Use it...
12527 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12529 (GOMP_OFFLOAD_dev2dev): New.
12530 (nvptx_adjust_launch_bounds): New.
12531 (nvptx_stacks_size): New.
12532 (nvptx_stacks_alloc): New.
12533 (nvptx_stacks_free): New.
12534 (GOMP_OFFLOAD_run): New.
12535 (GOMP_OFFLOAD_async_run): New (stub).
12537 2016-11-23 Martin Jambor <mjambor@suse.cz>
12539 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12540 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12541 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12543 2016-11-23 Martin Liska <mliska@suse.cz>
12544 Martin Jambor <mjambor@suse.cz>
12546 * plugin/hsa.h: New file.
12547 * plugin/hsa_ext_finalize.h: New file.
12548 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12549 header file unistd.h, and functions secure_getenv, __secure_getenv,
12550 getuid, geteuid, getgid and getegid.
12551 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12553 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12554 Handle various cases of secure_getenv presence, add an implementation
12555 when we can test effective UID and GID.
12556 (struct hsa_runtime_fn_info): New structure.
12557 (hsa_runtime_fn_info hsa_fns): New variable.
12558 (hsa_runtime_lib): Likewise.
12559 (support_cpu_devices): Likewise.
12560 (init_enviroment_variables): Load newly introduced ENV
12562 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12563 (hsa_fatal): Likewise.
12564 (DLSYM_FN): New macro.
12565 (init_hsa_runtime_functions): New function.
12566 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12567 structure. Depending on environment, also allow CPU devices.
12568 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12569 (get_kernarg_memory_region): Likewise.
12570 (GOMP_OFFLOAD_init_device): Likewise.
12571 (destroy_hsa_program): Likewise.
12572 (init_basic_kernel_info): New function.
12573 (GOMP_OFFLOAD_load_image): Use it.
12574 (create_and_finalize_hsa_program): Call hsa run-time functions via
12576 (create_single_kernel_dispatch): Likewise.
12577 (release_kernel_dispatch): Likewise.
12578 (init_single_kernel): Likewise.
12579 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12580 (get_group_size): New function.
12581 (run_kernel): Likewise.
12582 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12583 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12585 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12586 * testsuite/libgomp-test-support.exp.in: Likewise.
12587 * Makefile.in: Regenerated.
12588 * aclocal.m4: Likewise.
12589 * config.h.in: Likewise.
12590 * configure: Likewise.
12591 * testsuite/Makefile.in: Likewise.
12593 2016-11-15 Martin Jambor <mjambor@suse.cz>
12594 Alexander Monakov <amonakov@ispras.ru>
12596 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12597 mapping clauses to target constructs.
12598 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12600 2016-11-15 Matthias Klose <doko@ubuntu.com>
12602 * configure: Regenerate.
12604 2016-11-10 Jakub Jelinek <jakub@redhat.com>
12606 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12607 * omp_lib.h.in (openmp_version): Likewise.
12608 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12610 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12612 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12613 (fib_wrapper): Add map(from: x) clause.
12614 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12615 (e_53_2): Likewise.
12616 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12617 (accum): Add map(tmp) clause.
12618 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12619 (accum): Add map(tofrom: tmp) clause.
12620 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12621 (gramSchmidt): Likewise.
12622 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12623 map(tofrom: sum) clause.
12624 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12625 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
12626 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12627 only allowed on the loop iterator.
12628 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12629 * testsuite/libgomp.fortran/taskloop2.f90: New test.
12630 * testsuite/libgomp.fortran/taskloop4.f90: New test.
12631 * testsuite/libgomp.fortran/doacross1.f90: New test.
12632 * testsuite/libgomp.fortran/doacross3.f90: New test.
12633 * testsuite/libgomp.fortran/taskloop1.f90: New test.
12634 * testsuite/libgomp.fortran/taskloop3.f90: New test.
12635 * testsuite/libgomp.fortran/doacross2.f90: New test.
12636 * testsuite/libgomp.c/doacross-1.c (main): Add missing
12637 #pragma omp atomic read.
12638 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12639 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12641 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
12642 Nathan Sidwell <nathan@acm.org>
12644 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12645 to determine default geometry.
12646 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12649 2016-11-01 Jakub Jelinek <jakub@redhat.com>
12651 * hashtab.h: Use standard GPLv3 with runtime exception
12654 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
12656 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12657 size when allocating new thread.
12659 2016-09-14 Marek Polacek <polacek@redhat.com>
12661 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12663 2016-08-19 Jakub Jelinek <jakub@redhat.com>
12666 * testsuite/libgomp.fortran/pr71014.f90: New test.
12668 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
12670 PR middle-end/70895
12671 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12672 firstprivate clauses.
12673 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12675 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12676 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12677 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12678 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12679 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12680 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12681 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12682 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12683 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12684 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12685 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12686 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12688 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
12691 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12693 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12696 * testsuite/libgomp.c++/pr58706.C: New test.
12698 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
12700 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12701 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12702 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12704 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12705 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12707 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12709 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12710 test, and don't hardcode -O0.
12712 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12714 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12716 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12718 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12721 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
12723 PR middle-end/71734
12724 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12725 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12727 2016-07-01 Jakub Jelinek <jakub@redhat.com>
12730 * testsuite/libgomp.fortran/associate3.f90: New test.
12732 2016-06-17 Jakub Jelinek <jakub@redhat.com>
12734 * testsuite/libgomp.c++/target-21.C: New test.
12736 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12738 * testsuite/libgomp.c++/target-20.C: New test.
12740 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12741 Cesar Philippidis <cesar@codesourcery.com>
12743 PR middle-end/71373
12744 * libgomp.oacc-c/nested-function-1.c: New file.
12745 * libgomp.oacc-c/nested-function-2.c: Likewise.
12746 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12747 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12748 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12750 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12753 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12754 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12755 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12757 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
12759 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12760 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12762 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
12765 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12767 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12769 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12770 instead of invalid schedule(static, 0).
12771 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12773 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12775 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12776 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12777 parameter, use to set async stream around call to gomp_unmap_vars,
12778 call gomp_unmap_vars() with 'do_copyfrom' set to true.
12779 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12780 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12781 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12782 (event_add): Add int parameter, initialize 'val' field when
12783 adding new ptx_event struct.
12784 (nvptx_evec): Adjust event_add() call arguments.
12785 (nvptx_host2dev): Likewise.
12786 (nvptx_dev2host): Likewise.
12787 (nvptx_wait_async): Likewise.
12788 (nvptx_wait_all_async): Likewise.
12789 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12790 pass to event_add() call.
12791 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12793 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12794 call openacc.register_async_cleanup_func() hook.
12795 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12796 * target.c (gomp_copy_from_async): Delete function.
12797 (gomp_map_vars): Remove async_refcount.
12798 (gomp_unmap_vars): Likewise.
12799 (gomp_load_image_to_device): Likewise.
12800 (omp_target_associate_ptr): Likewise.
12801 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12802 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12803 (gomp_copy_from_async): Remove.
12805 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12807 * target.c (gomp_device_copy): New function.
12808 (gomp_copy_host2dev): Likewise.
12809 (gomp_copy_dev2host): Likewise.
12810 (gomp_free_device_memory): Likewise.
12811 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12812 (gomp_map_pointer): Likewise.
12813 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12814 NULL value from alloc_func plugin hook.
12815 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12816 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12817 (gomp_unmap_vars): Likewise.
12818 (gomp_update): Adjust to call gomp_copy_dev2host and
12819 gomp_copy_host2dev functions.
12820 (gomp_unload_image_from_device): Handle false value from
12821 unload_image_func plugin hook.
12822 (gomp_init_device): Handle false value from init_device_func
12824 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12825 (omp_target_free): Adjust to call gomp_free_device_memory.
12826 (omp_target_memcpy): Handle return values from host2dev_func,
12827 dev2host_func, and dev2dev_func plugin hooks.
12828 (omp_target_memcpy_rect_worker): Likewise.
12829 (gomp_target_fini): Handle false value from fini_device_func
12831 * libgomp.h (struct gomp_device_descr): Adjust return type of
12832 init_device_func, fini_device_func, unload_image_func, free_func,
12833 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12834 * oacc-init.c (acc_shutdown_1): Handle false value from
12835 fini_device_func plugin hook.
12836 * oacc-host.c (host_init_device): Change return type to bool.
12837 (host_fini_device): Likewise.
12838 (host_unload_image): Likewise.
12839 (host_free): Likewise.
12840 (host_dev2host): Likewise.
12841 (host_host2dev): Likewise.
12842 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12843 (acc_memcpy_to_device): Likewise.
12844 (acc_memcpy_from_device): Likewise.
12845 (delete_copyout): Add libfnname parameter, handle free_func
12846 hook fatal error case.
12847 (acc_delete): Adjust delete_copyout call.
12848 (acc_copyout): Likewise.
12849 (update_dev_host): Move gomp_mutex_unlock to after
12850 host2dev/dev2host hook calls.
12852 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12853 to 'hsa_error_msg', for clarity.
12854 (hsa_fatal): Likewise.
12855 (hsa_error): New function.
12856 (init_hsa_context): Change return type to bool, adjust to return
12858 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12860 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12861 return false on error.
12862 (get_agent_info): Adjust to return NULL on error.
12863 (destroy_hsa_program): Change return type to bool, adjust to
12864 return false on error.
12865 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12866 (destroy_module): Change return type to bool, adjust to
12867 return false on error.
12868 (GOMP_OFFLOAD_unload_image): Likewise.
12869 (GOMP_OFFLOAD_fini_device): Likewise.
12870 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12871 (GOMP_OFFLOAD_free): Change to return false when called.
12872 (GOMP_OFFLOAD_dev2host): Likewise.
12873 (GOMP_OFFLOAD_host2dev): Likewise.
12874 (GOMP_OFFLOAD_dev2dev): Likewise.
12876 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12877 (CUDA_CALL): Likewise.
12878 (CUDA_CALL_ASSERT): Likewise.
12879 (map_init): Change return type to bool, use CUDA_CALL* macros.
12880 (map_fini): Likewise.
12881 (init_streams_for_device): Change return type to bool, adjust
12883 (fini_streams_for_device): Change return type to bool, adjust
12885 (select_stream_for_async): Release stream_lock before calls to
12886 GOMP_PLUGIN_fatal, adjust call to map_init.
12887 (nvptx_init): Use CUDA_CALL* macros.
12888 (nvptx_attach_host_thread_to_device): Change return type to bool,
12889 use CUDA_CALL* macros.
12890 (nvptx_open_device): Use CUDA_CALL* macros.
12891 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12893 (nvptx_get_num_devices): Use CUDA_CALL* macros.
12894 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12895 (nvptx_exec): Use CUDA_CALL* macros.
12896 (nvptx_alloc): Use CUDA_CALL* macros.
12897 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12898 (nvptx_host2dev): Likewise.
12899 (nvptx_dev2host): Likewise.
12900 (nvptx_wait): Use CUDA_CALL* macros.
12901 (nvptx_wait_async): Likewise.
12902 (nvptx_wait_all): Likewise.
12903 (nvptx_wait_all_async): Likewise.
12904 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12905 use CUDA_CALL* macros, adjust call to map_fini.
12906 (GOMP_OFFLOAD_init_device): Change return type to bool,
12907 adjust code accordingly.
12908 (GOMP_OFFLOAD_fini_device): Likewise.
12909 (GOMP_OFFLOAD_load_image): Adjust calls to
12910 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12911 use CUDA_CALL* macros.
12912 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12914 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12915 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12916 handle error return.
12917 (GOMP_OFFLOAD_dev2host): Likewise.
12918 (GOMP_OFFLOAD_host2dev): Likewise.
12919 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12920 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12922 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
12924 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12925 (acc_free): Likewise.
12926 (acc_memcpy_to_device): Likewise.
12927 (acc_memcpy_from_device): Likewise.
12928 (acc_deviceptr): Likewise.
12929 (acc_hostptr): Likewise.
12930 (acc_is_present): Likewise.
12931 (acc_map_data): Likewise.
12932 (acc_unmap_data): Likewise.
12933 (present_create_copy): Likewise.
12934 (delete_copyout): Likewise.
12935 (update_dev_host): Likewise.
12936 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12937 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12938 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12939 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12940 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12941 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12942 it only runs on nvptx targets.
12943 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12944 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12945 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12946 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12947 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12948 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12949 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12950 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12951 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12952 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12953 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12954 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12955 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12956 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12957 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12958 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12959 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12960 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12961 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12962 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12963 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12964 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12965 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12967 2016-05-23 Martin Jambor <mjambor@suse.cz>
12969 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12971 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
12973 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12974 to gomp_init_targets_once.
12975 (acc_set_device_type): Remove !cached_base_dev condition on call to
12976 gomp_init_targets_once, move call to before acc_device_lock acquire,
12978 (acc_get_device_num): Remove !cached_base_dev condition on call to
12979 gomp_init_targets_once.
12980 (acc_set_device_num): Likewise.
12982 2016-05-16 Martin Jambor <mjambor@suse.cz>
12984 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12986 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
12988 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12989 expected partitioning.
12991 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
12993 PR middle-end/70626
12994 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12995 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12996 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12998 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
13000 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
13003 2016-04-19 Jakub Jelinek <jakub@redhat.com>
13005 PR middle-end/70680
13006 * testsuite/libgomp.c/pr70680-1.c: New test.
13007 * testsuite/libgomp.c/pr70680-2.c: New test.
13009 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13011 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13012 pass parameter variables to subroutines.
13014 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13016 PR middle-end/70643
13017 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
13019 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
13022 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
13023 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13025 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
13027 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
13028 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
13029 GOACC_declare prototype.
13031 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
13032 Merge this file, and...
13033 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
13034 ... this file, and...
13035 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
13036 ... this file, and...
13037 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13038 ... this file, and...
13039 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13040 ... this file, and...
13041 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13042 ... this file, and...
13043 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13044 ... this file, and...
13045 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13046 ... this file, and...
13047 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13048 ... this file, and...
13049 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13050 ... this file, and...
13051 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13052 ... this file, and...
13053 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13054 ... this file, and...
13055 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13056 ... this file into...
13057 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13060 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13061 Make failure observable.
13063 2016-04-12 Jakub Jelinek <jakub@redhat.com>
13065 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13067 * target.c (gomp_target_fallback_firstprivate,
13068 gomp_target_unshare_firstprivate): Removed.
13069 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13070 before waiting for dependencies.
13071 (gomp_target_task_fn): Don't copy firstprivate vars here.
13072 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13073 firstprivate_copies here.
13074 (gomp_create_target_task): Don't initialize firstprivate_copies field.
13075 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13076 explicit/implicit firstprivate.
13078 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
13082 PR tree-optimization/70373
13083 PR middle-end/70533
13084 PR middle-end/70534
13085 PR middle-end/70535
13086 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13088 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13090 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13092 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13094 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13096 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13098 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13100 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13102 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13104 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13105 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13106 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13107 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13109 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13111 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13113 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13115 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13117 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13118 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13119 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13120 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13121 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13122 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13124 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13125 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13126 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13127 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13128 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13129 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13130 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13131 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13132 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13133 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13134 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13135 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13136 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13137 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13138 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13140 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
13141 James Norris <jnorris@codesourcery.com>
13142 Nathan Sidwell <nathan@codesourcery.com>
13143 Julian Brown <julian@codesourcery.com>
13144 Cesar Philippidis <cesar@codesourcery.com>
13145 Chung-Lin Tang <cltang@codesourcery.com>
13146 Tom de Vries <tom@codesourcery.com>
13148 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13149 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13150 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13151 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13152 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13153 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13154 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13155 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13156 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13158 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13160 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13162 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13163 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13164 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13165 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13167 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13169 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13170 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13171 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13172 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13173 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13174 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13175 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13176 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13177 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13178 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13180 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13181 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13182 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13184 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13186 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13188 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13190 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13192 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13193 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13194 ... this new file. Update.
13195 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13196 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13197 ... this new file. Update.
13198 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13199 file. Incorporate...
13200 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13202 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13204 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13206 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13208 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
13210 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13211 set-torture-options.
13213 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
13215 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13217 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13218 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13219 -fno-builtin-acc_on_device instead of -O0.
13220 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13222 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13223 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13225 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13226 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13227 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13228 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13229 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13230 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13231 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13232 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13233 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13234 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13235 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13236 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13237 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13238 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13239 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13240 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13241 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13242 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13244 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13246 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13249 2016-03-24 Martin Liska <mliska@suse.cz>
13251 * plugin/plugin-hsa.c (packet_store_release): New function
13252 that is taken from the HSA runtime manual.
13253 (GOMP_OFFLOAD_run): Use the function.
13255 2016-03-23 Jakub Jelinek <jakub@redhat.com>
13258 * testsuite/libgomp.c++/pr70376.C: New test.
13260 2016-03-23 Tom de Vries <tom@codesourcery.com>
13262 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13263 initialization of lresult and lvresult.
13264 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13266 2016-03-23 James Norris <jnorris@codesourcery.com>
13267 Daichi Fukuoka <dc-fukuoka@sgi.com>
13270 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13271 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13272 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13273 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13275 2016-03-23 Martin Liska <mliska@suse.cz>
13278 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13279 argument just in case a dispatched kernel uses that argument.
13281 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
13283 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13284 -ftree-parallelize-loops/-fopenacc changes.
13285 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13287 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13289 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13291 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13293 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13294 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13296 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13298 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13299 always_ld_library_path the path to libgcc_s.
13301 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13304 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13306 2016-03-09 Tom de Vries <tom@codesourcery.com>
13308 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13309 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13310 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13312 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13313 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13314 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13315 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13317 2016-03-07 Martin Jambor <mjambor@suse.cz>
13319 * testsuite/lib/libgomp.exp
13320 (check_effective_target_hsa_offloading_selected_nocache): New.
13321 (check_effective_target_hsa_offloading_selected): Likewise.
13322 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13323 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13324 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13325 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13326 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13327 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13328 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13329 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13330 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13331 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13332 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13333 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13334 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13335 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13336 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13337 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13338 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13340 2016-03-07 Martin Jambor <mjambor@suse.cz>
13342 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13343 non-shared memory accelerators.
13344 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13345 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13346 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13347 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13348 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13349 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13350 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13351 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13352 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13354 2016-03-07 Martin Jambor <mjambor@suse.cz>
13356 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13359 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13362 * testsuite/libgomp.c++/pr69555-1.C: New test.
13363 * testsuite/libgomp.c++/pr69555-2.C: New test.
13365 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13366 Martin Jambor <mjambor@suse.cz>
13368 * testsuite/lib/libgomp.exp
13369 (check_effective_target_offload_device_shared_as): New proc.
13370 * testsuite/libgomp.c++/declare_target-1.C: New test.
13372 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13375 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13377 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13379 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13380 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13382 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13383 -ftree-parallelize-loops/-fopenacc changes.
13384 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13385 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13387 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13389 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13391 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13393 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13395 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13397 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13399 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13400 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13402 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13403 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13405 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13406 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13409 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13411 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13413 2016-02-19 Jakub Jelinek <jakub@redhat.com>
13416 * testsuite/libgomp.c/pr69805.c: New test.
13418 2016-02-16 Tom de Vries <tom@codesourcery.com>
13421 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13423 2016-02-09 Tom de Vries <tom@codesourcery.com>
13425 PR tree-optimization/69599
13426 * testsuite/libgomp.c/omp-nested-3.c: New test.
13427 * testsuite/libgomp.c/pr46032-2.c: New test.
13428 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13429 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13431 2016-02-09 Tom de Vries <tom@codesourcery.com>
13434 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13436 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13438 * testsuite/libgomp.c/target-31.c: Fix testcase.
13440 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13442 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13444 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13445 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13446 reduction and map clauses.
13447 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13449 2016-02-02 James Norris <jnorris@codesourcery.com>
13451 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13453 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13455 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13456 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13458 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13461 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13463 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13464 (hsa_kmt_lib): Set variables.
13465 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13466 always_ld_library_path.
13467 * Makefile.in: Regenerate.
13468 * configure: Likewise.
13469 * testsuite/Makefile.in: Likewise.
13471 * plugin/configfrag.ac (offload_additional_options)
13472 (offload_additional_lib_paths): Don't amend for hsa offloading.
13473 * configure: Regenerate.
13475 * plugin/configfrag.ac: Don't configure for offloading target if
13476 we don't build the corresponding plugin.
13477 * configure: Regenerate.
13479 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13481 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13482 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13484 2016-01-26 Tom de Vries <tom@codesourcery.com>
13486 PR tree-optimization/69110
13487 * testsuite/libgomp.c/pr69110.c: New test.
13489 2016-01-25 Richard Biener <rguenther@suse.de>
13492 * testsuite/libgomp.c++/pr69393.C: New testcase.
13494 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13496 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13497 function wasn't mapped to the device with non-shared memory.
13499 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13501 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13503 2016-01-19 Martin Jambor <mjambor@suse.cz>
13504 Martin Liska <mliska@suse.cz>
13506 * plugin/Makefrag.am: Add HSA plugin requirements.
13507 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13508 (HSA_RUNTIME_LIB): Likewise.
13509 (HSA_RUNTIME_CPPFLAGS): Likewise.
13510 (HSA_RUNTIME_INCLUDE): New substitution.
13511 (HSA_RUNTIME_LIB): Likewise.
13512 (HSA_RUNTIME_LDFLAGS): Likewise.
13513 (hsa-runtime): New configure option.
13514 (hsa-runtime-include): Likewise.
13515 (hsa-runtime-lib): Likewise.
13516 (PLUGIN_HSA): New substitution variable.
13517 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13519 (PLUGIN_HSA_CPPFLAGS): Likewise.
13520 (PLUGIN_HSA_LDFLAGS): Likewise.
13521 (PLUGIN_HSA_LIBS): Likewise.
13522 Check that we have access to HSA run-time.
13523 * libgomp-plugin.h (offload_target_type): New element
13524 OFFLOAD_TARGET_TYPE_HSA.
13525 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13527 (bool gomp_create_target_task): Updated.
13528 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13529 new field can_run_func.
13530 * libgomp_g.h (GOMP_target_ext): Update prototype.
13531 * oacc-host.c (host_run): Added a new parameter args.
13532 * target.c (calculate_firstprivate_requirements): New function.
13533 (copy_firstprivate_data): Likewise.
13534 (gomp_target_fallback_firstprivate): Use them.
13535 (gomp_target_unshare_firstprivate): New function.
13536 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13538 (GOMP_target): Do host fallback for all shared memory devices. Do not
13539 pass any args to plugins.
13540 (GOMP_target_ext): Introduce device-specific argument parameter args.
13541 Allow host fallback if device shares memory. Do not remap data if
13542 device has shared memory.
13543 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13544 like host fallback for mappings.
13545 (GOMP_target_data): Treat shared memory devices like host fallback.
13546 (GOMP_target_data_ext): Likewise.
13547 (GOMP_target_update): Likewise.
13548 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13549 gomp_create_target_task.
13550 (GOMP_target_enter_exit_data): Likewise.
13551 (omp_target_alloc): Treat shared memory devices like host fallback.
13552 (omp_target_free): Likewise.
13553 (omp_target_is_present): Likewise.
13554 (omp_target_memcpy): Likewise.
13555 (omp_target_memcpy_rect): Likewise.
13556 (omp_target_associate_ptr): Likewise.
13557 (gomp_load_plugin_for_device): Also load can_run.
13558 * task.c (GOMP_PLUGIN_target_task_completion): Free
13559 firstprivate_copies.
13560 (gomp_create_target_task): Accept new argument args and store it to
13562 * plugin/plugin-hsa.c: New file.
13564 2016-01-18 Tom de Vries <tom@codesourcery.com>
13566 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13567 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13568 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13569 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13570 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13571 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13572 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13573 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13574 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13575 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13576 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13578 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13580 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13581 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13582 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13583 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13584 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13585 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13586 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13587 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13589 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13591 2016-01-15 Jakub Jelinek <jakub@redhat.com>
13593 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13595 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13597 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13599 2016-01-12 James Norris <jnorris@codesourcery.com>
13601 * libgomp.texi: Updates for OpenACC.
13603 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
13605 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13607 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13610 * testsuite/libgomp.fortran/pr66680.f90: New test.
13612 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13614 PR middle-end/68960
13615 * testsuite/libgomp.c/pr68960.c: New test.
13617 2016-01-06 Nathan Sidwell <nathan@acm.org>
13619 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13620 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13622 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13624 Update copyright years.
13626 * libgomp.texi: Bump @copying's copyright year.
13628 2015-12-31 Nathan Sidwell <nathan@acm.org>
13630 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13631 dg-additional-options syntax.
13632 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13633 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13634 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13635 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13636 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13637 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13638 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13639 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13640 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13641 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13642 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13643 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13644 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13645 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13646 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13647 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13648 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13649 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13651 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
13653 * libgomp.h (REFCOUNT_LINK): Define.
13654 (struct splay_tree_key_s): Add link_key.
13655 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13656 Replace target address of the pointer with target address of newly
13657 mapped object in the splay tree. Set link pointer on target to the
13658 device address of the mapped object.
13659 (gomp_unmap_vars): Restore target address of the pointer in the splay
13660 tree for REFCOUNT_LINK objects after unmapping.
13661 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13662 declare target link" objects.
13663 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
13664 "omp declare target link" objects, which were mapped for the image.
13665 (gomp_exit_data): Restore target address of the pointer in the splay
13666 tree for REFCOUNT_LINK objects after unmapping.
13667 * testsuite/libgomp.c/target-link-1.c: New file.
13669 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
13671 * libgomp.h (gomp_device_state): New enum.
13672 (struct gomp_device_descr): Replace is_initialized with state.
13673 (gomp_fini_device): Remove declaration.
13674 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13675 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13676 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
13677 (acc_set_device_type): Use state instead of is_initialized.
13678 (acc_set_device_num): Likewise.
13679 * target.c (resolve_device): Use state instead of is_initialized.
13680 Do not initialize finalized device.
13681 (gomp_map_vars): Do nothing if device is finalized.
13682 (gomp_unmap_vars): Likewise.
13683 (gomp_update): Likewise.
13684 (GOMP_offload_register_ver): Use state instead of is_initialized.
13685 (GOMP_offload_unregister_ver): Likewise.
13686 (gomp_init_device): Likewise.
13687 (gomp_unload_device): Likewise.
13688 (gomp_fini_device): Remove.
13689 (gomp_get_target_fn_addr): Do nothing if device is finalized.
13690 (GOMP_target): Go to host fallback if device is finalized.
13691 (GOMP_target_ext): Likewise.
13692 (gomp_exit_data): Do nothing if device is finalized.
13693 (gomp_target_task_fn): Go to host fallback if device is finalized.
13694 (gomp_target_fini): New static function.
13695 (gomp_target_init): Use state instead of is_initialized.
13696 Call gomp_target_fini at exit.
13698 2015-12-09 Tom de Vries <tom@codesourcery.com>
13700 PR tree-optimization/68716
13701 * testsuite/libgomp.c/omp-nested-2.c: New test.
13703 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
13705 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13706 target openacc_nvidia_accel_selected.
13707 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13708 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13709 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13710 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13712 2015-12-01 Julian Brown <julian@codesourcery.com>
13713 James Norris <James_Norris@mentor.com>
13715 * oacc-parallel.c (GOACC_host_data): New function.
13716 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13717 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13718 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13719 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13720 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13721 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13722 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13724 2015-11-30 James Norris <jnorris@codesourcery.com>
13725 Cesar Philippidis <cesar@codesourcery.com>
13728 * libgomp.oacc-fortran/routine-5.f90: New test.
13729 * libgomp.oacc-fortran/routine-7.f90: New test.
13730 * libgomp.oacc-fortran/routine-9.f90: New test.
13732 2015-11-30 Tom de Vries <tom@codesourcery.com>
13734 PR tree-optimization/46032
13735 * testsuite/libgomp.c/pr46032.c: New test.
13737 2015-11-27 Jakub Jelinek <jakub@redhat.com>
13740 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13741 (gomp_create_target_task): Call it before freeing
13742 GOMP_TARGET_TASK_DATA tasks.
13745 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13746 in between case label and OpenMP standalone directives.
13747 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13749 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
13751 * configure: Regenerate.
13753 2015-11-26 Jakub Jelinek <jakub@redhat.com>
13755 * testsuite/libgomp.c/target-35.c: New test.
13757 2015-11-22 James Norris <jnorris@codesourcery.com>
13758 Cesar Philippidis <cesar@codesourcery.com>
13760 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13761 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13762 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13763 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13764 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13766 2015-11-20 Jakub Jelinek <jakub@redhat.com>
13768 PR middle-end/68221
13769 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13770 * testsuite/libgomp.c/reduction-12.c: Likewise.
13771 * testsuite/libgomp.c++/reduction-11.C: Likewise.
13772 * testsuite/libgomp.c++/reduction-12.C: Likewise.
13774 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
13776 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13777 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13778 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13779 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13780 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13782 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13783 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13785 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
13787 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13788 worker & gang cases.
13789 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13791 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
13793 * config/nvptx/priority_queue.c: New file.
13795 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13797 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13800 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13801 Aldy Hernandez <aldyh@redhat.com>
13802 Ilya Verbin <ilya.verbin@intel.com>
13804 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13805 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13806 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13807 iterators or IV by chunk size.
13808 * parallel.c (gomp_resolve_num_threads): Don't assume that
13809 if thr->ts.team is non-NULL, then pool must be non-NULL.
13810 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13811 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13812 GOMP_PLUGIN_target_task_completion.
13813 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13814 * Makefile.in: Regenerate.
13815 * libgomp.h: Shuffle prototypes and forward definitions around so
13816 priority queues can be defined.
13817 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13818 (enum gomp_target_task_state): New enum.
13819 (struct gomp_target_task): Add state, tgt, task and team fields.
13820 (gomp_create_target_task): Change return type to bool, add
13822 (gomp_target_task_fn): Change return type to bool.
13823 (struct gomp_device_descr): Add async_run_func.
13824 (struct gomp_task): Remove children, next_child, prev_child,
13825 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13827 (struct gomp_taskgroup): Remove children.
13828 Add taskgroup_queue.
13829 (struct gomp_team): Change task_queue type to a priority queue.
13830 (splay_compare): Define inline.
13831 (priority_queue_offset): New.
13832 (priority_node_to_task): New.
13833 (task_to_priority_node): New.
13834 * oacc-mem.c: Do not include splay-tree.h.
13835 * priority_queue.c: New file.
13836 * priority_queue.h: New file.
13837 * splay-tree.c: Do not include splay-tree.h.
13838 (splay_tree_foreach_internal): New.
13839 (splay_tree_foreach): New.
13840 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13841 (splay_tree_callback): Define typedef.
13842 * target.c (splay_compare): Move to libgomp.h.
13843 (GOMP_target): Don't adjust *thr in any way around running offloaded
13845 (GOMP_target_ext): Likewise. Handle target nowait.
13846 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13847 return value from gomp_create_target_task, if false, fallthrough
13848 as if no dependencies exist.
13849 (gomp_target_task_fn): Change return type to bool, return true
13850 if the task should have another part scheduled later. Handle
13852 (gomp_load_plugin_for_device): Initialize async_run.
13853 * task.c (gomp_init_task): Initialize children_queue.
13854 (gomp_clear_parent_in_list): New.
13855 (gomp_clear_parent_in_tree): New.
13856 (gomp_clear_parent): Handle priorities.
13857 (GOMP_task): Likewise.
13858 (priority_queue_move_task_first,
13859 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13861 (gomp_create_target_task): Use priority queues. Change return type
13862 to bool, add state argument, return false if for async
13863 {{enter,exit} data,update} constructs no dependencies need to be
13864 waited for, handle target nowait. Set task->fn to NULL instead of
13865 gomp_target_task_fn.
13866 (verify_children_queue): Remove.
13867 (priority_list_upgrade_task): New.
13868 (priority_queue_upgrade_task): New.
13869 (verify_task_queue): Remove.
13870 (priority_list_downgrade_task): New.
13871 (priority_queue_downgrade_task): New.
13872 (gomp_task_run_pre): Use priority queues.
13873 Abstract code out to priority_queue_downgrade_task.
13874 (gomp_task_run_post_handle_dependers): Use priority queues.
13875 (gomp_task_run_post_remove_parent): Likewise.
13876 (gomp_task_run_post_remove_taskgroup): Likewise.
13877 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
13879 (GOMP_taskwait): Likewise.
13880 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
13881 priority-queue_upgrade_task.
13882 (GOMP_taskgroup_start): Use priority queues.
13883 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
13884 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
13886 * taskloop.c (GOMP_taskloop): Handle priorities.
13887 * team.c (gomp_new_team): Call priority_queue_init.
13888 (free_team): Call priority_queue_free.
13889 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13890 team created for target nowait in implicit parallel region.
13891 (gomp_team_start): For nested check, test thr->ts.level instead of
13892 thr->ts.team != NULL.
13893 * testsuite/libgomp.c/doacross-3.c: New test.
13894 * testsuite/libgomp.c/ordered-5.c: New test.
13895 * testsuite/libgomp.c/priority.c: New test.
13896 * testsuite/libgomp.c/target-31.c: New test.
13897 * testsuite/libgomp.c/target-32.c: New test.
13898 * testsuite/libgomp.c/target-33.c: New test.
13899 * testsuite/libgomp.c/target-34.c: New test.
13901 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13903 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13905 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13906 loop is sequential.
13908 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13910 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13911 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13913 2015-11-12 James Norris <jnorris@codesourcery.com>
13914 Joseph Myers <joseph@codesourcery.com>
13916 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13917 * oacc-parallel.c (GOACC_declare): New function.
13918 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13919 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13920 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13921 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13922 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13924 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
13926 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13928 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
13930 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13931 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13933 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13935 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13936 inadvertent commit.
13938 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13940 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13941 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13942 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13943 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13944 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13946 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
13948 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13949 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13951 2015-11-05 Jakub Jelinek <jakub@redhat.com>
13952 Ilya Verbin <ilya.verbin@intel.com>
13954 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13955 GOMP_loop_nonmonotonic_dynamic_start,
13956 GOMP_loop_nonmonotonic_guided_next,
13957 GOMP_loop_nonmonotonic_guided_start,
13958 GOMP_loop_ull_nonmonotonic_dynamic_next,
13959 GOMP_loop_ull_nonmonotonic_dynamic_start,
13960 GOMP_loop_ull_nonmonotonic_guided_next,
13961 GOMP_loop_ull_nonmonotonic_guided_start,
13962 GOMP_parallel_loop_nonmonotonic_dynamic,
13963 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13964 (GOMP_target_41): Renamed to ...
13965 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13967 (GOMP_target_data_41): Renamed to ...
13968 (GOMP_target_data_ext): ... this.
13969 (GOMP_target_update_41): Renamed to ...
13970 (GOMP_target_update_ext): ... this.
13971 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13972 GOMP_target_data_ext and GOMP_target_update_ext instead of
13973 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13974 Export GOMP_loop_nonmonotonic_dynamic_next,
13975 GOMP_loop_nonmonotonic_dynamic_start,
13976 GOMP_loop_nonmonotonic_guided_next,
13977 GOMP_loop_nonmonotonic_guided_start,
13978 GOMP_loop_ull_nonmonotonic_dynamic_next,
13979 GOMP_loop_ull_nonmonotonic_dynamic_start,
13980 GOMP_loop_ull_nonmonotonic_guided_next,
13981 GOMP_loop_ull_nonmonotonic_guided_start,
13982 GOMP_parallel_loop_nonmonotonic_dynamic and
13983 GOMP_parallel_loop_nonmonotonic_guided.
13984 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13985 GOMP_parallel_loop_nonmonotonic_guided,
13986 GOMP_loop_nonmonotonic_dynamic_start,
13987 GOMP_loop_nonmonotonic_guided_start,
13988 GOMP_loop_nonmonotonic_dynamic_next,
13989 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13990 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13991 GOMP_loop_ull_nonmonotonic_guided_start,
13992 GOMP_loop_ull_nonmonotonic_dynamic_next,
13993 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13994 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13996 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
13997 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13998 Use gomp_map_val function.
13999 (gomp_target_fallback_firstprivate): New static function.
14000 (GOMP_target_41): Renamed to ...
14001 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14002 arguments. Move firstprivate fallback handling into a new
14004 (GOMP_target_data_41): Renamed to ...
14005 (GOMP_target_data_ext): ... this.
14006 (GOMP_target_update_41): Renamed to ...
14007 (GOMP_target_update_ext): ... this.
14008 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
14009 gomp_map_0len_lookup instead of gomp_map_lookup.
14010 (omp_target_is_present): Use gomp_map_0len_lookup instead of
14012 * testsuite/libgomp.c/target-28.c: Likewise.
14013 * testsuite/libgomp.c/monotonic-1.c: New test.
14014 * testsuite/libgomp.c/monotonic-2.c: New test.
14015 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
14016 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
14017 * testsuite/libgomp.c/pr66199-5.c: New test.
14018 * testsuite/libgomp.c/pr66199-6.c: New test.
14019 * testsuite/libgomp.c/pr66199-7.c: New test.
14020 * testsuite/libgomp.c/pr66199-8.c: New test.
14021 * testsuite/libgomp.c/pr66199-9.c: New test.
14022 * testsuite/libgomp.c/reduction-11.c: New test.
14023 * testsuite/libgomp.c/reduction-12.c: New test.
14024 * testsuite/libgomp.c/reduction-13.c: New test.
14025 * testsuite/libgomp.c/reduction-14.c: New test.
14026 * testsuite/libgomp.c/reduction-15.c: New test.
14027 * testsuite/libgomp.c/target-12.c (main): Adjust for
14028 omp_target_is_present change for one-past-last element.
14029 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
14030 the same var is both mapped and privatized.
14031 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
14032 handling of zero-length array sections.
14033 * testsuite/libgomp.c/target-28.c: New test.
14034 * testsuite/libgomp.c/target-29.c: New test.
14035 * testsuite/libgomp.c/target-30.c: New test.
14036 * testsuite/libgomp.c/target-teams-1.c: New test.
14037 * testsuite/libgomp.c++/member-6.C: New test.
14038 * testsuite/libgomp.c++/member-7.C: New test.
14039 * testsuite/libgomp.c++/monotonic-1.C: New test.
14040 * testsuite/libgomp.c++/monotonic-2.C: New test.
14041 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
14042 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
14043 * testsuite/libgomp.c++/pr66199-3.C: New test.
14044 * testsuite/libgomp.c++/pr66199-4.C: New test.
14045 * testsuite/libgomp.c++/pr66199-5.C: New test.
14046 * testsuite/libgomp.c++/pr66199-6.C: New test.
14047 * testsuite/libgomp.c++/pr66199-7.C: New test.
14048 * testsuite/libgomp.c++/pr66199-8.C: New test.
14049 * testsuite/libgomp.c++/pr66199-9.C: New test.
14050 * testsuite/libgomp.c++/reduction-11.C: New test.
14051 * testsuite/libgomp.c++/reduction-12.C: New test.
14052 * testsuite/libgomp.c++/target-13.C: New test.
14053 * testsuite/libgomp.c++/target-14.C: New test.
14054 * testsuite/libgomp.c++/target-15.C: New test.
14055 * testsuite/libgomp.c++/target-16.C: New test.
14056 * testsuite/libgomp.c++/target-17.C: New test.
14057 * testsuite/libgomp.c++/target-18.C: New test.
14058 * testsuite/libgomp.c++/target-19.C: New test.
14060 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14062 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14063 and reduction copy.
14064 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14065 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14066 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14067 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14068 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14069 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14070 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14071 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14072 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14073 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14074 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14075 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14076 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14077 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14079 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14081 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14082 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14083 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14084 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14085 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14086 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14087 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14088 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14090 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
14092 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14093 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14094 (GOMP_OFFLOAD_openacc_parallel): Likewise.
14095 * oacc-host.c (host_openacc_exec): Likewise.
14096 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14098 2015-11-03 Julian Brown <julian@codesourcery.com>
14099 Thomas Schwinge <thomas@codesourcery.com>
14101 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14102 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14103 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14105 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14106 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14108 2015-11-03 James Norris <jnorris@codesourcery.com>
14110 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14112 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14114 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14115 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14116 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14117 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14118 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14120 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
14122 * openacc.h (enum acc_device_t): Reformat. Ensure layout
14124 (enum acc_async_t): Reformat.
14125 (acc_on_device): Declare compatible with builtin and provide C++
14127 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14129 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
14130 Cesar Philippidis <cesar@codesourcery.com>
14132 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14133 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14134 ... this. Add a description of the test at the top of the file.
14135 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14136 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14137 ... this. Add a description of the test at the top of the file.
14139 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
14141 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14142 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14143 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14144 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14145 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14146 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14148 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
14150 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14153 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
14156 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14158 2015-10-27 James Norris <jnorris@codesourcery.com>
14160 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14161 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14163 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
14165 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14166 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14168 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14169 acc_device_nvidia usage.
14170 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14171 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14172 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14174 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14175 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14178 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14182 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14183 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14185 2015-10-23 Tom de Vries <tom@codesourcery.com>
14188 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14190 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
14192 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14194 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14196 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
14197 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
14199 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14200 to 0 when mapnum is 0.
14202 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
14204 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14205 Cast to int from int32_t.
14207 2015-10-13 Jakub Jelinek <jakub@redhat.com>
14208 Aldy Hernandez <aldyh@redhat.com>
14209 Ilya Verbin <ilya.verbin@intel.com>
14211 * config/linux/affinity.c (omp_get_place_num_procs,
14212 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14213 * config/linux/doacross.h: New file.
14214 * config/posix/affinity.c (omp_get_place_num_procs,
14215 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14216 * config/posix/doacross.h: New file.
14217 * env.c: Include gomp-constants.h.
14218 (struct gomp_task_icv): Rename run_sched_modifier to
14219 run_sched_chunk_size.
14220 (gomp_max_task_priority_var): New variable.
14221 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14222 (handle_omp_display_env): Change _OPENMP value from 201307 to
14223 201511. Print OMP_MAX_TASK_PRIORITY.
14224 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14225 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14226 chunk_size and run_sched_modifier to run_sched_chunk_size.
14227 (omp_get_max_task_priority, omp_get_initial_device,
14228 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14229 omp_get_partition_place_nums): New functions.
14230 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14231 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14233 (omp_get_num_places_, omp_get_place_num_procs_,
14234 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14235 omp_get_place_proc_ids_8_, omp_get_place_num_,
14236 omp_get_partition_num_places_, omp_get_partition_place_nums_,
14237 omp_get_partition_place_nums_8_, omp_get_initial_device_,
14238 omp_get_max_task_priority_): New functions.
14239 * libgomp_g.h (GOMP_loop_doacross_static_start,
14240 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14241 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14242 GOMP_loop_ull_doacross_dynamic_start,
14243 GOMP_loop_ull_doacross_guided_start,
14244 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14245 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14246 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14247 GOMP_target_data_41, GOMP_target_update_41,
14248 GOMP_target_enter_exit_data): New prototypes.
14249 (GOMP_task): Add prototype argument.
14250 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14251 (struct gomp_doacross_work_share): New type.
14252 (struct gomp_work_share): Add doacross field.
14253 (struct gomp_task_icv): Rename run_sched_modifier to
14254 run_sched_chunk_size.
14255 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14256 GOMP_TASK_UNDEFERRED. Add comments.
14257 (struct gomp_task_depend_entry): Add comments.
14258 (struct gomp_task): Likewise.
14259 (struct gomp_taskgroup): Likewise.
14260 (struct gomp_target_task): New type.
14261 (struct gomp_team): Add comment.
14262 (gomp_get_place_proc_ids_8, gomp_doacross_init,
14263 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14264 gomp_create_target_task, gomp_target_task_fn): New prototypes.
14265 (struct target_var_desc): New type.
14266 (struct target_mem_desc): Adjust comment. Use struct
14267 target_var_desc instead of splay_tree_key for list.
14268 (REFCOUNT_INFINITY): Define.
14269 (struct splay_tree_key_s): Remove copy_from field.
14270 (struct gomp_device_descr): Add dev2dev_func field.
14271 (enum gomp_map_vars_kind): New enum.
14272 (gomp_map_vars): Add one argument.
14273 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14274 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14275 omp_get_place_num_procs, omp_get_place_num_procs_,
14276 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14277 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14278 omp_get_place_num_, omp_get_partition_num_places,
14279 omp_get_partition_num_places_, omp_get_partition_place_nums,
14280 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14281 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14282 omp_target_free, omp_target_is_present, omp_target_memcpy,
14283 omp_target_memcpy_rect, omp_target_associate_ptr and
14284 omp_target_disassociate_ptr.
14285 (GOMP_4.0.2): Renamed to ...
14286 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14287 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14288 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14289 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14290 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14291 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14292 GOMP_loop_ull_doacross_guided_start,
14293 GOMP_loop_ull_doacross_runtime_start,
14294 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14295 GOMP_doacross_ull_wait.
14296 * libgomp.texi: Document omp_get_max_task_priority.
14297 Rename modifier argument to chunk_size for omp_set_schedule and
14298 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14299 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14300 to run_sched_chunk_size renaming.
14301 (GOMP_loop_ordered_runtime_start): Likewise.
14302 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14303 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14304 GOMP_parallel_loop_runtime_start): New functions.
14305 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14306 to run_sched_chunk_size renaming.
14307 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14308 GOMP_loop_doacross_guided_start): New functions or aliases.
14309 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14310 run_sched_modifier to run_sched_chunk_size renaming.
14311 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14312 (gomp_loop_ull_doacross_static_start,
14313 gomp_loop_ull_doacross_dynamic_start,
14314 gomp_loop_ull_doacross_guided_start,
14315 GOMP_loop_ull_doacross_runtime_start): New functions.
14316 (GOMP_loop_ull_doacross_static_start,
14317 GOMP_loop_ull_doacross_dynamic_start,
14318 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14319 * oacc-mem.c (acc_map_data, present_create_copy,
14320 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14322 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14323 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14324 instead of false to gomp_map_vars.
14325 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14326 * omp.h.in (omp_lock_hint_t): New type.
14327 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14328 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14329 omp_get_place_num, omp_get_partition_num_places,
14330 omp_get_partition_place_nums, omp_get_initial_device,
14331 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14332 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14333 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14335 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14336 (omp_lock_hint_none, omp_lock_hint_uncontended,
14337 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14338 omp_lock_hint_speculative): New parameters.
14339 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14340 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14341 omp_get_place_num, omp_get_partition_num_places,
14342 omp_get_partition_place_nums, omp_get_initial_device,
14343 omp_get_max_task_priority): New interfaces.
14344 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14346 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14347 (omp_lock_hint_none, omp_lock_hint_uncontended,
14348 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14349 omp_lock_hint_speculative): New parameters.
14350 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14351 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14352 omp_get_place_num, omp_get_partition_num_places,
14353 omp_get_partition_place_nums, omp_get_initial_device,
14354 omp_get_max_task_priority): New functions and subroutines.
14355 * ordered.c: Include stdarg.h and string.h.
14356 (MAX_COLLAPSED_BITS): Define.
14357 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14358 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14359 GOMP_doacross_ull_wait): New functions.
14360 * target.c: Include errno.h.
14361 (resolve_device): If device is not initialized, call
14362 gomp_init_device on it.
14363 (gomp_map_lookup): New function.
14364 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14365 Don't bump refcount if REFCOUNT_INFINITY. Handle
14366 GOMP_MAP_ALWAYS_TO_P.
14367 (get_kind): Rename is_openacc argument to short_mapkind.
14368 (gomp_map_pointer): Use gomp_map_lookup.
14369 (gomp_map_fields_existing): New function.
14370 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14371 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14372 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14373 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14374 Adjust for tgt->list changed type and copy_from living in there.
14375 (gomp_copy_from_async): Adjust for tgt->list changed type and
14376 copy_from living in there.
14377 (gomp_unmap_vars): Likewise.
14378 (gomp_update): Likewise. Rename is_openacc argument to
14379 short_mapkind. Don't fail if object is not mapped.
14380 (gomp_load_image_to_device): Initialize refcount to
14382 (gomp_target_fallback): New function.
14383 (gomp_get_target_fn_addr): Likewise.
14384 (GOMP_target): Adjust gomp_map_vars caller, use
14385 gomp_get_target_fn_addr and gomp_target_fallback.
14386 (GOMP_target_41): New function.
14387 (gomp_target_data_fallback): New function.
14388 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14389 (GOMP_target_data_41): New function.
14390 (GOMP_target_update): Adjust gomp_update caller.
14391 (GOMP_target_update_41): New function.
14392 (gomp_exit_data, GOMP_target_enter_exit_data,
14393 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14394 omp_target_is_present, omp_target_memcpy,
14395 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14396 omp_target_associate_ptr, omp_target_disassociate_ptr,
14397 gomp_load_plugin_for_device): New functions.
14398 * task.c: Include gomp-constants.h. Include taskloop.c
14399 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14400 (gomp_task_handle_depend): New function.
14401 (GOMP_task): Use it. Add priority argument. Use
14402 gomp-constant.h constants instead of hardcoded numbers.
14403 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14404 (gomp_create_target_task): New function.
14405 (verify_children_queue, verify_taskgroup_queue,
14406 verify_task_queue): New functions.
14407 (gomp_task_run_pre): Call verify_*_queue functions.
14408 If an upcoming tied task is about to leave the sibling or
14409 taskgroup queues in an invalid state, adjust appropriately.
14410 Remove taskgroup argument. Add comments.
14411 (gomp_task_run_post_handle_dependers): Add comments.
14412 (gomp_task_run_post_remove_parent): Likewise.
14413 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14414 (GOMP_taskwait): Likewise. Add comments.
14415 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14416 problem such that the first non parent_depends_on task does not
14417 end up at the end of the children queue.
14418 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14419 GOMP_TASK_UNDEFERRED.
14420 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14421 * taskloop.c: New file.
14422 * testsuite/lib/libgomp.exp
14423 (check_effective_target_offload_device_nonshared_as): New proc.
14424 * testsuite/libgomp.c/affinity-2.c: New test.
14425 * testsuite/libgomp.c/doacross-1.c: New test.
14426 * testsuite/libgomp.c/doacross-2.c: New test.
14427 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14428 Add map clause to target.
14429 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14430 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14431 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14432 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14433 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14435 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14436 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14437 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14438 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14439 not defined. Use those where needed.
14440 * testsuite/libgomp.c/for-4.c: New test.
14441 * testsuite/libgomp.c/for-5.c: New test.
14442 * testsuite/libgomp.c/for-6.c: New test.
14443 * testsuite/libgomp.c/linear-1.c: New test.
14444 * testsuite/libgomp.c/ordered-4.c: New test.
14445 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14446 only allowed on the loop iterator.
14447 * testsuite/libgomp.c/pr66199-3.c: New test.
14448 * testsuite/libgomp.c/pr66199-4.c: New test.
14449 * testsuite/libgomp.c/reduction-7.c: New test.
14450 * testsuite/libgomp.c/reduction-8.c: New test.
14451 * testsuite/libgomp.c/reduction-9.c: New test.
14452 * testsuite/libgomp.c/reduction-10.c: New test.
14453 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14455 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14456 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14457 * testsuite/libgomp.c/target-11.c: New test.
14458 * testsuite/libgomp.c/target-12.c: New test.
14459 * testsuite/libgomp.c/target-13.c: New test.
14460 * testsuite/libgomp.c/target-14.c: New test.
14461 * testsuite/libgomp.c/target-15.c: New test.
14462 * testsuite/libgomp.c/target-16.c: New test.
14463 * testsuite/libgomp.c/target-17.c: New test.
14464 * testsuite/libgomp.c/target-18.c: New test.
14465 * testsuite/libgomp.c/target-19.c: New test.
14466 * testsuite/libgomp.c/target-20.c: New test.
14467 * testsuite/libgomp.c/target-21.c: New test.
14468 * testsuite/libgomp.c/target-22.c: New test.
14469 * testsuite/libgomp.c/target-23.c: New test.
14470 * testsuite/libgomp.c/target-24.c: New test.
14471 * testsuite/libgomp.c/target-25.c: New test.
14472 * testsuite/libgomp.c/target-26.c: New test.
14473 * testsuite/libgomp.c/target-27.c: New test.
14474 * testsuite/libgomp.c/taskloop-1.c: New test.
14475 * testsuite/libgomp.c/taskloop-2.c: New test.
14476 * testsuite/libgomp.c/taskloop-3.c: New test.
14477 * testsuite/libgomp.c/taskloop-4.c: New test.
14478 * testsuite/libgomp.c++/ctor-13.C: New test.
14479 * testsuite/libgomp.c++/doacross-1.C: New test.
14480 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14481 Replace offload_device with offload_device_nonshared_as.
14482 * testsuite/libgomp.c++/for-12.C: New test.
14483 * testsuite/libgomp.c++/for-13.C: New test.
14484 * testsuite/libgomp.c++/for-14.C: New test.
14485 * testsuite/libgomp.c++/linear-1.C: New test.
14486 * testsuite/libgomp.c++/member-1.C: New test.
14487 * testsuite/libgomp.c++/member-2.C: New test.
14488 * testsuite/libgomp.c++/member-3.C: New test.
14489 * testsuite/libgomp.c++/member-4.C: New test.
14490 * testsuite/libgomp.c++/member-5.C: New test.
14491 * testsuite/libgomp.c++/ordered-1.C: New test.
14492 * testsuite/libgomp.c++/reduction-5.C: New test.
14493 * testsuite/libgomp.c++/reduction-6.C: New test.
14494 * testsuite/libgomp.c++/reduction-7.C: New test.
14495 * testsuite/libgomp.c++/reduction-8.C: New test.
14496 * testsuite/libgomp.c++/reduction-9.C: New test.
14497 * testsuite/libgomp.c++/reduction-10.C: New test.
14498 * testsuite/libgomp.c++/reference-1.C: New test.
14499 * testsuite/libgomp.c++/simd14.C: New test.
14500 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14501 * testsuite/libgomp.c++/target-5.C: New test.
14502 * testsuite/libgomp.c++/target-6.C: New test.
14503 * testsuite/libgomp.c++/target-7.C: New test.
14504 * testsuite/libgomp.c++/target-8.C: New test.
14505 * testsuite/libgomp.c++/target-9.C: New test.
14506 * testsuite/libgomp.c++/target-10.C: New test.
14507 * testsuite/libgomp.c++/target-11.C: New test.
14508 * testsuite/libgomp.c++/target-12.C: New test.
14509 * testsuite/libgomp.c++/taskloop-1.C: New test.
14510 * testsuite/libgomp.c++/taskloop-2.C: New test.
14511 * testsuite/libgomp.c++/taskloop-3.C: New test.
14512 * testsuite/libgomp.c++/taskloop-4.C: New test.
14513 * testsuite/libgomp.c++/taskloop-5.C: New test.
14514 * testsuite/libgomp.c++/taskloop-6.C: New test.
14515 * testsuite/libgomp.c++/taskloop-7.C: New test.
14516 * testsuite/libgomp.c++/taskloop-8.C: New test.
14517 * testsuite/libgomp.c++/taskloop-9.C: New test.
14518 * testsuite/libgomp.fortran/affinity1.f90: New test.
14519 * testsuite/libgomp.fortran/affinity2.f90: New test.
14521 2015-10-13 Tom de Vries <tom@codesourcery.com>
14523 PR tree-optimization/67476
14524 * testsuite/libgomp.c/autopar-3.c: New test.
14525 * testsuite/libgomp.c/autopar-4.c: New test.
14526 * testsuite/libgomp.c/autopar-5.c: New test.
14527 * testsuite/libgomp.c/autopar-6.c: New test.
14528 * testsuite/libgomp.c/autopar-7.c: New test.
14529 * testsuite/libgomp.c/autopar-8.c: New test.
14531 2015-10-12 James Norris <jnorris@codesourcery.com>
14533 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14536 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14538 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14539 using load_gcc_lib.
14541 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14543 * oacc-ptx.h: Remove file, moving its content into...
14544 * config/nvptx/fortran.c: ... here...
14545 * config/nvptx/oacc-init.c: ..., here...
14546 * config/nvptx/oacc-parallel.c: ..., and here.
14547 * config/nvptx/openacc.f90: New file.
14548 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14549 (link_ptx): Don't link in predefined bits of PTX code.
14551 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14552 Bernd Schmidt <bernds@codesourcery.com>
14554 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14555 (struct targ_ptx_obj): New.
14556 (nvptx_tdata): Move earlier, change data format.
14557 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14559 (GOMP_OFFLOAD_load_image): Adjust.
14561 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14563 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14564 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14565 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14566 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14567 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14568 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14569 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14570 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14571 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14572 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14573 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14574 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14575 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14576 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14577 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14578 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14579 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14580 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14581 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14582 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14583 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14584 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14585 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14586 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14587 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14588 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14589 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14590 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14591 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14592 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14593 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14594 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14595 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14596 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14597 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14598 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14599 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14600 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14601 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14602 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14603 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14604 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14605 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14606 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14607 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14608 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14609 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14610 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14611 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14612 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14613 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14614 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14615 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14616 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14617 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14618 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14619 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14620 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14621 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14622 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14623 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14624 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14625 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14627 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14629 * oacc-init.c (acc_on_device): Force optimization level.
14631 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14633 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14634 (cuda_errlist): Delete.
14635 (cuda_error): Reimplement.
14637 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14639 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14641 * libgomp.map (GOACC_parallel_keyed): New.
14642 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
14644 (GOACC_parallel_keyed): New interface. Lose geometry arguments
14645 and take keyed varargs list. Adjust call to exec_func.
14646 (GOACC_parallel): Force host fallback.
14647 * libgomp_g.h (GOACC_parallel): Remove.
14648 (GOACC_parallel_keyed): Declare.
14649 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14650 (struct targ_gn_descriptor): Replace name field with launch field.
14651 (nvptx_exec): Lose separate geometry args, take array. Process
14652 dynamic dimensions and adjust.
14653 (struct nvptx_tdata): Replace fn_names field with fn_descs.
14654 (GOMP_OFFLOAD_load_image): Adjust for change in function table
14656 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14658 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14661 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14664 * oacc-int.h (goacc_host_init): Add declaration.
14665 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14666 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14668 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14669 Sebastian Pop <s.pop@samsung.com>
14671 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14673 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14674 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14675 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14676 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14677 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14679 2015-09-03 Jakub Jelinek <jakub@redhat.com>
14681 * configure.tgt: Add missing ;; in between nvptx and rtems
14684 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14686 * config/posix/pool.h (gomp_adjust_thread_attr): New.
14687 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14688 (gomp_thread_pool_reservoir): Add priority member.
14689 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14691 (parse_thread_pools): Likewise.
14692 * team.c (gomp_team_start): Call configuration provided
14693 gomp_adjust_thread_attr(). Destroy thread attributes if
14695 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14697 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14699 * config/posix/pool.h: New.
14700 * config/rtems/pool.h: Likewise.
14701 * config/rtems/proc.c: Likewise.
14702 * libgomp.h (gomp_thread_destructor): Declare.
14703 * team.c: Include configuration provided "pool.h".
14704 (gomp_get_thread_pool): Define in configuration.
14705 (gomp_team_end): Call configuration defined
14706 gomp_release_thread_pool().
14708 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14710 * config/rtems/bar.c: New.
14711 * config/rtems/bar.h: Likewise.
14712 * config/rtems/mutex.c: Likewise.
14713 * config/rtems/mutex.h: Likewise.
14714 * config/rtems/sem.c: Likewise.
14715 * config/rtems/sem.h: Likewise.
14716 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14717 <sys/lock.h> header file.
14718 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14719 supported by Newlib.
14720 * configure: Regenerate.
14722 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14724 * team.c (gomp_new_thread_pool): Delete and move content to ...
14725 (gomp_get_thread_pool): ... new function. Allocate and
14726 initialize thread pool on demand.
14727 (get_last_team): Use gomp_get_thread_pool().
14728 (gomp_team_start): Delete thread pool initialization.
14730 2015-09-03 Tom de Vries <tom@codesourcery.com>
14732 PR tree-optimization/65637
14733 * testsuite/libgomp.c/autopar-2.c: New test.
14735 2015-08-29 Tom de Vries <tom@codesourcery.com>
14737 PR tree-optimization/46193
14738 * testsuite/libgomp.c/pr46193.c: New test.
14740 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14743 * libgomp.map: Add 4.0.2 version.
14744 * target.c (offload_image_descr): Add version field.
14745 (gomp_load_image_to_device): Add version argument. Adjust plugin
14746 call. Improve load mismatch diagnostic.
14747 (gomp_unload_image_from_device): Add version argument. Adjust plugin
14749 (GOMP_offload_regster): Make stub function, move bulk to ...
14750 (GOMP_offload_register_ver): ... here. Process version argument.
14751 (GOMP_offload_unregister): Make stub function, move bulk to ...
14752 (GOMP_offload_unregister_ver): ... here. Process version argument.
14753 (gomp_init_device): Process version field.
14754 (gomp_unload_device): Process version field.
14755 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14756 macros. Check plugin version.
14757 * libgomp.h (gomp_device_descr): Add version function field. Adjust
14758 loader and unloader types.
14759 * oacc-host.c: Include gomp-constants.h.
14760 (host_version): New.
14761 (host_load_image, host_unload_image): Adjust.
14762 (host_dispatch): Add host_version.
14763 * plugin/plugin-nvptx.c: Include gomp-constants.h.
14764 (GOMP_OFFLOAD_version): New.
14765 (GOMP_OFFLOAD_load_image): Add version arg and check it.
14766 (GOMP_OFFLOAD_unload_image): Likewise.
14767 * plugin/plugin-host.c: Include gomp-constants.h.
14768 (GOMP_OFFLOAD_version): New.
14769 (GOMP_OFFLOAD_load_image): Add version arg.
14770 (GOMP_OFFLOAD_unload_image): Likewise.
14772 2015-08-24 Tom de Vries <tom@codesourcery.com>
14774 PR tree-optimization/65468
14775 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14777 2015-08-24 Tom de Vries <tom@codesourcery.com>
14779 PR tree-optimization/65468
14780 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14782 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
14786 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14787 (gomp_iter_guided_next): Idem.
14788 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14789 (gomp_iter_ull_guided_next): Idem.
14790 * config/linux/wait.h (do_spin): Idem.
14792 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14794 * libgomp-plugin.h (enum offload_target_type): Remove
14795 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14796 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14797 * openacc.h (enum acc_device_t): Likewise.
14798 * openacc_lib.h: Likewise.
14799 * oacc-init.c (name_of_acc_device_t): Don't handle it.
14800 (acc_on_device): Just use __builtin_acc_on_device.
14801 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14802 of acc_on_device builtin.
14803 * plugin/plugin-host.h: Remove file.
14804 * plugin/plugin-host.c: Likewise, but salvage some content into...
14805 * oacc-host.c: ... this file.
14806 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14807 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14808 * Makefile.in: Regenerate.
14809 * configure: Likewise.
14810 * testsuite/lib/libgomp.exp
14811 (check_effective_target_openacc_host_nonshm_selected): Remove.
14812 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14813 ACC_DEVICE_TYPE=host_nonshm.
14814 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14815 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14816 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14817 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14818 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14819 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14821 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14822 Jakub Jelinek <jakub@redhat.com>
14824 * config/nvptx/affinity.c: New file.
14825 * config/nvptx/alloc.c: Likewise.
14826 * config/nvptx/bar.c: Likewise.
14827 * config/nvptx/barrier.c: Likewise.
14828 * config/nvptx/critical.c: Likewise.
14829 * config/nvptx/env.c: Likewise.
14830 * config/nvptx/error.c: Likewise.
14831 * config/nvptx/fortran.c: Likewise.
14832 * config/nvptx/iter.c: Likewise.
14833 * config/nvptx/iter_ull.c: Likewise.
14834 * config/nvptx/libgomp-plugin.c: Likewise.
14835 * config/nvptx/lock.c: Likewise.
14836 * config/nvptx/loop.c: Likewise.
14837 * config/nvptx/loop_ull.c: Likewise.
14838 * config/nvptx/mutex.c: Likewise.
14839 * config/nvptx/oacc-async.c: Likewise.
14840 * config/nvptx/oacc-cuda.c: Likewise.
14841 * config/nvptx/oacc-host.c: Likewise.
14842 * config/nvptx/oacc-init.c: Likewise.
14843 * config/nvptx/oacc-mem.c: Likewise.
14844 * config/nvptx/oacc-parallel.c: Likewise.
14845 * config/nvptx/oacc-plugin.c: Likewise.
14846 * config/nvptx/omp-lock.h: Likewise.
14847 * config/nvptx/ordered.c: Likewise.
14848 * config/nvptx/parallel.c: Likewise.
14849 * config/nvptx/proc.c: Likewise.
14850 * config/nvptx/ptrlock.c: Likewise.
14851 * config/nvptx/sections.c: Likewise.
14852 * config/nvptx/sem.c: Likewise.
14853 * config/nvptx/single.c: Likewise.
14854 * config/nvptx/splay-tree.c: Likewise.
14855 * config/nvptx/target.c: Likewise.
14856 * config/nvptx/task.c: Likewise.
14857 * config/nvptx/team.c: Likewise.
14858 * config/nvptx/time.c: Likewise.
14859 * config/nvptx/work.c: Likewise.
14860 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14861 * configure: Regenerate.
14862 * configure.tgt (config_path): Set to "nvptx" for target
14865 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14867 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14869 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
14871 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14872 (cuda_errlist): Constify.
14873 (errmsg): Move into ...
14874 (cuda_error): ... here. Make smaller.
14875 (_XSTR, _STR): Delete.
14876 (cuda_synames): Delete.
14877 (verify_device_library): Delete.
14878 (nvptx_init): Don't call it.
14880 2015-07-28 Tom de Vries <tom@codesourcery.com>
14882 * testsuite/libgomp.c/uns-outer-4.c: New test.
14884 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14886 * testsuite/libgomp.c/pr66714.c: New test.
14888 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
14891 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14892 (fib_ref): New function.
14893 (fib): Correct corner cases in the recursion.
14894 (main): Replace the non-simd loop with fib_ref call.
14895 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14897 (fibonacci): Lower the parameter N to 30. Correct accordingly check
14898 for the last array element value. Replace the non-simd loop with
14899 fib_ref call. Remove redundant b_ref array. Remove the comparison
14900 of the last array element with according Fibonacci sequence element.
14901 (fib): Correct corner cases in the recursion.
14903 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
14905 * target.c (gomp_offload_image_to_device): Rename to ...
14906 (gomp_load_image_to_device): ... here.
14907 (GOMP_offload_register): Adjust call.
14908 (gomp_init_device): Likewise.
14909 (gomp_unload_image_from_device): New. Broken out of ...
14910 (GOMP_offload_unregister): ... here. Call it.
14911 (gomp_unload_device): New.
14912 * libgomp.h (gomp_unload_device): Declare.
14913 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14916 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
14918 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14920 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14922 (goacc_waits): Move !num_waits handling to ...
14923 (GOACC_wait): ... here, the only caller that might have zero waits.
14925 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14926 (struct ptx_image_data): Move earlier, add fns field.
14927 (struct ptx_device): Add images and image_lock fields.
14928 (ptx_images, ptx_image_lock): Delete.
14929 (nvptx_open_device): Initialize images and image_lock fields.
14930 (nvptx_close_device): Destroy image_lock.
14931 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14932 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14935 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14937 * target.c (GOMP_offload_register): Use int for device type arg.
14938 (GOMP_offload_unregister): Likewise.
14940 * target.c (struct_offload_image_descr): Constify host_table.
14941 (gomp_offload_image_to_device): Likewise.
14942 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14944 * libgomp.h (gomp_device_descr): Constify target data arguments.
14945 * target.c (struct offload_image_descr): Constify target_data.
14946 (gomp_offload_image_to_device): Likewise.
14947 (GOMP_offload_register): Likewise.
14948 (GOMP_offload_unregister): Likewise.
14949 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14950 GOMP_OFFLOAD_unload_image): Constify target data.
14951 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14952 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14954 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
14956 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14957 Workaround driver library const error.
14958 (struct nvptx_tdata, nvptx_tdata_t): New.
14959 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14962 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
14964 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14965 of EPS parameter from integer to real.
14966 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14967 type of EPS parameter from integer to real.
14969 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
14971 * team.c (get_last_team): New.
14972 (gomp_new_team): Recycle last non-nested team if possible.
14973 (gomp_team_end): Move team work share list free lock destruction
14975 (free_team): ... here.
14977 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
14979 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14980 and ref from int to double. Replaced their comparison with
14981 an inequality of their difference and EPS.
14982 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14983 comparison of pri and a reference number with an inequality of their
14984 difference and EPS.
14985 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14986 the comparison of sum and sum_ref with an inequality of their
14987 difference and EPS.
14988 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14989 the comparison of pri and a reference number with an inequality of
14990 their difference and EPS.
14992 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
14994 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14995 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14996 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14997 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14998 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14999 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
15000 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
15001 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
15002 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
15003 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
15004 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
15005 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
15006 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
15008 (vec_mult): Likewise. Add #pragma omp taskwait.
15009 (main): Adjust caller.
15010 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
15011 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
15012 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
15013 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
15014 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
15015 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
15016 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
15017 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
15018 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
15019 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
15020 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
15021 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
15022 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
15023 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
15024 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
15025 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
15026 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
15027 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
15028 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
15029 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
15030 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
15031 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
15032 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
15033 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
15034 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
15035 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
15036 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15037 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15038 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15039 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15040 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15041 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15042 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15043 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15044 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15045 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15046 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15047 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15048 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15049 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15050 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15051 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15052 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15053 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15054 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15055 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15056 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15057 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15058 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15059 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15060 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15061 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15062 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15063 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15064 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15065 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15066 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15067 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15068 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15069 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15070 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15071 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15072 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15073 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15074 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15075 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15076 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15077 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15078 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15079 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15080 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15081 (vec_mult): Add !$omp taskwait.
15082 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15083 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15084 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15085 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15086 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15087 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15088 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15089 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15090 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15091 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15092 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15093 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15094 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15095 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15096 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15097 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15098 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15099 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15100 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15101 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15102 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15103 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15104 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15105 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15106 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15107 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15108 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15109 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15110 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15111 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15112 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15113 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15114 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15115 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15116 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15117 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15118 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15119 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15120 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15121 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15122 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15123 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15124 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15125 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15126 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15127 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15128 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15129 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15130 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15131 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15132 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15133 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15134 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15135 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15136 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15137 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15138 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15139 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15140 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15141 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15142 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15143 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15144 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15145 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15146 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15147 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15148 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15150 2015-07-10 Tom de Vries <tom@codesourcery.com>
15152 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15153 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15155 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15158 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15159 in a 64-bit configuration.
15160 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15161 offloading testing if no such device is available.
15162 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15163 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15165 2015-07-08 Tom de Vries <tom@codesourcery.com>
15167 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15169 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15171 2015-07-07 Tom de Vries <tom@codesourcery.com>
15173 PR tree-optimization/66642
15174 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15175 iteration count case.
15176 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15177 function, factor out of ...
15178 (main): ... here. Test low iteration count case.
15180 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
15182 * libgomp.h (gomp_thread_pool): Comment last_team field.
15184 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
15186 * testsuite/libgomp.c++/pr66702-1.C: Require
15187 vect_simd_clones effective target.
15188 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15190 2015-06-30 Tom de Vries <tom@codesourcery.com>
15192 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15193 already set. Use DEFAULT_CFLAGS in dg-runtest.
15194 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15197 2015-06-30 Tom de Vries <tom@codesourcery.com>
15199 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15200 already set. Use DEFAULT_CFLAGS in dg-runtest.
15201 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15202 * testsuite/libgomp.c++/pr64824.C: Same.
15203 * testsuite/libgomp.c++/pr64868.C: Same.
15204 * testsuite/libgomp.c++/pr66199-1.C: Same.
15205 * testsuite/libgomp.c++/pr66199-2.C: Same.
15206 * testsuite/libgomp.c++/target-2.C: Same.
15207 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15208 -std=<standard> option.
15209 * testsuite/libgomp.c++/udr-11.C: Same.
15210 * testsuite/libgomp.c++/udr-12.C: Same.
15211 * testsuite/libgomp.c++/udr-13.C: Same.
15212 * testsuite/libgomp.c++/udr-14.C: Same.
15213 * testsuite/libgomp.c++/udr-15.C: Same.
15214 * testsuite/libgomp.c++/udr-16.C: Same.
15215 * testsuite/libgomp.c++/udr-17.C: Same.
15216 * testsuite/libgomp.c++/udr-18.C: Same.
15217 * testsuite/libgomp.c++/udr-19.C: Same.
15218 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15219 * testsuite/libgomp.c++/simd-1.C: Same.
15220 * testsuite/libgomp.c++/simd-2.C: Same.
15221 * testsuite/libgomp.c++/simd-3.C: Same.
15222 * testsuite/libgomp.c++/simd-4.C: Same.
15223 * testsuite/libgomp.c++/simd-5.C: Same.
15224 * testsuite/libgomp.c++/simd-6.C: Same.
15225 * testsuite/libgomp.c++/simd-7.C: Same.
15226 * testsuite/libgomp.c++/simd-8.C: Same.
15227 * testsuite/libgomp.c++/simd-9.C: Same.
15228 * testsuite/libgomp.c++/simd10.C: Same.
15229 * testsuite/libgomp.c++/simd11.C: Same.
15230 * testsuite/libgomp.c++/simd12.C: Same.
15231 * testsuite/libgomp.c++/simd13.C: Same.
15233 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15235 PR middle-end/66702
15236 * testsuite/libgomp.c++/pr66702-1.C: New test.
15237 * testsuite/libgomp.c++/pr66702-2.C: New test.
15239 2015-06-30 Tom de Vries <tom@codesourcery.com>
15241 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15242 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15243 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15244 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15246 2015-06-30 Tom de Vries <tom@codesourcery.com>
15248 PR tree-optimization/66652
15249 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15250 using restrict pointers.
15251 (main): Add arguments to calls to f.
15252 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15254 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
15256 * configure.ac: Fix check for header <sys/sysctl.h>.
15257 * configure: Regenerate.
15258 * config.h.in: Likewise.
15260 2015-06-23 Tom de Vries <tom@codesourcery.com>
15262 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15264 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15266 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
15268 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15272 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15273 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15275 2015-06-15 Tom de Vries <tom@codesourcery.com>
15277 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
15278 dg-additional-options for any remaining options.
15279 * testsuite/libgomp.c/atomic-2.c: Same.
15280 * testsuite/libgomp.c/atomic-4.c: Same.
15281 * testsuite/libgomp.c/atomic-5.c: Same.
15282 * testsuite/libgomp.c/atomic-6.c: Same.
15283 * testsuite/libgomp.c/autopar-1.c: Same.
15284 * testsuite/libgomp.c/copyin-1.c: Same.
15285 * testsuite/libgomp.c/copyin-2.c: Same.
15286 * testsuite/libgomp.c/copyin-3.c: Same.
15287 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15288 * testsuite/libgomp.c/nestedfn-5.c: Same.
15289 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15290 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15291 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15292 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15293 * testsuite/libgomp.c/pr32362-1.c: Same.
15294 * testsuite/libgomp.c/pr32362-2.c: Same.
15295 * testsuite/libgomp.c/pr32362-3.c: Same.
15296 * testsuite/libgomp.c/pr39591-1.c: Same.
15297 * testsuite/libgomp.c/pr39591-2.c: Same.
15298 * testsuite/libgomp.c/pr39591-3.c: Same.
15299 * testsuite/libgomp.c/pr58392.c: Same.
15300 * testsuite/libgomp.c/pr58756.c: Same.
15301 * testsuite/libgomp.c/simd-1.c: Same.
15302 * testsuite/libgomp.c/simd-10.c: Same.
15303 * testsuite/libgomp.c/simd-11.c: Same.
15304 * testsuite/libgomp.c/simd-12.c: Same.
15305 * testsuite/libgomp.c/simd-13.c: Same.
15306 * testsuite/libgomp.c/simd-14.c: Same.
15307 * testsuite/libgomp.c/simd-15.c: Same.
15308 * testsuite/libgomp.c/simd-2.c: Same.
15309 * testsuite/libgomp.c/simd-3.c: Same.
15310 * testsuite/libgomp.c/simd-4.c: Same.
15311 * testsuite/libgomp.c/simd-5.c: Same.
15312 * testsuite/libgomp.c/simd-6.c: Same.
15313 * testsuite/libgomp.c/simd-7.c: Same.
15314 * testsuite/libgomp.c/simd-8.c: Same.
15315 * testsuite/libgomp.c/simd-9.c: Same.
15317 2015-06-15 Tom de Vries <tom@codesourcery.com>
15319 * testsuite/libgomp.c/pr35625.c: Fix typo.
15321 2015-06-15 Tom de Vries <tom@codesourcery.com>
15323 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15325 * testsuite/libgomp.c/atomic-3.c: Same.
15326 * testsuite/libgomp.c/debug-1.c: Same.
15327 * testsuite/libgomp.c/nqueens-1.c: Same.
15328 * testsuite/libgomp.c/pr26171.c: Same.
15329 * testsuite/libgomp.c/pr48591.c: Same.
15330 * testsuite/libgomp.c/pr64824.c: Same.
15331 * testsuite/libgomp.c/pr64868.c: Same.
15332 * testsuite/libgomp.c/pr66133.c: Same.
15333 * testsuite/libgomp.c/pr66199-1.c: Same.
15334 * testsuite/libgomp.c/pr66199-2.c: Same.
15335 * testsuite/libgomp.c/target-8.c: Same.
15337 2015-06-15 Tom de Vries <tom@codesourcery.com>
15339 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15341 * testsuite/libgomp.c/for-1.c: Same.
15342 * testsuite/libgomp.c/for-2.c: Same.
15343 * testsuite/libgomp.c/for-3.c: Same.
15344 * testsuite/libgomp.c/pr35625.c: Same.
15345 * testsuite/libgomp.c/pr39154.c: Same.
15346 * testsuite/libgomp.c/simd-16.c: Same.
15347 * testsuite/libgomp.c/simd-17.c: Same.
15349 2015-06-13 Tom de Vries <tom@codesourcery.com>
15351 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15353 2015-06-13 Tom de Vries <tom@codesourcery.com>
15355 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15356 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15357 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15359 (main): Use N instead of hardcoded constants.
15361 2015-06-05 Tom de Vries <tom@codesourcery.com>
15363 merge from gomp4 branch:
15364 2015-05-28 Tom de Vries <tom@codesourcery.com>
15366 PR tree-optimization/65443
15367 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15368 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15369 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15371 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15373 * testsuite/libgomp.graphite/bounds.c: Adjust for
15374 cleanup-tree-dump removal.
15375 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15376 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15377 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15378 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15379 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15380 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15381 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15382 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15383 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15384 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15386 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
15388 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15389 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15390 (futex_wake) [!__x86_64__]: Ditto.
15392 2015-05-28 Julian Brown <julian@codesourcery.com>
15394 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15395 function comment. Only call gomp_fatal if new argument is true.
15396 (acc_dev_num_out_of_range): New function.
15397 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15398 acc_dev_num_out_of_range as appropriate.
15399 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15400 (acc_get_device_num, acc_set_device_num): Update calls to
15402 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15405 2015-05-28 Julian Brown <julian@codesourcery.com>
15408 * oacc-init.c (plugin/plugin-host.h): Include.
15409 (acc_on_device): Check whether we're in an offloaded region for
15411 plugin. Don't use __builtin_acc_on_device.
15412 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15413 nonshm_exec flag in thread-local data.
15414 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15415 data for host_nonshm plugin.
15416 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15417 for host_nonshm plugin.
15418 * plugin/plugin-host.h: New.
15420 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15422 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15424 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15426 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15428 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15429 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15432 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15434 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15436 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15438 * target.c (gomp_map_pointer): New function abstracting out
15439 GOMP_MAP_POINTER handling.
15440 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15441 gomp_map_pointer().
15443 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15445 PR middle-end/66199
15446 * testsuite/libgomp.c/pr66199-1.c: New test.
15447 * testsuite/libgomp.c/pr66199-2.c: New test.
15448 * testsuite/libgomp.c++/pr66199-1.C: New test.
15449 * testsuite/libgomp.c++/pr66199-2.C: New test.
15450 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15451 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15453 2015-05-19 Julian Brown <julian@codesourcery.com>
15455 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15458 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15460 PR middle-end/66133
15461 * testsuite/libgomp.c/pr66133.c: New test.
15463 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15465 * Makefile.in: Regenerated with automake-1.11.6.
15466 * aclocal.m4: Likewise.
15467 * config.h.in: Likewise.
15468 * configure: Likewise.
15469 * testsuite/Makefile.in: Likewise.
15471 2015-05-08 Jason Merrill <jason@redhat.com>
15473 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15476 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15478 2015-05-06 Julian Brown <julian@codesourcery.com>
15480 * oacc-init.c (acc_device_lock): Add explanatory comment.
15481 (resolve_device): Add comment about locking requirement.
15482 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15483 gomp_init_device and gomp_fini_device calls.
15484 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15485 (acc_get_device_num, acc_set_device_num): Add locking around
15486 resolve_device and gomp_init_device calls.
15488 2015-05-06 Julian Brown <julian@codesourcery.com>
15490 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15491 goacc_thread_lock on error paths.
15492 * oacc-mem.c (lookup_host): Remove locking from function. Note
15493 locking requirement for caller in function comment.
15494 (lookup_dev): Likewise.
15495 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15496 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15497 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15500 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15504 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15505 don't expect "0x" prefix for "%p" format specifier, don't expect
15506 "(nil)" for NULL pointer.
15507 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15508 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15509 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15510 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15511 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15512 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15513 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15514 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15515 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15516 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15517 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15518 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15519 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15520 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15521 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15522 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15523 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15524 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15525 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15526 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15527 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15528 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15529 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15530 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15531 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15532 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15533 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15534 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15535 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15536 accurately specify what we're looking for.
15537 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15538 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15539 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15540 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15541 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15543 2015-04-30 James Norris <jnorris@codesourcery.com>
15546 * testsuite/lib/libgomp.exp
15547 (check_effective_target_openacc_host_selected)
15548 (check_effective_target_openacc_host_nonshm_selected): New
15550 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15552 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15553 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15554 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15555 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15556 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15557 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15558 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15559 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15560 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15561 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15562 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15563 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15564 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15565 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15566 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15567 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15568 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15569 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15570 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15571 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15572 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15573 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15574 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15575 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15576 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15577 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15578 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15579 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15580 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15581 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15582 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15583 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15584 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15585 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15586 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15587 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15588 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15589 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15590 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15591 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15592 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15593 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15594 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15596 2015-04-08 Julian Brown <julian@codesourcery.com>
15598 * libgomp.h (target_mem_desc: Remove mem_map field.
15599 (acc_dispatch_t): Remove open_device_func, close_device_func,
15600 get_device_num_func, set_device_num_func, target_data members.
15601 Change create_thread_data_func argument to device number instead of
15603 * oacc-async.c (assert.h): Include.
15604 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15605 (acc_wait_all, acc_wait_all_async): Use current host thread's
15606 active device, not base_dev.
15607 * oacc-cuda.c (acc_get_current_cuda_device)
15608 (acc_get_current_cuda_context, acc_get_cuda_stream)
15609 (acc_set_cuda_stream): Likewise.
15610 * oacc-host.c (host_dispatch): Don't set open_device_func,
15611 close_device_func, get_device_num_func or set_device_num_func.
15612 * oacc-init.c (base_dev, init_key): Remove.
15613 (cached_base_dev): New.
15614 (name_of_acc_device_t): New.
15615 (acc_init_1): Initialise default-numbered device, not zeroth.
15616 (acc_shutdown_1): Close all devices of a given type.
15617 (goacc_destroy_thread): Don't use base_dev.
15618 (lazy_open, lazy_init, lazy_init_and_open): Remove.
15619 (goacc_attach_host_thread_to_device): New.
15620 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15621 (acc_get_num_devices): Don't use base_dev.
15622 (acc_set_device_type): Reimplement.
15623 (acc_get_device_type): Don't use base_dev.
15624 (acc_get_device_num): Tweak logic.
15625 (acc_set_device_num): Likewise.
15626 (acc_on_device): Use acc_get_device_type.
15627 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15628 (goacc_lazy_initialize): Reimplement with acc_init and
15629 goacc_attach_host_thread_to_device.
15630 * oacc-int.h (goacc_thread): Add base_dev field.
15631 (base_dev): Remove extern declaration.
15632 (goacc_attach_host_thread_to_device): Add prototype.
15633 * oacc-mem.c (acc_malloc): Use current thread's device instead of
15635 (acc_free): Likewise.
15636 (acc_memcpy_to_device): Likewise.
15637 (acc_memcpy_from_device): Likewise.
15638 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15639 goacc_lazy_initialize (throughout).
15640 (GOACC_parallel): Use tgt_offset to locate target functions.
15641 * target.c (gomp_map_vars): Don't set tgt->mem_map.
15642 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15643 (gomp_load_plugin_for_device): Remove open_device, close_device,
15644 get_device_num, set_device_num openacc hook initialisation. Don't set
15645 openacc.target_data.
15646 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15647 (GOMP_OFFLOAD_openacc_close_device)
15648 (GOMP_OFFLOAD_openacc_get_device_num)
15649 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15650 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15652 * plugin/plugin-nvptx.c (ptx_inited): Remove.
15653 (instantiated_devices, ptx_dev_lock): New.
15654 (struct ptx_image_data): New.
15655 (ptx_devices, ptx_images, ptx_image_lock): New.
15656 (fini_streams_for_device): Reorder cuStreamDestroy call.
15657 (nvptx_get_num_devices): Remove forward declaration.
15658 (nvptx_init): Change return type to bool.
15659 (nvptx_fini): Remove.
15660 (nvptx_attach_host_thread_to_device): New.
15661 (nvptx_open_device): Return struct ptx_device* instead of void*.
15662 (nvptx_close_device): Change argument type to struct ptx_device*,
15663 return type to void.
15664 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15665 (kernel_target_data, kernel_host_table): Remove static globals.
15666 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15667 (GOMP_OFFLOAD_init_device): Reimplement.
15668 (GOMP_OFFLOAD_fini_device): Likewise.
15669 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15670 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15671 (GOMP_OFFLOAD_host2dev): Use ORD argument.
15672 (GOMP_OFFLOAD_openacc_open_device)
15673 (GOMP_OFFLOAD_openacc_close_device)
15674 (GOMP_OFFLOAD_openacc_set_device_num)
15675 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15676 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15680 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15682 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15684 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15685 * libgomp.h (struct gomp_memory_mapping): Remove.
15686 (struct target_mem_desc): Change type of mem_map from
15687 gomp_memory_mapping * to splay_tree_s *.
15688 (struct gomp_device_descr): Remove register_image_func, get_table_func.
15689 Add load_image_func, unload_image_func.
15690 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15691 Remove offload_regions_registered.
15692 (gomp_init_tables): Remove.
15693 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15695 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15696 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15697 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15698 offload_regions_registered.
15699 Initialize load_image_func, unload_image_func, mem_map.root.
15700 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15701 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15702 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15703 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15704 gomp_memory_mapping *. Use dev's lock and splay_tree.
15705 (lookup_dev): Use dev's lock.
15706 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15707 (acc_is_present): Likewise.
15708 (acc_map_data): Likewise.
15709 (acc_unmap_data): Likewise. Use dev's lock.
15710 (present_create_copy): Likewise.
15711 (delete_copyout): Pass dev to lookup_host instead of mem_map.
15712 (update_dev_host): Likewise.
15713 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
15714 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15715 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15716 (GOMP_OFFLOAD_get_table): Remove
15717 (GOMP_OFFLOAD_load_image): New function.
15718 (GOMP_OFFLOAD_unload_image): New function.
15719 * target.c (register_lock): New mutex for offload image registration.
15720 (num_devices): Do not guard with PLUGIN_SUPPORT.
15721 (gomp_realloc_unlock): New static function.
15722 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
15724 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15725 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
15726 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15728 (gomp_unmap_vars): Likewise.
15729 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
15730 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
15731 (gomp_offload_image_to_device): New static function.
15732 (GOMP_offload_register): Add mutex lock.
15733 Call gomp_offload_image_to_device for all initialized devices.
15734 Replace gomp_realloc with gomp_realloc_unlock.
15735 (GOMP_offload_unregister): New function.
15736 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
15737 get_table_func from the plugin with calls to init_device_func and
15738 gomp_offload_image_to_device.
15739 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15741 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
15742 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
15743 (GOMP_target_data): Do not call gomp_init_tables.
15744 (GOMP_target_update): Likewise. Remove argument from gomp_update.
15745 (gomp_load_plugin_for_device): Replace register_image and get_table
15746 with load_image and unload_image in DLSYM ().
15747 (gomp_register_images_for_device): Remove function.
15748 (gomp_target_init): Do not initialize current_device.mem_map.*,
15749 current_device.offload_regions_registered.
15750 Remove call to gomp_register_images_for_device.
15751 Do not free offload_images and num_offload_images.
15753 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15756 * testsuite/libgomp.fortran/pr65597.f90: New test.
15758 2015-03-27 Tom de Vries <tom@codesourcery.com>
15761 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15762 (init, check): New function.
15763 (foo): Change return type to void.
15764 (main): Call init and check.
15766 2015-03-27 Tom de Vries <tom@codesourcery.com>
15769 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15770 (foo): Use M for non-inner loops to scale down test-case.
15772 2015-03-25 Kai Tietz <ktietz@redhat.com>
15775 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15776 (GOACC_data_start): Likewise.
15777 * target.c (gomp_map_vars): Likewise.
15779 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
15781 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15784 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15786 * testsuite/libgomp.c/target-10.c: New test.
15787 * testsuite/libgomp.c++/target-4.C: New test.
15789 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
15791 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15792 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15794 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
15796 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15797 * configure.ac (*-*-rtems*): Assume Pthread is supported.
15798 (pthread.h): Check for this header file.
15799 * configure: Regenerate.
15801 2015-02-25 Tom de Vries <tom@codesourcery.com>
15803 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15804 (check_reduction_op, check_reduction_macro, max, min):
15806 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15808 (main): Use new functions.
15810 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
15812 * target.c (gomp_load_plugin_for_device): Use const char * instead of
15813 char * for variables holding dlerror return values.
15814 (DLSYM_OPT): Ditto.
15816 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15818 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15820 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15821 Cesar Philippidis <cesar@codesourcery.com>
15823 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15824 GOACC_ctaid, and GOACC_nctaid routines.
15826 2015-02-11 Jakub Jelinek <jakub@redhat.com>
15829 * testsuite/libgomp.c/atomic-18.c: New test.
15830 * testsuite/libgomp.c++/atomic-16.C: New test.
15832 2015-02-04 Jakub Jelinek <jakub@redhat.com>
15836 * testsuite/libgomp.c/pr64824.c: New test.
15837 * testsuite/libgomp.c/pr64868.c: New test.
15838 * testsuite/libgomp.c++/pr64824.C: New test.
15839 * testsuite/libgomp.c++/pr64868.C: New test.
15841 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
15844 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15845 Link with -lpthread.
15846 * config/aix/plugin-suffix.h: Delete.
15848 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
15851 * configure.tgt (*-*-aix*): Use config_path "aix posix".
15852 (*-*-darwin*): Use config_path "bsd darwin posix".
15853 (*-*-hpux*): Use config_path "hpux posix".
15854 * target.c: Add include of plugin-suffix.h and use
15855 SONAME_SUFFIX macro.
15856 * config/aix/plugin-suffix.h: New file.
15857 * config/darwin/plugin-suffix.h: New file.
15858 * config/hpux/plugin-suffix.h: New file.
15859 * config/posix/plugin-suffix.h: New file.
15861 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15863 PR middle-end/64734
15864 * libgomp.c/pr64734.c: New test.
15866 2015-01-23 Tom de Vries <tom@codesourcery.com>
15869 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15871 2015-01-23 Tom de Vries <tom@codesourcery.com>
15874 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15877 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
15880 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15881 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15882 formal parameter. Update all users.
15883 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15884 Document unused formal parameter.
15886 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
15888 * oacc-parallel.c: Don't include <alloca.h>.
15889 (GOACC_parallel): Use gomp_alloca instead of alloca.
15891 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
15893 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15895 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
15896 James Norris <jnorris@codesourcery.com>
15897 Tom de Vries <tom@codesourcery.com>
15898 Julian Brown <julian@codesourcery.com>
15899 Cesar Philippidis <cesar@codesourcery.com>
15900 Nathan Sidwell <nathan@codesourcery.com>
15901 Tobias Burnus <burnus@net-b.de>
15903 * Makefile.am (search_path): Add $(top_srcdir)/../include.
15904 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15905 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15906 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15907 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15908 Include $(top_srcdir)/plugin/Makefrag.am.
15909 (nodist_libsubinclude_HEADERS): Add openacc.h.
15910 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15911 openacc.f90, openacc.mod, openacc_kinds.mod.
15912 (omp_lib.mod): Generalize into...
15913 (%.mod): ... this new rule.
15914 (openacc_kinds.mod, openacc.mod): New rules.
15915 * plugin/configfrag.ac: New file.
15916 * configure.ac: Move plugin/offloading support into it. Include
15917 it. Instantiate testsuite/libgomp-test-support.pt.exp.
15918 * plugin/Makefrag.am: New file.
15919 * testsuite/Makefile.am (OFFLOAD_TARGETS)
15920 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15922 (libgomp-test-support.exp): New rule.
15923 (all-local): Depend on it.
15924 * Makefile.in: Regenerate.
15925 * testsuite/Makefile.in: Regenerate.
15926 * config.h.in: Likewise.
15927 * configure: Likewise.
15928 * configure.tgt: Harden shell syntax.
15929 * env.c: Include "oacc-int.h".
15930 (parse_acc_device_type): New function.
15931 (gomp_debug_var, goacc_device_type, goacc_device_num): New
15933 (initialize_env): Initialize those. Call
15934 goacc_runtime_initialize.
15935 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15936 (gomp_fatal): Call gomp_vfatal.
15937 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15938 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15939 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15940 (splay_tree_node, splay_tree, splay_tree_key)
15941 (struct target_mem_desc, struct splay_tree_key_s)
15942 (struct gomp_memory_mapping, struct acc_dispatch_t)
15943 (struct gomp_device_descr, gomp_acc_insert_pointer)
15944 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15945 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15946 (gomp_free_memmap, gomp_fini_device): New declarations.
15947 (gomp_vdebug, gomp_debug): New macros.
15948 Include "splay-tree.h".
15949 * libgomp.map (OACC_2.0): New symbol version. Use for
15950 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15951 acc_set_device_type_h_, acc_get_device_type,
15952 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15953 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15954 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15955 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15956 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15957 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15958 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15959 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15960 acc_copyin_array_h_, acc_present_or_copyin,
15961 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15962 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15963 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15964 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15965 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15966 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15967 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15968 acc_update_device, acc_update_device_32_h_,
15969 acc_update_device_64_h_, acc_update_device_array_h_,
15970 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15971 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15972 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15973 acc_is_present_64_h_, acc_is_present_array_h_,
15974 acc_memcpy_to_device, acc_memcpy_from_device,
15975 acc_get_current_cuda_device, acc_get_current_cuda_context,
15976 acc_get_cuda_stream, acc_set_cuda_stream.
15977 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
15978 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15979 GOACC_update, GOACC_wait, GOACC_get_thread_num,
15980 GOACC_get_num_threads.
15981 (GOMP_PLUGIN_1.0): New symbol version. Use for
15982 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15983 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15984 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15985 GOMP_PLUGIN_acc_thread.
15986 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15987 environment variable.
15988 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15989 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15990 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15991 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15992 (splay_tree_remove): New declarations.
15993 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15994 (splay_tree_remove, splay_tree_lookup): Move into...
15995 * splay-tree.c: ... this new file.
15996 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15997 (splay_tree_node, splay_tree, splay_tree_key)
15998 (struct target_mem_desc, struct splay_tree_key_s)
15999 (struct gomp_device_descr): Don't declare.
16000 (num_devices_openmp): New variable.
16001 (gomp_get_num_devices ): Use it.
16002 (gomp_init_targets_once): New function.
16003 (gomp_get_num_devices ): Use it.
16004 (get_kind, gomp_copy_from_async, gomp_free_memmap)
16005 (gomp_fini_device, gomp_register_image_for_device): New functions.
16006 (gomp_map_vars): Add devaddrs parameter.
16007 (gomp_update): Add mm parameter.
16008 (gomp_init_device): Move most of it into...
16009 (gomp_init_tables): ... this new function.
16010 (gomp_register_images_for_device): Remove function.
16011 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
16012 Make them hidden instead of static.
16013 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
16014 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
16015 (GOMP_target_end_data, GOMP_target_update)
16016 (gomp_load_plugin_for_device, gomp_target_init): Update for
16018 * oacc-async.c: New file.
16019 * oacc-cuda.c: Likewise.
16020 * oacc-host.c: Likewise.
16021 * oacc-init.c: Likewise.
16022 * oacc-int.h: Likewise.
16023 * oacc-mem.c: Likewise.
16024 * oacc-parallel.c: Likewise.
16025 * oacc-plugin.c: Likewise.
16026 * oacc-plugin.h: Likewise.
16027 * oacc-ptx.h: Likewise.
16028 * openacc.f90: Likewise.
16029 * openacc.h: Likewise.
16030 * openacc_lib.h: Likewise.
16031 * plugin/plugin-host.c: Likewise.
16032 * plugin/plugin-nvptx.c: Likewise.
16033 * libgomp-plugin.c: Likewise.
16034 * libgomp-plugin.h: Likewise.
16035 * libgomp_target.h: Remove file after merging content into the
16036 former file. Update all users.
16037 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16038 (offload_targets_s, offload_targets_s_openacc): New variables.
16039 (check_effective_target_openacc_nvidia_accel_present)
16040 (check_effective_target_openacc_nvidia_accel_selected): New
16042 (libgomp_init): Update for OpenACC changes.
16043 * testsuite/libgomp-test-support.exp.in: New file.
16044 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16045 * testsuite/libgomp.oacc-c/c.exp: Likewise.
16046 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16047 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16048 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16049 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16050 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16051 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16052 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16053 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16054 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16055 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16056 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16057 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16058 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16059 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16060 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16061 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16062 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16063 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16064 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16065 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16066 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16067 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16068 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16069 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16070 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16071 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16072 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16073 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16074 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16075 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16076 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16077 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16078 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16079 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16080 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16081 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16082 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16083 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16084 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16085 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16086 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16087 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16088 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16089 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16090 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16091 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16092 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16093 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16094 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16095 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16096 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16097 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16098 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16099 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16100 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16101 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16102 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16103 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16104 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16105 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16106 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16107 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16108 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16109 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16110 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16111 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16112 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16113 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16114 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16115 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16116 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16117 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16118 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16119 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16120 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16121 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16122 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16123 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16124 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16125 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16126 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16127 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16128 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16129 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16130 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16131 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16132 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16133 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16134 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16135 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16136 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16137 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16138 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16139 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16140 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16141 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16142 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16143 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16144 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16145 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16146 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16147 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16148 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16149 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16150 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16151 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16152 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16153 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16154 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16155 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16156 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16157 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16158 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16159 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16160 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16161 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16162 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16163 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16164 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16165 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16166 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16167 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16168 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16169 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16170 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16171 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16172 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16173 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16174 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16175 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16176 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16177 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16178 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16179 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16180 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16181 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16182 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16183 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16185 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16186 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16187 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16188 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16189 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16190 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16191 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16192 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16193 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16194 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16195 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16196 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16197 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16198 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16199 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16200 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16201 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16202 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16203 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16204 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16205 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16206 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16207 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16208 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16209 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16210 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16211 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16212 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16213 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16214 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16215 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16216 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16217 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16218 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16219 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16220 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16221 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16222 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16223 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16224 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16225 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16226 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16227 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16228 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16229 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16230 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16231 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16232 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16233 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16234 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16235 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16236 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16237 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16238 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16239 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16240 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16241 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16242 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16243 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16244 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16246 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
16247 Julian Brown <julian@codesourcery.com>
16248 David Malcolm <dmalcolm@redhat.com>
16250 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16251 to "GNU Offloading and Multi Processing Runtime Library". Change
16253 * configure: Regenerate.
16254 * libgomp.texi: Update.
16256 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
16258 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16260 * configure: Regenerate.
16262 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16263 "intelmic" in $offload_targets.
16265 2015-01-05 Jakub Jelinek <jakub@redhat.com>
16267 Update copyright years.
16269 * libgomp.texi: Bump @copying's copyright year.
16271 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16273 * testsuite/lib/libgomp.exp: Load target-utils.exp.
16274 Move load of target-supports.exp earlier.
16276 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
16278 * testsuite/libgomp.c/target-9.c: New test.
16280 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
16282 * config.h.in: Regenerate.
16283 * configure: Regenerate.
16284 * configure.ac: Add GCC_CHECK_EMUTLS.
16285 * libgomp.h: Add check for USE_EMUTLS: this case
16286 is equal to HAVE_TLS.
16287 * team.c: Likewise.
16289 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
16291 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16293 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16294 Ilya Verbin <ilya.verbin@intel.com>
16296 * testsuite/libgomp.c/target-critical-1.c: New test.
16298 2014-11-26 Jakub Jelinek <jakub@redhat.com>
16300 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16301 to dg-options unless expensive testing is on.
16302 (TESTITERS): Define to N if not defined.
16303 (main): Use TESTITERS instead of N.
16304 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16305 dg-additional-options depending on whether expensive testing is on.
16306 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16307 Decrease N to 100000 and CHUNKSZ to 10000.
16309 2014-11-24 Jakub Jelinek <jakub@redhat.com>
16312 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16313 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16315 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
16317 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16319 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16322 * configure: Regenerated.
16324 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
16326 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16327 vect_simd_clones effective target.
16328 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16330 2014-11-14 Jakub Jelinek <jakub@redhat.com>
16332 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16333 of 32 as block_size.
16334 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16335 instead of 32 as block_size.
16337 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16338 Ilya Verbin <ilya.verbin@intel.com>
16340 * Makefile.in: Regenerate.
16341 * configure: Regenerate.
16342 * configure.ac: Set up offload_additional_options,
16343 offload_additional_lib_paths and offload_targets.
16344 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16345 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16346 * testsuite/Makefile.in: Regenerate.
16347 * testsuite/lib/libgomp.exp (libgomp_init): Append
16348 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16349 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16350 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16352 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16353 Ilya Verbin <ilya.verbin@intel.com>
16354 Kirill Yukhin <kirill.yukhin@intel.com>
16355 Ilya Tocar <ilya.tocar@intel.com>
16357 * testsuite/lib/libgomp.exp
16358 (check_effective_target_offload_device): New.
16359 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16360 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16361 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16362 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16363 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16364 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16365 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16366 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16367 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16368 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16369 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16370 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16371 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16372 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16373 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16374 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16375 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16376 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16377 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16378 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16379 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16380 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16381 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16382 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16383 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16384 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16385 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16386 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16387 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16388 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16389 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16390 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16391 * testsuite/libgomp.c/target-7.c: Fix test.
16392 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16393 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16394 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16395 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16396 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16397 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16398 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16399 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16400 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16401 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16402 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16403 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16404 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16405 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16406 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16407 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16408 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16409 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16410 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16411 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16412 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16413 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16414 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16415 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16416 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16417 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16418 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16419 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16420 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16421 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16422 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16424 2014-11-13 Jakub Jelinek <jakub@redhat.com>
16425 Ilya Verbin <ilya.verbin@intel.com>
16426 Thomas Schwinge <thomas@codesourcery.com>
16427 Andrey Turetskiy <andrey.turetskiy@intel.com>
16429 * libgomp.map (GOMP_4.0.1): New symbol version.
16430 Add GOMP_offload_register.
16431 * libgomp_target.h: New file.
16432 * splay-tree.h: New file.
16433 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16434 (gomp_target_init): New forward declaration.
16435 (gomp_is_initialized): New static variable.
16436 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16437 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16439 (offload_images, num_offload_images, devices, num_devices): New static
16441 (splay_compare): New static function.
16442 (struct gomp_device_descr): New structure.
16443 (gomp_get_num_devices): Call gomp_target_init.
16444 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16445 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16446 (GOMP_offload_register): New function.
16447 (GOMP_target): Arrange for host callback to be performed in a separate
16448 initial thread and contention group, inheriting ICVs from
16449 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16450 Add device initialization and lookup for target function in splay tree.
16451 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16452 (GOMP_target_end_data): Call gomp_unmap_vars.
16453 (GOMP_target_update): Add device initialization and call gomp_update.
16454 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16455 (gomp_target_init): New static functions.
16457 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16458 Thomas Schwinge <thomas@codesourcery.com>
16459 Ilya Verbin <ilya.verbin@intel.com>
16460 Andrey Turetskiy <andrey.turetskiy@intel.com>
16462 * config.h.in: Regenerate.
16463 * configure: Regenerate.
16464 * configure.ac: Check for libdl, required for plugin support.
16465 (PLUGIN_SUPPORT): Define if plugins are supported.
16466 (enable_offload_targets): Support Intel MIC targets.
16467 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16469 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16472 * configure: Regenerate.
16474 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16476 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16478 2014-10-06 Marek Polacek <polacek@redhat.com>
16480 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16481 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16482 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16483 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16485 2014-10-06 Marek Polacek <polacek@redhat.com>
16487 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16488 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16489 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16490 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16491 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16492 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16493 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16494 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16495 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16496 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16497 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16498 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16499 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16500 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16501 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16502 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16503 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16504 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16507 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16510 * testsuite/libgomp.c/pr61200.c: New test.
16512 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16515 * testsuite/libgomp.c++/pr63248.C: New test.
16517 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16519 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16520 is not zero, but taskgroup->children is NULL and there are
16521 any task->children, schedule those instead of waiting.
16522 * testsuite/libgomp.c/depend-6.c: New test.
16523 * testsuite/libgomp.c/depend-7.c: New test.
16524 * testsuite/libgomp.c/depend-8.c: New test.
16525 * testsuite/libgomp.c/depend-9.c: New test.
16526 * testsuite/libgomp.c/depend-10.c: New test.
16528 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16530 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16531 (struct gomp_taskwait): New type.
16532 (struct gomp_task): Add taskwait and parent_depends_on, remove
16533 in_taskwait and taskwait_sem fields.
16534 (gomp_finish_task): Don't destroy taskwait_sem.
16535 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16536 taskwait and parent_depends_on.
16537 (GOMP_task): For if (0) tasks with depend clause that depend on
16538 earlier tasks don't defer them, instead call
16539 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16540 Initialize redundant_out field, for redundant out entries just
16541 move them at the end of linked list instead of removing them
16542 completely, and set redundant_out flag instead of redundant.
16543 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16545 (gomp_task_run_post_handle_dependers): If parent is in
16546 gomp_task_maybe_wait_for_dependencies and newly runnable task
16547 is not parent_depends_on, queue it in parent->children linked
16548 list after all runnable tasks with parent_depends_on set.
16549 Adjust for addition of taskwait indirection.
16550 (gomp_task_run_post_remove_parent): If parent is in
16551 gomp_task_maybe_wait_for_dependencies and task to be removed
16552 is parent_depends_on, decrement n_depend and if needed awake
16553 parent. Adjust for addition of taskwait indirection.
16554 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16555 (gomp_task_maybe_wait_for_dependencies): New function.
16556 * testsuite/libgomp.c/depend-5.c: New test.
16558 2014-07-13 Tobias Burnus <burnus@net-b.de>
16560 * testsuite/libgomp.fortran/pr34020.f90: Make compile
16561 with TS 18508/Fortran 2015.
16563 2014-07-06 Marek Polacek <polacek@redhat.com>
16566 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16568 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16570 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16571 matches regex $lang_source_re, add $lang_include_flags to options.
16572 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16573 * testsuite/libgomp.c++/c++.exp: Likewise.
16574 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16575 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16577 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16579 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16581 * testsuite/libgomp.fortran/fortran.exp: Explain
16582 gfortran-dg-runtest usage.
16584 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16586 * testsuite/libgomp.fortran/simd5.f90: New test.
16587 * testsuite/libgomp.fortran/simd6.f90: New test.
16588 * testsuite/libgomp.fortran/simd7.f90: New test.
16590 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16592 * testsuite/libgomp.c/for-2.c: Define SC to static for
16593 #pragma omp for simd testing.
16594 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16595 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16597 * testsuite/libgomp.c/simd-14.c: New test.
16598 * testsuite/libgomp.c/simd-15.c: New test.
16599 * testsuite/libgomp.c/simd-16.c: New test.
16600 * testsuite/libgomp.c/simd-17.c: New test.
16601 * testsuite/libgomp.c++/for-10.C: Define SC to static for
16602 #pragma omp for simd testing.
16603 * testsuite/libgomp.c++/simd10.C: New test.
16604 * testsuite/libgomp.c++/simd11.C: New test.
16605 * testsuite/libgomp.c++/simd12.C: New test.
16606 * testsuite/libgomp.c++/simd13.C: New test.
16608 * testsuite/libgomp.fortran/aligned1.f03: New test.
16609 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16610 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16611 tasks with !$omp parallel !$omp single.
16612 * testsuite/libgomp.fortran/target8.f90: New test.
16613 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16614 not to use trim in the combiner, instead call elemental function.
16615 (fn): New elemental function.
16616 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16618 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16620 * testsuite/libgomp.fortran/udr12.f90: New test.
16621 * testsuite/libgomp.fortran/udr13.f90: New test.
16622 * testsuite/libgomp.fortran/udr14.f90: New test.
16623 * testsuite/libgomp.fortran/udr15.f90: New test.
16625 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16627 * omp_lib.f90.in (openmp_version): Set to 201307.
16628 * omp_lib.h.in (openmp_version): Likewise.
16629 * testsuite/libgomp.c/target-8.c: New test.
16630 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16631 and inbranch clauses.
16632 * testsuite/libgomp.fortran/depend-3.f90: New test.
16633 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16635 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16636 * testsuite/libgomp.fortran/target1.f90: New test.
16637 * testsuite/libgomp.fortran/target2.f90: New test.
16638 * testsuite/libgomp.fortran/target3.f90: New test.
16639 * testsuite/libgomp.fortran/target4.f90: New test.
16640 * testsuite/libgomp.fortran/target5.f90: New test.
16641 * testsuite/libgomp.fortran/target6.f90: New test.
16642 * testsuite/libgomp.fortran/target7.f90: New test.
16644 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16647 * testsuite/libgomp.fortran/allocatable9.f90: New test.
16648 * testsuite/libgomp.fortran/allocatable10.f90: New test.
16649 * testsuite/libgomp.fortran/allocatable11.f90: New test.
16650 * testsuite/libgomp.fortran/allocatable12.f90: New test.
16651 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16652 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16653 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16654 * testsuite/libgomp.fortran/associate1.f90: New test.
16655 * testsuite/libgomp.fortran/associate2.f90: New test.
16656 * testsuite/libgomp.fortran/procptr1.f90: New test.
16658 2014-06-06 Jakub Jelinek <jakub@redhat.com>
16660 * testsuite/libgomp.fortran/simd1.f90: New test.
16661 * testsuite/libgomp.fortran/udr1.f90: New test.
16662 * testsuite/libgomp.fortran/udr2.f90: New test.
16663 * testsuite/libgomp.fortran/udr3.f90: New test.
16664 * testsuite/libgomp.fortran/udr4.f90: New test.
16665 * testsuite/libgomp.fortran/udr5.f90: New test.
16666 * testsuite/libgomp.fortran/udr6.f90: New test.
16667 * testsuite/libgomp.fortran/udr7.f90: New test.
16668 * testsuite/libgomp.fortran/udr8.f90: New test.
16669 * testsuite/libgomp.fortran/udr9.f90: New test.
16670 * testsuite/libgomp.fortran/udr10.f90: New test.
16671 * testsuite/libgomp.fortran/udr11.f90: New test.
16673 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
16675 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16676 vect_simd_clones effective target.
16677 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16679 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16681 PR middle-end/61252
16682 * testsuite/libgomp.c++/simd-9.C: New test.
16684 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
16686 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16687 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16688 texts according to their @menu entry positions.
16690 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16692 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16693 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16694 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16695 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16696 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16697 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16698 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16699 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16700 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16701 * testsuite/libgomp.fortran/depend-1.f90: New test.
16702 * testsuite/libgomp.fortran/depend-2.f90: New test.
16703 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16704 * testsuite/libgomp.fortran/simd1.f90: New test.
16705 * testsuite/libgomp.fortran/simd2.f90: New test.
16706 * testsuite/libgomp.fortran/simd3.f90: New test.
16707 * testsuite/libgomp.fortran/simd4.f90: New test.
16708 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16710 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16712 * testsuite/libgomp.c/simd-10.c: New test.
16713 * testsuite/libgomp.c/simd-11.c: New test.
16714 * testsuite/libgomp.c/simd-12.c: New test.
16715 * testsuite/libgomp.c/simd-13.c: New test.
16717 2014-04-24 Jakub Jelinek <jakub@redhat.com>
16719 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16720 atomic type clauses in any order and optional comma in between.
16721 * testsuite/libgomp.c++/atomic-15.C: Likewise.
16722 * testsuite/libgomp.c/atomic-17.c: Likewise.
16724 * testsuite/libgomp.c/simd-7.c: New test.
16725 * testsuite/libgomp.c/simd-8.c: New test.
16726 * testsuite/libgomp.c/simd-9.c: New test.
16727 * testsuite/libgomp.c/loop-16.c: New test.
16729 2014-04-02 Richard Henderson <rth@redhat.com>
16731 * config/linux/futex.h (futex_wait): Get error value from errno.
16732 (futex_wake): Likewise.
16734 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16737 * testsuite/libgomp.c++/udr-11.C: New test.
16738 * testsuite/libgomp.c++/udr-12.C: New test.
16739 * testsuite/libgomp.c++/udr-13.C: New test.
16740 * testsuite/libgomp.c++/udr-14.C: New test.
16741 * testsuite/libgomp.c++/udr-15.C: New test.
16742 * testsuite/libgomp.c++/udr-16.C: New test.
16743 * testsuite/libgomp.c++/udr-17.C: New test.
16744 * testsuite/libgomp.c++/udr-18.C: New test.
16745 * testsuite/libgomp.c++/udr-19.C: New test.
16747 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16749 Update copyright years
16751 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16753 * hashtab.h: Use the standard form for the copyright notice.
16755 2014-01-02 Tobias Burnus <burnus@net-b.de>
16757 * libgomp.texi: Bump @copying's copyright year.
16759 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
16761 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16762 alloca () with __builtin_alloca ().
16763 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16764 * testsuite/libgomp.c/lock-3.c: Likewise.
16765 * testsuite/libgomp.c/pr48591.c: Likewise.
16767 2013-12-17 Jakub Jelinek <jakub@redhat.com>
16770 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16773 2013-12-16 Jakub Jelinek <jakub@redhat.com>
16776 * testsuite/libgomp.c/pr58756.c: New test.
16778 2013-12-12 Jakub Jelinek <jakub@redhat.com>
16781 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16784 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
16786 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16788 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16789 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16790 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16791 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16794 * libgomp_g.h: Include <stddef.h> for size_t.
16796 * libgomp.spec.in: Update comment about libgomp's dependencies.
16797 * configure.ac: Likewise.
16798 * configure: Regenerate.
16800 2013-10-16 Tobias Burnus <burnus@net-b.de>
16802 * libgomp.texi: (Runtime Library Routines): Update references for
16803 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16804 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16805 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16806 (Environment Variables): Update references for OpenMP 4.0. Add
16807 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16808 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16811 2013-10-14 Jakub Jelinek <jakub@redhat.com>
16813 * env.c (parse_bind_var): Initialize value to avoid
16814 (false positive) warning.
16816 2013-10-12 Jakub Jelinek <jakub@redhat.com>
16819 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16821 (gomp_init_num_threads): Move i variable declaration into
16822 #ifdef CPU_ALLOC_SIZE block.
16823 * config/linux/affinity.c (gomp_affinity_init_level): Test
16824 gomp_places_list_len == 0 rather than gomp_places_list == 0
16825 when checking for topology reading error.
16826 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16827 * env.c (parse_affinity): Add ignore argument, if true, don't populate
16828 gomp_places_list, only parse env var and always return false.
16829 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
16830 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16831 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16832 and either of these variables were parsed correctly into a places
16835 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16836 Jakub Jelinek <jakub@redhat.com>
16838 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16839 of 5 loopfn matches.
16840 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16841 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16842 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16843 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16844 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16845 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16846 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16847 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16849 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16851 * Makefile.am (omp_lib.mod): Streamline rule.
16852 * Makefile.in: Regenerate.
16854 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16857 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16858 * testsuite/libgomp.fortran/lib1.f90: Likewise.
16859 * testsuite/libgomp.fortran/lib2.f: Likewise.
16860 * testsuite/libgomp.fortran/lib3.f: Likewise.
16862 * configure.ac: Typo fix.
16863 * configure: Regenerate.
16865 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16866 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16868 * omp.h.in: Don't touch the user's namespace.
16870 2013-10-11 Jakub Jelinek <jakub@redhat.com>
16871 Tobias Burnus <burnus@net-b.de>
16872 Richard Henderson <rth@redhat.com>
16874 * target.c: New file.
16875 * Makefile.am (libgomp_la_SOURCES): Add target.c.
16876 * Makefile.in: Regenerated.
16877 * libgomp_g.h (GOMP_task): Add depend argument.
16878 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16879 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16880 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16881 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16882 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16883 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16884 GOMP_taskgroup_start, GOMP_taskgroup_end,
16885 GOMP_parallel_sections): New prototypes.
16886 * fortran.c (omp_is_initial_device): Add ialias_redirect.
16887 (omp_is_initial_device_): New function.
16888 (ULP, STR1, STR2, ialias_redirect): Removed.
16889 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16890 omp_set_default_device_8_, omp_get_default_device_,
16891 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16893 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16894 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16895 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16897 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16898 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16899 omp_set_default_device, omp_set_default_device_,
16900 omp_set_default_device_8_, omp_get_default_device,
16901 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16902 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16903 omp_get_team_num_): Export @@OMP_4.0.
16904 * team.c (struct gomp_thread_start_data): Add place field.
16905 (gomp_thread_start): Clear thr->thread_pool and
16906 thr->task before returning. Use gomp_team_barrier_wait_final
16907 instead of gomp_team_barrier_wait. Initialize thr->place.
16908 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16909 team_cancelled and task_queued_count fields.
16910 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16911 before calling pthread_exit.
16912 (gomp_free_thread): No longer static. Use
16913 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16914 (gomp_team_start): Add flags argument. Set
16915 thr->thread_pool->threads_busy to nthreads immediately after creating
16916 new pool. Use gomp_managed_threads_lock instead of
16917 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
16918 (gomp_team_end): Use gomp_managed_threads_lock instead of
16919 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
16920 of gomp_team_barrier_wait. If team->team_cancelled, call
16921 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16922 rather than thr->ts.work_share.
16923 (initialize_team): Don't call gomp_sem_init here.
16924 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16926 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16927 * env.c (gomp_global_icv): Add default_device_var, target_data and
16928 bind_var initializers.
16929 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16930 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16931 gomp_places_list_len): New variables.
16932 (parse_bind_var, parse_one_place, parse_places_var): New functions.
16933 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16935 (gomp_cancel_var): New global variable.
16936 (parse_int): New function.
16937 (handle_omp_display_env): New function.
16938 (initialize_env): Use it. Initialize default_device_var.
16939 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
16940 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
16941 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
16942 been successfully parsed (and call gomp_init_affinity in that case).
16943 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16944 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16945 omp_get_team_num, omp_is_initial_device): New functions.
16946 * libgomp.h: Include stdlib.h.
16947 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16949 (struct target_mem_desc): Forward declare.
16950 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16951 and thread_limit_var fields.
16952 (gomp_get_num_devices): New prototype.
16953 (gomp_cancel_var): New extern decl.
16954 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16955 team_cancelled and task_queued_count fields. Add comments about
16956 task_{,queued_,running_}count.
16957 (gomp_cancel_kind): New enum.
16958 (gomp_work_share_end_cancel): New prototype.
16959 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16960 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16962 (struct gomp_taskgroup): New type.
16963 (struct gomp_task_depend_entry,
16964 struct gomp_dependers_vec): New types.
16965 (gomp_finish_task): Free depend_hash if non-NULL.
16966 (struct gomp_team_state): Add place_partition_off
16967 and place_partition_len fields.
16968 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16969 gomp_places_list_len): New extern decls.
16970 (struct gomp_thread): Add place field.
16971 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16972 (gomp_init_thread_affinity): Add place argument.
16973 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16974 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16975 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16976 gomp_affinity_init_level, gomp_affinity_print_place): New
16978 (gomp_team_start): Add flags argument.
16979 (gomp_thread_limit_var, gomp_remaining_threads_count,
16980 gomp_remaining_threads_lock): Remove.
16981 (gomp_managed_threads_lock): New variable.
16982 (struct gomp_thread_pool): Add threads_busy field.
16983 (gomp_free_thread): New prototype.
16984 * task.c: Include hashtab.h.
16985 (hash_entry_type): New typedef.
16986 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16987 (gomp_init_task): Clear dependers, depend_hash, depend_count,
16988 copy_ctors_done and taskgroup fields.
16989 (GOMP_task): Add depend argument, handle depend clauses. If
16990 gomp_team_barrier_cancelled or if it's taskgroup has been
16991 cancelled, don't queue or start new tasks. Set copy_ctors_done
16992 field if needed. Initialize taskgroup field. If copy_ctors_done
16993 and already cancelled, don't discard the task. If taskgroup is
16994 non-NULL, enqueue the task into taskgroup queue. Increment
16995 num_children field in taskgroup. Increment task_queued_count.
16996 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16997 gomp_task_run_post_remove_taskgroup): New inline functions.
16998 (gomp_task_run_post_handle_depend_hash,
16999 gomp_task_run_post_handle_dependers,
17000 gomp_task_run_post_handle_depend): New functions.
17001 (GOMP_taskwait): Use them. If more than one new tasks
17002 have been queued, wake other threads if needed.
17003 (gomp_barrier_handle_tasks): Likewise. If
17004 gomp_team_barrier_cancelled, don't start any new tasks, just free
17006 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
17008 (omp_proc_bind_kind, omp_proc_bind_false,
17009 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17010 omp_proc_bind_spread): New params.
17011 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17012 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17013 omp_get_team_num, omp_is_initial_device): New interfaces.
17014 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
17015 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
17016 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
17017 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
17018 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
17019 useless use omp_lib_kinds.
17020 * omp.h.in (omp_proc_bind_t): New typedef.
17021 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17022 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17023 omp_get_team_num, omp_is_initial_device): New prototypes.
17024 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
17025 through to gomp_team_start.
17026 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
17027 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
17028 Adjust gomp_parallel_loop_start callers.
17029 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17030 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17031 GOMP_loop_end_cancel): New functions.
17032 (GOMP_parallel_end): Add ialias_redirect.
17033 * hashtab.h: New file.
17034 * libgomp.texi (Environment Variables): Minor cleanup,
17035 update section refs to OpenMP 4.0rc2.
17036 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17037 environment variables.
17038 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17039 team->work_shares_to_free to thr->ts.work_share before calling
17041 (gomp_work_share_end_cancel): New function.
17042 * config/linux/proc.c: Include errno.h.
17043 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17044 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17045 sizeof (cpu_set_t) to determine number of iterations. Fix up check
17046 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
17047 gomp_cpuset_size is sizeof (cpu_set_t).
17048 (gomp_init_num_threads): Initialize gomp_cpuset_size,
17049 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17050 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17051 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
17052 contain any logical CPUs.
17053 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17054 is NULL. Use gomp_cpusetp instead of &cpuset and pass
17055 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17056 pthread_getaffinity_np. Check gomp_places_list instead of
17057 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
17058 * config/linux/bar.c (gomp_barrier_wait_end,
17059 gomp_barrier_wait_last): Use BAR_* defines.
17060 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
17061 from state where needed. Set work_share_cancelled to 0 on last
17063 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17064 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17066 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17067 Add cpusetsize argument.
17068 (gomp_cpuset_size, gomp_cpusetp): Declare.
17069 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17070 (affinity_counter): Remove.
17071 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17072 if CPU_ALLOC_SIZE isn't defined.
17073 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17074 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17075 bind current thread to the first place.
17076 (gomp_init_thread_affinity): Rewritten. Add place argument, just
17077 pthread_setaffinity_np to gomp_places_list[place].
17078 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17079 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17080 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17081 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17082 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17083 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17084 (gomp_barrier_t): Add awaited_final field.
17085 (gomp_barrier_init): Initialize awaited_final field.
17086 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17087 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17089 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
17091 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17092 gomp_team_barrier_cancelled): New inline functions.
17093 (gomp_barrier_last_thread,
17094 gomp_team_barrier_set_task_pending,
17095 gomp_team_barrier_clear_task_pending,
17096 gomp_team_barrier_set_waiting_for_tasks,
17097 gomp_team_barrier_waiting_for_tasks,
17098 gomp_team_barrier_done): Use BAR_* defines.
17099 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17100 (gomp_barrier_wait_end): Use BAR_* defines.
17101 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17102 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17104 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17105 gomp_team_barrier_cancel): New functions.
17106 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17108 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17109 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17110 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17111 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17112 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17113 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17114 (gomp_barrier_t): Add cancellable field.
17115 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17116 gomp_team_barrier_cancel): New prototypes.
17117 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17118 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17119 gomp_team_barrier_cancelled): New inline functions.
17120 (gomp_barrier_wait_start, gomp_barrier_last_thread,
17121 gomp_team_barrier_set_task_pending,
17122 gomp_team_barrier_clear_task_pending,
17123 gomp_team_barrier_set_waiting_for_tasks,
17124 gomp_team_barrier_waiting_for_tasks,
17125 gomp_team_barrier_done): Use BAR_* defines.
17126 * barrier.c (GOMP_barrier_cancel): New function.
17127 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17128 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17129 omp_proc_bind_spread): New params.
17130 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17131 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17132 omp_get_team_num, omp_is_initial_device): New externals.
17133 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17135 (gomp_resolve_num_threads): Adjust for thread_limit now being in
17136 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17137 infinity. If not nested, just return minimum of max_num_threads
17138 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17139 to the returned value. Otherwise, don't update atomically
17140 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17141 (GOMP_parallel_end): Adjust for thread_limit now being in
17142 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17143 infinity. Adjust threads_busy in the pool rather than
17144 gomp_remaining_threads_count. Remember team->nthreads and call
17145 gomp_team_end before adjusting threads_busy, if not nested
17146 afterwards, just set it to 1 non-atomically. Add ialias.
17147 (GOMP_parallel_start): Adjust gomp_team_start caller.
17148 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17149 * testsuite/libgomp.c/affinity-1.c: New test.
17150 * testsuite/libgomp.c/atomic-15.c: New test.
17151 * testsuite/libgomp.c/atomic-16.c: New test.
17152 * testsuite/libgomp.c/atomic-17.c: New test.
17153 * testsuite/libgomp.c/cancel-for-1.c: New test.
17154 * testsuite/libgomp.c/cancel-for-2.c: New test.
17155 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17156 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17157 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17158 * testsuite/libgomp.c/cancel-sections-1.c: New test.
17159 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17160 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17161 * testsuite/libgomp.c/depend-1.c: New test.
17162 * testsuite/libgomp.c/depend-2.c: New test.
17163 * testsuite/libgomp.c/depend-3.c: New test.
17164 * testsuite/libgomp.c/depend-4.c: New test.
17165 * testsuite/libgomp.c/for-1.c: New test.
17166 * testsuite/libgomp.c/for-1.h: New file.
17167 * testsuite/libgomp.c/for-2.c: New test.
17168 * testsuite/libgomp.c/for-2.h: New file.
17169 * testsuite/libgomp.c/for-3.c: New test.
17170 * testsuite/libgomp.c/pr58392.c: New test.
17171 * testsuite/libgomp.c/simd-1.c: New test.
17172 * testsuite/libgomp.c/simd-2.c: New test.
17173 * testsuite/libgomp.c/simd-3.c: New test.
17174 * testsuite/libgomp.c/simd-4.c: New test.
17175 * testsuite/libgomp.c/simd-5.c: New test.
17176 * testsuite/libgomp.c/simd-6.c: New test.
17177 * testsuite/libgomp.c/target-1.c: New test.
17178 * testsuite/libgomp.c/target-2.c: New test.
17179 * testsuite/libgomp.c/target-3.c: New test.
17180 * testsuite/libgomp.c/target-4.c: New test.
17181 * testsuite/libgomp.c/target-5.c: New test.
17182 * testsuite/libgomp.c/target-6.c: New test.
17183 * testsuite/libgomp.c/target-7.c: New test.
17184 * testsuite/libgomp.c/taskgroup-1.c: New test.
17185 * testsuite/libgomp.c/thread-limit-1.c: New test.
17186 * testsuite/libgomp.c/thread-limit-2.c: New test.
17187 * testsuite/libgomp.c/thread-limit-3.c: New test.
17188 * testsuite/libgomp.c/udr-1.c: New test.
17189 * testsuite/libgomp.c/udr-2.c: New test.
17190 * testsuite/libgomp.c/udr-3.c: New test.
17191 * testsuite/libgomp.c++/affinity-1.C: New test.
17192 * testsuite/libgomp.c++/atomic-10.C: New test.
17193 * testsuite/libgomp.c++/atomic-11.C: New test.
17194 * testsuite/libgomp.c++/atomic-12.C: New test.
17195 * testsuite/libgomp.c++/atomic-13.C: New test.
17196 * testsuite/libgomp.c++/atomic-14.C: New test.
17197 * testsuite/libgomp.c++/atomic-15.C: New test.
17198 * testsuite/libgomp.c++/cancel-for-1.C: New test.
17199 * testsuite/libgomp.c++/cancel-for-2.C: New test.
17200 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17201 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17202 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17203 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17204 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17205 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17206 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17207 * testsuite/libgomp.c++/cancel-test.h: New file.
17208 * testsuite/libgomp.c++/for-9.C: New test.
17209 * testsuite/libgomp.c++/for-10.C: New test.
17210 * testsuite/libgomp.c++/for-11.C: New test.
17211 * testsuite/libgomp.c++/simd-1.C: New test.
17212 * testsuite/libgomp.c++/simd-2.C: New test.
17213 * testsuite/libgomp.c++/simd-3.C: New test.
17214 * testsuite/libgomp.c++/simd-4.C: New test.
17215 * testsuite/libgomp.c++/simd-5.C: New test.
17216 * testsuite/libgomp.c++/simd-6.C: New test.
17217 * testsuite/libgomp.c++/simd-7.C: New test.
17218 * testsuite/libgomp.c++/simd-8.C: New test.
17219 * testsuite/libgomp.c++/target-1.C: New test.
17220 * testsuite/libgomp.c++/target-2.C: New test.
17221 * testsuite/libgomp.c++/target-2-aux.cc: New file.
17222 * testsuite/libgomp.c++/target-3.C: New test.
17223 * testsuite/libgomp.c++/taskgroup-1.C: New test.
17224 * testsuite/libgomp.c++/udr-1.C: New test.
17225 * testsuite/libgomp.c++/udr-2.C: New test.
17226 * testsuite/libgomp.c++/udr-3.C: New test.
17227 * testsuite/libgomp.c++/udr-4.C: New test.
17228 * testsuite/libgomp.c++/udr-5.C: New test.
17229 * testsuite/libgomp.c++/udr-6.C: New test.
17230 * testsuite/libgomp.c++/udr-7.C: New test.
17231 * testsuite/libgomp.c++/udr-8.C: New test.
17232 * testsuite/libgomp.c++/udr-9.C: New test.
17234 2013-09-20 Jakub Jelinek <jakub@redhat.com>
17237 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17240 2013-09-20 Alan Modra <amodra@gmail.com>
17242 * configure: Regenerate.
17244 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17246 * testsuite/libgomp.c/sections-2.c: New test.
17248 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
17250 * testsuite/libgomp.fortran/strassen.f90:
17251 Add dg-skip-if aarch64_tiny.
17253 2013-06-20 Iain Sandoe <iain@codesourcery.com>
17254 Cesar Philippidis <cesar@codesourcery.com>
17256 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17257 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17258 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17259 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17260 * testsuite/libgomp.graphite/graphite.exp: Likewise.
17261 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17262 Use dg-runtest rather than gfortran-dg-runtest.
17264 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
17266 * testsuite/libgomp.c/icv-2.c: Extend current handling of
17267 Linux-based x86 systems to cover all GNU systems.
17268 * testsuite/libgomp.c/lock-3.c: Likewise.
17269 * testsuite/libgomp.c/pr48591.c: Likewise.
17271 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
17273 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17274 GNU/Hurd, as done for Linux-based systems.
17276 * config/posix/ptrlock.h: Fix comment.
17278 2013-05-27 Tobias Burnus <burnus@net-b.de>
17281 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17282 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17283 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17284 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17285 omp_destroy_nest_lock): Correct arguments to match the one in
17287 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17288 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17289 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17290 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17292 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17294 * testsuite/libgomp.c/loop-13.c: New test.
17295 * testsuite/libgomp.c/loop-14.c: New test.
17296 * testsuite/libgomp.c/loop-15.c: New test.
17297 * testsuite/libgomp.c++/loop-13.C: New test.
17298 * testsuite/libgomp.c++/loop-14.C: New test.
17299 * testsuite/libgomp.c++/loop-15.C: New test.
17301 2013-02-06 Jakub Jelinek <jakub@redhat.com>
17303 PR middle-end/56217
17304 * testsuite/libgomp.c++/pr56217.C: New test.
17306 2013-02-01 Alan Modra <amodra@gmail.com>
17308 * task.c (GOMP_task, GOMP_taskwait): Comment.
17310 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17311 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17314 * config/linux/wait.h (do_spin): Use atomic load for addr.
17315 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17316 for intptr and ptrlock.
17317 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17320 2013-01-22 Alan Modra <amodra@gmail.com>
17324 * task.c (GOMP_task): Revert 2011-12-09 change.
17325 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17326 barrier to read task->children..
17327 (gomp_barrier_handle_tasks): ..and matching atomic store with
17328 release barrier here when setting parent->children to NULL.
17330 2013-01-16 Jakub Jelinek <jakub@redhat.com>
17331 Tobias Burnus <burnus@net-b.de>
17334 * testsuite/libgomp.fortran/fortran.exp: Use
17335 -fintrinsic-modules-path= instead of
17336 -fintrinsic-modules-path.
17338 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17340 Update copyright years.
17342 2012-12-19 Tobias Burnus <burnus@net-b.de>
17344 * testsuite/libgomp.fortran/fortran.exp: Set
17345 -fintrinsic-modules-path.
17347 2012-12-19 Tobias Burnus <burnus@net-b.de>
17349 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17350 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17352 2012-11-21 Jakub Jelinek <jakub@redhat.com>
17355 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17356 if pool had any threads_used.
17358 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17360 * testsuite/libgomp.c++/pr24455.C: Use
17361 -Wl,-undefined,dynamic_lookup on darwin.
17363 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
17365 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17367 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17369 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17371 2012-10-23 Ian Bolton <ian.bolton@arm.com>
17372 Jim MacArthur <jim.macarthur@arm.com>
17373 Marcus Shawcroft <marcus.shawcroft@arm.com>
17374 Nigel Stephens <nigel.stephens@arm.com>
17375 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17376 Richard Earnshaw <rearnsha@arm.com>
17377 Sofiane Naci <sofiane.naci@arm.com>
17378 Stephen Thomas <stephen.thomas@arm.com>
17379 Tejas Belagod <tejas.belagod@arm.com>
17380 Yufeng Zhang <yufeng.zhang@arm.com>
17382 * configure.tgt: Add AArch64.
17384 2012-10-04 Jason Merrill <jason@redhat.com>
17386 * testsuite/libgomp.c++/tls-init1.C: New.
17388 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
17390 * configure: Regenerated.
17392 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17394 * config/linux/mips/futex.h (sys_futex0): Change to static
17395 function with noinline, nomips16 attributes under MIPS16. Adjust
17396 asm statement to place 'li v0,SYS_futex' immediately before
17399 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17401 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17402 conflict with index.html on case-insensitive file systems.
17404 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17406 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17407 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17409 2012-07-02 Richard Guenther <rguenther@suse.de>
17410 Michael Matz <matz@suse.de>
17411 Tobias Grosser <tobias@grosser.es>
17412 Sebastian Pop <sebpop@gmail.com>
17414 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17415 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17416 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17417 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17419 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17421 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17423 2012-06-22 Richard Guenther <rguenther@suse.de>
17425 Merge from graphite branch
17426 2012-01-13 Tobias Grosser <tobias@grosser.es>
17428 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17429 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17431 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17433 PR middle-end/53580
17434 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17435 use GOMP_barrier () call instead.
17436 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17437 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17438 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17439 call GOMP_barrier instead.
17440 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17442 2012-06-06 Jakub Jelinek <jakub@redhat.com>
17445 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17446 argument to memset call.
17448 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17450 * configure: Regenerated.
17452 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17454 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17456 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17459 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17461 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17463 PR middle-end/52547
17464 * testsuite/libgomp.c/pr52547.c: New test.
17466 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17468 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17470 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17472 * configure.tgt (mips-sgi-irix6*): Remove.
17474 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17476 * configure.tgt (alpha*-dec-osf*): Remove.
17478 * config/osf/sem.h: Remove.
17479 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17481 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17483 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17485 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17488 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17489 Remove ENABLE_SYMVERS_SOL2.
17490 * configure: Regenerate.
17491 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17492 (PREPROCESS): New variable.
17493 (libgomp.ver): New target.
17494 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17495 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17496 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17498 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17499 * Makefile.in: Regenerate.
17501 2012-02-14 Walter Lee <walt@tilera.com>
17503 * configure.tgt: Handle tilegx and tilepro.
17504 * config/linux/tile/futex.h: New file.
17506 2012-02-08 Richard Guenther <rguenther@suse.de>
17508 PR tree-optimization/46886
17509 * testsuite/libgomp.c/pr46886.c: New testcase.
17511 2012-01-25 Matthias Klose <doko@ubuntu.com>
17513 * config/linux/arm: Remove empty directory.
17514 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17516 2011-12-09 Alan Modra <amodra@gmail.com>
17519 * task.c (GOMP_taskwait): Don't access task->children outside of
17520 task_lock mutex region.
17521 (GOMP_task): Likewise.
17523 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17526 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17528 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17529 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17530 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17531 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17532 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17534 2011-12-02 Alan Modra <amodra@gmail.com>
17536 * config/linux/affinity.c: Use atomic rather than sync builtin.
17537 * config/linux/lock.c: Likewise.
17538 * config/linux/ptrlock.h: Likewise.
17539 * config/linux/ptrlock.c: Likewise.
17540 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17541 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17542 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17543 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17544 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17545 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17546 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17547 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17548 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17549 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17551 2011-11-30 Alan Modra <amodra@gmail.com>
17554 * config/linux/bar.h: Use atomic rather than sync builtins.
17555 * config/linux/bar.c: Likewise. Add missing acquire
17556 synchronisation on generation field.
17557 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17560 2011-11-30 Alan Modra <amodra@gmail.com>
17562 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17563 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17564 * config/linux/mutex.h: Use atomic rather than sync builtins.
17565 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17566 * config/linux/omp-lock.h: Comment fix.
17567 * config/linux/arm/mutex.h: Delete.
17568 * config/linux/powerpc/mutex.h: Delete.
17569 * config/linux/ia64/mutex.h: Delete.
17570 * config/linux/mips/mutex.h: Delete.
17572 2011-11-30 Alan Modra <amodra@gmail.com>
17575 * config/linux/sem.h: Rewrite.
17576 * config/linux/sem.c: Rewrite.
17578 2011-11-28 Richard Henderson <rth@redhat.com>
17580 * libgomp.h (enum memmodel): New.
17582 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
17584 * configure: Regenerate.
17586 2011-10-10 Matthias Klose <doko@ubuntu.com>
17588 * config/posix95: Remove empty directory.
17590 2011-08-26 Jakub Jelinek <jakub@redhat.com>
17592 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17594 2011-08-19 Jakub Jelinek <jakub@redhat.com>
17597 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17598 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17600 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17602 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17604 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17607 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17609 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
17611 * config/linux/proc.h: New.
17612 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
17613 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
17614 (gomp_init_num_threads): Update call to cpuset_popcount.
17615 (get_num_procs): Ditto.
17616 * config/linux/affinity.c (gomp_init_affinity): Call
17617 gomp_cpuset_popcount.
17619 2011-08-02 Jakub Jelinek <jakub@redhat.com>
17623 * omp.h.in (omp_in_final): New prototype.
17624 * omp_lib.f90.in (omp_in_final): New interface.
17625 (omp_integer_kind, omp_logical_kind): Remove
17626 and replace all its uses in the module with 4.
17627 (openmp_version): Change to 201107.
17628 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17629 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17630 kind for the parameters.
17631 (omp_in_final): New external.
17632 (openmp_version): Change to 201107.
17633 * task.c (omp_in_final): New function.
17634 (gomp_init_task): Initialize final_task.
17635 (GOMP_task): Remove unused attribute from flags. Handle final
17637 (GOMP_taskyield): New function.
17638 (omp_in_final): Return true if if (false) or final (true) task
17639 or descendant of final (true).
17640 * fortran.c (omp_in_final_): New function.
17641 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17642 (GOMP_3.0): Export GOMP_taskyield.
17643 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17645 (parse_unsigned_long_list): New function.
17646 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
17647 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
17648 even if parse_affinity returned false.
17649 * config/linux/affinity.c (gomp_init_affinity): Handle
17650 gomp_cpu_affinity_len == 0.
17651 * libgomp_g.h (GOMP_taskyield): New prototype.
17652 * libgomp.h (struct gomp_task): Add final_task field.
17653 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17654 * team.c (gomp_team_start): Override new task's nthreads_var icv
17655 if list form OMP_NUM_THREADS has been used and it has value for
17656 the new nesting level.
17658 * testsuite/libgomp.c/atomic-11.c: New test.
17659 * testsuite/libgomp.c/atomic-12.c: New test.
17660 * testsuite/libgomp.c/atomic-13.c: New test.
17661 * testsuite/libgomp.c/atomic-14.c: New test.
17662 * testsuite/libgomp.c/reduction-6.c: New test.
17663 * testsuite/libgomp.c/task-5.c: New test.
17664 * testsuite/libgomp.c++/atomic-2.C: New test.
17665 * testsuite/libgomp.c++/atomic-3.C: New test.
17666 * testsuite/libgomp.c++/atomic-4.C: New test.
17667 * testsuite/libgomp.c++/atomic-5.C: New test.
17668 * testsuite/libgomp.c++/atomic-6.C: New test.
17669 * testsuite/libgomp.c++/atomic-7.C: New test.
17670 * testsuite/libgomp.c++/atomic-8.C: New test.
17671 * testsuite/libgomp.c++/atomic-9.C: New test.
17672 * testsuite/libgomp.c++/task-8.C: New test.
17673 * testsuite/libgomp.c++/reduction-4.C: New test.
17674 * testsuite/libgomp.fortran/allocatable7.f90: New test.
17675 * testsuite/libgomp.fortran/allocatable8.f90: New test.
17676 * testsuite/libgomp.fortran/crayptr3.f90: New test.
17677 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17678 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17679 * testsuite/libgomp.fortran/pointer1.f90: New test.
17680 * testsuite/libgomp.fortran/pointer2.f90: New test.
17681 * testsuite/libgomp.fortran/task4.f90: New test.
17683 2011-08-02 Tobias Burnus <burnus@net-b.de>
17685 * libgomp.texi: Update OpenMP spec references to 3.1.
17686 (omp_in_final,OMP_PROC_BIND): New sections.
17687 (OMP_NUM_THREADS): Document that the value can be now a list.
17688 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17690 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
17692 * config/linux/x86/futex.h: Check __x86_64__ instead of
17695 2011-07-29 Jakub Jelinek <jakub@redhat.com>
17697 PR middle-end/49897
17698 PR middle-end/49898
17699 * testsuite/libgomp.c/pr49897-1.c: New test.
17700 * testsuite/libgomp.c/pr49897-2.c: New test.
17701 * testsuite/libgomp.c/pr49898-1.c: New test.
17702 * testsuite/libgomp.c/pr49898-2.c: New test.
17704 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
17706 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17707 for ia32 instead of ilp32.
17709 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17710 * testsuite/libgomp.c/atomic-6.c: Likewise.
17712 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
17714 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17715 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17717 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17720 * config/osf/sem.h: New file.
17721 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17723 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17726 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17729 2011-07-15 Jakub Jelinek <jakub@redhat.com>
17731 * config/linux/wait.h (do_spin): New inline, largely copied
17732 from do_wait, just don't do futex_wait here, instead return true if
17734 (do_wait): Implement using do_spin.
17735 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17737 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17738 __sync_bool_compare_and_swap, pass the oldval to
17739 gomp_mutex_lock_slow.
17740 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17741 If all mutex contenders are just spinning and not sleeping, don't
17742 change state to 2 unnecessarily. Optimize the loop when state has
17743 already become 2 to use just one atomic operation per loop instead
17745 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17747 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17748 __sync_bool_compare_and_swap, pass the oldval to
17749 gomp_mutex_lock_slow.
17751 2011-06-22 Jakub Jelinek <jakub@redhat.com>
17754 * iter.c (gomp_iter_static_next): For chunk size 0
17755 only use n ceil/ nthreads size for the first
17756 n % nthreads threads in the team instead of
17757 all threads except for the last few ones which
17758 get less work or none at all.
17759 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17760 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17761 chunk argument, set run_sched_modifier to 0 for static
17762 resp. 1 for other kinds. If chunk argument is 0
17763 and not static, set value to 1.
17765 2011-05-19 Jakub Jelinek <jakub@redhat.com>
17768 * testsuite/libgomp.c++/pr49043.C: New test.
17771 * testsuite/libgomp.c++/pr48869.C: New test.
17773 2011-05-06 Jakub Jelinek <jakub@redhat.com>
17776 * fortran.c: Include limits.h.
17778 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17780 (omp_set_num_threads_8_, omp_set_schedule_8_,
17781 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17782 omp_get_team_size_8_): Use TO_INT macro.
17783 * testsuite/libgomp.fortran/pr48894.f90: New test.
17785 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17787 PR middle-end/48591
17788 * testsuite/libgomp.c/pr48591.c: New test.
17790 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17793 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17794 * configure: Regenerate.
17796 2011-02-27 Jakub Jelinek <jakub@redhat.com>
17799 * testsuite/libgomp.fortran/task3.f90: New test.
17801 2011-02-24 Tobias Burnus <burnus@net-b.de>
17803 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17805 2011-02-23 Jakub Jelinek <jakub@redhat.com>
17808 * libgomp.texi (omp_get_wtime): Don't say time in the past
17809 must be Unix Epoch.
17811 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17814 * testsuite/libgomp.fortran/fortran.exp: Check for both
17815 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
17816 but $blddir != "", still append ${blddir}/${lang_library_path}
17817 to ld_library_path.
17819 2011-02-16 Tobias Burnus <burnus@net-b.de>
17822 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17823 of libquadmath.a before adding its libpath to ldflags.
17825 2011-02-14 Jakub Jelinek <jakub@redhat.com>
17828 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17829 to FUTEX_WAIT futex syscall.
17830 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17832 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17834 * configure: Regenerate.
17836 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
17839 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17841 2011-01-16 Gerald Pfeifer
17843 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17845 2010-12-14 Jakub Jelinek <jakub@redhat.com>
17848 * libgomp.fortran/allocatable6.f90: New test.
17850 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17852 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17853 * configure: Regenerate.
17855 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
17859 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17860 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17861 * aclocal.m4: Regenerate.
17862 * configure: Regenerate.
17863 * Makefile.in: Regenerate.
17864 * testsuite/Makefile.in: Regenerate.
17866 2010-12-02 Jakub Jelinek <jakub@redhat.com>
17869 * libgomp.fortran/pr46753.f90: New test.
17872 * env.c (initialize_env): Default to spin count 300000
17873 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17877 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17878 at the end if sync builtins aren't supported.
17880 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17882 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17884 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17886 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17888 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
17890 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17892 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17893 Tobias Burnus <burnus@net-b.de>
17897 * configure: Regenerate.
17899 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
17901 * config/linux/futex.h: New.
17902 * config/linux/arm/mutex.h: New.
17903 * configure.tgt (arm*-*-linux*): Add config path.
17905 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
17907 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17909 2010-09-23 Tobias Burnus <burnus@net-b.de>
17911 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17912 Change Fortran datatype to LOGICAL.
17913 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17914 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17916 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17918 * configure: Regenerate.
17920 2010-07-26 Jakub Jelinek <jakub@redhat.com>
17922 * libgomp.texi: Add function keyword to a couple of Fortran
17923 interfaces, use integer instead of int for Fortran.
17925 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
17927 * libgomp.texi: Fix spelling and pasto problems throughout.
17928 Adjust prototypes to match code.
17930 2010-07-24 Tobias Burnus <burnus@net-b.de>
17932 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17933 silence -fwhole-file warning.
17935 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17937 * configure.tgt (*-*-solaris2.[56]*): Removed.
17939 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17941 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17942 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17943 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17944 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17945 targetting solaris2*.
17946 * configure: Regenerate.
17947 * config.h.in: Regenerate.
17949 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17950 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17951 Add libgomp_version_dep.
17952 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17954 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17955 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17956 * Makefile.in: Regenerate.
17958 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17959 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17960 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17961 to common block, protected by
17962 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17964 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
17966 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
17968 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
17971 * configure: Regenerate.
17973 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17976 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17977 * configure: Regenerate.
17978 * Makefile.in: Regenerate.
17979 * testsuite/Makefile.in: Regenerate.
17981 2010-04-26 Jakub Jelinek <jakub@redhat.com>
17984 * testsuite/libgomp.c/pr43893.c: New test.
17985 * testsuite/libgomp.c++/pr43893.C: New test.
17987 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17989 PR middle-end/43570
17990 * testsuite/libgomp.fortran/vla8.f90: New test.
17992 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17995 * config/linux/affinity.c (gomp_init_affinity): Decrease
17996 gomp_available_cpus if affinity mask confines the process to fewer
17998 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17999 non-NULL, just return gomp_available_cpus.
18002 * sections.c (gomp_sections_init): Initialize ws->mode.
18004 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18006 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
18007 not unused bar variable.
18008 * configure: Regenerate.
18010 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18012 * Makefile.in: Regenerate.
18013 * aclocal.m4: Regenerate.
18014 * testsuite/Makefile.in: Regenerate.
18016 2010-03-22 Jakub Jelinek <jakub@redhat.com>
18019 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
18020 (initialize_env): Adjust callers.
18021 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
18022 when the argument is 0.
18024 * testsuite/libgomp.c/pr42942.c: New test.
18026 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
18028 PR middle-end/42644
18029 PR middle-end/42130
18030 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18031 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
18033 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18035 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
18036 * testsuite/libgomp.c++/task-6.C: Likewise.
18038 2010-01-28 Steve Ellcey <sje@cup.hp.com>
18040 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18042 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
18044 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18045 * configure: Regenerate.
18047 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18050 * testsuite/libgomp.fortran/allocatable5.f90: New test.
18052 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
18054 * configure.ac: Test for executability of GFORTRAN.
18055 * configure: Regenerate.
18057 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18059 * configure: Regenerate.
18061 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18064 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18066 2010-01-03 Richard Guenther <rguenther@suse.de>
18068 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18070 2009-12-23 Sebastian Pop <sebpop@gmail.com>
18072 * testsuite/libgomp.graphite/pr4118.c: New.
18074 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18076 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18077 for darwin, protect the test with require-effective-target tls_runtime.
18078 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18080 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18083 * testsuite/lib/libgomp.exp: Provide -B options to allow for
18084 link spec %s substitutions for static libraries.
18086 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
18089 * libgomp.graphite/force-parallel-2.c: Reduce array size.
18091 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18093 * Makefile.in: Regenerate.
18094 * configure: Regenerate.
18095 * testsuite/Makefile.in: Regenerate.
18097 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
18099 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18100 settings for LC_ALL and LANG.
18102 2009-11-25 Jakub Jelinek <jakub@redhat.com>
18105 * testsuite/libgomp.fortran/pr42162.f90: New test.
18107 2009-11-13 Jakub Jelinek <jakub@redhat.com>
18109 PR middle-end/42029
18110 * testsuite/libgomp.c/pr42029.c: New test.
18112 2009-10-26 Jakub Jelinek <jakub@redhat.com>
18114 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18115 *s. Accept ld version without text in ()s.
18116 * configure: Regenerated.
18118 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
18120 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18122 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18125 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18126 or a hyphen (happens with fortran language disabled).
18127 * configure: Regenerate.
18129 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18131 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18132 use sed script portable to Solaris /bin/sed for extracting ld
18134 * configure: Regenerate.
18136 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
18138 * testsuite/libgomp.graphite/bounds.c: New test.
18140 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18142 * Makefile.am (libgomp_la_LINK): New.
18143 * Makefile.in: Regenerate.
18145 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18147 * configure.ac (AC_PREREQ): Bump to 2.64.
18149 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18151 * Makefile.am (install-html, install-pdf): Remove.
18152 * Makefile.in: Regenerate.
18154 * Makefile.in: Regenerate.
18155 * aclocal.m4: Regenerate.
18156 * config.h.in: Regenerate.
18157 * configure: Regenerate.
18158 * testsuite/Makefile.in: Regenerate.
18160 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18162 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18163 * Makefile.in: Regenerate.
18165 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
18167 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18168 * Makefile.in: Regenerate.
18170 2009-08-19 Tobias Burnus <burnus@net-b.de>
18173 omp_lib.h.in: Fix -std=f95 errors.
18175 2009-08-14 David Edelsohn <edelsohn@gnu.org>
18177 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18178 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18179 * testsuite/libgomp.graphite/graphite.exp: New.
18181 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
18183 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18186 2009-08-04 David Daney <ddaney@caviumnetworks.com>
18188 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18189 needed memory barrier semantics.
18190 * config/linux/mips/mutex.h: New file.
18192 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18194 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18196 2009-07-16 Joseph Myers <joseph@codesourcery.com>
18198 * configure: Regenerate.
18200 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
18205 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18206 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18207 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18209 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18211 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18212 options when choosing a multilib.
18214 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
18216 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18217 ld_library_path. Use add_path. Add just find_libgcc_s to
18218 ld_library_path, not every libgcc multilib directory.
18219 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18220 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18221 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18223 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18225 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
18227 * Makefile.am (LTLDFLAGS): Define.
18229 * Makefile.in: Regenerate.
18231 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
18234 * testsuite/libgomp.fortran/fortran.exp: Don't link with
18235 libgfortranbegin, check existence of libgfortran.a instead of
18236 libgfortranbegin.a.
18238 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18241 * team.c (gomp_thread_start): Destroy thr->release semaphore.
18242 (gomp_free_pool_helper): Likewise.
18244 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
18245 Jakub Jelinek <jakub@redhat.com>
18248 * testsuite/libgomp.fortran/workshare2.f90: New test.
18250 2009-04-09 Nick Clifton <nickc@redhat.com>
18252 * iter.c: Change copyright header to refer to version 3 of the
18253 GNU General Public License with version 3.1 of the GCC Runtime
18254 Library Exception and to point readers at the COPYING3 and
18255 COPYING3.RUNTIME files and the FSF's license web page.
18256 * alloc.c: Likewise.
18257 * barrier.c: Likewise.
18258 * config/bsd/proc.c: Likewise.
18259 * config/linux/affinity.c: Likewise.
18260 * config/linux/alpha/futex.h: Likewise.
18261 * config/linux/bar.c: Likewise.
18262 * config/linux/bar.h: Likewise.
18263 * config/linux/ia64/futex.h: Likewise.
18264 * config/linux/ia64/mutex.h: Likewise.
18265 * config/linux/lock.c: Likewise.
18266 * config/linux/mips/futex.h: Likewise.
18267 * config/linux/mutex.c: Likewise.
18268 * config/linux/mutex.h: Likewise.
18269 * config/linux/powerpc/futex.h: Likewise.
18270 * config/linux/proc.c: Likewise.
18271 * config/linux/ptrlock.c: Likewise.
18272 * config/linux/ptrlock.h: Likewise.
18273 * config/linux/s390/futex.h: Likewise.
18274 * config/linux/sem.c: Likewise.
18275 * config/linux/sem.h: Likewise.
18276 * config/linux/sparc/futex.h: Likewise.
18277 * config/linux/wait.h: Likewise.
18278 * config/linux/x86/futex.h: Likewise.
18279 * config/mingw32/proc.c: Likewise.
18280 * config/mingw32/time.c: Likewise.
18281 * config/posix/affinity.c: Likewise.
18282 * config/posix/bar.c: Likewise.
18283 * config/posix/bar.h: Likewise.
18284 * config/posix/lock.c: Likewise.
18285 * config/posix/mutex.h: Likewise.
18286 * config/posix/proc.c: Likewise.
18287 * config/posix/ptrlock.h: Likewise.
18288 * config/posix/sem.c: Likewise.
18289 * config/posix/sem.h: Likewise.
18290 * config/posix/time.c: Likewise.
18291 * config/posix95/lock.c: Likewise.
18292 * critical.c: Likewise.
18294 * error.c: Likewise.
18295 * fortran.c: Likewise.
18296 * iter_ull.c: Likewise.
18297 * libgomp.h: Likewise.
18298 * libgomp_f.h.in: Likewise.
18299 * libgomp_g.h: Likewise.
18300 * loop.c: Likewise.
18301 * loop_ull.c: Likewise.
18302 * omp.h.in: Likewise.
18303 * omp_lib.f90.in: Likewise.
18304 * omp_lib.h.in: Likewise.
18305 * ordered.c: Likewise.
18306 * parallel.c: Likewise.
18307 * sections.c: Likewise.
18308 * single.c: Likewise.
18309 * task.c: Likewise.
18310 * team.c: Likewise.
18311 * work.c: Likewise.
18313 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18315 * testsuite/config/default.exp: Change copyright header to refer to
18316 version 3 of the GNU General Public License and to point readers
18317 at the COPYING3 file and the FSF's license web page.
18319 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18321 PR middle-end/39573
18322 * libgomp.c++/pr39573.C: New test.
18324 2009-04-01 Jakub Jelinek <jakub@redhat.com>
18327 * testsuite/libgomp.c/pr39591-1.c: New test.
18328 * testsuite/libgomp.c/pr39591-2.c: New test.
18329 * testsuite/libgomp.c/pr39591-3.c: New test.
18331 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
18333 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18334 * testsuite/libgomp.c/atomic-6.c: Ditto.
18336 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18339 * testsuite/libgomp.c/loop-12.c: New test.
18340 * testsuite/libgomp.c/loop-11.c: New test.
18341 * testsuite/libgomp.c++/loop-11.C: New test.
18342 * testsuite/libgomp.c++/loop-12.C: New test.
18343 * testsuite/libgomp.c++/for-8.C: New test.
18345 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18347 * configure: Regenerate.
18349 2009-02-11 Jakub Jelinek <jakub@redhat.com>
18351 PR middle-end/39154
18352 * testsuite/libgomp.c/pr39154.c: New test.
18354 2009-01-30 Ian Lance Taylor <iant@google.com>
18356 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18357 libgomp_ld_is_gold. Get gold version number.
18358 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18359 * configure: Rebuild.
18361 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18363 * testsuite/lib/libgomp.exp: Add -B option for targets that
18364 use libgfortran.a%s in their specs.
18366 2009-01-07 Jakub Jelinek <jakub@redhat.com>
18369 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18370 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18371 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18372 * configure: Regenerated.
18373 * config.h.in: Likewise.
18375 2008-12-28 Jakub Jelinek <jakub@redhat.com>
18378 * testsuite/libgomp.c/pr38650.c: New test.
18379 * testsuite/libgomp.c++/pr38650.C: New test.
18381 2008-12-27 Jakub Jelinek <jakub@redhat.com>
18383 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18385 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
18387 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18389 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18391 * configure: Regenerate.
18393 2008-12-08 Jakub Jelinek <jakub@redhat.com>
18395 PR middle-end/36802
18396 * testsuite/libgomp.c/pr36802-1.c: New test.
18397 * testsuite/libgomp.c/pr36802-2.c: New test.
18398 * testsuite/libgomp.c/pr36802-3.c: New test.
18400 2008-12-01 Janis Johnson <janis187@us.ibm.com>
18403 * config/linux/powerpc/mutex.h: New.
18405 2008-12-01 Jakub Jelinek <jakub@redhat.com>
18408 * testsuite/libgomp.c++/for-7.C: New test.
18411 * testsuite/libgomp.c++/for-6.C: New test.
18413 2008-11-26 Janis Johnson <janis187@us.ibm.com>
18416 * testsuite/lib/libgomp.exp: Include new timeout library files.
18417 (libgomp_target_compile): Set timeout value from new proc.
18419 2008-11-13 Steve Ellcey <sje@cup.hp.com>
18422 * config/linux/ia64/mutex.h: New.
18424 2008-11-04 Tobias Burnus <burnus@net-b.de>
18427 * libgomp.texi (Runtime library routines, environment variables):
18428 Update for OpenMP version 3.0.
18430 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18431 Steve Ellcey <sje@cup.hp.com>
18433 * configure: Regenerate for new libtool.
18434 * Makefile.in: Ditto.
18435 * testsuite/Makefile.in: Ditto.
18437 2008-09-19 Jakub Jelinek <jakub@redhat.com>
18438 Andreas Tobler <a.tobler@schweiz.org>
18440 * config/bsd/proc.c: New file.
18441 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18442 * configure.ac: Check for header <sys/sysctl.h>
18443 * configure: Regenerate.
18444 * config.h.in: Likewise.
18446 2008-09-05 Janis Johnson <janis187@us.ibm.com>
18448 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18450 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18452 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18453 * Makefile.in: Regenerated.
18454 * testsuite/Makefile.in: Regenerated.
18456 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
18458 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18459 depend on blddir if blddir exists.
18460 (libgomp_target_compile): Likewise.
18461 * testsuite/libgomp.c++/c++.exp: Likewise.
18462 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18464 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18466 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18467 Do not list GPL as Invariant Section.
18469 2008-07-28 Ilie Garbacea <ilie@mips.com>
18470 Chao-ying Fu <fu@mips.com>
18472 * configure.tgt: Enable futex for MIPS.
18473 * config/linux/mips/futex.h: New file.
18475 2008-07-16 Jakub Jelinek <jakub@redhat.com>
18477 * team.c (gomp_team_end): Free team immediately if it has
18480 2008-07-08 David Edelsohn <edelsohn@gnu.org>
18482 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18483 * testsuite/libgomp.fortran/fortran.exp: Same.
18484 * testsuite/libgomp.c/c.exp: Same.
18485 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18486 directory to library path first.
18488 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18490 * env.c (parse_stacksize): Add cast to avoid warning.
18491 (parse_spincount): Likewise.
18493 2008-06-27 Jakub Jelinek <jakub@redhat.com>
18495 * testsuite/libgomp.c/loop-10.c: New test.
18496 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18497 * libgomp.c++/loop-6.C (main): Likewise.
18500 * testsuite/libgomp.c/debug-1.c: New test.
18502 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18504 * testsuite/libgomp.c/nqueens-1.c: New test.
18507 * testsuite/libgomp.c++/task-7.C: New function.
18509 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18511 * configure: Regenerate.
18513 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18515 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18516 mutex when HAVE_SYNC_BUILTINS isn't defined.
18518 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18520 * libgomp.texi (omp_test_lock): Fix typo.
18522 2008-06-12 Tobias Burnus <burnus@net-b.de>
18524 * omp_lib.f90.in: Add "implicit none".
18526 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18528 PR middle-end/36506
18529 * testsuite/libgomp.c/reduction-5.c: New test.
18531 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18533 * libgomp.h (struct gomp_task): Add in_tied_task field.
18534 * task.c (gomp_init_task): Initialize it.
18535 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18536 unconditionally. Don't call gomp_team_barrier_wake if
18537 current task is implicit or if(0) from implicit and number of
18538 running tasks is equal to nthreads - 1.
18541 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18542 omp_get_team_size_8): Fix pastos.
18545 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18546 * configure: Regenerated.
18547 * config.h.in: Regenerated.
18548 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18551 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18554 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18555 (GOMP_loop_ull_dynamic_start): Likewise.
18556 (GOMP_loop_ull_guided_start): Likewise.
18557 (GOMP_loop_ull_ordered_static_start): Likewise.
18558 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18559 (GOMP_loop_ull_ordered_guided_start): Likewise.
18561 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18562 Richard Henderson <rth@redhat.com>
18563 Ulrich Drepper <drepper@redhat.com>
18564 Jakob Blomer <jakob.blomer@ira.uka.de>
18566 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18567 Substitute also OMP_*LOCK_25*.
18568 * configure: Regenerated.
18569 * config.h.in: Regenerated.
18570 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18571 ptrlock.c and task.c.
18572 * Makefile.in: Regenerated.
18573 * testsuite/Makefile.in: Regenerated.
18574 * task.c: New file.
18575 * loop_ull.c: New file.
18576 * iter_ull.c: New file.
18577 * libgomp.h: Include ptrlock.h.
18578 (enum gomp_task_kind): New type.
18579 (struct gomp_team): Add task_lock, task_queue, task_count,
18580 task_running_count, single_count fields. Add
18581 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18582 Remove work_share_lock, generation_mask,
18583 oldest_live_gen, num_live_gen and init_work_shares fields, add
18584 work work_share_list_alloc, work_share_list_free and work_share_chunk
18585 fields. Change work_shares from pointer to pointers into an array.
18586 Change ordered_release field into gomp_sem_t ** from flexible array
18587 member. Add implicit_task and initial_work_shares fields.
18588 Move close to the end of the struct.
18589 (struct gomp_team_state): Add single_count, last_work_share,
18590 active_level and level fields, remove work_share_generation.
18591 (gomp_barrier_handle_tasks): New prototype.
18592 (gomp_finish_task): New inline function.
18593 (struct gomp_work_share): Move chunk_size, end, incr into
18594 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18595 next_ll fields. Reshuffle fields. Add next_alloc,
18596 next_ws, next_free and inline_ordered_team_ids fields, change
18597 ordered_team_ids into pointer from flexible array member.
18598 Add mode field. Put lock and next into a different cache line
18599 from most of the write-once fields.
18600 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18601 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18602 gomp_iter_ull_guided_next): New prototypes.
18603 (gomp_new_icv): New prototype.
18604 (struct gomp_thread): Add thread_pool and task fields.
18605 (struct gomp_thread_pool): New type.
18606 (gomp_new_team): New prototype.
18607 (gomp_team_start): Change type of last argument.
18608 (gomp_new_work_share): Removed.
18609 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18610 (gomp_work_share_init_done): New static inline.
18611 (gomp_throttled_spin_count_var, gomp_available_cpus,
18612 gomp_managed_threads): New extern decls.
18613 (gomp_init_task): New prototype.
18614 (gomp_spin_count_var): New extern var decl.
18615 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18616 or no alias support, or if not PIC.
18617 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18618 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18619 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18620 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18621 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18622 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18623 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18624 gomp_test_nest_lock_25): New prototypes.
18625 (omp_lock_symver, strong_alias): Define.
18626 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18628 (gomp_end_task): New.
18629 (struct gomp_task_icv, gomp_global_icv): New.
18630 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18631 (struct gomp_task): New.
18632 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18633 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18635 (gomp_schedule_type): Reorder enum to match
18637 * team.c (struct gomp_thread_start_data): Add thread_pool and task
18639 (gomp_thread_start): Add gomp_team_barrier_wait call.
18640 For non-nested case remove clearing of docked thread thr fields.
18641 Use pool fields instead of global gomp_* variables. Use
18642 gomp_barrier_wait_last when needed. Initialize ts.active_level.
18643 Create tasks for each member thread.
18644 (free_team): Only destroy team barrier, task_lock here and free it.
18645 (gomp_free_thread): Free last_team if non-NULL.
18646 (gomp_team_end): Call gomp_team_barrier_wait instead of
18647 gomp_barrier_wait. For nested case call one extra
18648 gomp_barrier_wait. Move here some destruction from free_team.
18649 Call free_team on pool->last_team if any, rather than freeing
18650 current team. Destroy work_share_list_free_lock ifndef
18651 HAVE_SYNC_BUILTINS.
18652 (gomp_new_icv): New function.
18653 (gomp_threads, gomp_threads_size, gomp_threads_used,
18654 gomp_threads_dock): Removed.
18655 (gomp_thread_destructor): New variable.
18656 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18658 (gomp_team_start): Create new pool if current thread doesn't have
18659 one. Use pool fields instead of global gomp_* variables.
18660 Initialize thread_pool field for new threads. Clear single_count.
18661 Change last argument from ws to team, don't create
18662 new team, set ts.work_share to &team->work_shares[0] and clear
18663 ts.last_work_share. Don't clear ts.work_share_generation.
18664 If number of threads changed, adjust atomically gomp_managed_threads.
18665 Use gomp_init_task instead of gomp_new_task,
18666 set thr->task to the corresponding implicit_task array entry.
18667 Create tasks for each member thread. Initialize ts.level.
18668 (initialize_team): Call pthread_key_create on
18669 gomp_thread_destructor.
18670 (team_destructor): New function.
18671 (new_team): Removed.
18672 (gomp_new_team): New function.
18673 (free_team): Free gomp_work_share blocks chained through next_alloc,
18674 instead of freeing work_shares and destroying work_share_lock.
18675 (gomp_team_end): Call gomp_fini_work_share. If number of threads
18676 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
18677 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18678 of gomp_barrier_wait.
18679 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18680 instead of gomp_barrier_wait. Call gomp_work_share_init_done
18681 if gomp_work_share_start returned true. Don't unlock ws->lock.
18682 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18683 of gomp_barrier_wait.
18684 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
18685 gomp_work_share_init_done if gomp_work_share_start returned true.
18686 Don't unlock ws->lock.
18687 * work.c: Include stddef.h.
18688 (free_work_share): Use work_share_list_free_lock instead
18689 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
18690 Call gomp_fini_work_share and then either free ws if orphaned, or
18691 put it into work_share_list_free list of the current team.
18692 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18694 (gomp_work_share_start, gomp_work_share_end,
18695 gomp_work_share_end_nowait): Rewritten.
18696 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18697 (openmp_version): Set to 200805.
18698 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18699 omp_sched_guided, omp_sched_auto): New parameters.
18700 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18701 omp_set_max_active_levels, omp_get_max_active_levels,
18702 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18703 omp_get_active_level): New interfaces.
18704 * omp_lib.h.in (openmp_version): Set to 200805.
18705 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18706 omp_sched_guided, omp_sched_auto): New parameters.
18707 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18708 omp_set_max_active_levels, omp_get_max_active_levels,
18709 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18710 omp_get_active_level): New externals.
18711 * loop.c: Include limits.h.
18712 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18714 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18715 Likewise. Use gomp_icv.
18716 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18717 ts.static_trip here.
18718 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18719 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
18720 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18721 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
18722 don't unlock ws->lock, otherwise lock it.
18723 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18724 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
18725 (gomp_parallel_loop_start): Call gomp_new_team instead of
18726 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
18727 Adjust gomp_team_start caller. Pass 0 as second argument to
18728 gomp_resolve_num_threads.
18729 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18730 If adding ws->chunk_size nthreads + 1 times after end won't
18731 overflow, set ws->mode to 1.
18732 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18733 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18734 GOMP_loop_ull_ordered_static_start,
18735 GOMP_loop_ull_ordered_dynamic_start,
18736 GOMP_loop_ull_ordered_guided_start,
18737 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18738 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18739 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18740 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18741 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18743 * libgomp.map: Export lock routines also @@OMP_2.0.
18744 (GOMP_loop_ordered_dynamic_first,
18745 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18746 GOMP_loop_ordered_static_first): Remove.
18747 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18748 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18749 GOMP_loop_ull_ordered_dynamic_next,
18750 GOMP_loop_ull_ordered_dynamic_start,
18751 GOMP_loop_ull_ordered_guided_next,
18752 GOMP_loop_ull_ordered_guided_start,
18753 GOMP_loop_ull_ordered_runtime_next,
18754 GOMP_loop_ull_ordered_runtime_start,
18755 GOMP_loop_ull_ordered_static_next,
18756 GOMP_loop_ull_ordered_static_start,
18757 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18758 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18759 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18760 (omp_set_schedule, omp_get_schedule,
18761 omp_get_thread_limit, omp_set_max_active_levels,
18762 omp_get_max_active_levels, omp_get_level,
18763 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18764 omp_set_schedule_, omp_set_schedule_8_,
18765 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18766 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18767 omp_get_max_active_levels_, omp_get_level_,
18768 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18769 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18770 New exports @@OMP_3.0.
18771 * omp.h.in (omp_sched_t): New type.
18772 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18773 omp_set_max_active_levels, omp_get_max_active_levels,
18774 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18775 omp_get_active_level): New prototypes.
18776 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18777 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18778 gomp_thread_limit_var, gomp_remaining_threads_count,
18779 gomp_remaining_threads_lock): New variables.
18780 (parse_spincount): New function.
18781 (initialize_env): Call gomp_init_num_threads unconditionally.
18782 Initialize gomp_available_cpus. Call parse_spincount,
18783 initialize gomp_{,throttled_}spin_count_var
18784 depending on presence and value of OMP_WAIT_POLICY and
18785 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
18786 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18787 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
18788 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
18789 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
18790 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18791 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18792 (gomp_global_icv): New.
18793 (parse_schedule): Use it. Parse "auto".
18794 (omp_set_num_threads): Use gomp_icv.
18795 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18797 (omp_get_max_threads): Move from parallel.c.
18798 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18799 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18801 (parse_stacksize, parse_wait_policy): New functions.
18802 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18803 both wrappers for compatibility and new locks.
18804 (omp_set_schedule, omp_get_schedule,
18805 omp_get_thread_limit, omp_set_max_active_levels,
18806 omp_get_max_active_levels, omp_get_level,
18807 omp_get_ancestor_thread_num, omp_get_team_size,
18808 omp_get_active_level): New ialias_redirect.
18809 (omp_set_schedule_, omp_set_schedule_8_,
18810 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18811 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18812 omp_get_max_active_levels_, omp_get_level_,
18813 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18814 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18816 * parallel.c: Include limits.h.
18817 (gomp_resolve_num_threads): Add count argument. Rewritten.
18818 (GOMP_parallel_start): Call gomp_new_team and pass that as last
18819 argument to gomp_team_start. Pass 0 as second argument to
18820 gomp_resolve_num_threads.
18821 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18822 if gomp_thread_limit_var != ULONG_MAX.
18823 (omp_in_parallel): Implement using ts.active_level.
18824 (omp_get_max_threads): Move to env.c.
18825 (omp_get_level, omp_get_ancestor_thread_num,
18826 omp_get_team_size, omp_get_active_level): New functions,
18828 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18829 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
18830 gomp_iter_dynamic_next instead of the _locked variant and don't take
18831 lock around it, otherwise acquire it before calling
18832 gomp_iter_dynamic_next_locked.
18833 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18834 gomp_iter_dynamic_next instead of the _locked variant and don't take
18836 (GOMP_parallel_sections_start): Call gomp_new_team instead of
18837 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
18838 Adjust gomp_team_start caller. Pass count as second argument to
18839 gomp_resolve_num_threads, don't adjust num_threads after the call.
18841 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18842 ws->chunk_size by incr.
18843 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
18845 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18847 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18848 (omp_check_defines): Check even the compat defines.
18849 * config/linux/ptrlock.c: New file.
18850 * config/linux/ptrlock.h: New file.
18851 * config/linux/wait.h: New file.
18852 * config/posix/ptrlock.c: New file.
18853 * config/posix/ptrlock.h: New file.
18854 * config/linux/bar.h (gomp_team_barrier_wait,
18855 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18856 (gomp_team_barrier_set_task_pending,
18857 gomp_team_barrier_clear_task_pending,
18858 gomp_team_barrier_set_waiting_for_tasks,
18859 gomp_team_barrier_waiting_for_tasks,
18860 gomp_team_barrier_done): New inlines.
18861 (gomp_barrier_t): Rewritten.
18862 (gomp_barrier_state_t): New typedef.
18863 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18864 gomp_barrier_wait_start): Rewritten.
18865 (gomp_barrier_wait_end): Change second argument to
18866 gomp_barrier_state_t.
18867 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18869 * config/linux/bar.c: Include wait.h instead of libgomp.h and
18871 (gomp_barrier_wait_end): Rewritten.
18872 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18873 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18874 * config/posix/bar.h (gomp_barrier_t): Add generation field.
18875 (gomp_barrier_state_t): New typedef.
18876 (gomp_team_barrier_wait,
18877 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18878 (gomp_barrier_wait_start): Or all but low 2 bits from generation
18879 into the return value. Return gomp_barrier_state_t.
18880 (gomp_team_barrier_set_task_pending,
18881 gomp_team_barrier_clear_task_pending,
18882 gomp_team_barrier_set_waiting_for_tasks,
18883 gomp_team_barrier_waiting_for_tasks,
18884 gomp_team_barrier_done): New inlines.
18885 (gomp_barrier_wait_end): Change second argument to
18886 gomp_barrier_state_t.
18887 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18889 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18890 (gomp_barrier_wait_end): Change second argument to
18891 gomp_barrier_state_t.
18892 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18893 gomp_team_barrier_wake): New functions.
18894 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18896 (gomp_futex_wake, gomp_futex_wait): New variables.
18897 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18898 * config/linux/lock.c: Rewrite to make locks task owned,
18899 for backwards compatibility provide the old entrypoints
18900 if symbol versioning. Include wait.h instead of libgomp.h and
18902 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18903 * config/posix95/lock.c: Rewrite to make locks task owned,
18904 for backwards compatibility provide the old entrypoints
18905 if symbol versioning.
18906 * config/posix/lock.c: Rewrite to make locks task owned,
18907 for backwards compatibility provide the old entrypoints
18908 if symbol versioning.
18909 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18910 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18911 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18912 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18913 (sys_futex0): Return error code.
18914 (futex_wake, futex_wait): If ENOSYS was returned, clear
18915 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18916 (cpu_relax, atomic_write_barrier): New static inlines.
18917 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18918 (futex_wake, futex_wait): If ENOSYS was returned, clear
18919 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18920 (cpu_relax, atomic_write_barrier): New static inlines.
18921 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18922 (sys_futex0): Return error code.
18923 (futex_wake, futex_wait): If ENOSYS was returned, clear
18924 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18925 (cpu_relax, atomic_write_barrier): New static inlines.
18926 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18927 (sys_futex0): Return error code.
18928 (futex_wake, futex_wait): If ENOSYS was returned, clear
18929 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18930 (cpu_relax, atomic_write_barrier): New static inlines.
18931 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18932 (sys_futex0): Return error code.
18933 (futex_wake, futex_wait): If ENOSYS was returned, clear
18934 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18935 (cpu_relax, atomic_write_barrier): New static inlines.
18936 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18937 (sys_futex0): Return error code.
18938 (futex_wake, futex_wait): If ENOSYS was returned, clear
18939 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18940 (cpu_relax, atomic_write_barrier): New static inlines.
18941 * config/linux/sem.c: Include wait.h instead of libgomp.h and
18943 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18944 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18945 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18947 (omp_nest_lock_t): Change owner into void *, add lock field.
18948 * config/posix95/omp-lock.h: Include semaphore.h.
18949 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18950 (omp_lock_t): Use sem_t instead of mutex if semaphores
18952 (omp_nest_lock_t): Likewise. Change owner to void *.
18953 * config/posix/omp-lock.h: Include semaphore.h.
18954 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18955 (omp_lock_t): Use sem_t instead of mutex if semaphores
18957 (omp_nest_lock_t): Likewise. Add owner field.
18959 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18961 * testsuite/libgomp.c/collapse-1.c: New test.
18962 * testsuite/libgomp.c/collapse-2.c: New test.
18963 * testsuite/libgomp.c/collapse-3.c: New test.
18964 * testsuite/libgomp.c/icv-1.c: New test.
18965 * testsuite/libgomp.c/icv-2.c: New test.
18966 * testsuite/libgomp.c/lib-2.c: New test.
18967 * testsuite/libgomp.c/lock-1.c: New test.
18968 * testsuite/libgomp.c/lock-2.c: New test.
18969 * testsuite/libgomp.c/lock-3.c: New test.
18970 * testsuite/libgomp.c/loop-4.c: New test.
18971 * testsuite/libgomp.c/loop-5.c: New test.
18972 * testsuite/libgomp.c/loop-6.c: New test.
18973 * testsuite/libgomp.c/loop-7.c: New test.
18974 * testsuite/libgomp.c/loop-8.c: New test.
18975 * testsuite/libgomp.c/loop-9.c: New test.
18976 * testsuite/libgomp.c/nested-3.c: New test.
18977 * testsuite/libgomp.c/nestedfn-6.c: New test.
18978 * testsuite/libgomp.c/sort-1.c: New test.
18979 * testsuite/libgomp.c/task-1.c: New test.
18980 * testsuite/libgomp.c/task-2.c: New test.
18981 * testsuite/libgomp.c/task-3.c: New test.
18982 * testsuite/libgomp.c/task-4.c: New test.
18983 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18984 to C++ testsuite default compiler options.
18985 * testsuite/libgomp.c++/collapse-1.C: New test.
18986 * testsuite/libgomp.c++/collapse-2.C: New test.
18987 * testsuite/libgomp.c++/ctor-10.C: New test.
18988 * testsuite/libgomp.c++/for-1.C: New test.
18989 * testsuite/libgomp.c++/for-2.C: New test.
18990 * testsuite/libgomp.c++/for-3.C: New test.
18991 * testsuite/libgomp.c++/for-4.C: New test.
18992 * testsuite/libgomp.c++/for-5.C: New test.
18993 * testsuite/libgomp.c++/loop-8.C: New test.
18994 * testsuite/libgomp.c++/loop-9.C: New test.
18995 * testsuite/libgomp.c++/loop-10.C: New test.
18996 * testsuite/libgomp.c++/task-1.C: New test.
18997 * testsuite/libgomp.c++/task-2.C: New test.
18998 * testsuite/libgomp.c++/task-3.C: New test.
18999 * testsuite/libgomp.c++/task-4.C: New test.
19000 * testsuite/libgomp.c++/task-5.C: New test.
19001 * testsuite/libgomp.c++/task-6.C: New test.
19002 * testsuite/libgomp.fortran/allocatable1.f90: New test.
19003 * testsuite/libgomp.fortran/allocatable2.f90: New test.
19004 * testsuite/libgomp.fortran/allocatable3.f90: New test.
19005 * testsuite/libgomp.fortran/allocatable4.f90: New test.
19006 * testsuite/libgomp.fortran/collapse1.f90: New test.
19007 * testsuite/libgomp.fortran/collapse2.f90: New test.
19008 * testsuite/libgomp.fortran/collapse3.f90: New test.
19009 * testsuite/libgomp.fortran/collapse4.f90: New test.
19010 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
19011 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
19012 * testsuite/libgomp.fortran/lib4.f90: New test.
19013 * testsuite/libgomp.fortran/lock-1.f90: New test.
19014 * testsuite/libgomp.fortran/lock-2.f90: New test.
19015 * testsuite/libgomp.fortran/nested1.f90: New test.
19016 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
19017 * testsuite/libgomp.fortran/strassen.f90: New test.
19018 * testsuite/libgomp.fortran/tabs1.f90: New test.
19019 * testsuite/libgomp.fortran/tabs2.f: New test.
19020 * testsuite/libgomp.fortran/task1.f90: New test.
19021 * testsuite/libgomp.fortran/task2.f90: New test.
19022 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
19023 * testsuite/libgomp.fortran/vla5.f90: Likewise.
19024 * testsuite/libgomp.c/pr26943-2.c: Likewise.
19025 * testsuite/libgomp.c/pr26943-3.c: Likewise.
19026 * testsuite/libgomp.c/pr26943-4.c: Likewise.
19028 2008-05-23 Jakub Jelinek <jakub@redhat.com>
19031 * testsuite/libgomp.c++/ctor-11.C: New test.
19032 * testsuite/libgomp.c++/ctor-12.C: New test.
19034 2008-05-15 Janis Johnson <janis187@us.ibm.com>
19036 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19038 2008-05-07 Jakub Jelinek <jakub@redhat.com>
19040 PR middle-end/36106
19041 * testsuite/libgomp.c/atomic-5.c: New test.
19042 * testsuite/libgomp.c/atomic-6.c: New test.
19043 * testsuite/libgomp.c/autopar-1.c: New test.
19045 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19047 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19048 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19049 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19050 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19051 * configure: Regenerate.
19052 * Makefile.in, testsuite/Makefile.in: Likewise.
19054 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
19057 * aclocal.m4: Regenerate.
19058 * configure: Regenerate.
19060 2008-03-18 Jakub Jelinek <jakub@redhat.com>
19062 PR middle-end/35611
19063 * testsuite/libgomp.c/atomic-4.c: New test.
19066 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19067 (gomp_iter_guided_next): Likewise.
19068 * testsuite/libgomp.c/pr35625.c: New test.
19070 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19072 * aclocal.m4: Regenerate.
19073 * configure: Likewise.
19074 * Makefile.in: Likewise.
19075 * testsuite/Makefile.in: Likewise.
19077 2008-03-13 Jakub Jelinek <jakub@redhat.com>
19079 PR middle-end/35185
19080 * testsuite/libgomp.c++/pr35185.C: New test.
19082 2008-03-12 Jakub Jelinek <jakub@redhat.com>
19084 PR middle-end/35549
19085 * testsuite/libgomp.c/pr35549.c: New test.
19087 2008-03-06 Jakub Jelinek <jakub@redhat.com>
19089 * testsuite/libgomp.c/atomic-3.c: New test.
19091 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19094 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
19095 .F08 file suffixes.
19097 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
19100 * configure.ac: Add ACX_HEADER_STRING.
19101 * env.c: Include strings.h.
19102 * aclocal.m4: Regenerate.
19103 * config.h.in: Regenerate.
19104 * configure: Regenerate.
19105 * Makefile.in: Regenerate.
19106 * testsuite/Makefile.in: Regenerate.
19108 2008-02-15 Jakub Jelinek <jakub@redhat.com>
19110 PR middle-end/35196
19111 * testsuite/libgomp.c/pr35196.c: New test.
19113 PR middle-end/35130
19114 * testsuite/libgomp.fortran/pr35130.f90: New test.
19115 * testsuite/libgomp.c/pr35130.c: New test.
19117 2008-01-25 Jakub Jelinek <jakub@redhat.com>
19119 PR middle-end/33880
19120 * testsuite/libgomp.c/pr33880.c: New test.
19121 * testsuite/libgomp.fortran/pr33880.f90: New test.
19123 2008-01-24 David Edelsohn <edelsohn@gnu.org>
19125 * configure: Regenerate.
19127 2008-01-08 Jakub Jelinek <jakub@redhat.com>
19129 * configure.ac: Move futex checking into ../config/futex.m4.
19130 * configure: Rebuilt.
19131 * aclocal.m4: Rebuilt.
19132 * Makefile.in: Rebuilt.
19134 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19135 2007-10-15 ../config/tls.m4 change.
19137 2007-12-19 Jakub Jelinek <jakub@redhat.com>
19140 * testsuite/libgomp.c/pr34513.c: New test.
19141 * testsuite/libgomp.c++/pr34513.C: New test.
19143 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
19146 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19148 2007-12-04 Jakub Jelinek <jakub@redhat.com>
19150 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
19152 2007-12-03 Jakub Jelinek <jakub@redhat.com>
19154 * testsuite/libgomp.c/private-1.c: New test.
19156 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
19157 Paolo Bonzini <bonzini@gnu.org>
19159 * Makefile.am: Use space as vpath separator. Use 'vpath %'
19160 instead of 'VPATH ='.
19161 * Makefile.in: Regenerate.
19163 2007-11-23 Matthias Klose <doko@ubuntu.com>
19165 * configure.ac: Adjust makeinfo version check.
19166 * configure: Regenerate.
19168 2007-11-10 Jakub Jelinek <jakub@redhat.com>
19171 * testsuite/libgomp.fortran/pr34020.f90: New test.
19173 2007-11-06 Jakub Jelinek <jakub@redhat.com>
19176 * testsuite/libgomp.c++/atomic-1.C: New test.
19178 2007-10-25 Jakub Jelinek <jakub@redhat.com>
19181 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19182 Make x and y integers rather than (implicit) reals. Add private (j)
19183 clause to the last omp parallel.
19185 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
19187 * configure: Regenerate following changes to ../config/tls.m4.
19189 2007-09-28 Jakub Jelinek <jakub@redhat.com>
19191 * testsuite/libgomp.fortran/stack.f90: New test.
19193 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
19195 * config/mingw32/proc.c: New file.
19197 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
19199 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19200 (main): Use __get_cpuid to get i386 target fetaures.
19201 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19202 (main): Use __get_cpuid to get x86_64 target fetaures.
19204 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
19207 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19208 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19210 2007-07-12 Jakub Jelinek <jakub@redhat.com>
19213 * testsuite/libgomp.fortran/pr32550.f90: New test.
19214 * testsuite/libgomp.fortran/crayptr2.f90: New test.
19216 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
19218 * aclocal.m4: Regenerated.
19220 2007-07-05 Tobias Burnus <burnus@net-b.de>
19223 * testsuite/libgomp.fortran/pr32359.f90: New.
19225 2007-07-02 Jakub Jelinek <jakub@redhat.com>
19228 * sections.c (GOMP_parallel_sections_start): Only decrease
19229 number of threads to COUNT if dyn_var is true.
19230 * testsuite/libgomp.c/pr32468.c: New test.
19232 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19235 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19237 2007-06-21 Jakub Jelinek <jakub@redhat.com>
19239 PR middle-end/32362
19240 * testsuite/libgomp.c/pr32362-1.c: New test.
19241 * testsuite/libgomp.c/pr32362-2.c: New test.
19242 * testsuite/libgomp.c/pr32362-3.c: New test.
19244 2007-06-07 Jakub Jelinek <jakub@redhat.com>
19246 * team.c (gomp_team_start): Fix setting up thread_attr
19249 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
19251 * configure: Regenerate.
19253 2007-05-23 Steve Ellcey <sje@cup.hp.com>
19255 * Makefile.in: Regenerate.
19256 * configure: Regenerate.
19257 * aclocal.m4: Regenerate.
19258 * testsuite/Makefile.in: Regenerate.
19260 2007-05-04 Jakub Jelinek <jakub@redhat.com>
19262 * config/linux/proc.c: New file.
19265 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19267 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
19269 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19271 2007-04-16 Matthias Klose <doko@debian.org>
19273 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19274 flags if not building with -m64.
19275 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19276 flag for i?86-*-* targets, if current target matches -m64.
19278 2007-04-14 Steve Ellcey <sje@cup.hp.com>
19280 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19281 * Makefile.in: Regenerate.
19283 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19286 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19288 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19290 2007-04-04 Jakub Jelinek <jakub@redhat.com>
19292 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19294 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19295 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19296 (parse_affinity): New function.
19297 (initialize_env): Call it and gomp_init_affinity.
19298 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19299 create new pthread_attr_t and call gomp_init_thread_affinity
19300 on it for each thread before passing the attribute to pthread_create.
19301 * config/linux/affinity.c: New file.
19302 * config/posix/affinity.c: New file.
19303 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19304 * configure: Rebuilt.
19305 * config.h.in: Rebuilt.
19306 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19307 * Makefile.in: Rebuilt.
19309 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19311 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19313 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19314 and use it if found.
19316 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
19318 * testsuite/config/default.exp: New file.
19319 * testsuite/lib/libgomp.exp: New file.
19320 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19321 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19322 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19323 (libgomp_load): Remove.
19324 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19325 always_ld_library_path, not ld_library_path. Set additional_flags
19326 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19327 (target_compile): Do not call libgomp_init. Append lang_library_path
19328 and lang_link_flags to options.
19329 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19330 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19332 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19333 always_ld_library_path. Set LD_LIBRARY_PATH here.
19334 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19335 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19336 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19338 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19339 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19340 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19341 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19342 * testsuite/libgomp.c/atomic-10.c: Ditto.
19344 2007-03-21 Jakub Jelinek <jakub@redhat.com>
19346 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19347 dg-final cleanup-modules line.
19348 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19349 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19350 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19351 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19352 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19353 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19354 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19356 2007-03-18 Andreas Schwab <schwab@suse.de>
19358 * acinclude.m4: Adjust regular expression for ld version
19360 * configure: Regenerate.
19362 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19364 * Makefile.am: Add install-pdf target as copied from
19365 automake v1.10 rules.
19366 * Makefile.in: Regenerate
19368 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19371 * configure: Regenerate.
19374 * testsuite/libgomp.c++/pr30703.C: New test.
19376 2007-02-02 Jakub Jelinek <jakub@redhat.com>
19379 2006-07-05 Eric Christopher <echristo@apple.com>
19380 * configure.ac: Depend addition of -pthread on host OS.
19381 * configure: Regenerate.
19383 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19385 * libgomp.texi: Fix spacing after abbreviations.
19387 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
19390 * configure.ac: Add check for makeinfo
19391 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19392 if an appropriate version of makeinfo is found.
19393 * aclocal.m4: Regenerated.
19394 * configure: Regenerated.
19395 * Makefile.in: Regenerated.
19396 * testsuite/Makefile.in: Regenerated.
19398 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
19401 * libgomp.texi: More about implementation-dependent settings.
19403 2007-01-26 Tobias Burnus <burnus@net-b.de>
19405 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19407 2007-01-24 Jakub Jelinek <jakub@redhat.com>
19409 PR middle-end/30494
19410 * testsuite/libgomp.c/pr30494.c: New test.
19412 2007-01-15 Tom Tromey <tromey@redhat.com>
19414 * configure: Rebuilt.
19415 * configure.ac: Fixed comment.
19417 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
19419 * libgomp.texi: Document implementation specific default values of
19420 environment variables.
19422 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19425 * libgomp.texi: New file.
19426 * configure.ac: Add --enable-generated-files-in-srcdir option.
19427 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19429 * Makefile.in: Regenerated.
19430 * config.h.in: Regenerated.
19431 * testsuite/Makefile.in: Regenerated.
19434 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
19437 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19439 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19441 * configure: Regenerate.
19443 2006-12-04 Jakub Jelinek <jakub@redhat.com>
19446 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19447 start if there shouldn't be any loop iterations.
19448 (gomp_loop_ordered_static_start): Remove start == end test.
19449 * testsuite/libgomp.c/pr29947-1.c: New test.
19450 * testsuite/libgomp.c/pr29947-2.c: New test.
19452 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19454 * configure.tgt: Force initial-exec TLS model on Linux only.
19456 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19458 * configure: Regenerated.
19460 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
19462 * env.c (parse_schedule): Reject out of range values.
19463 (parse_unsigned_long): Reject out of range, negative or zero values.
19465 2006-10-29 Jakub Jelinek <jakub@redhat.com>
19468 * testsuite/libgomp.fortran/pr29629.f90: New test.
19470 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19473 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19474 * config/posix95: New directory.
19475 * config/posix95/omp-lock.h: New file.
19476 * config/posix95/lock.c: Likewise.
19478 2006-10-14 Geoffrey Keating <geoffk@apple.com>
19480 * aclocal.m4: Regenerate.
19481 * configure: Regenerate.
19483 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19485 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19488 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19490 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19492 * configure: Regenerate.
19493 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19495 2006-09-26 Jakub Jelinek <jakub@redhat.com>
19497 PR middle-end/25261
19498 PR middle-end/28790
19499 * testsuite/libgomp.c/nestedfn-4.c: New test.
19500 * testsuite/libgomp.c/nestedfn-5.c: New test.
19501 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19504 * testsuite/libgomp.fortran/condinc1.f: New test.
19505 * testsuite/libgomp.fortran/condinc2.f: New test.
19506 * testsuite/libgomp.fortran/condinc3.f90: New test.
19507 * testsuite/libgomp.fortran/condinc4.f90: New test.
19508 * testsuite/libgomp.fortran/condinc1.inc: New file.
19510 2006-09-18 Tom Tromey <tromey@redhat.com>
19512 * configure: Rebuilt.
19514 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19517 PR preprocessor/14634
19518 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19520 * configure: Regenerate.
19522 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19524 * testsuite/libgomp.fortran/reduction3.f90: Change
19525 -2147483648 to -huge(i)-1 to avoid overflow.
19526 * testsuite/libgomp.fortran/reduction4.f90: Change
19527 Z'ffffffff' to not(0) to avoid overflow.
19529 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19532 * Makefile.am (libsubincludedir): New.
19533 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19534 * Makefile.in: Regenerate.
19536 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19539 * env.c: Include ctype.h.
19540 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19541 leading and/or trailing whitespace and compare strings case
19544 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19547 * testsuite/libgomp.fortran/pr28390.f: New test.
19549 2006-07-05 Eric Christopher <echristo@apple.com>
19551 * configure.ac: Depend addition of -pthread on host OS.
19552 * configure: Regenerate.
19554 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19556 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19557 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19560 2006-06-20 Jakub Jelinek <jakub@redhat.com>
19564 * configure.ac: If neither --enable-linux-futex nor
19565 --disable-linux-futex is passed, determine the default by checking
19566 for compiling and/or running against NPTL. With --enable-linux-futex,
19567 check if SYS_gettid and SYS_futex are defined.
19568 * configure: Rebuilt.
19570 2006-06-14 Richard Henderson <rth@redhat.com>
19573 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19574 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19576 2006-06-09 Richard Henderson <rth@redhat.com>
19578 * env.c (gomp_nthreads_var): Change to unsigned long.
19579 (gomp_run_sched_chunk): Likewise.
19580 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19581 (initialize_env): Initialize gomp_thread_attr.
19582 * libgomp.h (gomp_nthreads_var): Update decl.
19583 (gomp_run_sched_chunk): Likewise.
19584 (gomp_thread_attr): Declare.
19585 * team.c (gomp_thread_attr): Export.
19586 (initialize_team): Don't initialize it.
19588 2006-06-09 Jakub Jelinek <jakub@redhat.com>
19591 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19592 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19594 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19596 * config/mingw32/time.c: New file.
19597 * configure.tgt: Use it.
19599 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
19601 * Makefile.am: Add install-html target. Add install-html to .PHONY
19602 * Makefile.in: Regenerate.
19604 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19607 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19608 * testsuite/libgomp.c/critical-1.c: Likewise.
19609 * testsuite/libgomp.c/loop-1.c: Likewise.
19610 * testsuite/libgomp.c/loop-2.c: Likewise.
19611 * testsuite/libgomp.c/single-1.c: Likewise.
19612 * testsuite/libgomp.c/ordered-1.c: Likewise.
19613 * testsuite/libgomp.c/ordered-2.c: Likewise.
19615 2006-05-15 Jakub Jelinek <jakub@redhat.com>
19617 PR middle-end/27416
19618 * libgomp.fortran/pr27416-1.f90: New test.
19620 2006-05-03 Jakub Jelinek <jakub@redhat.com>
19623 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19624 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19626 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19629 * testsuite/libgomp.c/pr26943-1.c: New test.
19630 * testsuite/libgomp.c/pr26943-2.c: New test.
19631 * testsuite/libgomp.c/pr26943-3.c: New test.
19632 * testsuite/libgomp.c/pr26943-4.c: New test.
19633 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19634 * testsuite/libgomp.c++/pr26943.C: New test.
19636 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19638 PR middle-end/27337
19639 * testsuite/libgomp.c++/pr27337.C: New test.
19641 2006-04-26 Jakub Jelinek <jakub@redhat.com>
19644 * testsuite/libgomp.c/pr26171.c: New test.
19646 2006-04-25 Richard Henderson <rth@redhat.com>
19649 * configure.ac: Use GCC_CHECK_TLS.
19650 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19651 * Makefile.in, aclocal.m4, configure: Regenerate.
19653 2006-04-10 Matthias Klose <doko@debian.org>
19655 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19656 directory names containing underscores.
19658 2006-03-21 Jakub Jelinek <jakub@redhat.com>
19661 * testsuite/libgomp.c++/pr26691.C: New test.
19663 2006-03-13 Jakub Jelinek <jakub@redhat.com>
19665 * testsuite/libgomp.fortran/retval2.f90: New test.
19667 2006-03-09 Diego Novillo <dnovillo@redhat.com>
19669 * testsuite/libgomp.c++: New directory.
19671 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
19673 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19674 * config/posix/sem.c: Implement the above.
19676 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
19678 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19679 define HAVE_BROKEN_POSIX_SEMAPHORES.
19680 * configure: Rebuilt.
19681 * config.h.in: Rebuilt.
19683 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19686 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19687 for the other pthread check.
19688 * configure: Regenerate.
19689 * config.h.in: Regenerate.
19691 2006-02-15 Jakub Jelinek <jakub@redhat.com>
19695 * Makefile.am (fincludedir): New variable.
19696 (nodist_include_HEADERS): Remove Fortran files.
19697 (nodist_finclude_HEADERS): New variable.
19698 * Makefile.in: Regenerated.
19700 2006-02-13 Jakub Jelinek <jakub@redhat.com>
19702 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19703 Remove tests for returning assumed character length arrays.
19705 2006-02-12 Roger Sayle <roger@eyesopen.com>
19706 John David Anglin <dave@hiauly1.hia.nrc.ca>
19709 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19711 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
19713 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19715 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19717 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19718 part of LD_LIBRARY_PATH manually.
19720 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
19723 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19726 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
19729 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19730 * configure.ac (PERL): Don't set.
19731 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19732 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19733 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19734 * omp.h.in: Wrap the new configure substitutions with @ characters.
19735 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19736 * aclocal.m4, configure, Makefile.in: Regenerate.
19737 * mkomp_h.pl: Delete.
19739 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
19742 * configure.ac: Use GCC_HEADER_STDINT.
19743 * libgomp.h: Include gstdint.h.
19744 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19745 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19747 2006-01-24 Richard Henderson <rth@redhat.com>
19750 * configure.ac: Add AM_MAINTAINER_MODE.
19751 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19753 2006-01-24 Diego Novillo <dnovillo@redhat.com>
19755 * Makefile.in: Regenerate.
19756 * testsuite/Makefile.in: Regenerate.
19757 * aclocal.m4: Regenerate.
19759 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
19761 * config/posix/proc.c: Conditional include of sys/loadavg.h for
19763 * configure.ac: Add check for loadavg.h.
19764 (link_gomp): Adjust comment.
19765 * configure: Regenerate.
19766 * config.h.in: Regenerate.
19768 2006-01-21 Steve Ellcey <sje@cup.hp.com>
19771 * configure.ac: Remove check for alloca.h.
19772 * configure: Regenerate.
19773 * config.h.in: Regenerate.
19774 * libgomp.h: define gomp_alloca to be __builtin_alloca.
19775 * team.c: Remove use of alloca.h.
19776 Call gomp_alloca instead of alloca.
19778 2006-01-20 Steve Ellcey <sje@cup.hp.com>
19781 * team.c: Add include of alloca.h.
19782 * configure.ac: Add check for alloca.h.
19783 * configure: Regenerate.
19784 * config.h.in: Regenerate.
19786 2006-01-17 Jakub Jelinek <jakub@redhat.com>
19789 * testsuite/libgomp.fortran/pr25219.f90: New test.
19791 2005-12-05 Uros Bizjak <uros@kss-loka.si>
19793 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19794 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19795 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19796 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19797 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19798 testsuite/libgomp.fortran/threadprivate1.f90,
19799 testsuite/libgomp.fortran/threadprivate2.f90,
19800 testsuite/libgomp.fortran/threadprivate3.f90,
19801 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19802 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19803 testsuite/libgomp.fortran/omp_parse3.f90: Change required
19804 effective-target to TLS runtime.
19806 * testsuite/libgomp.fortran/pr25162.f: Require
19807 effective-target TLS runtime.
19809 2005-12-01 Jakub Jelinek <jakub@redhat.com>
19811 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19812 * testsuite/libgomp.c/nestedfn-3.c: New test.
19814 2005-11-30 Jakub Jelinek <jakub@redhat.com>
19817 * testsuite/libgomp.fortran/pr25162.f: New test.
19819 2005-11-28 Jakub Jelinek <jakub@redhat.com>
19821 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19822 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19824 2005-11-25 Jakub Jelinek <jakub@redhat.com>
19826 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19827 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19828 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19829 single.c, team.c, work.c, config/linux/alpha/futex.h,
19830 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19831 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19832 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19833 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19834 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19835 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19836 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19839 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19841 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19842 to nodist_noinst_HEADERS.
19843 * Makefile.in: Rebuilt.
19845 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19846 add integer count field.
19847 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19848 omp_nest_lock_t type change.
19849 (omp_init_nest_lock): Likewise. Initialize count to 0.
19850 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19852 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19854 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19855 Increment count if successful and return the new nesting level.
19856 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19857 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19858 * testsuite/libgomp.c/lib-1.c: New test.
19859 * testsuite/libgomp.fortran/lib1.f90: New test.
19860 * testsuite/libgomp.fortran/lib2.f: New test.
19861 * testsuite/libgomp.fortran/lib3.f: New test.
19863 2005-11-17 Richard Henderson <rth@redhat.com>
19866 * Makefile.am (nodist_toolexeclib_HEADERS): New.
19867 * configure.ac (link_gomp): New. Substitute it.
19868 (AC_CONFIG_FILES): Add libgomp.spec.
19869 * libgomp.spec.in: New file.
19870 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19871 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19873 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19875 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19876 reduction(-:var) behaving the same as reduction(+:var).
19877 * testsuite/libgomp.c/reduction-4.c: New test.
19879 2005-11-15 Uros Bizjak <uros@kss-loka.si>
19881 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19882 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19883 testsuite/libgomp.c/copyin-3.c,
19884 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19885 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19886 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19887 testsuite/libgomp.c++/pr24455.C,
19888 testsuite/libgomp.fortran/threadprivate1.f90,
19889 testsuite/libgomp.fortran/threadprivate2.f90,
19890 testsuite/libgomp.fortran/threadprivate3.f90,
19891 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19892 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19893 testsuite/libgomp.fortran/omp_parse3.f90: Require
19894 effective-target TLS.
19896 2005-11-14 Diego Novillo <dnovillo@redhat.com>
19900 2005-11-13 Jakub Jelinek <jakub@redhat.com>
19903 * team.c (initialize_team): Pass NULL rather than free as
19904 pthread_key_create destructor. Initialize thread specific data
19905 pointer in initial thread to a static local variable rather than
19908 2005-11-11 Uros Bizjak <uros@kss-loka.si>
19910 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19911 its location to ld_library_path.
19913 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19915 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19917 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19919 * testsuite/libgomp.c: Rename from libgomp.dg.
19921 2005-11-09 Diego Novillo <dnovillo@redhat.com>
19923 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19924 threadprivate variable 'i'.
19926 2005-11-09 Jakub Jelinek <jakub@redhat.com>
19928 * config/linux/s390/futex.h: New file.
19929 * configure.tgt: Use it.
19931 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19932 before the parallel.
19934 2005-11-08 Jakub Jelinek <jakub@redhat.com>
19937 * testsuite/libgomp.c++/master-1.C: New test.
19939 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19941 * testsuite/libgomp.dg/copyin-3.c: New test.
19943 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19945 * testsuite/libgomp.fortran/retval1.f90: New test.
19946 * testsuite/libgomp.fortran/vla7.f90: New test.
19948 2005-11-06 Jakub Jelinek <jakub@redhat.com>
19950 * testsuite/libgomp.fortran/vla2.f90: New test.
19951 * testsuite/libgomp.fortran/vla3.f90: New test.
19952 * testsuite/libgomp.fortran/vla4.f90: New test.
19953 * testsuite/libgomp.fortran/vla5.f90: New test.
19954 * testsuite/libgomp.fortran/vla6.f90: New test.
19956 2005-11-01 Jakub Jelinek <jakub@redhat.com>
19958 * config/linux/sparc/futex.h: New file.
19959 * configure.tgt: Use it.
19960 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19962 * critical.c: Include stdlib.h.
19963 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19964 ignoring return value.
19965 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19966 LIBGOMP_CHECK_SYNC_BUILTINS check.
19967 * configure: Rebuilt.
19969 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19971 * testsuite/libgomp.fortran/vla1.f90: New test.
19973 2005-10-31 Richard Henderson <rth@redhat.com>
19975 * testsuite/libgomp.fortran/character2.f90: Fix race condition
19976 setting 's' in different threads.
19978 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19980 * libgomp.h (attribute_hidden, ialias): Define.
19981 * config/posix/proc.c (omp_get_num_procs): Add ialias.
19982 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19983 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19984 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19985 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19986 omp_test_lock, omp_test_nest_lock): Likewise.
19987 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19988 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19989 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19990 omp_test_lock, omp_test_nest_lock): Likewise.
19991 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19992 omp_get_dynamic, omp_get_nested): Likewise.
19993 * parallel.c (omp_get_num_threads, omp_get_max_threads,
19994 omp_get_thread_num, omp_in_parallel): Likewise.
19995 * fortran.c (ialias_redirect): Define.
19996 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19997 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19998 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19999 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
20000 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
20001 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
20002 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
20003 omp_get_wtime): Add ialias_redirect.
20005 2005-10-30 Jakub Jelinek <jakub@redhat.com>
20007 * fortran.c: Include stdlib.h.
20009 2005-10-29 Jakub Jelinek <jakub@redhat.com>
20011 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
20012 * Makefile.in: Regenerated.
20014 2005-10-28 Jakub Jelinek <jakub@redhat.com>
20016 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
20017 * libgomp_f.h.in (omp_check_defines): New function.
20018 * env.c: Include libgomp_f.h.
20019 (initialize_env): Call omp_check_defines.
20021 * testsuite/libgomp.dg/copyin-2.c: New test.
20022 * testsuite/libgomp.c++/copyin-2.C: New test.
20023 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
20025 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
20026 * testsuite/libgomp.fortran/sharing2.f90: New test.
20028 * testsuite/libgomp.dg/copyin-1.c: New test.
20029 * testsuite/libgomp.c++/copyin-1.C: New test.
20031 2005-10-26 Jakub Jelinek <jakub@redhat.com>
20033 * testsuite/libgomp.fortran/crayptr1.f90: New test.
20035 * testsuite/libgomp.fortran/workshare1.f90: New test.
20037 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20039 * libgomp.fortran/sharing1.f90: New test.
20041 2005-10-24 Jakub Jelinek <jakub@redhat.com>
20044 * testsuite/libgomp.c++/loop-7.C: New test.
20046 * testsuite/libgomp.dg/nestedfn-2.c: New test.
20048 * testsuite/libgomp.dg/nestedfn-1.c: New test.
20049 * testsuite/libgomp.fortran/reduction6.f90: New test.
20050 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20052 2005-10-23 Richard Henderson <rth@redhat.com>
20054 * testsuite/libgomp.c++/ctor-1.C: New.
20055 * testsuite/libgomp.c++/ctor-2.C: New.
20056 * testsuite/libgomp.c++/ctor-3.C: New.
20057 * testsuite/libgomp.c++/ctor-4.C: New.
20058 * testsuite/libgomp.c++/ctor-5.C: New.
20059 * testsuite/libgomp.c++/ctor-6.C: New.
20060 * testsuite/libgomp.c++/ctor-7.C: New.
20061 * testsuite/libgomp.c++/ctor-8.C: New.
20062 * testsuite/libgomp.c++/ctor-9.C: New.
20064 2005-10-21 Diego Novillo <dnovillo@redhat.com>
20067 * testsuite/libgomp.c++/pr24455-1.C: New test.
20068 * testsuite/libgomp.c++/pr24455.C: New test.
20069 * testsuite/libgomp.dg/pr24455-1.c: New test.
20070 * testsuite/libgomp.dg/pr24455.c: New test.
20072 2005-10-20 Richard Henderson <rth@redhat.com>
20074 * testsuite/libgomp.c++/loop-6.C: New.
20075 * testsuite/libgomp.dg/loop-3.c: New.
20077 2005-10-20 Jakub Jelinek <jakub@redhat.com>
20079 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20080 explicitly private.
20081 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20084 2005-10-19 Diego Novillo <dnovillo@redhat.com>
20086 * testsuite/libgomp.fortran/jacobi.f: New test.
20088 2005-10-19 Richard Henderson <rth@redhat.com>
20090 * configure.tgt (i?86-linux): Default to with_arch instead of
20091 CFLAGS. Add -mtune to match target_cpu.
20092 (x86_64-linux): Tune to i686.
20094 * fortran.c (omp_test_nest_lock_): Fix typo.
20096 2005-10-19 Jakub Jelinek <jakub@redhat.com>
20098 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20099 gomp_ordered_sync): Do nothing if team->nthreads == 1.
20100 * testsuite/libgomp.dg/ordered-3.c: New test.
20102 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20103 Remove volatile keyword.
20105 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20106 in COMMON block to avoid warnings on 64-bit targets.
20108 2005-10-18 Diego Novillo <dnovillo@redhat.com>
20110 * testsuite/libgomp.dg/shared-3.c: New test.
20112 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20114 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20115 * testsuite/libgomp.fortran/reduction5.f90: New test.
20117 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20119 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20121 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
20122 flush loop now that __sync_synchronize has proper memory barrier.
20123 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20124 Add -ffixed-form to dg-options.
20126 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20128 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20129 from subdirectories.
20130 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20131 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20132 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20133 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20134 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20135 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20136 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20137 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20138 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20139 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20140 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20141 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20142 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20143 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20144 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20145 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20146 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20147 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20148 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20149 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20150 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20151 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20152 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20153 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20154 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20156 2005-10-17 Jakub Jelinek <jakub@redhat.com>
20158 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20159 lang_library_path exists. Use find instead of glob to gather tests.
20160 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20162 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20164 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20165 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20166 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20167 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20168 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20169 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20170 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20171 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20172 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20173 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20174 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20175 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20176 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20178 2005-10-15 Jakub Jelinek <jakub@redhat.com>
20180 * testsuite/libgomp.dg/vla-1.c: New test.
20182 * testsuite/libgomp.fortran/reference2.f90: New test.
20184 * testsuite/libgomp.fortran/character2.f90: Remove explicit
20185 declaration of omp_get_thread_num.
20186 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
20189 * testsuite/libgomp.fortran/reduction1.f90: New test.
20190 * testsuite/libgomp.fortran/reduction2.f90: New test.
20191 * testsuite/libgomp.fortran/reduction3.f90: New test.
20192 * testsuite/libgomp.fortran/reduction4.f90: New test.
20194 2005-10-13 Richard Henderson <rth@redhat.com>
20196 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20197 * Makefile.in: Regenerate.
20198 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20199 * libgomp.h: Include bar.h.
20200 (struct gomp_barrier): Remove.
20201 (struct gomp_team): Add barrier. Replace master_barrier with
20202 master_release. Replace threads with ordered_release.
20203 (struct gomp_thread): Replace barrier with release.
20204 * ordered.c (gomp_ordered_first): Update for ordered_release change.
20205 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20206 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20207 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20208 (GOMP_single_copy_end): Likewise.
20209 * team.c (gomp_threads_dock): New.
20210 (gomp_barrier_init, gomp_barrier_destroy): Remove.
20211 (gomp_thread_start): Use gomp_barrier_wait.
20212 (new_team, free_team): Update for gomp_team changes.
20213 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20214 (gomp_team_end): Use gomp_barrier_wait.
20215 (initialize_team): Update for gomp_thread changes.
20216 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20217 (gomp_work_share_end_nowait): Use atomic ops when available.
20218 * config/linux/bar.c, config/linux/bar.h: New files.
20219 * config/posix/bar.c, config/posix/bar.h: New files.
20221 2005-10-13 Jakub Jelinek <jakub@redhat.com>
20223 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20224 * testsuite/libgomp.dg/single-2.c: New test.
20226 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20227 lang_link_flags): Unset, so that they aren't inherited from previously
20230 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20232 2005-10-12 Richard Henderson <rth@redhat.com>
20234 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20235 (libgomp_init): Use lang_test_file, lang_library_path, and
20236 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
20238 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20239 (lang_test_file, lang_link_flags): New.
20240 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20242 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20243 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20244 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20245 testsuite/libgomp.c++/parallel-1.C,
20246 testsuite/libgomp.c++/reduction-1.C,
20247 testsuite/libgomp.c++/reduction-2.C,
20248 testsuite/libgomp.c++/reduction-3.C,
20249 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20250 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20251 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20252 New files, largely cribbed from the C testsuite.
20254 2005-10-12 Jakub Jelinek <jakub@redhat.com>
20256 * testsuite/libgomp.fortran/character1.f90: New test.
20257 * testsuite/libgomp.fortran/character2.f90: New test.
20259 * testsuite/libgomp.dg/nested-1.c: New test.
20260 * testsuite/libgomp.dg/nested-2.c: New test.
20261 * testsuite/libgomp.fortran/do1.f90: New test.
20262 * testsuite/libgomp.fortran/do2.f90: New test.
20264 * testsuite/libgomp.fortran/reference1.f90: New test.
20266 2005-10-11 Jakub Jelinek <jakub@redhat.com>
20268 * testsuite/libgomp.dg/reduction-1.c: New test.
20269 * testsuite/libgomp.dg/reduction-2.c: New test.
20270 * testsuite/libgomp.dg/reduction-3.c: New test.
20272 2005-10-10 Jakub Jelinek <jakub@redhat.com>
20274 * testsuite/libgomp.dg/atomic-1.c: New test.
20275 * testsuite/libgomp.dg/atomic-2.c: New test.
20277 2005-10-09 Richard Henderson <rth@redhat.com>
20279 * critical.c (atomic_lock): New.
20280 (initialize_critical): Initialize it.
20281 (GOMP_atomic_start, GOMP_atomic_end): New.
20282 * libgomp.map: Export them.
20283 * libgomp_g.h: Declare them.
20285 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20287 2005-10-02 Richard Henderson <rth@redhat.com>
20289 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20290 to XCFLAGS instead of CFLAGS.
20292 2005-09-30 Richard Henderson <rth@redhat.com>
20294 * configure.ac: Determine whether -pthread or -lpthread is needed.
20295 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20296 * Makefile.in, configure: Rebuild.
20298 2005-09-28 Richard Henderson <rth@redhat.com>
20300 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20301 * testsuite/libgomp.dg/omp-single-3.c: New test.
20303 2005-09-28 Diego Novillo <dnovillo@redhat.com>
20305 * testsuite/libgomp.dg/omp-single-2.c: New test.
20306 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20308 2005-09-27 Richard Henderson <rth@redhat.com>
20310 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20311 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20313 2005-09-27 Jakub Jelinek <jakub@redhat.com>
20315 * testsuite/libgomp.dg/omp-loop03.c: New test.
20317 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20319 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20321 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20323 * testsuite/libgomp.dg/omp-single-1.c: New test.
20324 * testsuite/libgomp.dg/shared-1.c: Return 0.
20325 Add prototype for abort.
20326 * testsuite/libgomp.dg/shared-2.c: Likewise.
20328 2005-09-26 Jakub Jelinek <jakub@redhat.com>
20330 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20333 2005-09-26 Diego Novillo <dnovillo@redhat.com>
20335 * testsuite/libgomp.dg/shared-1.c: New test.
20336 * testsuite/libgomp.dg/shared-2.c: New test.
20338 2005-09-24 Richard Henderson <rth@redhat.com>
20340 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20342 2005-09-24 Richard Henderson <rth@redhat.com>
20344 * iter.c (gomp_iter_static_next): Round up when computing number
20345 of iterations. Don't bother distributing a remainder equally.
20347 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20348 Don't call srand. Zero b before testing.
20351 2005-09-24 Jakub Jelinek <jakub@redhat.com>
20353 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20354 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20356 2005-09-23 Jakub Jelinek <jakub@redhat.com>
20358 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20359 without !$omp end do, followed immediately by subroutine end.
20361 2005-09-23 Diego Novillo <dnovillo@redhat.com>
20363 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20365 2005-09-22 Richard Henderson <rth@redhat.com>
20367 * critical.c (GOMP_critical_name_start): Change argument to void**.
20368 Reuse the pointer space if the mutex fits.
20369 (GOMP_critical_name_end): Likewise.
20370 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20371 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20372 (GOMP_critical_name_end): Likewise.
20373 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20374 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20376 2005-09-20 Richard Henderson <rth@redhat.com>
20378 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20379 (create_lock_lock): New.
20380 (initialize_critical): Initialize it.
20381 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20382 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20384 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20386 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20388 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20390 * testsuite/libgomp.dg/omp-loop01.c: New test.
20391 * testsuite/libgomp.dg/omp-loop02.c: New test.
20393 2005-09-20 Jakub Jelinek <jakub@redhat.com>
20395 * configure.ac (AC_PROG_FC): Add.
20396 (USE_FORTRAN): New automake conditional.
20397 * configure: Rebuilt.
20398 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20399 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20400 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20401 Add rules to build them.
20402 * Makefile.in: Rebuilt.
20403 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20404 OMP_NEST_LOCK_KIND.
20405 * libgomp.map: Add Fortran wrappers.
20406 * libgomp_f.h.in: New file.
20407 * omp_lib.h.in: New file.
20408 * omp_lib.f90.in: New file.
20409 * fortran.c: New file.
20410 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20411 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20412 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20413 libgfortran has been built.
20414 * testsuite/libgomp.fortran/fortran.exp: New file.
20415 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20416 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20417 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20418 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20419 * testsuite/libgomp.fortran/omp_hello.f: New test.
20420 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20421 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20422 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20423 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20424 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20425 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20426 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20427 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20429 2005-08-30 Richard Henderson <rth@redhat.com>
20431 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20432 function for when aliases are not usable.
20433 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20434 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20435 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20436 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20437 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20438 GOMP_loop_ordered_guided_next): Likewise.
20439 * ordered.c (GOMP_ordered_start): Likewise.
20441 2005-08-01 Diego Novillo <dnovillo@redhat.com>
20443 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20444 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20445 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20446 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20447 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20448 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20449 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20450 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20451 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20453 2005-07-07 Eric Christopher <echristo@redhat.com>
20454 Diego Novillo <dnovillo@redhat.com>
20456 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20457 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20459 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20460 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20461 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20462 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20463 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20464 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20465 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20467 2005-06-13 Diego Novillo <dnovillo@redhat.com>
20469 * TOPLEVEL.patch: Remove.
20471 2005-05-16 Richard Henderson <rth@redhat.com>
20473 * configure.ac: Test for clock_gettime.
20474 * config.h.in, configure: Rebuild.
20475 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20476 (omp_get_wtime): Use clock_gettime if available.
20477 (omp_get_wtick): Use clock_getres if available.
20479 2005-05-11 Richard Henderson <rth@redhat.com>
20481 * config/linux/ia64/futex.h: New file.
20482 * configure.tgt: Use it.
20484 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20486 2005-05-07 Richard Henderson <rth@redhat.com>
20488 * config/linux/powerpc/futex.h: New file.
20489 * configure.tgt: Use it.
20491 * config/linux/i486/futex.h: Merge ...
20492 * config/linux/x86_64/futex.h: ... into ...
20493 * config/linux/x86/futex.h: ... here.
20494 * configure.tgt: Update to match.
20496 2005-05-06 Richard Henderson <rth@redhat.com>
20498 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20499 * config/linux/i486/futex.h: Likewise.
20500 * config/linux/x86_64/futex.h: Likewise.
20502 * config/linux/lock.c: New file.
20503 * config/linux/omp-lock.h: New file.
20505 * critical.c, env.h: Don't include omp.h
20506 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20507 * config/posix/time.c: Likewise.
20508 * config/posix/omp-lock.h: New file.
20509 * libgomp.h: Include omp-lock.h and omp.h.
20510 * Makefile.am (nodist_include_HEADERS): New.
20512 * configure.ac (PERL): New.
20513 * mkomp_h.pl: New file.
20514 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20516 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20518 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20519 build directory. Re-add -march=i486 hack.
20521 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20522 (libgomp_link_flags): Remove.
20523 (libgomp_initialized): Remove.
20524 (libgomp_init): Don't protect from reinitialization. Copy code
20525 from libstdc++ for getting the multilib set correctly.
20527 2005-05-05 Richard Henderson <rth@redhat.com>
20529 * config/linux/alpha/futex.h: New file.
20530 * configure.tgt (alpha*-*-linux*): Use it.
20532 * config/posix/mutex.c: New file.
20533 * config/posix/sem.c: Use libgomp.h.
20535 * configure.tgt (x86_64-linux): Also test CC for -m32.
20536 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20538 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20541 * Makefile.am (SUBDIRS): New.
20542 (libgomp_la_LDFLAGS): Add -lpthread.
20543 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20544 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20546 * libgomp_g.h: New file.
20547 * libgomp.h: Split out all public declarations to libgomp_g.h.
20548 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20549 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20550 * config/linux/sem.h: Likewise.
20551 * config/posix/sem.h: Likewise.
20553 * Makefile.am (AM_LDFLAGS): New.
20554 (libgomp_version_script): Split out from ...
20555 (libgomp_la_LDFLAGS): ... here.
20556 (libgomp_version_info): New.
20557 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20558 (LIBGOMP_ENABLE): New.
20559 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20560 (LIBGOMP_ENABLE_SYMVERS): New.
20561 * configure.ac (AC_INIT): Version 1.0.
20562 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20563 (enable-linux-futex): Likewise. Rename from enable-futex.
20564 (libtool_VERSION): New.
20565 (LIBGOMP_ENABLE_SYMVERS): Use it.
20566 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20567 * Makefile.in, aclocal.m4, configure: Rebuild.
20569 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20570 (gomp_mutex_unlock_slow): Fix typo.
20571 * config/linux/sem.c: Similarly.
20572 (gomp_sem_post_slow): Fix typo.
20573 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20574 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20575 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20577 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20578 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20579 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20580 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20581 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20582 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20583 LDFLAGS. Pull enable_futex check to top-level.
20584 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20585 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20587 First attempt at real configury.
20588 * Makefile, config.h: Remove file.
20589 * Makefile.am, Makefile.in: New file.
20590 * acinclude.m4 aclocal.m4: New file.
20591 * configure.ac, configure.tgt, configure: New file.
20593 * config/posix/lock.c: Rename from sys-lock.c.
20594 * config/posix/mutex.h: Rename from sys-mutex.h.
20595 * config/posix/sem.c: Rename from sys-sem.c.
20596 * config/posix/sem.h: Rename from sys-sem.h.
20597 * config/posix/proc.c: Rename from sys-proc.c.
20598 * config/posix/time.c: Rename from sys-proc.c.
20600 * config/linux/mutex.c: New file.
20601 * config/linux/mutex.h: New file.
20602 * config/linux/sem.c: New file.
20603 * config/linux/sem.h: New file.
20604 * config/linux/i486/futex.h: New file.
20605 * config/linux/x86_64/futex.h: New file.
20607 2005-05-04 Richard Henderson <rth@redhat.com>
20609 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20610 * libgomp.h: Declare them.
20611 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20612 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20614 2005-05-04 Richard Henderson <rth@redhat.com>
20616 * libgomp-1 code drop
20618 2005-05-04 Richard Henderson <rth@redhat.com>
20620 * iter.c (gomp_iter_static_next): Return tri-state on 0.
20621 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20622 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20623 (gomp_iter_static_next): Update.
20624 (gomp_ordered_static_next): Update.
20625 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20626 (gomp_loop_ordered_static_start): Likewise. Exit early for a
20627 totally empty range.
20628 (gomp_loop_ordered_static_next): Refine test for calling
20629 gomp_ordered_static_next.
20630 * testsuite/ordered-1.c: Add case for more threads than iterations.
20632 * iter.c (gomp_iter_runtime_next_locked): Remove.
20633 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20634 gomp_loop_guided_start, gomp_loop_ordered_static_start,
20635 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20636 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20637 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20638 gomp_loop_ordered_guided_next): Downcase name, make static, add
20639 an external alias with the old name.
20640 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20641 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20642 switch and call one of the above static functions.
20643 * libgomp.h: Update.
20645 * work.c (gomp_work_share_start): Lock the mutex for !first too.
20646 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20647 GOMP_loop_guided_start, GOMP_loop_runtime_start,
20648 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20649 GOMP_loop_ordered_guided_start): Update to match.
20650 * sections.c (GOMP_sections_start): Likewise.
20651 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20653 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20654 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20655 Use bounds check instead of modulus.
20656 (gomp_ordered_sync): Split out of GOMP_ordered_start.
20657 (gomp_ordered_last): Don't sync with ordered_owner here.
20658 (gomp_ordered_next): Likewise.
20659 (gomp_ordered_static_loop_next): Likewise.
20660 * loop.c, libgomp.h: Update to match.
20662 * libgomp.h (GOMP_barrier): Declare.
20664 * testsuite/barrier-1.c: New file.
20665 * testsuite/critical-1.c: New file.
20666 * testsuite/ordered-2.c: New file.
20667 * testsuite/ordered-1.c: New file.
20668 * testsuite/sections-1.c: New file.
20669 * testsuite/single-1.c: New file.
20670 * testsuite/Makefile (TESTS): Add them.
20672 2005-05-04 Richard Henderson <rth@redhat.com>
20674 * libgomp.h (struct gomp_work_share): Add ordered_owner.
20675 * loop.c (GOMP_loop_static_start): If not the startup thread,
20676 acquire the mutex to wait for initialization complete.
20677 (GOMP_loop_ordered_static_start): Likewise.
20678 (GOMP_loop_ordered_runtime_start): Likewise.
20679 (GOMP_loop_ordered_static_first): Remove.
20680 (GOMP_loop_ordered_dynamic_first): Remove.
20681 (GOMP_loop_ordered_guided_first): Remove.
20682 (GOMP_loop_ordered_runtime_first): Remove.
20683 * ordered.c (gomp_ordered_loop_first): Post to own release when
20684 we're the first thread.
20685 (gomp_ordered_loop_last): Wait on release if not owner.
20686 (gomp_ordered_loop_next): Likewise.
20687 (gomp_ordered_static_loop_init): New.
20688 (gomp_ordered_static_loop_next): Use ordered_owner.
20689 (GOMP_ordered_start): Likewise.
20690 * work.c (gomp_new_work_share): Initialize ordered_owner.
20692 2005-05-03 Richard Henderson <rth@redhat.com>
20694 * Makefile (OPT): New.
20697 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20698 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20699 * libgomp.h, libgomp.map, NOTES: Update to match.
20701 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20702 Add initialized and thr members.
20703 (gomp_thread_start): Pause when initially spawned to wait for
20704 the whole team to be created.
20705 (gomp_team_start): Release team members at the end.
20707 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
20708 (f_foo_1): Use GOMP_loop_end.
20709 (f_foo_2): Use GOMP_loop_end_nowait.
20711 * testsuite/loop-2.c: New file.
20712 * testsuite/Makefile (TESTS): Add it.
20714 2005-05-03 Richard Henderson <rth@redhat.com>
20716 * iter.c (gomp_iter_static_next): Fix overflow check typo.
20717 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20718 * team.c (new_team): Initialize oldest_live_gen to 1 if no
20719 initial work_share.
20721 * testsuite/Makefile: New file.
20722 * testsuite/loop-1.c: New file.
20724 2005-05-03 Richard Henderson <rth@redhat.com>
20726 Initial implementation and checkin.
20728 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20730 Copying and distribution of this file, with or without modification,
20731 are permitted in any medium without royalty provided the copyright
20732 notice and this notice are preserved.