1 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
3 * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
4 (TEAM_ARENA_FREE): Likewise.
5 (TEAM_ARENA_END): Likewise.
6 (GCN_LOWLAT_HEAP): New.
7 * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
8 (__gcn_lowlat_init): New prototype.
9 (gomp_gcn_enter_kernel): Initialize the low-latency heap.
10 * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
11 (TEAM_ARENA_FREE): Likewise.
12 (TEAM_ARENA_END): Likewise.
13 * plugin/plugin-gcn.c (lowlat_size): New variable.
14 (print_kernel_dispatch): Label the group_segment_size purpose.
15 (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
16 (create_kernel_dispatch): Pass low-latency head allocation to kernel.
17 (run_kernel): Use shadow; don't assume values.
18 * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
19 * config/gcn/allocator.c: New file.
20 * libgomp.texi: Document low-latency implementation details.
22 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
24 * allocator.c (MEMSPACE_VALIDATE): New macro.
25 (omp_init_allocator): Use MEMSPACE_VALIDATE.
26 (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
27 (omp_aligned_calloc): Likewise.
28 (omp_realloc): Likewise.
29 * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
30 (MEMSPACE_VALIDATE): New macro.
31 (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
32 * libgomp.texi: Document low-latency implementation details.
33 * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
34 * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
35 * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
36 * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
37 * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
38 * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
39 * testsuite/libgomp.c/omp_alloc-traits.c: New test.
41 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
42 Kwok Cheung Yeung <kcy@codesourcery.com>
43 Thomas Schwinge <thomas@codesourcery.com>
45 * allocator.c (MEMSPACE_ALLOC): New macro.
46 (MEMSPACE_CALLOC): New macro.
47 (MEMSPACE_REALLOC): New macro.
48 (MEMSPACE_FREE): New macro.
49 (predefined_alloc_mapping): New array. Add _Static_assert to match.
50 (ARRAY_SIZE): New macro.
51 (omp_aligned_alloc): Use MEMSPACE_ALLOC.
52 Implement fall-backs for predefined allocators. Simplify existing
54 (omp_free): Use MEMSPACE_FREE.
55 (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
56 predefined allocators. Simplify existing fall-backs.
57 (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
58 Implement fall-backs for predefined allocators. Simplify existing
60 * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
61 (__nvptx_lowlat_init): New prototype.
62 (gomp_nvptx_main): Call __nvptx_lowlat_init.
63 * libgomp.texi: Update memory space table.
64 * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
65 (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
66 (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
67 * basic-allocator.c: New file.
68 * config/nvptx/allocator.c: New file.
69 * testsuite/libgomp.c/omp_alloc-1.c: New test.
70 * testsuite/libgomp.c/omp_alloc-2.c: New test.
71 * testsuite/libgomp.c/omp_alloc-3.c: New test.
72 * testsuite/libgomp.c/omp_alloc-4.c: New test.
73 * testsuite/libgomp.c/omp_alloc-5.c: New test.
74 * testsuite/libgomp.c/omp_alloc-6.c: New test.
76 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
78 * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
79 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
80 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
81 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
82 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
83 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
84 * testsuite/libgomp.c/declare-variant-4.h: Likewise.
85 * testsuite/libgomp.c/declare-variant-4.c: New.
87 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
89 * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
91 * testsuite/libgomp.c/declare-variant-3.c: New.
92 * testsuite/libgomp.c/declare-variant-3.h: Extend.
94 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
96 * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
97 'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
98 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
99 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
100 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
101 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
102 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
103 * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
104 'scan-offload-tree-dump' to
105 'only_for_offload_target amdgcn-amdhsa'.
106 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
107 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
108 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
109 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
110 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
112 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
114 * testsuite/libgomp.c/declare-variant-3-sm30.c:
115 'dg-additional-options -foffload=nvptx-none'.
116 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
117 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
118 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
119 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
120 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
122 2023-11-29 Thomas Schwinge <thomas@codesourcery.com>
124 * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
125 'scan-offload-ipa-dump's to
126 'only_for_offload_target amdgcn-amdhsa'.
127 * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
128 * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
130 2023-11-24 Tobias Burnus <tobias@codesourcery.com>
132 * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
135 2023-11-22 Thomas Schwinge <thomas@codesourcery.com>
137 * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
138 (f75, f80, f): Add '__attribute__ ((noipa))'.
139 * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
140 (gfx908, gfx90a, f): Likewise.
142 2023-11-15 Andrew Stubbs <ams@codesourcery.com>
143 Andrew Jenner <andrew@codesourcery.com>
145 * plugin/plugin-gcn.c (max_isa_vgprs): New.
146 (run_kernel): CDNA2 devices have more VGPRs.
148 2023-11-10 Tobias Burnus <tobias@codesourcery.com>
150 * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
151 renamed section from TR11.
153 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
155 * config/linux/target-indirect.c: Move to...
156 * target-indirect.c: ...here.
158 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
160 * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
161 * Makefile.in: Regenerate.
162 * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
163 (GOMP_OFFLOAD_load_image): Add extra argument.
164 * libgomp.h (struct indirect_splay_tree_key_s): New.
165 (indirect_splay_tree_node, indirect_splay_tree,
166 indirect_splay_tree_key): New.
167 (indirect_splay_compare): New.
168 * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
169 * libgomp.texi (OpenMP 5.1): Update documentation on indirect
170 calls in target region and on indirect clause.
171 (Other new OpenMP 5.2 features): Add entry for virtual function calls.
172 * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
173 * oacc-host.c (host_load_image): Add extra argument.
174 * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
175 enough, read host indirect functions table and pass to
177 * config/accel/target-indirect.c: New.
178 * config/linux/target-indirect.c: New.
179 * config/gcn/team.c (build_indirect_map): Add prototype.
180 (gomp_gcn_enter_kernel): Initialize support for indirect
181 function calls on GCN target.
182 * config/nvptx/team.c (build_indirect_map): Add prototype.
183 (gomp_nvptx_main): Initialize support for indirect function
184 calls on NVPTX target.
185 * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
186 indirect functions count.
187 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
188 is high enough, build address translation table and copy it to target
190 * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
192 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
193 is high enough, Build address translation table and copy it to target
195 * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
196 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
197 * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
199 2023-11-05 Jakub Jelinek <jakub@redhat.com>
201 * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
204 2023-10-31 Thomas Schwinge <thomas@codesourcery.com>
206 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
207 'acc_map_data' variant.
209 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
211 * oacc-parallel.c (GOACC_data_start): Handle
212 'GOACC_FLAG_LOCAL_DEVICE'.
213 (GOACC_parallel_keyed): Simplify accordingly.
214 * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
216 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
218 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
219 * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
220 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
221 * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
222 * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
224 2023-10-25 Chung-Lin Tang <cltang@codesourcery.com>
226 * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
227 GOACC_FLAG_LOCAL_DEVICE case.
228 * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
230 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
232 * Makefile.am: Handle Darwin rpaths.
233 * Makefile.in: Regenerate.
234 * configure: Regenerate.
235 * configure.ac: Handle Darwin rpaths
237 2023-10-20 Andrew Stubbs <ams@codesourcery.com>
239 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
240 (isa_hsa_name): Recognise gfx1030.
241 (isa_code): Likewise.
242 * team.c (defined): Remove s_endpgm.
244 2023-10-20 Tobias Burnus <tobias@codesourcery.com>
246 * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
249 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
251 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
252 improve wording especially for Fortran; mention -fopenmp-simd.
253 (Enabling OpenACC): Minor cleanup; remove conditional compilation
256 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
258 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
259 Actually document what the function does.
260 (GCC_ACC_NOTIFY): Remove unused env var.
262 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
264 * libgomp.texi: Replace most future tense by present tense.
266 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
268 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
269 dg-additional-options "-fdump-tree-gimple"; fix scan.
271 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
273 * libgomp.texi: Fix some typos.
274 (Memory Management Routines): Document remaining 5.x routines.
275 (Memory allocation): Make clear when the section applies.
277 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
279 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
280 supports the allocate directive for stack variables.
281 * testsuite/libgomp.fortran/allocate-5.f90: New test.
282 * testsuite/libgomp.fortran/allocate-6.f90: New test.
283 * testsuite/libgomp.fortran/allocate-7.f90: New test.
284 * testsuite/libgomp.fortran/allocate-8.f90: New test.
286 2023-10-12 Tobias Burnus <tobias@codesourcery.com>
288 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
290 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
291 clarify MANDATORY behavior.
293 2023-10-12 Zhang, Jun <jun.zhang@intel.com>
295 * env.c (initialize_env): Use do_adjust_default_spincount.
296 * config/linux/x86/spincount.h: New file.
298 2023-10-08 Tobias Burnus <tobias@codesourcery.com>
300 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
302 2023-10-06 Tobias Burnus <tobias@codesourcery.com>
304 * libgomp.texi (Device Memory Routines): New.
306 2023-10-04 Tobias Burnus <tobias@codesourcery.com>
308 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
309 and that other target archs have no 'arch'/'isa' traits implemented.
311 2023-09-20 Tobias Burnus <tobias@codesourcery.com>
313 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
314 implemented for C only.
315 * testsuite/libgomp.c/allocate-4.c: New test.
316 * testsuite/libgomp.c/allocate-5.c: New test.
317 * testsuite/libgomp.c/allocate-6.c: New test.
319 2023-09-20 Jakub Jelinek <jakub@redhat.com>
322 * libgomp.texi: Mark decl attribute was added to the C++ attribute
323 syntax as implemented.
325 2023-09-19 Jakub Jelinek <jakub@redhat.com>
328 * env.c (initialize_env): Don't dereference environ if it is NULL.
331 2023-09-18 Richard Biener <rguenther@suse.de>
333 PR tree-optimization/111294
334 * team.c (gomp_team_start): Assert alloca size to avoid false
335 positive alloc-size diagnostic.
337 2023-09-12 Thomas Schwinge <thomas@codesourcery.com>
338 Chung-Lin Tang <cltang@codesourcery.com>
342 * configure.ac: Revert earlier changes, instead
343 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
344 * Makefile.in: Regenerate.
345 * configure: Likewise.
346 * testsuite/Makefile.in: Likewise.
347 * testsuite/lib/libgomp.exp (libgomp_init): Remove
348 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
349 If '--with-build-sysroot=[...]' was specified, use it for
351 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
352 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
353 (SYSROOT_CFLAGS_FOR_TARGET): Set.
354 * testsuite/libgomp.c++/c++.exp (lang_source_re)
355 (lang_include_flags): Set for build-tree testing.
356 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
357 (lang_include_flags): Likewise.
359 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
361 * libgomp.texi (Memory Management Routines): New; add documentation for
362 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
363 omp_get_default_allocator.
364 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
366 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
368 * target.c (gomp_unload_device): Remove tailing whitespace.
370 2023-09-04 Tobias Burnus <tobias@codesourcery.com>
371 Thomas Schwinge <thomas@codesourcery.com>
373 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
375 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
377 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
379 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
381 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
382 * testsuite/libgomp.fortran/imperfect1.f90: New.
383 * testsuite/libgomp.fortran/imperfect2.f90: New.
384 * testsuite/libgomp.fortran/imperfect3.f90: New.
385 * testsuite/libgomp.fortran/imperfect4.f90: New.
386 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
387 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
388 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
389 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
391 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
393 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
394 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
395 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
396 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
397 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
398 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
399 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
400 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
401 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
402 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
404 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
406 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
407 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
408 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
409 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
410 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
411 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
412 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
413 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
414 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
415 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
416 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
417 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
418 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
420 2023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
422 * testsuite/lib/libgomp.exp: Add effective target.
423 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
426 2023-08-22 Tobias Burnus <tobias@codesourcery.com>
428 * libgomp.texi (OpenMP 5.2 status): Add depobj with
429 destroy-var argument as 'N'. Mark defaultmap with
430 'all' category as 'Y'.
432 2023-08-19 Tobias Burnus <tobias@codesourcery.com>
435 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
437 2023-08-17 Tobias Burnus <tobias@codesourcery.com>
440 * allocator.c (gomp_init_libnuma): Call numa_available; if
441 not available or not returning 0, disable libnuma usage.
443 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
445 * configure: Regenerate.
447 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
449 * configure: Regenerate.
451 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
453 * configure: Regenerate.
455 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
457 * configure: Regenerate.
459 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
461 * configure: Regenerate.
463 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
465 * configure: Regenerate.
467 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
469 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
470 GOMP_OFFLOAD_CAP_SHARED_MEM.
471 (omp_target_memcpy_rect_copy): Likewise for lock condition.
472 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
474 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
475 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
476 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
478 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
480 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
481 GOMP_OFFLOAD_memcpy3d): New prototypes.
482 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
484 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
485 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
486 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
487 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
488 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
489 GOMP_OFFLOAD_memcpy3d): New.
490 * target.c (omp_target_memcpy_rect_worker):
491 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
492 Permit all device-to-device copyies; invoke new plugins for
493 2D and 3D copying when available.
494 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
495 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
496 * testsuite/libgomp.fortran/target-12.f90: Likewise.
497 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
499 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
501 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
502 (Tasking Routines): Document omp_in_explicit_task.
503 (Implementation-defined ICV Initialization): Use @ref not @code.
505 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
507 * libgomp.texi (OpenMP Runtime Library Routines):
508 Split long list by adding sections and moving routines there.
509 (OMP_ALLOCATORS): Fix typo.
511 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
514 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
515 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
517 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
518 test file; tests are in non-rectangular-loop-1.f90.
519 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
520 testcase to use a non-constant step to retain the 'sorry' test.
521 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
523 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
524 Chung-Lin Tang <cltang@codesourcery.com>
526 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
527 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
529 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
531 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
532 the traits. Add crossref to 'Memory allocation'.
533 (Memory allocation): Refer to OMP_ALLOCATOR for the available
534 traits and allocators/mem spaces; document the default value
535 for the pool_size trait.
537 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
539 * allocator.c (omp_init_allocator): Check whether symbol from
540 dlopened libnuma is available before using libnuma for
543 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
545 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
546 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
547 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
549 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
551 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
552 'Memory allocation' section which contains the full status.
553 (TR11): Remove differently worded duplicated entry.
555 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
557 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
558 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
559 add GOMP_MEMKIND_LIBNUMA.
560 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
561 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
562 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
563 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
565 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
566 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
567 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
568 updated for libnuma usage.
569 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
570 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
572 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
574 * allocator.c (omp_init_allocator): Use malloc for
575 omp_high_bw_mem_space when the memkind lib is unavailable
576 instead of returning omp_null_allocator.
577 * libgomp.texi (OpenMP 5.0): Fix typo.
578 (Memory allocation with libmemkind): Document implementation
581 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
583 * libgomp.texi: Use @var for ICV vars.
584 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
585 document which ICV is set and which scope the ICV has; extend/cleanup
587 (Implementation-defined ICV Initialization): New.
588 (nvptx): Document the implementation-defined used per-warp stack size.
590 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
592 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
595 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
597 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
598 as expected dg-output.
600 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
603 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
604 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
605 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
606 * testsuite/libgomp.c/target-19.c: Update expected value.
607 * testsuite/libgomp.c++/target-18.C: Likewise.
608 * testsuite/libgomp.c++/target-19.C: Likewise.
609 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
610 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
611 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
613 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
615 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
616 gomp_init_targets_once was called before using default-device-var.
617 * testsuite/libgomp.c/target-55.c: New test.
618 * testsuite/libgomp.c/target-55a.c: New test.
620 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
622 * env.c (gomp_def_allocator_envvar): New var.
623 (parse_allocator): Handle OpenMP 5.1 syntax.
625 (omp_display_env): Output gomp_def_allocator_envvar
626 for an allocator with traits.
627 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
628 OMP_DISPLAY_AFFINITY): New.
629 * testsuite/libgomp.c/allocator-1.c: New test.
630 * testsuite/libgomp.c/allocator-2.c: New test.
631 * testsuite/libgomp.c/allocator-3.c: New test.
632 * testsuite/libgomp.c/allocator-4.c: New test.
633 * testsuite/libgomp.c/allocator-5.c: New test.
634 * testsuite/libgomp.c/allocator-6.c: New test.
636 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
638 * target.c (resolve_device): Align a
639 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
640 * testsuite/libgomp.c/target-51.c: Adjust.
642 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
644 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
646 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
648 * testsuite/libgomp.c/simd-math-1.c: Remove
649 '-foffload-options=-lm'.
650 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
652 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
655 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
657 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
658 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
661 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
663 * testsuite/libgomp.c/target-51.c: Fix typo.
665 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
667 * env.c (gomp_default_icv_values): Init default_device_var to
668 an nonconforming value - INT_MIN.
669 (initialize_env): After env-var parsing, set default_device_var to
670 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
671 (omp_display_env): If default_device_var is INT_MIN, call
672 gomp_init_targets_once.
673 * icv-device.c (omp_get_default_device): Likewise.
674 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
675 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
676 * target.c (resolve_device): Improve error message device-num < 0
677 with 'mandatory' and no no-host devices available.
678 (gomp_target_init): Set default-device-var if INT_MIN.
679 * testsuite/libgomp.c/target-48.c: New test.
680 * testsuite/libgomp.c/target-49.c: New test.
681 * testsuite/libgomp.c/target-50.c: New test.
682 * testsuite/libgomp.c/target-50a.c: New test.
683 * testsuite/libgomp.c/target-51.c: New test.
684 * testsuite/libgomp.c/target-52.c: New test.
685 * testsuite/libgomp.c/target-53.c: New test.
686 * testsuite/libgomp.c/target-54.c: New test.
688 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
691 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
692 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
694 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
696 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
697 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
698 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
700 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
701 changed error message.
702 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
703 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
704 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
705 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
706 extend testcase to check that data is copied when needed.
707 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
708 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
710 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
711 Tobias Burnus <tobias@codesourcery.com>
713 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
714 also for non-offload_device targets; check that it runs
715 successfully for those and for all until a checkpoint for all
716 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
717 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
718 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
719 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
720 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
721 add missing vars to map clause.
723 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
725 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
726 unified_address requirement as supported.
727 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
728 'unified_address' from the not-supported requirements.
730 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
731 Tobias Burnus <tobias@codesourcery.com>
733 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
734 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
735 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
737 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
738 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
739 Emit runtime error if memory region not present.
740 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
741 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
742 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
743 * testsuite/libgomp.fortran/target-present-1.f90: New test.
744 * testsuite/libgomp.fortran/target-present-2.f90: New test.
745 * testsuite/libgomp.fortran/target-present-3.f90: New test.
747 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
750 * testsuite/lib/libgomp.exp: 'flock' through stdout.
751 * testsuite/flock: New.
752 * configure.ac (FLOCK): Point to that if no 'flock' available, but
754 * configure: Regenerate.
756 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
758 * configure.ac (PERL): Remove.
759 * configure: Regenerate.
760 * Makefile.in: Likewise.
761 * testsuite/Makefile.in: Likewise.
763 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
765 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
767 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
769 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
771 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
774 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
775 * config/nvptx/target.c (GOMP_teams4): Likewise.
776 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
777 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
778 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
779 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
781 2023-05-19 Jakub Jelinek <jakub@redhat.com>
784 * configure.ac (link_gomp): Include also $DL_LIBS.
785 * configure: Regenerated.
787 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
789 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
791 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
792 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
793 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
794 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
796 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
799 * configure.ac: Look for 'flock'.
800 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
801 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
802 * testsuite/lib/libgomp.exp: ... but here, instead.
803 (libgomp_load): Override for parallel testing.
804 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
805 * configure: Regenerate.
806 * Makefile.in: Regenerate.
807 * testsuite/Makefile.in: Regenerate.
809 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
810 Thomas Schwinge <thomas@codesourcery.com>
813 * testsuite/Makefile.am (PWD_COMMAND): New variable.
814 (%/site.exp): New target.
815 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
816 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
817 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
819 (check_DEJAGNU_libgomp_targets): New variables.
820 ($(check_DEJAGNU_libgomp_targets)): New target.
821 ($(check_DEJAGNU_libgomp_targets)): New dependency.
822 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
823 * testsuite/Makefile.in: Regenerate.
824 * testsuite/lib/libgomp.exp: For parallel testing,
825 'load_file ../libgomp-test-support.exp'.
827 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
830 * configure.ac: 'AC_SUBST(CXX)'.
831 * configure: Regenerate.
832 * Makefile.in: Likewise.
833 * testsuite/Makefile.in: Likewise.
834 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
835 (GFORTRAN_UNDER_TEST): Set.
836 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
837 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
838 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
839 * testsuite/libgomp.fortran/fortran.exp: Use
840 'GFORTRAN_UNDER_TEST'.
841 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
843 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
846 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
848 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
849 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
850 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
851 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
853 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
854 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
855 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
858 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
861 * testsuite/libgomp.c++/target-map-class-1.C: New test.
862 * testsuite/libgomp.c++/target-map-class-2.C: New test.
864 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
866 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
867 'lang_library_path' into a list of 'lang_library_paths'.
868 * testsuite/libgomp.c++/c++.exp: Adjust.
869 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
870 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
872 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
874 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
876 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
877 at 'lang_test_file_found'.
878 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
879 'return' early if not able to test. Simplify 'ld_library_path' setup.
880 * testsuite/libgomp.fortran/fortran.exp: Likewise.
881 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
882 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
884 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
886 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
888 * testsuite/libgomp.fortran/fortran.exp: Likewise.
889 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
890 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
892 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
894 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
895 * testsuite/libgomp.c/c.exp: Likewise.
896 * testsuite/libgomp.fortran/fortran.exp: Likewise.
897 * testsuite/libgomp.graphite/graphite.exp: Likewise.
898 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
899 * testsuite/libgomp.oacc-c/c.exp: Likewise.
900 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
902 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
904 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
905 * testsuite/libgomp.fortran/fortran.exp: Likewise.
906 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
907 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
908 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
910 * testsuite/libgomp.oacc-c/c.exp: Likewise.
911 * testsuite/libgomp.graphite/graphite.exp: Likewise.
912 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
913 'lang_test_file_found' instead of 'lang_test_file'.
915 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
917 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
919 * testsuite/libgomp.c++/c++.exp: Likewise.
920 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
922 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
924 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
925 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
927 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
929 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
930 of 'libstdcxx_includes'.
931 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
933 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
935 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
936 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
937 * libgomp.h (gomp_target_rev): Adjust.
938 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
939 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
940 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
941 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
942 (rev_off_host_to_dev_cpy): Remove.
943 (GOMP_OFFLOAD_run): Adjust.
945 2023-05-04 Julian Brown <julian@codesourcery.com>
948 * testsuite/libgomp.fortran/pr109622.f90: Move test...
949 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
950 vector length warning.
951 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
952 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
953 missing copyin/copyout variable. Ignore vector length warnings.
954 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
955 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
956 vector length warnings.
957 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
959 2023-04-28 Julian Brown <julian@codesourcery.com>
962 * testsuite/libgomp.fortran/pr109622.f90: New test.
963 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
964 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
966 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
968 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
969 * testsuite/libgomp.c/scan-23.c: New test.
970 * testsuite/libgomp.fortran/scan-2.f90: New test.
972 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
974 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
975 weak_undefined options.
977 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
979 * libgomp.texi (Offload-Target Specifics): Grammar fix.
981 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
984 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
987 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
990 * target.c (gomp_map_vars_internal): Allow for
991 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
992 * oacc-parallel.c (GOACC_parallel_keyed): Pass
993 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
994 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
995 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
997 (gomp_offload_free): Remove.
998 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
999 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1000 (cuda_free_argmem): Remove.
1001 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1004 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1006 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1007 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1010 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1012 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1013 'GOMP_MAP_IF_PRESENT'.
1014 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1015 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1016 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1017 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1018 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1020 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1022 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1024 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1027 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1029 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1030 another aspect of OpenACC 'async' semantics.
1032 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1034 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1036 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1037 Verify 'acc_ev_alloc', 'acc_ev_free'.
1039 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
1042 * env.c (wait_policy): Initialize to -1.
1043 (initialize_icvs): Initialize icvs->wait_policy to -1.
1044 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1046 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
1048 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1050 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1051 Paul-Antoine Arras <pa@codesourcery.com>
1053 * testsuite/libgomp.c/simd-math-1.c: New testcase.
1055 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
1057 PR middle-end/108546
1058 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1059 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1061 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
1063 * testsuite/libgomp.fortran/alloc-10.f90: Use
1064 '-Wno-complain-wrong-lang'.
1065 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1066 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1067 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1068 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1069 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1070 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1071 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1072 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1073 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1074 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1076 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1078 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1079 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1080 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1081 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1084 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1086 * libgomp.texi: Fix typos - theads -> threads.
1088 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1090 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1091 comment typo and improve its wording.
1093 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1095 * target.c (gomp_target_rev): Dereference ptr
1096 to get device address.
1097 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1098 for unallocated allocatable.
1100 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1102 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1104 (GOMP_target_enter_exit_data): If the next map item is
1105 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1106 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1108 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
1111 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1112 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1113 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1114 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1115 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1116 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1118 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
1120 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1121 offloading compilation.
1123 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1125 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1126 freeing not allocated memory.
1127 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1129 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1131 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1133 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1134 reverse-offload requirement.
1136 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
1138 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1139 (DEFAULT_TEAM_ARENA_SIZE): New define.
1140 (struct heap): Move to this file.
1141 (struct kernargs_abi): Likewise.
1142 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1144 * libgomp.h: Include libgomp-gcn.h.
1145 (TEAM_ARENA_SIZE): Remove.
1146 (team_malloc): Update the error message.
1147 * plugin/plugin-gcn.c (struct kernargs): Move common content to
1148 struct kernargs_abi.
1149 (struct agent_info): Rename team arenas to ephemeral memories.
1150 (struct team_arena_list): Rename ....
1151 (struct ephemeral_memories_list): to this.
1152 (struct heap): Delete.
1153 (team_arena_size): New variable.
1154 (stack_size): New variable.
1155 (print_kernel_dispatch): Update debug messages.
1156 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1157 Read GCN_STACK_SIZE.
1158 (get_team_arena): Rename ...
1159 (configure_ephemeral_memories): ... to this, and set up stacks.
1160 (release_team_arena): Rename ...
1161 (release_ephemeral_memories): ... to this.
1162 (destroy_team_arenas): Rename ...
1163 (destroy_ephemeral_memories): ... to this.
1164 (create_kernel_dispatch): Add num_threads parameter.
1165 Adjust for kernargs_abi refactor and ephemeral memories.
1166 (release_kernel_dispatch): Adjust for ephemeral memories.
1167 (run_kernel): Pass thread-count to create_kernel_dispatch.
1168 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1169 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1171 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
1173 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1175 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1177 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1178 usage, remove unused -fdump-tree-original.
1179 * testsuite/libgomp.fortran/allocate-4.f90: New.
1181 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1183 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1184 (GCN): Add item about 'omp requires'.
1185 (nvptx): Likewise; add item about reverse offload.
1187 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
1190 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1192 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
1194 * libgomp.texi (OpenMP 5.0): Set non-rectangular
1195 loop nest back to 'P' as Fortran support is incomplete.
1197 2023-01-19 Jakub Jelinek <jakub@redhat.com>
1199 PR middle-end/108459
1200 * testsuite/libgomp.c/pr108459.c: New test.
1202 2023-01-17 Martin Liska <mliska@suse.cz>
1204 * Makefile.in: Regenerate.
1205 * configure: Regenerate.
1207 2023-01-07 LIU Hao <lh_mouse@126.com>
1209 PR middle-end/108300
1210 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1213 2023-01-05 Jakub Jelinek <jakub@redhat.com>
1216 * testsuite/libgomp.c++/pr108286.C: New test.
1218 2023-01-02 Jakub Jelinek <jakub@redhat.com>
1220 * libgomp.texi: Bump @copying's copyright year.
1222 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
1225 * config/nvptx/bar.c (generation_to_barrier): Remove.
1226 (futex_wait,futex_wake,do_spin,do_wait): Remove.
1227 (GOMP_WAIT_H): Remove.
1228 (#include "../linux/bar.c"): Remove.
1229 (gomp_barrier_wait_end): New function.
1230 (gomp_barrier_wait): Likewise.
1231 (gomp_barrier_wait_last): Likewise.
1232 (gomp_team_barrier_wait_end): Likewise.
1233 (gomp_team_barrier_wait): Likewise.
1234 (gomp_team_barrier_wait_final): Likewise.
1235 (gomp_team_barrier_wait_cancel_end): Likewise.
1236 (gomp_team_barrier_wait_cancel): Likewise.
1237 (gomp_team_barrier_cancel): Likewise.
1238 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1239 (gomp_barrier_init): Remove init of waiters, lock fields.
1240 (gomp_team_barrier_wake): Remove prototype, add new static inline
1243 2022-12-21 Jakub Jelinek <jakub@redhat.com>
1246 * testsuite/libgomp.c++/pr108180.C: New test.
1248 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
1250 PR libfortran/108056
1251 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1252 accidentally added file.
1254 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
1256 PR libfortran/108056
1257 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1259 2022-12-14 Julian Brown <julian@codesourcery.com>
1261 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1264 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
1266 * libgomp.h (struct target_mem_desc): Predeclare; move
1267 below after 'reverse_splay_tree_node' and add rev_array
1269 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1270 (reverse_splay_tree_node, reverse_splay_tree,
1271 reverse_splay_tree_key): New typedef.
1272 (struct gomp_device_descr): Add mem_map_rev member.
1273 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1274 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1275 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1276 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1277 splay_tree_callback but returning int not void.
1278 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1279 taking splay_tree_callback_stop as argument.
1280 * splay-tree.c (splay_tree_foreach_internal_lazy,
1281 splay_tree_foreach_lazy): New; but early exit if callback returns
1283 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1284 (gomp_map_lookup_rev): New.
1285 (gomp_load_image_to_device): Handle reverse-offload function
1287 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1288 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1289 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1290 gomp_map_cdata_lookup): New auxiliary structs and functions for
1292 (gomp_target_rev): Implement reverse offloading and its mapping.
1293 (gomp_target_init): Init current_device.mem_map_rev.root.
1294 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1295 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1296 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1297 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1298 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1299 mapping of on-device allocated variables.
1301 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
1303 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1304 item about 'align'; mark clause as 'Y' and directive as 'N'.
1305 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1306 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1308 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1310 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1311 allow processing of device-specific values.
1312 (omp_set_teams_thread_limit): Likewise.
1314 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1315 (omp_set_teams_thread_limit): Likewise.
1317 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1319 (omp_set_teams_thread_limit): Likewise.
1320 * icv.c (omp_set_teams_thread_limit): Removed.
1321 (omp_get_teams_thread_limit): Likewise.
1323 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1324 to the limitation of the number of teams.
1325 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1326 the number of teams by twice the number of compute units.
1327 (parse_target_attributes): Limit the number of teams on gcn offload
1329 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1331 (gomp_load_image_to_device): Added a size check for the ICVs struct
1333 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1334 copy back the ICV values from device to host.
1335 (GOMP_target_ext): Update the number of teams and threads in the kernel
1336 args also considering device-specific values.
1337 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1338 of OMP_TEAMS_THREAD_LIMIT from the environment.
1339 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1340 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1341 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1342 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1343 * testsuite/libgomp.fortran/icv-5.f90: New test.
1344 * testsuite/libgomp.fortran/icv-6.f90: New test.
1346 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
1348 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1349 (TR11): Add missing '@tab N @tab'.
1351 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
1353 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1355 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1357 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1358 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1359 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1360 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1361 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1362 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1363 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1365 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
1367 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1369 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1371 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1372 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1373 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1374 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1376 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1378 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1379 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1380 as valid and the code having no reverse-offload code.
1381 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1383 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1385 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1386 and status for Technical Report (TR) 11.
1388 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
1390 * config/gcn/libgomp-gcn.h (struct output):
1391 Remove 'msg_u64' from the union, change
1392 value_u64[2] to value_u64[6].
1393 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1394 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1397 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
1399 * config/gcn/libgomp-gcn.h: New file; contains
1400 struct output, declared previously in plugin-gcn.c.
1401 * config/gcn/target.c: Include it.
1402 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1403 (GOMP_target_ext): Handle reverse offload.
1404 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1405 (struct kernargs): Replace struct def by the one
1406 from libgomp-gcn.h for output_data.
1407 (process_reverse_offload): New.
1408 (console_output): Call it.
1410 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
1411 Andrew Stubbs <ams@codesourcery.com>
1413 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1414 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1416 2022-11-14 Martin Liska <mliska@suse.cz>
1419 2022-11-14 Martin Liska <mliska@suse.cz>
1421 * doc/amd-radeon-gcn.rst: New file.
1422 * doc/conf.py: New file.
1423 * doc/copyright.rst: New file.
1424 * doc/cuda-streams-usage.rst: New file.
1425 * doc/enabling-openacc.rst: New file.
1426 * doc/enabling-openmp.rst: New file.
1427 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1428 * doc/first-invocation-openacc-library-api.rst: New file.
1429 * doc/funding.rst: New file.
1430 * doc/general-public-license-3.rst: New file.
1431 * doc/gnu-free-documentation-license.rst: New file.
1432 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1433 * doc/index.rst: New file.
1434 * doc/indices-and-tables.rst: New file.
1435 * doc/introduction.rst: New file.
1436 * doc/memory-allocation-with-libmemkind.rst: New file.
1437 * doc/nvptx.rst: New file.
1438 * doc/offload-target-specifics.rst: New file.
1439 * doc/openacc-environment-variables.rst: New file.
1440 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1441 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1442 * doc/openacc-environment-variables/accproflib.rst: New file.
1443 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1444 * doc/openacc-introduction.rst: New file.
1445 * doc/openacc-library-and-environment-variables.rst: New file.
1446 * doc/openacc-library-interoperability.rst: New file.
1447 * doc/openacc-profiling-interface.rst: New file.
1448 * doc/openacc-runtime-library-routines.rst: New file.
1449 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1450 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1451 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1452 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1453 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1454 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1455 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1456 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1457 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1458 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1459 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1460 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1461 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1462 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1463 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1464 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1465 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1466 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1467 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1468 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1469 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1470 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1471 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1472 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1473 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1474 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1475 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1476 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1477 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1478 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1479 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1480 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1481 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1482 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1483 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1484 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1485 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1486 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1487 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1488 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1489 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1490 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1491 * doc/openmp-context-selectors.rst: New file.
1492 * doc/openmp-environment-variables.rst: New file.
1493 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1494 * doc/openmp-environment-variables/gompdebug.rst: New file.
1495 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1496 * doc/openmp-environment-variables/gompspincount.rst: New file.
1497 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1498 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1499 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1500 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1501 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1502 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1503 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1504 * doc/openmp-environment-variables/ompnested.rst: New file.
1505 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1506 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1507 * doc/openmp-environment-variables/ompplaces.rst: New file.
1508 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1509 * doc/openmp-environment-variables/ompschedule.rst: New file.
1510 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1511 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1512 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1513 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1514 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1515 * doc/openmp-implementation-specifics.rst: New file.
1516 * doc/openmp-implementation-status.rst: New file.
1517 * doc/openmp-implementation-status/openmp-45.rst: New file.
1518 * doc/openmp-implementation-status/openmp-50.rst: New file.
1519 * doc/openmp-implementation-status/openmp-51.rst: New file.
1520 * doc/openmp-implementation-status/openmp-52.rst: New file.
1521 * doc/openmp-runtime-library-routines.rst: New file.
1522 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1523 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1524 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1525 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1526 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1527 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1528 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1529 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1530 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1531 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1532 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1533 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1534 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1535 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1536 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1537 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1538 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1539 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1540 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1541 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1542 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1543 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1544 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1545 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1546 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1547 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1548 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1549 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1550 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1551 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1552 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1553 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1554 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1555 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1556 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1557 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1558 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1559 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1560 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1561 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1562 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1563 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1564 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1565 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1566 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1567 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1568 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1569 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1570 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1571 * doc/reporting-bugs.rst: New file.
1572 * doc/the-libgomp-abi.rst: New file.
1573 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1574 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1575 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1576 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1578 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1579 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1580 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1581 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1582 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1583 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1584 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1585 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1586 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1587 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1588 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1590 2022-11-14 Martin Liska <mliska@suse.cz>
1593 2022-11-14 Martin Liska <mliska@suse.cz>
1595 * Makefile.in: Support Sphinx based documentation.
1597 2022-11-14 Martin Liska <mliska@suse.cz>
1600 2022-11-14 Martin Liska <mliska@suse.cz>
1602 * libgomp.texi: Removed.
1604 2022-11-14 Martin Liska <mliska@suse.cz>
1607 2022-11-14 Martin Liska <mliska@suse.cz>
1609 * Makefile.in: Support --with-sphinx-build.
1610 * configure.ac: Likewise..
1611 * configure: Regenerate.
1613 2022-11-14 Martin Liska <mliska@suse.cz>
1616 2022-11-09 Martin Liska <mliska@suse.cz>
1618 * Makefile.in: Build info pages conditionally.
1620 2022-11-14 Martin Liska <mliska@suse.cz>
1623 2022-11-14 Martin Liska <mliska@suse.cz>
1625 * doc/amd-radeon-gcn.rst:
1626 Add trailing newline.
1627 * doc/copyright.rst:
1628 Add trailing newline.
1629 * doc/cuda-streams-usage.rst:
1630 Add trailing newline.
1631 * doc/enabling-openacc.rst:
1632 Add trailing newline.
1633 * doc/enabling-openmp.rst:
1634 Add trailing newline.
1635 * doc/first-invocation-nvidia-cublas-library-api.rst:
1636 Add trailing newline.
1637 * doc/first-invocation-openacc-library-api.rst:
1638 Add trailing newline.
1640 Add trailing newline.
1641 * doc/general-public-license-3.rst:
1642 Add trailing newline.
1643 * doc/gnu-free-documentation-license.rst:
1644 Add trailing newline.
1645 * doc/implementation-status-and-implementation-defined-behavior.rst:
1646 Add trailing newline.
1648 Add trailing newline.
1649 * doc/indices-and-tables.rst:
1650 Add trailing newline.
1651 * doc/introduction.rst:
1652 Add trailing newline.
1653 * doc/memory-allocation-with-libmemkind.rst:
1654 Add trailing newline.
1656 Add trailing newline.
1657 * doc/offload-target-specifics.rst:
1658 Add trailing newline.
1659 * doc/openacc-environment-variables.rst:
1660 Add trailing newline.
1661 * doc/openacc-environment-variables/accdevicenum.rst:
1662 Add trailing newline.
1663 * doc/openacc-environment-variables/accdevicetype.rst:
1664 Add trailing newline.
1665 * doc/openacc-environment-variables/accproflib.rst:
1666 Add trailing newline.
1667 * doc/openacc-environment-variables/gccaccnotify.rst:
1668 Add trailing newline.
1669 * doc/openacc-introduction.rst:
1670 Add trailing newline.
1671 * doc/openacc-library-and-environment-variables.rst:
1672 Add trailing newline.
1673 * doc/openacc-library-interoperability.rst:
1674 Add trailing newline.
1675 * doc/openacc-profiling-interface.rst:
1676 Add trailing newline.
1677 * doc/openacc-runtime-library-routines.rst:
1678 Add trailing newline.
1679 * doc/openacc-runtime-library-routines/accasynctest.rst:
1680 Add trailing newline.
1681 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1682 Add trailing newline.
1683 * doc/openacc-runtime-library-routines/accattach.rst:
1684 Add trailing newline.
1685 * doc/openacc-runtime-library-routines/acccopyin.rst:
1686 Add trailing newline.
1687 * doc/openacc-runtime-library-routines/acccopyout.rst:
1688 Add trailing newline.
1689 * doc/openacc-runtime-library-routines/acccreate.rst:
1690 Add trailing newline.
1691 * doc/openacc-runtime-library-routines/accdelete.rst:
1692 Add trailing newline.
1693 * doc/openacc-runtime-library-routines/accdetach.rst:
1694 Add trailing newline.
1695 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1696 Add trailing newline.
1697 * doc/openacc-runtime-library-routines/accfree.rst:
1698 Add trailing newline.
1699 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1700 Add trailing newline.
1701 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1702 Add trailing newline.
1703 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1704 Add trailing newline.
1705 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1706 Add trailing newline.
1707 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1708 Add trailing newline.
1709 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1710 Add trailing newline.
1711 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1712 Add trailing newline.
1713 * doc/openacc-runtime-library-routines/acchostptr.rst:
1714 Add trailing newline.
1715 * doc/openacc-runtime-library-routines/accinit.rst:
1716 Add trailing newline.
1717 * doc/openacc-runtime-library-routines/accispresent.rst:
1718 Add trailing newline.
1719 * doc/openacc-runtime-library-routines/accmalloc.rst:
1720 Add trailing newline.
1721 * doc/openacc-runtime-library-routines/accmapdata.rst:
1722 Add trailing newline.
1723 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1724 Add trailing newline.
1725 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1726 Add trailing newline.
1727 * doc/openacc-runtime-library-routines/accondevice.rst:
1728 Add trailing newline.
1729 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1730 Add trailing newline.
1731 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1732 Add trailing newline.
1733 * doc/openacc-runtime-library-routines/accproflookup.rst:
1734 Add trailing newline.
1735 * doc/openacc-runtime-library-routines/accprofregister.rst:
1736 Add trailing newline.
1737 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1738 Add trailing newline.
1739 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1740 Add trailing newline.
1741 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1742 Add trailing newline.
1743 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1744 Add trailing newline.
1745 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1746 Add trailing newline.
1747 * doc/openacc-runtime-library-routines/accshutdown.rst:
1748 Add trailing newline.
1749 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1750 Add trailing newline.
1751 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1752 Add trailing newline.
1753 * doc/openacc-runtime-library-routines/accupdateself.rst:
1754 Add trailing newline.
1755 * doc/openacc-runtime-library-routines/accwait.rst:
1756 Add trailing newline.
1757 * doc/openacc-runtime-library-routines/accwaitall.rst:
1758 Add trailing newline.
1759 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1760 Add trailing newline.
1761 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1762 Add trailing newline.
1763 * doc/openmp-context-selectors.rst:
1764 Add trailing newline.
1765 * doc/openmp-environment-variables.rst:
1766 Add trailing newline.
1767 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1768 Add trailing newline.
1769 * doc/openmp-environment-variables/gompdebug.rst:
1770 Add trailing newline.
1771 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1772 Add trailing newline.
1773 * doc/openmp-environment-variables/gompspincount.rst:
1774 Add trailing newline.
1775 * doc/openmp-environment-variables/gompstacksize.rst:
1776 Add trailing newline.
1777 * doc/openmp-environment-variables/ompcancellation.rst:
1778 Add trailing newline.
1779 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1780 Add trailing newline.
1781 * doc/openmp-environment-variables/ompdisplayenv.rst:
1782 Add trailing newline.
1783 * doc/openmp-environment-variables/ompdynamic.rst:
1784 Add trailing newline.
1785 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1786 Add trailing newline.
1787 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1788 Add trailing newline.
1789 * doc/openmp-environment-variables/ompnested.rst:
1790 Add trailing newline.
1791 * doc/openmp-environment-variables/ompnumteams.rst:
1792 Add trailing newline.
1793 * doc/openmp-environment-variables/ompnumthreads.rst:
1794 Add trailing newline.
1795 * doc/openmp-environment-variables/ompplaces.rst:
1796 Add trailing newline.
1797 * doc/openmp-environment-variables/ompprocbind.rst:
1798 Add trailing newline.
1799 * doc/openmp-environment-variables/ompschedule.rst:
1800 Add trailing newline.
1801 * doc/openmp-environment-variables/ompstacksize.rst:
1802 Add trailing newline.
1803 * doc/openmp-environment-variables/omptargetoffload.rst:
1804 Add trailing newline.
1805 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1806 Add trailing newline.
1807 * doc/openmp-environment-variables/ompthreadlimit.rst:
1808 Add trailing newline.
1809 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1810 Add trailing newline.
1811 * doc/openmp-implementation-specifics.rst:
1812 Add trailing newline.
1813 * doc/openmp-implementation-status.rst:
1814 Add trailing newline.
1815 * doc/openmp-implementation-status/openmp-45.rst:
1816 Add trailing newline.
1817 * doc/openmp-implementation-status/openmp-50.rst:
1818 Add trailing newline.
1819 * doc/openmp-implementation-status/openmp-51.rst:
1820 Add trailing newline.
1821 * doc/openmp-implementation-status/openmp-52.rst:
1822 Add trailing newline.
1823 * doc/openmp-runtime-library-routines.rst:
1824 Add trailing newline.
1825 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1826 Add trailing newline.
1827 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1828 Add trailing newline.
1829 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1830 Add trailing newline.
1831 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1832 Add trailing newline.
1833 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1834 Add trailing newline.
1835 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1836 Add trailing newline.
1837 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1838 Add trailing newline.
1839 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1840 Add trailing newline.
1841 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1842 Add trailing newline.
1843 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1844 Add trailing newline.
1845 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1846 Add trailing newline.
1847 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1848 Add trailing newline.
1849 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1850 Add trailing newline.
1851 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1852 Add trailing newline.
1853 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1854 Add trailing newline.
1855 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1856 Add trailing newline.
1857 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1858 Add trailing newline.
1859 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1860 Add trailing newline.
1861 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1862 Add trailing newline.
1863 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1864 Add trailing newline.
1865 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1866 Add trailing newline.
1867 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1868 Add trailing newline.
1869 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1870 Add trailing newline.
1871 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1872 Add trailing newline.
1873 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1874 Add trailing newline.
1875 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1876 Add trailing newline.
1877 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1878 Add trailing newline.
1879 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1880 Add trailing newline.
1881 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1882 Add trailing newline.
1883 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1884 Add trailing newline.
1885 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1886 Add trailing newline.
1887 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1888 Add trailing newline.
1889 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1890 Add trailing newline.
1891 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1892 Add trailing newline.
1893 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1894 Add trailing newline.
1895 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1896 Add trailing newline.
1897 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1898 Add trailing newline.
1899 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1900 Add trailing newline.
1901 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1902 Add trailing newline.
1903 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1904 Add trailing newline.
1905 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1906 Add trailing newline.
1907 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1908 Add trailing newline.
1909 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1910 Add trailing newline.
1911 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1912 Add trailing newline.
1913 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1914 Add trailing newline.
1915 * doc/openmp-runtime-library-routines/omptestlock.rst:
1916 Add trailing newline.
1917 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1918 Add trailing newline.
1919 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1920 Add trailing newline.
1921 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1922 Add trailing newline.
1923 * doc/reporting-bugs.rst:
1924 Add trailing newline.
1925 * doc/the-libgomp-abi.rst:
1926 Add trailing newline.
1927 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1928 Add trailing newline.
1929 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1930 Add trailing newline.
1931 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1932 Add trailing newline.
1933 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1934 Add trailing newline.
1935 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1936 Add trailing newline.
1937 * doc/the-libgomp-abi/implementing-for-construct.rst:
1938 Add trailing newline.
1939 * doc/the-libgomp-abi/implementing-master-construct.rst:
1940 Add trailing newline.
1941 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1942 Add trailing newline.
1943 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1944 Add trailing newline.
1945 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1946 Add trailing newline.
1947 * doc/the-libgomp-abi/implementing-private-clause.rst:
1948 Add trailing newline.
1949 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1950 Add trailing newline.
1951 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1952 Add trailing newline.
1953 * doc/the-libgomp-abi/implementing-single-construct.rst:
1954 Add trailing newline.
1955 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1956 Add trailing newline.
1958 2022-11-14 Martin Liska <mliska@suse.cz>
1961 2022-11-09 Martin Liska <mliska@suse.cz>
1963 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1965 2022-11-14 Martin Liska <mliska@suse.cz>
1968 2022-11-14 Martin Liska <mliska@suse.cz>
1970 * doc/conf.py: Add newline at last line.
1972 2022-11-14 Martin Liska <mliska@suse.cz>
1975 2022-11-14 Martin Liska <mliska@suse.cz>
1978 * configure: Regenerate.
1979 * configure.ac: Always set sphinx-build.
1981 2022-11-13 Martin Liska <mliska@suse.cz>
1984 * configure: Regenerate.
1985 * configure.ac: Always set sphinx-build.
1987 2022-11-12 Jakub Jelinek <jakub@redhat.com>
1990 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1991 unsigned long. Change type of upper from unsigned to unsigned long.
1993 2022-11-10 Martin Liska <mliska@suse.cz>
1995 * doc/conf.py: Add newline at last line.
1997 2022-11-09 Martin Liska <mliska@suse.cz>
1999 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2001 2022-11-09 Martin Liska <mliska@suse.cz>
2003 * doc/amd-radeon-gcn.rst:
2004 Add trailing newline.
2005 * doc/copyright.rst:
2006 Add trailing newline.
2007 * doc/cuda-streams-usage.rst:
2008 Add trailing newline.
2009 * doc/enabling-openacc.rst:
2010 Add trailing newline.
2011 * doc/enabling-openmp.rst:
2012 Add trailing newline.
2013 * doc/first-invocation-nvidia-cublas-library-api.rst:
2014 Add trailing newline.
2015 * doc/first-invocation-openacc-library-api.rst:
2016 Add trailing newline.
2018 Add trailing newline.
2019 * doc/general-public-license-3.rst:
2020 Add trailing newline.
2021 * doc/gnu-free-documentation-license.rst:
2022 Add trailing newline.
2023 * doc/implementation-status-and-implementation-defined-behavior.rst:
2024 Add trailing newline.
2026 Add trailing newline.
2027 * doc/indices-and-tables.rst:
2028 Add trailing newline.
2029 * doc/introduction.rst:
2030 Add trailing newline.
2031 * doc/memory-allocation-with-libmemkind.rst:
2032 Add trailing newline.
2034 Add trailing newline.
2035 * doc/offload-target-specifics.rst:
2036 Add trailing newline.
2037 * doc/openacc-environment-variables.rst:
2038 Add trailing newline.
2039 * doc/openacc-environment-variables/accdevicenum.rst:
2040 Add trailing newline.
2041 * doc/openacc-environment-variables/accdevicetype.rst:
2042 Add trailing newline.
2043 * doc/openacc-environment-variables/accproflib.rst:
2044 Add trailing newline.
2045 * doc/openacc-environment-variables/gccaccnotify.rst:
2046 Add trailing newline.
2047 * doc/openacc-introduction.rst:
2048 Add trailing newline.
2049 * doc/openacc-library-and-environment-variables.rst:
2050 Add trailing newline.
2051 * doc/openacc-library-interoperability.rst:
2052 Add trailing newline.
2053 * doc/openacc-profiling-interface.rst:
2054 Add trailing newline.
2055 * doc/openacc-runtime-library-routines.rst:
2056 Add trailing newline.
2057 * doc/openacc-runtime-library-routines/accasynctest.rst:
2058 Add trailing newline.
2059 * doc/openacc-runtime-library-routines/accasynctestall.rst:
2060 Add trailing newline.
2061 * doc/openacc-runtime-library-routines/accattach.rst:
2062 Add trailing newline.
2063 * doc/openacc-runtime-library-routines/acccopyin.rst:
2064 Add trailing newline.
2065 * doc/openacc-runtime-library-routines/acccopyout.rst:
2066 Add trailing newline.
2067 * doc/openacc-runtime-library-routines/acccreate.rst:
2068 Add trailing newline.
2069 * doc/openacc-runtime-library-routines/accdelete.rst:
2070 Add trailing newline.
2071 * doc/openacc-runtime-library-routines/accdetach.rst:
2072 Add trailing newline.
2073 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2074 Add trailing newline.
2075 * doc/openacc-runtime-library-routines/accfree.rst:
2076 Add trailing newline.
2077 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2078 Add trailing newline.
2079 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2080 Add trailing newline.
2081 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2082 Add trailing newline.
2083 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2084 Add trailing newline.
2085 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2086 Add trailing newline.
2087 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2088 Add trailing newline.
2089 * doc/openacc-runtime-library-routines/accgetproperty.rst:
2090 Add trailing newline.
2091 * doc/openacc-runtime-library-routines/acchostptr.rst:
2092 Add trailing newline.
2093 * doc/openacc-runtime-library-routines/accinit.rst:
2094 Add trailing newline.
2095 * doc/openacc-runtime-library-routines/accispresent.rst:
2096 Add trailing newline.
2097 * doc/openacc-runtime-library-routines/accmalloc.rst:
2098 Add trailing newline.
2099 * doc/openacc-runtime-library-routines/accmapdata.rst:
2100 Add trailing newline.
2101 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2102 Add trailing newline.
2103 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2104 Add trailing newline.
2105 * doc/openacc-runtime-library-routines/accondevice.rst:
2106 Add trailing newline.
2107 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2108 Add trailing newline.
2109 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2110 Add trailing newline.
2111 * doc/openacc-runtime-library-routines/accproflookup.rst:
2112 Add trailing newline.
2113 * doc/openacc-runtime-library-routines/accprofregister.rst:
2114 Add trailing newline.
2115 * doc/openacc-runtime-library-routines/accprofunregister.rst:
2116 Add trailing newline.
2117 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2118 Add trailing newline.
2119 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2120 Add trailing newline.
2121 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2122 Add trailing newline.
2123 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2124 Add trailing newline.
2125 * doc/openacc-runtime-library-routines/accshutdown.rst:
2126 Add trailing newline.
2127 * doc/openacc-runtime-library-routines/accunmapdata.rst:
2128 Add trailing newline.
2129 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2130 Add trailing newline.
2131 * doc/openacc-runtime-library-routines/accupdateself.rst:
2132 Add trailing newline.
2133 * doc/openacc-runtime-library-routines/accwait.rst:
2134 Add trailing newline.
2135 * doc/openacc-runtime-library-routines/accwaitall.rst:
2136 Add trailing newline.
2137 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2138 Add trailing newline.
2139 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2140 Add trailing newline.
2141 * doc/openmp-context-selectors.rst:
2142 Add trailing newline.
2143 * doc/openmp-environment-variables.rst:
2144 Add trailing newline.
2145 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2146 Add trailing newline.
2147 * doc/openmp-environment-variables/gompdebug.rst:
2148 Add trailing newline.
2149 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2150 Add trailing newline.
2151 * doc/openmp-environment-variables/gompspincount.rst:
2152 Add trailing newline.
2153 * doc/openmp-environment-variables/gompstacksize.rst:
2154 Add trailing newline.
2155 * doc/openmp-environment-variables/ompcancellation.rst:
2156 Add trailing newline.
2157 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2158 Add trailing newline.
2159 * doc/openmp-environment-variables/ompdisplayenv.rst:
2160 Add trailing newline.
2161 * doc/openmp-environment-variables/ompdynamic.rst:
2162 Add trailing newline.
2163 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2164 Add trailing newline.
2165 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2166 Add trailing newline.
2167 * doc/openmp-environment-variables/ompnested.rst:
2168 Add trailing newline.
2169 * doc/openmp-environment-variables/ompnumteams.rst:
2170 Add trailing newline.
2171 * doc/openmp-environment-variables/ompnumthreads.rst:
2172 Add trailing newline.
2173 * doc/openmp-environment-variables/ompplaces.rst:
2174 Add trailing newline.
2175 * doc/openmp-environment-variables/ompprocbind.rst:
2176 Add trailing newline.
2177 * doc/openmp-environment-variables/ompschedule.rst:
2178 Add trailing newline.
2179 * doc/openmp-environment-variables/ompstacksize.rst:
2180 Add trailing newline.
2181 * doc/openmp-environment-variables/omptargetoffload.rst:
2182 Add trailing newline.
2183 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2184 Add trailing newline.
2185 * doc/openmp-environment-variables/ompthreadlimit.rst:
2186 Add trailing newline.
2187 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2188 Add trailing newline.
2189 * doc/openmp-implementation-specifics.rst:
2190 Add trailing newline.
2191 * doc/openmp-implementation-status.rst:
2192 Add trailing newline.
2193 * doc/openmp-implementation-status/openmp-45.rst:
2194 Add trailing newline.
2195 * doc/openmp-implementation-status/openmp-50.rst:
2196 Add trailing newline.
2197 * doc/openmp-implementation-status/openmp-51.rst:
2198 Add trailing newline.
2199 * doc/openmp-implementation-status/openmp-52.rst:
2200 Add trailing newline.
2201 * doc/openmp-runtime-library-routines.rst:
2202 Add trailing newline.
2203 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2204 Add trailing newline.
2205 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2206 Add trailing newline.
2207 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2208 Add trailing newline.
2209 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2210 Add trailing newline.
2211 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2212 Add trailing newline.
2213 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2214 Add trailing newline.
2215 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2216 Add trailing newline.
2217 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2218 Add trailing newline.
2219 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2220 Add trailing newline.
2221 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2222 Add trailing newline.
2223 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2224 Add trailing newline.
2225 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2226 Add trailing newline.
2227 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2228 Add trailing newline.
2229 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2230 Add trailing newline.
2231 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2232 Add trailing newline.
2233 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2234 Add trailing newline.
2235 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2236 Add trailing newline.
2237 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2238 Add trailing newline.
2239 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2240 Add trailing newline.
2241 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2242 Add trailing newline.
2243 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2244 Add trailing newline.
2245 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2246 Add trailing newline.
2247 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2248 Add trailing newline.
2249 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2250 Add trailing newline.
2251 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2252 Add trailing newline.
2253 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2254 Add trailing newline.
2255 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2256 Add trailing newline.
2257 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2258 Add trailing newline.
2259 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2260 Add trailing newline.
2261 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2262 Add trailing newline.
2263 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2264 Add trailing newline.
2265 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2266 Add trailing newline.
2267 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2268 Add trailing newline.
2269 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2270 Add trailing newline.
2271 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2272 Add trailing newline.
2273 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2274 Add trailing newline.
2275 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2276 Add trailing newline.
2277 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2278 Add trailing newline.
2279 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2280 Add trailing newline.
2281 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2282 Add trailing newline.
2283 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2284 Add trailing newline.
2285 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2286 Add trailing newline.
2287 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2288 Add trailing newline.
2289 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2290 Add trailing newline.
2291 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2292 Add trailing newline.
2293 * doc/openmp-runtime-library-routines/omptestlock.rst:
2294 Add trailing newline.
2295 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2296 Add trailing newline.
2297 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2298 Add trailing newline.
2299 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2300 Add trailing newline.
2301 * doc/reporting-bugs.rst:
2302 Add trailing newline.
2303 * doc/the-libgomp-abi.rst:
2304 Add trailing newline.
2305 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2306 Add trailing newline.
2307 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2308 Add trailing newline.
2309 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2310 Add trailing newline.
2311 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2312 Add trailing newline.
2313 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2314 Add trailing newline.
2315 * doc/the-libgomp-abi/implementing-for-construct.rst:
2316 Add trailing newline.
2317 * doc/the-libgomp-abi/implementing-master-construct.rst:
2318 Add trailing newline.
2319 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2320 Add trailing newline.
2321 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2322 Add trailing newline.
2323 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2324 Add trailing newline.
2325 * doc/the-libgomp-abi/implementing-private-clause.rst:
2326 Add trailing newline.
2327 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2328 Add trailing newline.
2329 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2330 Add trailing newline.
2331 * doc/the-libgomp-abi/implementing-single-construct.rst:
2332 Add trailing newline.
2333 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2334 Add trailing newline.
2336 2022-11-09 Martin Liska <mliska@suse.cz>
2338 * Makefile.in: Build info pages conditionally.
2340 2022-11-09 Martin Liska <mliska@suse.cz>
2342 * Makefile.in: Support --with-sphinx-build.
2343 * configure.ac: Likewise..
2344 * configure: Regenerate.
2346 2022-11-09 Martin Liska <mliska@suse.cz>
2348 * libgomp.texi: Removed.
2350 2022-11-09 Martin Liska <mliska@suse.cz>
2352 * Makefile.in: Support Sphinx based documentation.
2354 2022-11-09 Martin Liska <mliska@suse.cz>
2356 * doc/amd-radeon-gcn.rst: New file.
2357 * doc/conf.py: New file.
2358 * doc/copyright.rst: New file.
2359 * doc/cuda-streams-usage.rst: New file.
2360 * doc/enabling-openacc.rst: New file.
2361 * doc/enabling-openmp.rst: New file.
2362 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2363 * doc/first-invocation-openacc-library-api.rst: New file.
2364 * doc/funding.rst: New file.
2365 * doc/general-public-license-3.rst: New file.
2366 * doc/gnu-free-documentation-license.rst: New file.
2367 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2368 * doc/index.rst: New file.
2369 * doc/indices-and-tables.rst: New file.
2370 * doc/introduction.rst: New file.
2371 * doc/memory-allocation-with-libmemkind.rst: New file.
2372 * doc/nvptx.rst: New file.
2373 * doc/offload-target-specifics.rst: New file.
2374 * doc/openacc-environment-variables.rst: New file.
2375 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2376 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2377 * doc/openacc-environment-variables/accproflib.rst: New file.
2378 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2379 * doc/openacc-introduction.rst: New file.
2380 * doc/openacc-library-and-environment-variables.rst: New file.
2381 * doc/openacc-library-interoperability.rst: New file.
2382 * doc/openacc-profiling-interface.rst: New file.
2383 * doc/openacc-runtime-library-routines.rst: New file.
2384 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2385 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2386 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2387 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2388 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2389 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2390 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2391 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2392 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2393 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2394 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2395 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2396 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2397 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2398 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2399 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2400 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2401 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2402 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2403 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2404 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2405 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2406 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2407 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2408 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2409 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2410 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2411 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2412 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2413 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2414 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2415 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2416 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2417 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2418 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2419 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2420 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2421 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2422 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2423 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2424 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2425 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2426 * doc/openmp-context-selectors.rst: New file.
2427 * doc/openmp-environment-variables.rst: New file.
2428 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2429 * doc/openmp-environment-variables/gompdebug.rst: New file.
2430 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2431 * doc/openmp-environment-variables/gompspincount.rst: New file.
2432 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2433 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2434 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2435 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2436 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2437 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2438 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2439 * doc/openmp-environment-variables/ompnested.rst: New file.
2440 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2441 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2442 * doc/openmp-environment-variables/ompplaces.rst: New file.
2443 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2444 * doc/openmp-environment-variables/ompschedule.rst: New file.
2445 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2446 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2447 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2448 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2449 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2450 * doc/openmp-implementation-specifics.rst: New file.
2451 * doc/openmp-implementation-status.rst: New file.
2452 * doc/openmp-implementation-status/openmp-45.rst: New file.
2453 * doc/openmp-implementation-status/openmp-50.rst: New file.
2454 * doc/openmp-implementation-status/openmp-51.rst: New file.
2455 * doc/openmp-implementation-status/openmp-52.rst: New file.
2456 * doc/openmp-runtime-library-routines.rst: New file.
2457 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2458 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2459 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2460 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2461 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2462 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2463 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2464 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2465 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2466 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2467 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2468 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2469 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2470 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2471 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2472 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2473 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2474 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2475 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2476 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2477 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2478 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2479 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2480 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2481 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2482 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2483 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2484 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2485 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2486 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2487 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2488 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2489 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2490 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2491 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2492 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2493 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2494 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2495 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2496 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2497 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2498 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2499 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2500 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2501 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2502 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2503 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2504 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2505 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2506 * doc/reporting-bugs.rst: New file.
2507 * doc/the-libgomp-abi.rst: New file.
2508 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2509 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2510 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2511 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2513 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2514 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2515 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2516 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2517 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2518 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2519 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2520 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2521 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2522 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2523 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2525 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2527 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2528 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2530 * plugin/configfrag.ac <enable_offload_targets>
2531 [*-intelmic-* | *-intelmicemul-*]: Remove.
2532 * configure: Regenerate.
2533 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2535 (offload_target_to_openacc_device_type)
2536 [$offload_target = *-intelmic*]: Remove.
2537 (check_effective_target_offload_device_intel_mic)
2538 (check_effective_target_offload_device_any_intel_mic): Remove.
2539 * testsuite/libgomp.c-c++-common/on_device_arch.h
2540 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2541 (any_device_arch_intel_mic): Remove.
2542 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2543 'offload_device_any_intel_mic' XFAIL.
2544 * testsuite/libgomp.fortran/target10.f90: Likewise.
2546 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
2548 * testsuite/libgomp.fortran/target-11.f90: New test.
2549 * testsuite/libgomp.fortran/target-13.f90: New test.
2551 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2555 * oacc-mem.c (goacc_enter_data_internal): Support
2556 OpenACC 'declare create' with Fortran allocatable arrays, part II.
2557 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2559 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2561 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2564 * oacc-mem.c (goacc_enter_data_internal): Support
2565 OpenACC 'declare create' with Fortran allocatable arrays, part I.
2566 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2568 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2571 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2573 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2576 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2578 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2581 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
2582 Thomas Schwinge <thomas@codesourcery.com>
2584 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2586 2022-10-28 Julian Brown <julian@codesourcery.com>
2587 Thomas Schwinge <thomas@codesourcery.com>
2590 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2591 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2592 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2593 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2594 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2596 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
2598 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2599 'ptx_dev->rev_data'.
2601 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
2603 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2604 'static' for this variable.
2605 * config/nvptx/libgomp-nvptx.h: New file.
2606 * config/nvptx/target.c: Include it.
2607 (GOMP_ADDITIONAL_ICVS): Declare extern var.
2608 (GOMP_REV_OFFLOAD_VAR): Declare var.
2609 (GOMP_target_ext): Handle reverse offload.
2610 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2611 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2612 * target.c (gomp_target_rev): ... this new stub function.
2613 * libgomp.h (gomp_target_rev): Declare.
2614 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2615 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2616 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2617 (struct ptx_device): Add rev_data member.
2618 (nvptx_open_device): Remove async_engines query, last used in
2619 r10-304-g1f4c5b9b; add unified-address assert check.
2620 (GOMP_OFFLOAD_get_num_devices): Claim unified address
2622 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2623 offload functions exist. Make offload var available
2625 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2626 (GOMP_OFFLOAD_run): Handle reverse offload.
2628 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
2630 PR tree-optimization/107195
2632 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2635 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
2637 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2639 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2640 on_device_arch_gcn): New.
2641 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2642 requires-4.c but using heap-allocated memory.
2644 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
2647 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2649 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
2651 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2652 '-foffload-options' syntax.
2654 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
2656 * testsuite/libgomp.fortran/task-7.f90: New test.
2657 * testsuite/libgomp.fortran/task-8.f90: New test.
2658 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2659 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2660 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2661 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2662 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2664 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2666 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2667 in deprecation bullet.
2669 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2671 * omp.h.in (omp_in_explicit_task): Declare.
2672 * omp_lib.h.in (omp_in_explicit_task): Likewise.
2673 * omp_lib.f90.in (omp_in_explicit_task): New interface.
2674 * libgomp.map (OMP_5.2): New symbol version, export
2675 omp_in_explicit_task and omp_in_explicit_task_.
2676 * task.c (omp_in_explicit_task): New function.
2677 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2678 (omp_in_explicit_task_): New function.
2679 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2680 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2681 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2682 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2684 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2686 * task.c (gomp_create_artificial_team): Fix up handling of invocations
2687 from within explicit task.
2688 * target.c (GOMP_target_ext): Likewise.
2689 * testsuite/libgomp.c/task-7.c: New test.
2690 * testsuite/libgomp.c/task-8.c: New test.
2691 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2692 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2694 2022-10-12 Martin Liska <mliska@suse.cz>
2696 * configure: Regenerate.
2698 2022-10-11 Olivier Hainque <hainque@adacore.com>
2699 Olivier Hainque <hainque@adacore.com>
2701 * configure: Regenerate.
2703 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
2705 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2707 2022-10-04 Jakub Jelinek <jakub@redhat.com>
2709 * libgomp.texi (Support begin/end declare target syntax in C/C++):
2710 Mark as implemented.
2712 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
2715 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2717 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
2719 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2720 for C/C++. Remove duplicated 'begin declare target' entry.
2722 2022-09-24 Jakub Jelinek <jakub@redhat.com>
2725 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2727 2022-09-14 Julian Brown <julian@codesourcery.com>
2729 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2730 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2731 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2732 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2733 test to here, make "run" test.
2735 2022-09-13 Jakub Jelinek <jakub@redhat.com>
2738 * env.c (get_icv_member_addr): Cast false to void * before assigning
2739 it to icv_addr[1], and comment the whole assignment out.
2741 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
2743 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2746 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2748 * libgomp.texi (Offload-Target Specifics: nvptx): Document
2749 that reverse offload requires >= -march=sm_35.
2750 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2752 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2753 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2754 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2755 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2756 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2758 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2760 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2761 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2763 2022-09-12 Jakub Jelinek <jakub@redhat.com>
2766 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2767 (main): Avoid tests for which corresponding non-_ALL suffixed variable
2768 is in the environment, or for OMP_NUM_TEAMS on the device
2769 OMP_NUM_TEAMS_DEV_?.
2771 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
2773 * env.c (initialize_env): Include libiberty environ.h.
2775 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2777 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2778 function address table '$offload_func_table' if rev_fn_table
2781 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2783 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2784 .offload_func_table to populate rev_fn_table when requested.
2786 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2788 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2789 'uint64_t **rev_fn_table' argument.
2790 * oacc-host.c (host_load_image): Likewise.
2791 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2793 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2794 * target.c (gomp_load_image_to_device): Update call but pass
2797 2022-09-09 Jakub Jelinek <jakub@redhat.com>
2800 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2801 char * for dest[1] initialization from params[1]. Formatting fixes.
2803 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2806 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2808 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2810 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2811 section; move OpenMP Context Selectors from ...
2812 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2815 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
2817 * config/gcn/icv-device.c (omp_get_default_device): Return device-
2819 (omp_get_max_teams): Added for GCN devices.
2820 (omp_set_num_teams): Likewise.
2822 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2824 (omp_get_max_teams): Added for NVPTX devices.
2825 (omp_set_num_teams): Likewise.
2827 * env.c (struct gomp_icv_list): New struct to store entries of initial
2829 (struct gomp_offload_icv_list): New struct to store entries of device-
2830 specific ICV values that are copied to the device and back.
2831 (struct gomp_default_icv_values): New struct to store default values of
2832 ICVs according to the OpenMP standard.
2833 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2834 (print_env_var_error): Function that prints an error for invalid values
2836 (parse_unsigned_long_1): Removed getenv. Generalized.
2837 (parse_unsigned_long): Likewise.
2838 (parse_int_1): Likewise.
2839 (parse_int): Likewise.
2840 (parse_int_secure): Likewise.
2841 (parse_unsigned_long_list): Likewise.
2842 (parse_target_offload): Likewise.
2843 (parse_bind_var): Likewise.
2844 (parse_stacksize): Likewise.
2845 (parse_boolean): Likewise.
2846 (parse_wait_policy): Likewise.
2847 (parse_allocator): Likewise.
2848 (omp_display_env): Extended to output different variants of environment
2850 (print_schedule): New helper function for omp_display_env which prints
2851 the values of run_sched_var.
2852 (print_proc_bind): New helper function for omp_display_env which prints
2853 the values of proc_bind_var.
2854 (enum gomp_parse_type): Collection of types used for parsing environment
2856 (ENTRY): Preprocess string lengths of environment variables.
2857 (OMP_VAR_CNT): Preprocess table size.
2858 (OMP_HOST_VAR_CNT): Likewise.
2859 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2861 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2862 (gomp_set_icv_flag): Sets a flag for a particular ICV.
2863 (print_device_specific_icvs): New helper function for omp_display_env to
2864 print device specific ICV values.
2865 (get_device_num): New helper function for parse_device_specific.
2866 Extracts the device number from an environment variable name.
2867 (get_icv_member_addr): Gets the memory address for a particular member
2869 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2870 (initialize_icvs): New function to initialize a gomp_initial_icvs
2872 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2873 (startswith): Checks if a string starts with a given prefix.
2874 (initialize_env): Extended to parse the new syntax of environment
2876 * icv-device.c (omp_get_max_teams): Added.
2878 (omp_set_num_teams): Likewise.
2879 * icv.c (omp_set_num_teams): Moved to icv-device.c.
2880 (omp_get_max_teams): Likewise.
2882 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2883 (GOMP_ADDITIONAL_ICVS): New target-side struct that
2884 holds the designated ICVs of the target device.
2885 * libgomp.h (enum gomp_icvs): Collection of ICVs.
2886 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2888 (enum gomp_env_suffix): Collection of possible suffixes of environment
2890 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2892 (struct gomp_default_icv):New struct to hold ICVs for which we need
2893 to store initial values.
2894 (struct gomp_icv_list): Definition of a linked list that is used for
2895 storing ICVs for the devices and also for _DEV, _ALL, and without
2897 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2899 (struct gomp_offload_icv_list): Definition of a linked list that holds
2900 device-specific ICVs that are copied to devices.
2901 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2902 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2903 * libgomp.texi: Updated.
2904 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2905 further ICVs from the offload image.
2906 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2907 * target.c (gomp_get_offload_icv_item): Get a list item of
2908 gomp_offload_icv_list.
2909 (get_gomp_offload_icvs): New. Returns the ICV values
2910 depending on the device num and the variable hierarchy.
2911 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2912 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2913 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2914 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2915 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2916 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2917 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2919 2022-09-08 Jakub Jelinek <jakub@redhat.com>
2921 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2923 * testsuite/libgomp.c/doacross-4.c: New test.
2924 * testsuite/libgomp.c/doacross-5.c: New test.
2925 * testsuite/libgomp.c/doacross-6.c: New test.
2926 * testsuite/libgomp.c/doacross-7.c: New test.
2928 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
2930 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2932 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
2934 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2935 refer to 'requires'.
2936 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2937 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2938 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2939 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2941 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2943 PR middle-end/106548
2944 * testsuite/libgomp.c/linear-2.c: New test.
2946 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2948 * splay-tree.h: Fix splay_* macro unsetting if
2949 splay_tree_prefix is defined.
2951 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
2953 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2955 2022-07-29 Jakub Jelinek <jakub@redhat.com>
2957 PR middle-end/106449
2958 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2960 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
2962 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2964 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
2966 PR middle-end/101551
2967 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2968 'offloading_enabled' diagnostics issue.
2970 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
2972 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2973 '_Pragma' diagnostics verification.
2975 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
2977 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2978 improved warning locations.
2979 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2981 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
2983 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2984 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2985 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2986 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2987 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2989 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2991 * target.c (GOMP_offload_register, GOMP_offload_unregister):
2992 Denote as legacy entry points.
2993 * testsuite/lib/libgomp.exp
2994 (check_effective_target_offload_target_any): New proc.
2995 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2996 'offload_target_any'.
2997 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2998 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2999 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3001 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3003 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3004 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3006 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3008 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3010 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
3012 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3014 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
3016 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3017 Jakub Jelinek <jakub@redhat.com>
3019 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3021 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3022 Chung-Lin Tang <cltang@codesourcery.com>
3023 Thomas Schwinge <thomas@codesourcery.com>
3025 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3026 omp_requires_mask arg.
3027 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3028 return -1 when device available but omp_requires_mask != 0.
3029 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3030 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3032 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3033 goacc_attach_host_thread_to_device, acc_get_num_devices,
3034 acc_set_device_num, get_property_any): Likewise.
3035 * target.c (omp_requires_mask): New global var.
3036 (gomp_requires_to_name): New.
3037 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3038 (gomp_target_init): Handle omp_requires_mask.
3039 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3040 (OpenMP 5.1): Add a missed item.
3041 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3042 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3043 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3044 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3045 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3046 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3047 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3048 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3049 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3050 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3051 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3052 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3053 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3054 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3055 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3056 * testsuite/libgomp.fortran/requires-1.f90: New test.
3058 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
3060 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3061 with fromto as implemented.
3063 2022-06-28 Martin Liska <mliska@suse.cz>
3065 * acinclude.m4: Fix typo in mold linker detection.
3066 * Makefile.in: Regenerate.
3067 * configure: Regenerate.
3069 2022-06-21 Jakub Jelinek <jakub@redhat.com>
3070 Paul Iannetta <piannetta@kalrayinc.com>
3073 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3075 2022-06-17 Martin Liska <mliska@suse.cz>
3077 * libgomp.texi: Add table header for new features of
3080 2022-06-15 Jakub Jelinek <jakub@redhat.com>
3082 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3083 q to ddress of an automatic variable. Use -5 instead of -1 in
3084 omp_get_mapped_ptr call. Add test with omp_initial_device.
3085 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3086 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
3087 Renumber stop arguments afterwards.
3089 2022-06-13 Jakub Jelinek <jakub@redhat.com>
3091 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3092 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3094 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3095 * target.c (resolve_device): Add remapped argument, handle
3096 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3097 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3098 if remapped, otherwise treat omp_initial_device that way. For
3099 omp_invalid_device, always emit gomp_fatal, even when
3100 OMP_TARGET_OFFLOAD isn't mandatory.
3101 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3102 GOMP_target_update, GOMP_target_update_ext,
3103 GOMP_target_enter_exit_data): Pass true as remapped argument to
3105 (omp_target_alloc, omp_target_free, omp_target_is_present,
3106 omp_target_memcpy_check, omp_target_associate_ptr,
3107 omp_target_disassociate_ptr, omp_get_mapped_ptr,
3108 omp_target_is_accessible): Pass false as remapped argument to
3109 resolve_device. Treat omp_initial_device the same as
3110 gomp_get_num_devices (). Don't bypass resolve_device calls if
3111 device_num is negative.
3112 (omp_pause_resource): Treat omp_initial_device the same as
3113 gomp_get_num_devices (). Call resolve_device.
3114 * icv-device.c (omp_set_default_device): Always set to device_num
3115 even when it is negative.
3116 * libgomp.texi: Document that Conforming device numbers,
3117 omp_initial_device and omp_invalid_device is implemented.
3118 * testsuite/libgomp.c/target-41.c (main): Add test with
3120 * testsuite/libgomp.c/target-45.c: New test.
3121 * testsuite/libgomp.c/target-46.c: New test.
3122 * testsuite/libgomp.c/target-47.c: New test.
3123 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3124 test with omp_initial_device. Use -5 instead of -1 for negative value
3126 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3127 Likewise. Reorder stop numbers.
3129 2022-06-10 Jakub Jelinek <jakub@redhat.com>
3131 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3132 rather than "libmemkind.so".
3134 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
3136 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3137 * plugin/configfrag.ac (--with-cuda-driver)
3138 (--with-cuda-driver-include, --with-cuda-driver-lib)
3139 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3140 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3142 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3143 (cuda_driver_lib): Remove.
3144 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3145 * Makefile.in: Regenerate.
3146 * configure: Likewise.
3147 * testsuite/Makefile.in: Likewise.
3149 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3151 * config/linux/allocator.c: Fix up #include directive.
3153 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3155 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3156 (enum gomp_memkind_kind): New type.
3157 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3159 (struct gomp_memkind_data): New type.
3160 (memkind_data, memkind_data_once): New variables.
3161 (gomp_init_memkind, gomp_get_memkind): New functions.
3162 (omp_init_allocator): Initialize data.memkind, don't fail for
3163 omp_high_bw_mem_space if libmemkind supports it.
3164 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3165 memkind support of LIBGOMP_USE_MEMKIND is defined.
3166 * config/linux/allocator.c: New file.
3168 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
3170 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3171 * testsuite/libgomp.fortran/scope-2.f90: New test.
3173 2022-06-02 David Malcolm <dmalcolm@redhat.com>
3175 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3177 2022-05-31 Jakub Jelinek <jakub@redhat.com>
3179 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3180 scope construct with allocate clause.
3181 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3182 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3184 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
3186 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3187 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3188 explicit 'to' and 'enter' clause.
3189 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3191 2022-05-28 Jakub Jelinek <jakub@redhat.com>
3194 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3195 defined(HAVE__ALIGNED_MALLOC) case.
3196 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3197 handling as last option before fallback instead of first.
3198 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3201 2022-05-27 Jakub Jelinek <jakub@redhat.com>
3203 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3205 * testsuite/libgomp.c/target-41.c: Likewise.
3207 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
3209 * libgomp.texi (Other new OpenMP 5.1 features): Add
3210 'begin declare target'.
3211 (Other new OpenMP 5.2 features): New.
3213 2022-05-25 Jakub Jelinek <jakub@redhat.com>
3215 * task.c (gomp_task_run_post_handle_dependers): If empty_task
3216 is the last task taskwait depend depends on, wake it up.
3217 Similarly if it is the last child of a taskgroup, use atomic
3218 store instead of decrement and awak taskgroup wait if any.
3219 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3221 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
3223 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3224 EF_AMDGPU_MACH_AMDGCN_GFX90a.
3225 (gcn_gfx90a_s): New.
3226 (isa_hsa_name): Support gfx90a.
3227 (isa_code): Likewise.
3229 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
3232 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3233 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3235 2022-05-24 Jakub Jelinek <jakub@redhat.com>
3238 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3239 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3240 * task.c (empty_task): New function.
3241 (gomp_task_run_post_handle_depend_hash): Declare earlier.
3242 (gomp_task_run_post_handle_depend): Declare.
3243 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3245 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3246 (GOMP_taskwait_depend_nowait): New function.
3247 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3249 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
3252 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3253 Support attach for GOMP_MAP_FIRSTPRIVATE.
3254 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3255 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3256 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3258 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3260 * libgomp.map: Added omp_target_memcpy_async and
3261 omp_target_memcpy_rect_async.
3262 * libgomp.texi: Both functions are now supported.
3263 * omp.h.in: Added omp_target_memcpy_async and
3264 omp_target_memcpy_rect_async.
3265 * omp_lib.f90.in: Added interfaces for both new functions.
3266 * omp_lib.h.in: Likewise.
3267 * target.c (ialias_redirect): Added for GOMP_task.
3268 (omp_target_memcpy): Restructured into check and copy part.
3269 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3270 omp_target_memcpy_async that checks requirements.
3271 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3272 omp_target_memcpy_async that performs the memcpy.
3273 (omp_target_memcpy_async_helper): New helper function that is used in
3274 omp_target_memcpy_async for the asynchronous task.
3275 (omp_target_memcpy_async): Added.
3276 (omp_target_memcpy_rect): Restructured into check and copy part.
3277 (omp_target_memcpy_rect_check): New helper function for
3278 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3280 (omp_target_memcpy_rect_copy): New helper function for
3281 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3283 (omp_target_memcpy_rect_async_helper): New helper function that is used
3284 in omp_target_memcpy_rect_async for the asynchronous task.
3285 (omp_target_memcpy_rect_async): Added.
3286 * task.c (ialias): Added for GOMP_task.
3287 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3288 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3289 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3290 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3291 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3292 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3293 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3294 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3296 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
3298 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3299 (OpenMP Context Selectors): Add missing comma.
3300 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3301 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3302 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3303 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3305 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3307 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3308 comment for omp_display_env feature.
3310 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3312 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3313 to document OpenMP context selectors.
3315 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3317 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3318 from bool to unsigned char.
3319 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3320 Ignore dependencies where
3321 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3322 rather than just task->depend[i].is_in && ent->is_in. Remember
3323 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3325 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3326 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3327 rather than just elem.is_in && ent->is_in.
3328 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3329 inoutset depend-kind.
3330 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3331 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3332 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3334 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3336 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3338 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3340 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3341 * testsuite/libgomp.fortran/depend-5.f90: New test.
3342 * testsuite/libgomp.fortran/depend-6.f90: New test.
3343 * testsuite/libgomp.fortran/depend-7.f90: New test.
3345 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3347 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3348 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3349 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3351 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3353 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3355 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3357 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3359 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3361 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3362 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3363 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3364 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3365 * Makefile.in: Regenerate.
3367 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3369 * Makefile.am (libgomp_la_LIBADD): Initialize.
3370 * plugin/configfrag.ac (DL_LIBS): New.
3371 (PLUGIN_GCN_LIBS): Remove.
3372 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3373 * plugin/Makefrag.am (libgomp_la_LIBADD)
3374 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3375 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3376 * Makefile.in: Regenerate.
3377 * config.h.in: Likewise.
3378 * configure: Likewise.
3379 * testsuite/Makefile.in: Likewise.
3381 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3383 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3384 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3385 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3386 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3387 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3388 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3389 * Makefile.in: Regenerate.
3390 * config.h.in: Likewise.
3391 * configure: Likewise.
3393 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3395 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3396 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3397 * Makefile.in: Regenerate.
3398 * config.h.in: Likewise.
3399 * configure: Likewise.
3400 * testsuite/Makefile.in: Likewise.
3402 2022-05-12 Jakub Jelinek <jakub@redhat.com>
3404 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3405 * task.c (gomp_init_task): Initialize depend_all_memory.
3406 (gomp_task_handle_depend): Handle omp_all_memory.
3407 (gomp_task_run_post_handle_depend_hash): Clear
3408 parent->depend_all_memory if equal to current task.
3409 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3410 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3411 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3412 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3414 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3416 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3417 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3418 * Makefile.in: Regenerate.
3419 * configure: Likewise.
3420 * testsuite/Makefile.in: Likewise.
3422 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3424 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3425 consider 'PLUGIN_GCN_CPPFLAGS'.
3426 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3427 'PLUGIN_GCN_LDFLAGS'.
3428 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3430 * Makefile.in: Regenerate.
3431 * configure: Likewise.
3432 * testsuite/Makefile.in: Likewise.
3434 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3436 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3437 (HSA_RUNTIME_LDFLAGS): Remove.
3438 * configure: Regenerate.
3440 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3442 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3443 'append always_ld_library_path ":$hsa_runtime_lib"'.
3444 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3446 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3448 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3449 multi-device testing.
3451 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3453 * libgomp.map: Added omp_target_is_accessible.
3454 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3455 * omp.h.in: Added omp_target_is_accessible.
3456 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3457 * omp_lib.h.in: Likewise.
3458 * target.c (omp_target_is_accessible): Added implementation of
3459 omp_target_is_accessible.
3460 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3461 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3463 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3465 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3467 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3469 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3471 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3473 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3475 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3477 * libgomp.map: Added omp_get_mapped_ptr.
3478 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3479 * omp.h.in: Added omp_get_mapped_ptr.
3480 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3481 * omp_lib.h.in: Likewise.
3482 * target.c (omp_get_mapped_ptr): Added implementation of
3484 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3485 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3486 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3487 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3488 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3489 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3490 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3491 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3493 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3496 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3497 privatization scanning. For GCN offloading compilation, raise
3498 '-mgang-private-size'.
3500 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3503 * work.c (gomp_init_work_share): Don't mask of adjustment for
3504 dynamic long long realignment if struct gomp_work_share has smaller
3505 alignof than long long.
3506 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3507 struct gomp_work_share has smaller alignof than long long or if
3508 sizeof (struct gomp_work_share) is smaller than
3509 INLINE_ORDERED_TEAM_IDS_OFF.
3510 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3511 * sections.c (GOMP_sections2_start): Likewise.
3513 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3514 Thomas Schwinge <thomas@codesourcery.com>
3517 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3519 2022-04-13 Jakub Jelinek <jakub@redhat.com>
3521 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3523 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3525 * plugin/cuda/cuda.h: Remove file.
3526 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3527 "cuda/cuda.h" instead of <cuda.h>.
3528 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3529 'PLUGIN_NVPTX_CPPFLAGS'.
3530 * configure: Regenerate.
3532 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3534 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3536 2022-04-04 Tom de Vries <tdevries@suse.de>
3538 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3539 on_device_arch_nvptx instead of offload_target_nvptx.
3540 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3542 2022-04-01 Tom de Vries <tdevries@suse.de>
3544 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3546 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3548 2022-04-01 Tom de Vries <tdevries@suse.de>
3550 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3553 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3554 Lulu Cheng <chenglulu@loongson.cn>
3556 * configure.tgt: Add LoongArch triplet.
3558 2022-03-28 Tom de Vries <tdevries@suse.de>
3560 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3561 instead of /libexec/.
3562 * configure: Regenerate.
3564 2022-03-25 Tom de Vries <tdevries@suse.de>
3567 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3569 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3570 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3572 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
3574 PR middle-end/104285
3575 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3576 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3577 * testsuite/libgomp.c++/target-same-name-2.C: New test.
3578 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3579 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3580 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3582 2022-03-22 Tom de Vries <tdevries@suse.de>
3586 * testsuite/libgomp.c/pr104783-2.c: New test.
3588 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
3591 * testsuite/libgomp.fortran/associate4.f90: New test.
3593 2022-03-18 Tom de Vries <tdevries@suse.de>
3596 * testsuite/libgomp.c/pr104952-1.c: New test.
3597 * testsuite/libgomp.c/pr104952-2.c: New test.
3599 2022-03-18 Jakub Jelinek <jakub@redhat.com>
3601 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3602 variable next to pl variable.
3604 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3606 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3608 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3609 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3611 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3614 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3615 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3617 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
3619 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3620 omp_set_max_active_levels.
3621 * testsuite/libgomp.fortran/icv-8.f90: New test.
3623 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
3626 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3628 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
3630 * libgomp.texi: Fix typo.
3632 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3634 PR middle-end/100280
3635 PR middle-end/104892
3636 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3637 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3638 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3640 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3642 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3643 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3644 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3647 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3649 PR middle-end/104892
3650 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3652 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3653 enable '--param=openacc-kernels=decompose' and adjust.
3654 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3656 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3657 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3660 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3663 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3664 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3665 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3666 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3668 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3670 PR middle-end/100280
3671 PR middle-end/104086
3672 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3674 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3676 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3678 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3681 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
3683 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3684 trait. Test last index in w and v array. Remove redundant
3685 assignment to V(1). Move alignment checks at the end of
3688 2022-03-10 Tom de Vries <tdevries@suse.de>
3690 * testsuite/libgomp.c/pr104783.c: New test.
3692 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3695 PR middle-end/102330
3696 PR middle-end/104774
3697 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3699 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3701 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3703 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3705 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3707 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3709 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3711 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3713 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3715 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3717 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3719 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3721 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3723 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3725 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3726 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3727 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3729 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3732 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3733 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3734 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3735 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3737 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3740 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3741 expected diagnostics.
3743 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3745 PR middle-end/104784
3746 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3747 Test with '--param=openacc-kernels=decompose'.
3748 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3750 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3752 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3754 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3756 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3758 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3760 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3762 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3764 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3766 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3768 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3770 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3772 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3774 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3776 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3778 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3780 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3782 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3784 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3786 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3788 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3790 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3792 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3794 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3796 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3798 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3800 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3802 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3804 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3806 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3808 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3810 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3813 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3815 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3816 Test '-fopt-info-omp-all'.
3817 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3819 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3821 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3823 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3825 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3827 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3829 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3831 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3833 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3835 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3837 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3839 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3841 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3843 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3845 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3847 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3849 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3851 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3853 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3855 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3857 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3859 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3861 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3863 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3865 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3867 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3869 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3871 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3873 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3875 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3877 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3879 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3882 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3884 PR middle-end/100280
3885 PR middle-end/104132
3886 PR middle-end/104133
3887 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3890 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3892 PR middle-end/100280
3893 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3894 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3897 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3899 PR middle-end/100280
3900 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3901 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3904 2022-02-28 Tom de Vries <tdevries@suse.de>
3906 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3907 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3908 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3909 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3910 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3911 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3913 2022-02-24 Tom de Vries <tdevries@suse.de>
3915 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3916 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3917 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3918 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3919 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3920 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3921 * testsuite/libgomp.c/declare-variant-3.h: New header file.
3923 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
3925 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3926 gang-redundant execution.
3928 2022-02-22 Tom de Vries <tdevries@suse.de>
3931 * config/nvptx/bar.c (generation_to_barrier): New function, copied
3932 from config/rtems/bar.c.
3933 (futex_wait, futex_wake): New function.
3934 (do_spin, do_wait): New function, copied from config/linux/wait.h.
3935 (gomp_barrier_wait_end, gomp_barrier_wait_last)
3936 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3937 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3938 and replace with include of config/linux/bar.c.
3939 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3940 (gomp_barrier_init): Init new fields.
3941 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3943 * testsuite/libgomp.c/pr99555-1.c: Same.
3944 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3946 2022-02-22 Tom de Vries <tdevries@suse.de>
3949 * testsuite/libgomp.c++/pr96390.C: Add additional-option
3950 -foffload=-Wa,--verify for nvptx.
3951 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3953 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
3955 * testsuite/libgomp.fortran/depend-4.f90: New test.
3957 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
3960 * testsuite/libgomp.c++/target-virtual-1.C: New test.
3962 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
3964 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3965 * target.c (copy_firstprivate_data): Copy only if host address is not
3967 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3968 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3969 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3970 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3971 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3972 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3973 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3974 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3975 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3976 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3978 2022-02-08 Jakub Jelinek <jakub@redhat.com>
3981 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3983 * testsuite/libgomp.c/pr104385.c: New test.
3985 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3987 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3988 STOP of previous commit.
3990 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3992 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3993 from is_64bit_aligned_.
3994 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3995 and use it, more implicit none, remove unused argument.
3997 2022-02-03 David Seifert <soap@gentoo.org>
3998 Jakub Jelinek <jakub@redhat.com>
4000 * configure.ac: Support --disable-werror.
4001 * configure: Regenerate.
4003 2022-02-01 Tom de Vries <tdevries@suse.de>
4005 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4007 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4008 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4010 2022-02-01 Tom de Vries <tdevries@suse.de>
4012 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4013 num_workers for nvidia accelerator to fix libgomp error 'insufficient
4015 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4017 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4019 2022-02-01 Tom de Vries <tdevries@suse.de>
4021 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4023 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4025 2022-01-31 Martin Liska <mliska@suse.cz>
4027 * acinclude.m4: Detect *_ld_is_mold and use it.
4028 * configure: Regenerate.
4030 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
4032 * libgomp.texi (OpenMP 5.0): Update implementation status.
4034 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
4036 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4037 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4038 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4039 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4040 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4041 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4042 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4043 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4044 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4045 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4046 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4047 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4048 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4049 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4050 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4052 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
4054 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4055 "static") to make the device num available in the offload image.
4057 2022-01-19 Martin Liska <mliska@suse.cz>
4058 Thomas Schwinge <thomas@codesourcery.com>
4060 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4062 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4063 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4065 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4066 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4067 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4068 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4069 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4071 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4073 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4075 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4077 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4079 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4081 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4082 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4083 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4085 2022-01-18 Martin Liska <mliska@suse.cz>
4087 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4089 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4090 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4091 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4092 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4093 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4094 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4095 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4096 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4097 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4098 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4099 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4100 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4101 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4102 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4103 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4105 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
4107 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4108 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4109 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4111 2022-01-17 Julian Brown <julian@codesourcery.com>
4112 Thomas Schwinge <thomas@codesourcery.com>
4114 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4115 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4116 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4118 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4119 Andrew Stubbs <ams@codesourcery.com>
4121 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4122 the number of teams and threads if necessary.
4123 (gcn_exec): Automatically set the number of gangs and workers if
4126 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
4128 * testsuite/libgomp.fortran/allocate-1.c: New test.
4129 * testsuite/libgomp.fortran/allocate-1.f90: New test.
4130 * libgomp.texi: Remove string that says that allocate clause
4131 support is for C/C++ only.
4133 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4135 * testsuite/libgomp.c-c++-common/on_device_arch.h
4136 (any_device_arch, any_device_arch_intel_mic): New.
4137 * testsuite/lib/libgomp.exp
4138 (check_effective_target_offload_device_any_intel_mic): New.
4139 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4140 * testsuite/libgomp.fortran/target10.f90: Likewise.
4142 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4144 PR tree-optimization/102192
4145 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4146 '-Wuninitialized' diagnostics.
4148 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4150 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4151 current '-Wuninitialized' diagnostics.
4152 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4153 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4154 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4155 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4156 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4157 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4158 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4159 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4160 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4161 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4162 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4165 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4167 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4168 for 'offload_device_intel_mic'.
4170 2022-01-13 Julian Brown <julian@codesourcery.com>
4171 Thomas Schwinge <thomas@codesourcery.com>
4173 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4174 offloading execution XFAIL.
4176 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4178 PR middle-end/100280
4179 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4181 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4182 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4185 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4187 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4189 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4191 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4192 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4193 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4194 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4195 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4197 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4198 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4199 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4200 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4202 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
4204 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4205 * testsuite/libgomp.fortran/target10.f90: Likewise.
4207 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
4209 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4210 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4211 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4213 2022-01-03 Jakub Jelinek <jakub@redhat.com>
4215 * libgomp.texi: Bump @copying's copyright year.
4217 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
4219 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4220 * testsuite/libgomp.fortran/atomic-19.f90: New test.
4222 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
4224 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4225 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4226 table, not individual symbols.
4228 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
4230 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4231 "target offload_device_nonshared_as"
4232 * testsuite/libgomp.c++/target-this-3.C: Likewise.
4233 * testsuite/libgomp.c++/target-this-4.C: Likewise.
4235 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4237 * target.c (gomp_map_vars_existing): Make sure attached pointer is
4238 not overwritten during cross-host/device copying.
4239 (gomp_update): Likewise.
4240 (gomp_exit_data): Likewise.
4241 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4242 * testsuite/libgomp.c++/target-12.C: Likewise.
4243 * testsuite/libgomp.c++/target-15.C: Likewise.
4244 * testsuite/libgomp.c++/target-16.C: Likewise.
4245 * testsuite/libgomp.c++/target-17.C: Likewise.
4246 * testsuite/libgomp.c++/target-21.C: Likewise.
4247 * testsuite/libgomp.c++/target-23.C: Likewise.
4248 * testsuite/libgomp.c/target-23.c: Likewise.
4249 * testsuite/libgomp.c/target-29.c: Likewise.
4250 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4252 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4255 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4256 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4257 (goacc_enter_data_internal): Likewise.
4258 * target.c (gomp_map_vars_existing): Update assert condition to
4259 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4260 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4261 parameter, add support for mapping a pointer with NULL target.
4262 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4263 parameter, add support for attaching a pointer with NULL target.
4264 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4265 gomp_attach_pointer, add handling for
4266 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4267 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4268 * testsuite/libgomp.c++/target-23.C: New testcase.
4269 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4270 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4271 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4272 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4273 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4274 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4275 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4277 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4279 * libgomp.texi (OpenMP 5.1): Update status.
4281 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4283 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4285 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4288 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4289 * testsuite/libgomp.fortran/pr90030.f90: New test.
4291 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4292 Thomas Schwinge <thomas@codesourcery.com>
4294 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4297 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4298 Thomas Schwinge <thomas@codesourcery.com>
4300 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4303 2021-11-29 Richard Biener <rguenther@suse.de>
4305 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4308 2021-11-24 Jakub Jelinek <jakub@redhat.com>
4310 PR middle-end/103384
4311 * testsuite/libgomp.c/declare-variant-2.c: New test.
4313 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
4315 * alloc.c (gomp_aligned_alloc): Fix typo.
4317 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4320 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4321 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4322 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4323 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4324 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4325 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4326 gomp_aligned_alloc instead of team_malloc.
4328 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4331 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4332 memalign over posix_memalign over aligned_alloc over fallback
4333 with malloc instead of aligned_alloc over _aligned_alloc over
4334 posix_memalign over memalign over fallback with malloc. For
4335 aligned_alloc, round up size up to multiple of al.
4337 2021-11-16 Jakub Jelinek <jakub@redhat.com>
4339 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4340 construct as implemented.
4342 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
4344 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4346 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4348 * task.c (gomp_create_target_task): Copy args array as well.
4349 * target.c (gomp_target_fallback): Add args argument.
4350 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4351 (GOMP_target): Adjust gomp_target_fallback caller.
4352 (GOMP_target_ext): Likewise.
4353 (gomp_target_task_fn): Likewise.
4354 * config/nvptx/team.c (gomp_nvptx_main): Set
4355 gomp_global_icv.thread_limit_var.
4356 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4358 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4360 * config/nvptx/team.c (__gomp_team_num): Define as
4361 __attribute__((shared)) var.
4362 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4363 * config/nvptx/target.c (__gomp_team_num): Declare as
4364 extern __attribute__((shared)) var.
4365 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4366 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4367 is bigger than num_blocks, use num_teams_lower teams and arrange for
4368 bumping of __gomp_team_num if !first and returning false once we run
4370 * config/nvptx/teams.c (__gomp_team_num): Declare as
4371 extern __attribute__((shared)) var.
4372 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4374 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4376 * testsuite/libgomp.c/teams-5.c: New test.
4378 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4381 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4383 * config/gcn/teams.c: ... here. New file.
4385 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4387 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4388 implicit map handling to allow a "superset" existing map as valid case.
4389 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4390 (get_implicit): New function to extract implicit status.
4391 (gomp_map_fields_existing): Adjust arguments in calls to
4392 gomp_map_vars_existing, and add uses of get_implicit.
4393 (gomp_map_vars_internal): Likewise.
4394 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4396 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4398 * libgomp_g.h (GOMP_teams4): Declare.
4399 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4400 * target.c (GOMP_teams4): New function.
4401 * config/nvptx/target.c (GOMP_teams): Remove.
4402 (GOMP_teams4): New function.
4403 * config/gcn/target.c (GOMP_teams): Remove.
4404 (GOMP_teams4): New function.
4405 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4406 teams instead of <= 2.
4407 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4409 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
4411 * testsuite/libgomp.fortran/teams-1.f90: New test.
4413 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4415 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4416 * team.c (struct gomp_thread_start_data): Likewise.
4417 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4418 (gomp_team_start): Initialize start_data->num_teams and
4419 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4420 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4421 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4422 instead of gomp_num_teams and gomp_team_num.
4423 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4424 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4425 * testsuite/libgomp.c/teams-4.c: New test.
4427 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4429 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4431 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4433 * env.c (parse_gomp_openacc_dim): Restore parsing.
4435 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4437 PR middle-end/102972
4438 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4440 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4441 * testsuite/libgomp.c/target-3.c: Likewise.
4442 * testsuite/libgomp.c/target-5.c: Likewise.
4443 * testsuite/libgomp.c/target-6.c: Likewise.
4444 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4445 * testsuite/libgomp.c/teams-1.c: Likewise.
4446 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4447 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4448 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4449 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4450 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4451 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4452 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4454 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
4456 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4457 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4459 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4461 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4462 aren't implemented for Fortran yet.
4464 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4466 * testsuite/libgomp.c/loop-26.c: New test.
4467 * testsuite/libgomp.c/loop-27.c: New test.
4469 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4472 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4473 instead of #include <alloca.h> + alloca.
4475 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4477 * libgomp.texi (Support of strictly structured blocks in Fortran):
4479 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4481 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4483 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4484 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4486 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4489 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4490 (struct gomp_work_share): Only use aligned(64) attribute if
4491 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4492 add padding before lock to ensure lock is at offset 64 bytes
4494 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4495 New poor man's static assertions.
4496 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4497 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4499 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4500 Richard Biener <rguenther@suse.de>
4502 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4504 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4506 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4507 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4509 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4518 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4520 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4522 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4523 type from char [50] to const char *.
4524 (places_array): Add a testcase for simplified syntax place followed
4525 by length or length and stride.
4527 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4529 * env.c (parse_one_place): Handle non-negative-number the same
4530 as { non-negative-number }. Reject even !number:1 and
4531 !number:1:stride or !place:1 or !place:1:stride instead of just
4532 length other than 1.
4533 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4534 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4535 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4537 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4540 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4542 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4543 clearly reject return value 0 as invalid handle the case where end
4544 pointer is the same as first argument as invalid.
4545 (parse_unsigned_long_1): Likewise.
4546 (parse_one_place): Likewise.
4547 (parse_places_var): Likewise.
4548 (parse_stacksize): Likewise.
4549 (parse_spincount): Likewise.
4550 (parse_affinity): Likewise.
4551 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4552 Make code valid C89.
4553 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4554 For strtoul calls which don't clearly reject return value 0 as
4555 invalid handle the case where end pointer is the same as first
4556 argument as invalid.
4557 (gomp_affinity_init_level_1): Likewise.
4558 (gomp_affinity_init_numa_domains): Likewise.
4559 * config/rtems/proc.c (parse_thread_pools): Likewise.
4561 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4563 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4564 after creating count places clean up and return immediately.
4565 * testsuite/libgomp.c/places-6.c: New test.
4566 * testsuite/libgomp.c/places-7.c: New test.
4567 * testsuite/libgomp.c/places-8.c: New test.
4568 * testsuite/libgomp.c/places-9.c: New test.
4569 * testsuite/libgomp.c/places-10.c: New test.
4571 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4573 * env.c (parse_places_var): Handle numa_domains as level 5.
4574 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4576 (gomp_affinity_init_level): Use it instead of
4577 gomp_affinity_init_level_1 for level == 5.
4578 * testsuite/libgomp.c/places-5.c: New test.
4580 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4582 * env.c (parse_places_var): Handle ll_caches as level 4.
4583 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4585 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4587 (gomp_affinity_init_level): Likewise.
4588 * testsuite/libgomp.c/places-1.c: New test.
4589 * testsuite/libgomp.c/places-2.c: New test.
4590 * testsuite/libgomp.c/places-3.c: New test.
4591 * testsuite/libgomp.c/places-4.c: New test.
4593 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4595 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4598 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4600 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4602 2021-10-12 Julian Brown <julian@codesourcery.com>
4604 * target.c (gomp_copy_host2dev): Release device lock on cbuf
4607 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
4609 * testsuite/libgomp.fortran/icv-3.f90: New.
4610 * testsuite/libgomp.fortran/icv-4.f90: New.
4612 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4614 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4615 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4616 OMP_TEAMS_THREAD_LIMIT): Document.
4618 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4620 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4621 to avoid makeinfo warnings.
4623 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4625 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4626 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4628 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4632 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4633 allocation sizes from 420 to 320 and from 768 to 568.
4634 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4635 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4636 for cr from 16 to 4.
4638 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4640 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4641 * testsuite/libgomp.c/scan-12.c: Likewise.
4642 * testsuite/libgomp.c/scan-13.c: Likewise.
4643 * testsuite/libgomp.c/scan-14.c: Likewise.
4644 * testsuite/libgomp.c/scan-15.c: Likewise.
4645 * testsuite/libgomp.c/scan-16.c: Likewise.
4646 * testsuite/libgomp.c/scan-17.c: Likewise.
4647 * testsuite/libgomp.c/scan-18.c: Likewise.
4648 * testsuite/libgomp.c/scan-19.c: Likewise.
4649 * testsuite/libgomp.c/scan-20.c: Likewise.
4650 * testsuite/libgomp.c/scan-21.c: Likewise.
4651 * testsuite/libgomp.c/scan-22.c: Likewise.
4652 * testsuite/libgomp.c++/scan-9.C: Likewise.
4653 * testsuite/libgomp.c++/scan-10.C: Likewise.
4654 * testsuite/libgomp.c++/scan-11.C: Likewise.
4655 * testsuite/libgomp.c++/scan-12.C: Likewise.
4656 * testsuite/libgomp.c++/scan-13.C: Likewise.
4657 * testsuite/libgomp.c++/scan-14.C: Likewise.
4658 * testsuite/libgomp.c++/scan-15.C: Likewise.
4659 * testsuite/libgomp.c++/scan-16.C: Likewise.
4661 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
4663 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4665 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
4667 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4669 * omp.h.in: Add deprecated flag for omp_atv_sequential.
4670 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4671 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4672 * testsuite/libgomp.fortran/alloc-12.f90: New test.
4674 2021-10-11 Jakub Jelinek <jakub@redhat.com>
4676 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4677 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4678 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4679 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4680 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4681 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4682 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4683 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4684 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4685 omp_set_teams_thread_limit{,_,_8_}.
4686 * icv.c (omp_set_num_teams, omp_get_max_teams,
4687 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4689 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4690 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4691 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4693 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4694 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
4695 is not specified, use gomp_nteams_var.
4696 * fortran.c (omp_set_num_teams, omp_get_max_teams,
4697 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4699 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4700 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4701 omp_get_teams_thread_limit_): New functions.
4703 2021-10-09 liuhongt <hongtao.liu@intel.com>
4705 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4706 * testsuite/libgomp.c++/scan-11.C: Ditto.
4707 * testsuite/libgomp.c++/scan-12.C: Ditto.
4708 * testsuite/libgomp.c++/scan-13.C: Ditto.
4709 * testsuite/libgomp.c++/scan-14.C: Ditto.
4710 * testsuite/libgomp.c++/scan-15.C: Ditto.
4711 * testsuite/libgomp.c++/scan-16.C: Ditto.
4712 * testsuite/libgomp.c++/scan-9.C: Ditto.
4713 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4714 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4715 * testsuite/libgomp.c/scan-11.c: Ditto.
4716 * testsuite/libgomp.c/scan-12.c: Ditto.
4717 * testsuite/libgomp.c/scan-13.c: Ditto.
4718 * testsuite/libgomp.c/scan-14.c: Ditto.
4719 * testsuite/libgomp.c/scan-15.c: Ditto.
4720 * testsuite/libgomp.c/scan-16.c: Ditto.
4721 * testsuite/libgomp.c/scan-17.c: Ditto.
4722 * testsuite/libgomp.c/scan-18.c: Ditto.
4723 * testsuite/libgomp.c/scan-19.c: Ditto.
4724 * testsuite/libgomp.c/scan-20.c: Ditto.
4725 * testsuite/libgomp.c/scan-21.c: Ditto.
4726 * testsuite/libgomp.c/scan-22.c: Ditto.
4728 2021-10-09 Jakub Jelinek <jakub@redhat.com>
4730 * libgomp.texi (OpenMP 5.1): Mention implemented support for
4731 structured block sequences in C/C++. Mention support for
4732 unconstrained/reproducible modifiers on order clause.
4733 Mention partial (C/C++ only) support of extentensions to atomics
4734 construct. Mention partial (C/C++ on clause only) support of
4735 align/allocator modifiers on allocate clause.
4737 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
4739 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4740 based on libgomp.c-c++-common/order-reproducible-1.c.
4741 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4742 * testsuite/libgomp.fortran/my-usleep.c: New test.
4744 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
4746 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4747 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4748 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4749 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4750 based on libgomp.c-c++-common/alloc-9.c.
4752 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4754 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4755 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4757 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4759 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4761 * env.c (handle_omp_display_env): Use ialias_call.
4762 * icv-device.c: Move ialias right below each function.
4763 (omp_get_device_num): Use ialias_call.
4764 * fortran.c (omp_fulfill_event): Add ialias_redirect.
4765 * icv.c (omp_get_active_level): Add ialias_redirect.
4767 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4769 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4770 __alloc_align__ (1) attribute.
4771 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4773 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4775 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4776 for -fintrinsic-modules-path= warning of the C compiler.
4777 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4778 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4780 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4782 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4783 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4784 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4786 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4788 * testsuite/libgomp.fortran/alloc-10.f90: New test.
4789 * testsuite/libgomp.fortran/alloc-6.f90: New test.
4790 * testsuite/libgomp.fortran/alloc-7.c: New test.
4791 * testsuite/libgomp.fortran/alloc-7.f90: New test.
4792 * testsuite/libgomp.fortran/alloc-8.f90: New test.
4793 * testsuite/libgomp.fortran/alloc-9.f90: New test.
4795 2021-09-30 Jakub Jelinek <jakub@redhat.com>
4797 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4798 omp_realloc): New prototypes.
4799 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4801 * allocator.c: Include string.h.
4802 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
4803 variable and use it instead of alignment so that when retrying the old
4804 alignment is used again. Don't retry if new alignment is the same
4805 as old alignment, unless allocator had pool size.
4806 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4807 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4808 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4809 omp_aligned_calloc and omp_realloc.
4810 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4811 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4812 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4813 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4814 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4815 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4817 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
4820 * configure.ac: Only check for int-type = 2*size_t support when
4821 building with Fortran support.
4822 * configure: Regenerate.
4824 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
4826 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4827 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4829 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
4831 * team.c: Initialize start_data.
4832 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4833 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4835 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4837 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4838 dg-message back to dg-note.
4840 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4843 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4844 expected dg-note output.
4846 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
4849 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4850 r12-3722 by removing -Wno-missing-include-dirs.
4851 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4853 2021-09-22 Jakub Jelinek <jakub@redhat.com>
4855 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4856 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4858 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
4861 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4863 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4865 2021-09-18 Jakub Jelinek <jakub@redhat.com>
4867 * testsuite/libgomp.c++/default-1.C: New test.
4868 * testsuite/libgomp.c-c++-common/default-1.c: New test.
4869 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4870 to default clause in C and C++" as implemented.
4872 2021-09-17 Julian Brown <julian@codesourcery.com>
4874 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4876 2021-09-17 Julian Brown <julian@codesourcery.com>
4878 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4880 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4882 * libgomp.texi (OpenMP 5.1): Spelling fix,
4883 declare variante -> declare variant.
4885 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4887 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4888 Use /* */ comments instead of //.
4889 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4890 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4891 * testsuite/libgomp.c++/atomic-16.C: New test.
4892 * testsuite/libgomp.c++/atomic-17.C: New test.
4894 2021-09-10 Jakub Jelinek <jakub@redhat.com>
4896 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4897 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4898 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4900 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4902 * libgomp.texi (OpenMP Implementation Status): Extend
4904 (OpenACC Profiling Interface): Fix typo.
4906 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4908 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4909 not to 4.5; link to new section.
4910 (OpenMP Implementation Status): New.
4912 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
4914 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4916 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
4918 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4920 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4922 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4923 Jakub Jelinek <jakub@redhat.com>
4925 * testsuite/libgomp.c/address-space-1.c: New file.
4927 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4929 * testsuite/lib/libgomp.exp
4930 (check_effective_target_offload_target_intelmic): Remove 'proc'.
4931 (check_effective_target_offload_device_intel_mic): New 'proc'.
4932 * testsuite/libgomp.c-c++-common/on_device_arch.h
4933 (device_arch_intel_mic, on_device_arch_intel_mic): New.
4934 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4936 * testsuite/libgomp.fortran/target10.f90: Likewise.
4938 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
4940 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4941 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4942 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4943 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4945 2021-08-23 Jakub Jelinek <jakub@redhat.com>
4947 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4948 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4949 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4951 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
4953 * config/nvptx/error.c (fwrite, exit): Override, too.
4954 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4955 of offloading testing.
4956 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4958 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
4960 * testsuite/libgomp.fortran/error-1.f90: New test.
4962 2021-08-20 Jakub Jelinek <jakub@redhat.com>
4964 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4965 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4966 * error.c (GOMP_warning, GOMP_error): New functions.
4967 * testsuite/libgomp.c-c++-common/error-1.c: New test.
4969 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
4971 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4972 omp_target_free. omp_target_is_present, omp_target_memcpy,
4973 omp_target_memcpy_rect, omp_target_associate_ptr,
4974 omp_target_disassociate_ptr): Add interface.
4975 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4976 omp_target_free. omp_target_is_present, omp_target_memcpy,
4977 omp_target_memcpy_rect, omp_target_associate_ptr,
4978 omp_target_disassociate_ptr): Add interface.
4979 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4980 interface block for omp_alloc + omp_free.
4981 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4982 * testsuite/libgomp.fortran/refcount-1.f90: New test.
4983 * testsuite/libgomp.fortran/target-12.f90: New test.
4985 2021-08-18 Jakub Jelinek <jakub@redhat.com>
4987 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4989 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
4991 * testsuite/libgomp.fortran/scope-1.f90: New test.
4992 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4994 2021-08-17 Jakub Jelinek <jakub@redhat.com>
4996 * Makefile.am (libgomp_la_SOURCES): Add scope.c
4997 * Makefile.in: Regenerated.
4998 * libgomp_g.h (GOMP_scope_start): Declare.
4999 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5000 * scope.c: New file.
5001 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5002 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5004 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
5006 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5009 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
5011 * testsuite/libgomp.fortran/masked-1.f90: New test.
5013 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
5015 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5017 2021-08-12 Jakub Jelinek <jakub@redhat.com>
5019 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5021 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
5023 * env.c (parse_bind_var): Accept 'primary' as alias for
5025 (omp_display_env): Add TODO comment to
5026 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5027 * libgomp.texi: Change 'master thread' to 'primary thread'
5028 in line with OpenMP 5.1.
5029 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5030 omp_proc_bind_master is an alias of it.
5031 (OMP_PROC_BIND): Mention 'PRIMARY'.
5032 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5033 (omp_proc_bind_primary): Add.
5034 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5035 * omp_lib.f90.in (omp_proc_bind_primary): Add.
5036 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5037 * omp_lib.h.in (omp_proc_bind_primary): Add.
5038 * testsuite/libgomp.c/affinity-1.c: Check that
5039 'primary' works and is identical to 'master'.
5041 2021-08-09 Julian Brown <julian@codesourcery.com>
5042 Kwok Cheung Yeung <kcy@codesourcery.com>
5043 Thomas Schwinge <thomas@codesourcery.com>
5045 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5047 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5048 [acc_device_radeon]: Update.
5049 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5050 [ACC_DEVICE_TYPE_radeon]: Likewise.
5051 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5052 [acc_device_radeon]: Likewise.
5053 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5054 [ACC_DEVICE_TYPE_radeon]: Likewise.
5055 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5056 'openacc_radeon_accel_selected' and '-O0'.
5057 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5059 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
5061 * icv-device.c (omp_get_device_num): New API function, host side.
5062 * fortran.c (omp_get_device_num_): New interface function.
5063 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5064 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5065 omp_get_device_num_.
5066 * libgomp.texi (omp_get_device_num): Add documentation for new API
5068 * omp.h.in (omp_get_device_num): Add declaration.
5069 * omp_lib.f90.in (omp_get_device_num): Likewise.
5070 * omp_lib.h.in (omp_get_device_num): Likewise.
5071 * target.c (gomp_load_image_to_device): If additional entry for device
5072 number exists at end of returned entries from 'load_image_func' hook,
5073 copy the assigned device number over to the device variable.
5074 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5075 (omp_get_device_num): New API function, device side.
5076 * plugin/plugin-gcn.c ("symcat.h"): Add include.
5077 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5078 at end of returned 'target_table' entries.
5079 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5080 (omp_get_device_num): New API function, device side.
5081 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5082 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5083 at end of returned 'target_table' entries.
5084 * testsuite/lib/libgomp.exp
5085 (check_effective_target_offload_target_intelmic): New function for
5086 testing for intelmic offloading.
5087 * testsuite/libgomp.c-c++-common/target-45.c: New test.
5088 * testsuite/libgomp.fortran/target10.f90: New test.
5090 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
5091 Ulrich Drepper <drepper@redhat.com>
5093 * fortran.c (omp_display_env_, omp_display_env_8_): Only
5094 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5096 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
5097 Julian Brown <julian@codesourcery.com>
5098 Kwok Cheung Yeung <kcy@codesourcery.com>
5100 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5101 's%oaccdevlow%oaccloops%g'.
5102 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5103 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5104 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5106 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5108 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5110 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5112 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5114 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5116 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5118 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5120 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5122 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
5124 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5126 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5128 2021-07-27 Ulrich Drepper <drepper@gmail.com>
5130 * env.c (wait_policy, stacksize): New static variables,
5131 move out of handle_omp_display_env.
5132 (omp_display_env): New function. The meat of the old
5133 handle_omp_display_env function.
5134 (handle_omp_display_env): Change to not take parameters
5135 and instead use the global variables. Only perform
5136 parsing, defer to omp_display_env for the implementation.
5137 (initialize_env): Remove local variables wait_policy and
5138 stacksize. Don't pass parameters to handle_omp_display_env.
5139 * fortran.c: Add ialias_redirect for omp_display_env.
5140 (omp_display_env_, omp_display_env_8_): New functions.
5141 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
5142 omp_display_env_, and omp_display_env_8_.
5143 * omp.h.in: Declare omp_display_env.
5144 * omp_lib.f90.in: Likewise.
5145 * omp_lib.h.in: Likewise.
5147 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5148 Julian Brown <julian@codesourcery.com>
5150 * target.c (gomp_coalesce_buf_add): Update comment.
5151 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5153 (gomp_map_vars_internal): Only 'if (!aq)', do
5154 'gomp_coalesce_buf_add'.
5155 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5158 2021-07-27 Julian Brown <julian@codesourcery.com>
5159 Thomas Schwinge <thomas@codesourcery.com>
5161 * libgomp.h (gomp_copy_host2dev): Update prototype.
5162 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5163 argument to gomp_copy_host2dev (false).
5164 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5165 (copy_data): Don't free src.
5166 (queue_push_copy): Remove free_src handling.
5167 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5168 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5170 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5172 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5173 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
5174 data when true, and set up deferred freeing of temporary buffer.
5175 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5176 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5177 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5178 calls to gomp_copy_host2dev with appropriate ephemeral argument.
5179 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5182 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5183 Tom de Vries <tom@codesourcery.com>
5185 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5186 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5188 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5190 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5191 sequencing of 'async' data copying vs. profiling events.
5192 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5195 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5196 Julian Brown <julian@codesourcery.com>
5198 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5199 'async'/'wait' issue.
5200 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5201 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5202 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5204 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
5205 Joseph Myers <joseph@codesourcery.com>
5206 Cesar Philippidis <cesar@codesourcery.com>
5208 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5210 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5212 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5214 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5216 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
5219 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5220 '-Wno-error=array-bounds'.
5221 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5222 * libgomp.h [__AMDGCN__]: Likewise.
5224 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
5227 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5228 * libgomp.h [__AMDGCN__]: Likewise.
5230 2021-07-13 Jakub Jelinek <jakub@redhat.com>
5231 Florian Weimer <fweimer@redhat.com>
5233 * config/linux/sem.h: Don't include limits.h.
5234 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5235 * config/linux/affinity.c: Include limits.h.
5237 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5240 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5242 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5245 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5246 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5247 avoid disabling other offload targets.
5248 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5249 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5250 * testsuite/libgomp.c/target-44.c: Likewise.
5252 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5254 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5255 target has shared memory and disable some scalar pointer/allocatable
5256 checks if not as firstprivate does not work.
5258 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5261 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5262 Add "target offload_device_nonshared_as" condition for enabling test.
5264 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5266 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5267 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5268 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5269 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5271 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5273 PR middle-end/101167
5274 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5276 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5278 * hashtab.h (htab_clear): New function with initialization code
5279 factored out from...
5280 (htab_create): ...here, adjust to use htab_clear function.
5281 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5282 special refcount values, add comments.
5283 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5284 (REFCOUNT_LINK): Likewise.
5285 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5287 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5289 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5290 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5291 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5292 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5293 (struct splay_tree_key_s): Add structelem_refcount and
5294 structelem_refcount_ptr fields into a union with dynamic_refcount.
5296 (gomp_map_vars): Delete declaration.
5297 (gomp_map_vars_async): Likewise.
5298 (gomp_unmap_vars): Likewise.
5299 (gomp_unmap_vars_async): Likewise.
5300 (goacc_map_vars): New declaration.
5301 (goacc_unmap_vars): Likewise.
5302 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5303 (goacc_enter_datum): Likewise.
5304 (goacc_enter_data_internal): Likewise.
5305 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5306 and goacc_unmap_vars.
5307 (GOACC_data_start): Adjust to use goacc_map_vars.
5308 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5309 * target.c (hash_entry_type): New typedef.
5310 (htab_alloc): New function hook for hashtab.h.
5311 (htab_free): Likewise.
5312 (htab_hash): Likewise.
5313 (htab_eq): Likewise.
5314 (hashtab.h): Add file include.
5315 (gomp_increment_refcount): New function.
5316 (gomp_decrement_refcount): Likewise.
5317 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5318 gomp_increment_refcount.
5319 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5320 to gomp_map_vars_existing.
5321 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5322 variable to guard OpenMP specific paths, adjust calls to
5323 gomp_map_vars_existing, add structure element sibling splay_tree_key
5324 sequence creation code, adjust Fortran map case to avoid increment
5326 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5327 local refcount_set if caller passed in NULL, adjust call to
5328 gomp_map_vars_internal.
5329 (gomp_map_vars_async): Adjust and rename into...
5330 (goacc_map_vars): ...this new function, adjust call to
5331 gomp_map_vars_internal.
5332 (gomp_remove_splay_tree_key): New function with code factored out from
5333 gomp_remove_var_internal.
5334 (gomp_remove_var_internal): Add code to handle removing multiple
5335 splay_tree_key sequence for structure elements, adjust code to use
5336 gomp_remove_splay_tree_key for splay-tree key removal.
5337 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5338 gomp_decrement_refcount.
5339 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5340 local refcount_set if caller passed in NULL, adjust call to
5341 gomp_unmap_vars_internal.
5342 (gomp_unmap_vars_async): Adjust and rename into...
5343 (goacc_unmap_vars): ...this new function, adjust call to
5344 gomp_unmap_vars_internal.
5345 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5347 (GOMP_target_ext): Likewise.
5348 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5349 (GOMP_target_data): Likewise.
5350 (GOMP_target_data_ext): Likewise.
5351 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5352 (gomp_exit_data): Add refcount_set parameter, adjust to use
5353 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5355 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5356 gomp_map_vars and gomp_exit_data.
5357 (gomp_target_task_fn): Likewise.
5358 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5359 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5360 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5361 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5362 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5363 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5365 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5368 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5370 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5371 Thomas Schwinge <thomas@codesourcery.com>
5373 * libgomp.map (GOACC_2.0.2): New symbol version.
5374 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5375 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5377 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5378 Andrew Stubbs <ams@codesourcery.com>
5380 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5382 (GOACC_enter_exit_data): ... here.
5383 (GOACC_declare): Use it.
5385 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5387 * oacc-parallel.c (GOACC_declare): Move...
5388 * oacc-mem.c: ... here.
5389 * libgomp_g.h: Adjust.
5391 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5392 Thomas Schwinge <thomas@codesourcery.com>
5394 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5397 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5399 PR tree-optimization/100981
5400 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5401 dsdotr and dsdoti to 0.
5403 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5405 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5406 if atomic compare-and-swap is supported on 'int'.
5408 2021-06-09 Richard Biener <rguenther@suse.de>
5410 PR tree-optimization/100981
5411 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5413 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5415 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5417 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5419 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5420 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5422 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5424 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5425 '-DACC_MEM_SHARED=0'.
5426 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5427 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5428 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5429 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5430 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5431 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5432 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5433 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5434 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5435 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5436 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5437 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5438 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5439 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5440 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5441 'acc_device_radeon' testing.
5442 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5443 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5444 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5445 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5446 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5447 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5448 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5449 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5450 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5451 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5452 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5453 for non-'openacc_nvidia_accel_selected'.
5454 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5455 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5456 all implement this checking".
5457 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5458 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5459 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5460 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5461 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5463 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5465 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5466 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5468 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5470 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5471 for 'acc_device_radeon'.
5473 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5475 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5476 for non-'acc_device_nvidia'.
5478 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5480 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5481 'acc_device_radeon' testing.
5482 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5483 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5484 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5486 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5488 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5489 require 'openacc_nvidia_accel_selected'. Fix up for
5490 'ACC_DEVICE_TYPE_radeon'.
5492 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5494 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5495 'openacc_nvidia_accel_selected'.
5496 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5498 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5500 * testsuite/lib/libgomp.exp
5501 (check_effective_target_openacc_radeon_accel_selected):
5504 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5506 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5509 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5511 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5512 <acc_device_nvidia>: Update comment.
5514 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5516 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5518 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5520 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5521 check_effective_target_openacc_cublas,
5522 check_effective_target_openacc_cudart): New.
5523 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5524 target openacc_cublas.
5525 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5526 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5527 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5528 target openacc_cuda.
5529 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5530 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5531 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5532 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5533 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5534 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5535 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5536 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5537 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5538 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5539 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5540 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5541 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5542 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5543 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5544 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5545 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5546 targets openacc_cublas and openacc_cudart.
5547 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5548 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5549 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5550 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5551 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5552 Require effective target openacc_cudart.
5553 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5554 for effective target openacc_cuda and add && defined USE_CUDA_H to
5555 preprocessor conditionals. Guard -lcuda also on openacc_cuda
5558 2021-05-26 Jakub Jelinek <jakub@redhat.com>
5561 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5562 GOMP_target_end_data, GOMP_target_update_ext,
5563 GOMP_target_enter_exit_data): New dummy entrypoints.
5564 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5565 GOMP_target_end_data, GOMP_target_update_ext,
5566 GOMP_target_enter_exit_data): Likewise.
5567 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5568 OMPFROM, OMPTO): Define.
5569 (main): Remove #pragma omp target teams around all the tests.
5570 * testsuite/libgomp.c-c++-common/target-41.c: New test.
5571 * testsuite/libgomp.c-c++-common/target-42.c: New test.
5573 2021-05-25 Jakub Jelinek <jakub@redhat.com>
5576 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5578 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
5581 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5582 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5583 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5585 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
5588 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5589 uninteresting/varying diagnostics.
5591 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5594 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5595 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5597 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5600 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5602 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5603 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5604 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5606 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5608 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5610 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5612 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5614 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5616 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5618 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5620 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5622 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5624 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5626 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5628 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5630 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5632 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5634 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5636 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5638 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5640 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5642 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5644 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5646 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5647 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5648 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5649 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5650 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5651 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5652 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5653 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5654 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5655 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5656 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5657 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5658 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5659 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5660 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5662 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5664 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5666 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5668 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5669 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5671 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5672 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5673 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5674 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5675 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5676 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5677 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5679 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5681 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5683 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5685 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5687 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5689 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5691 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5693 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5695 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5697 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5699 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5701 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5703 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5704 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5705 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5707 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5709 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5710 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5711 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5713 2021-05-21 Julian Brown <julian@codesourcery.com>
5714 Chung-Lin Tang <cltang@codesourcery.com>
5715 Thomas Schwinge <thomas@codesourcery.com>
5718 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5720 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5722 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5725 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5727 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5728 for nvptx offloading.
5730 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
5732 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5734 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
5737 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5739 2021-05-19 Julian Brown <julian@codesourcery.com>
5741 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5743 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5745 * testsuite/lib/libgomp.exp
5746 (check_effective_target_offload_target_nvptx): Don't shadow global
5747 'offload_targets' variable.
5749 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5751 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5752 '-latomic' to nvptx offloading compilation.
5753 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5755 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5757 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5758 offloading compilation.
5760 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
5762 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5763 if new tasks generated.
5764 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5766 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
5768 * testsuite/libgomp.fortran/parallel-master.f90: New test.
5770 2021-05-13 Martin Liska <mliska@suse.cz>
5773 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5774 * testsuite/libgomp.c/pr46032-2.c: Likewise.
5775 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5776 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5778 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
5780 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5781 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5783 2021-05-11 Jakub Jelinek <jakub@redhat.com>
5785 PR middle-end/100471
5786 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5787 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5789 * testsuite/libgomp.c/task-reduction-4.c: New test.
5791 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
5792 Tom de Vries <tdevries@suse.de>
5794 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5795 complex/floating-point || + && reduction with 'omp target'.
5796 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5798 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5800 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5801 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5802 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5803 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5805 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5808 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5809 declaration to scope of non-'depend'-guarded assignment to avoid races.
5811 2021-05-03 Tom de Vries <tdevries@suse.de>
5814 * testsuite/libgomp.c/target-44.c: New test.
5816 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
5818 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5820 2021-04-29 Tom de Vries <tdevries@suse.de>
5822 * testsuite/libgomp.c/pr81778.c: New test.
5824 2021-04-29 Tom de Vries <tdevries@suse.de>
5827 * testsuite/libgomp.c/target-43.c: New file.
5829 2021-04-28 Jakub Jelinek <jakub@redhat.com>
5830 Tobias Burnus <tobias@codesourcery.com>
5832 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5833 * target.c (gomp_load_plugin_for_device): If set and if a plugin
5834 can't be dlopened, silently assume it has no devices.
5835 * Makefile.in: Regenerate.
5836 * config.h.in: Regenerate.
5837 * configure: Regenerate.
5839 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5841 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5842 Use [Ww]arning in dg-bogus as FE diagnostic and default
5843 diagnostic differ and the result depends on ENABLE_OFFLOAD.
5844 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5845 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5846 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5848 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5850 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5851 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5852 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5853 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5854 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5856 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5857 Nathan Sidwell <nathan@codesourcery.com>
5858 Tom de Vries <vries@codesourcery.com>
5859 Julian Brown <julian@codesourcery.com>
5860 Kwok Cheung Yeung <kcy@codesourcery.com>
5862 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5863 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5864 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5865 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5866 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5867 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5868 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5870 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5871 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5872 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5873 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5875 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5876 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5878 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5879 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5880 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5881 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5882 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5883 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5885 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5886 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5887 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5888 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5889 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5890 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5891 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5892 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5893 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5894 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5895 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5897 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5899 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5901 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5902 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5904 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5905 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5906 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5907 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5908 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5909 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5910 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5912 2021-04-22 Richard Biener <rguenther@suse.de>
5914 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5917 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5919 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5920 omp_depend_kind instead of defining it as 16.
5922 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5924 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5925 New, based on check_effective_target_offload_target_nvptx.
5926 (check_effective_target_offload_target_nvptx): Call it.
5927 (check_effective_target_offload_target_amdgcn): New.
5928 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5929 Require target offload_target_nvptx || offload_target_amdgcn.
5930 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5931 * testsuite/libgomp.c/pr86416-1.c: Likewise.
5932 * testsuite/libgomp.c/pr86416-2.c: Likewise.
5934 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5936 * testsuite/libgomp.fortran/depobj-1.f90: New test.
5938 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
5940 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5941 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5942 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5944 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5946 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5948 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
5951 * testsuite/lib/libgomp.exp
5952 (check_effective_target_offload_device_nvptx): New.
5953 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5954 resolved, make sure that we exit quickly, with error status,
5956 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5957 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5959 2021-04-14 Jakub Jelinek <jakub@redhat.com>
5962 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5963 cp = omp_alloc with cp, p arguments instead of cq, q and call
5964 c_f_pointer after last cq = omp_alloc with cq, q.
5966 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
5969 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5970 for loop with GT/GE condition.
5971 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5973 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
5978 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5980 2021-04-09 Jakub Jelinek <jakub@redhat.com>
5983 * team.c (gomp_thread_start): Call pthread_setspecific for
5984 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5985 has been initialized to avoid false positive warning.
5987 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
5990 * testsuite/lib/on_device_arch.c: Move to ...
5991 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5992 * testsuite/libgomp.fortran/on_device_arch.c: New file;
5993 #include on_device_arch.h.
5994 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5995 on_device_arch.h instead of using dg-additional-source.
5996 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5997 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5998 on_device_arch.c without relative paths.
6000 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6002 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6003 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6004 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6005 * config.h.in: Regenerate.
6006 * configure: Likewise.
6008 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6011 * testsuite/lib/on_device_arch.c: New file.
6012 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6013 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6014 skip for nvptx offloading, with error status.
6015 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6017 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6019 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6020 OpenACC 'serial' construct diagnostic for nvptx offloading.
6022 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
6025 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6027 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
6030 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6032 2021-03-04 Jakub Jelinek <jakub@redhat.com>
6034 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6035 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6036 checking of -m32 or -mx32 options on the command line.
6037 * config.h.in: Regenerated.
6038 * configure: Regenerated.
6040 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
6042 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6043 support from the target.
6045 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6046 Jakub Jelinek <jakub@redhat.com>
6049 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6050 (struct gomp_task): Replace detach and completion_sem fields with
6051 union containing completion_sem and detach_team. Add deferred_p
6053 (struct gomp_team): Remove task_detach_queue.
6054 * task.c: Include assert.h.
6055 (gomp_init_task): Initialize deferred_p and completion_sem fields.
6056 Rearrange initialization order of fields.
6057 (task_fulfilled_p): Delete.
6058 (GOMP_task): Use address of task as the event handle. Remove
6059 initialization of detach field. Initialize deferred_p field.
6060 Use automatic local for completion_sem. Initialize detach_team field
6062 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6063 Set kind of suspended detach task to GOMP_TASK_DETACHED and
6064 decrement task_running_count. Move finish_cancelled block out of
6065 else branch. Relocate call to gomp_team_barrier_done.
6066 (GOMP_taskwait): Handle tasks with completion events that have not
6068 (GOMP_taskgroup_end): Likewise.
6069 (omp_fulfill_event): Use address of task as event handle. Post to
6070 completion_sem for undeferred tasks. Clear detach_team if task
6071 has not finished. For finished tasks, handle post-execution tasks,
6072 call gomp_team_barrier_wake if necessary, and free task.
6073 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6074 (free_team): Remove free of task_detach_queue.
6075 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6076 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6077 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6078 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6079 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6080 Change data-sharing of detach events on enclosing parallel to private.
6081 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
6083 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6084 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6085 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6086 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6087 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6088 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6089 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6090 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6091 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6092 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6093 Change data-sharing of detach events on enclosing parallel to private.
6094 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
6096 * testsuite/libgomp.fortran/task-detach-7.f90: New.
6097 * testsuite/libgomp.fortran/task-detach-8.f90: New.
6098 * testsuite/libgomp.fortran/task-detach-9.f90: New.
6099 * testsuite/libgomp.fortran/task-detach-10.f90: New.
6100 * testsuite/libgomp.fortran/task-detach-11.f90: New.
6102 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
6105 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6107 2021-02-17 Julian Brown <julian@codesourcery.com>
6109 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6112 2021-02-17 Julian Brown <julian@codesourcery.com>
6114 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6115 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6117 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6119 * config/linux/x86/futex.h (__futex_wait):
6120 Revert output type back to long.
6121 (__futex_wake): Ditto.
6122 (futex_wait): Update for revert.
6123 (futex_wake): Ditto.
6125 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6127 * config/linux/x86/futex.h (__futex_wait): New static inline
6128 wrapper function. Correct output type to int and
6129 timeout type to void *.
6130 (__futex_wake): New static inline wrapper function.
6131 Correct output type to int.
6132 (futex_wait): Use __futex_wait.
6133 (futex_wake): Use __futex_wake.
6135 2021-02-10 Julian Brown <julian@codesourcery.com>
6138 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6141 2021-02-04 Julian Brown <julian@codesourcery.com>
6143 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6145 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
6147 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6148 EF_AMDGPU_MACH_AMDGCN_GFX908.
6149 (gcn_gfx908_s): New constant string.
6150 (isa_hsa_name): Add gfx908.
6151 (isa_code): Add gfx908.
6153 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6155 * libgomp.texi (omp_fulfill_event): New entry.
6157 2021-01-20 Jakub Jelinek <jakub@redhat.com>
6159 * task.c (GOMP_task): Rename priority argument to priority_arg,
6160 add priority automatic variable and modify that variable. Instead of
6161 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6162 check flags for that bit.
6164 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
6167 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6169 2021-01-18 Andreas Schwab <schwab@suse.de>
6171 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6173 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6175 * config/rtems/sem.h (gomp_sem_getcount): New function.
6177 2021-01-18 Jakub Jelinek <jakub@redhat.com>
6179 * config/linux/sem.h (gomp_sem_getcount): New function.
6180 * config/posix/sem.h (gomp_sem_getcount): New function.
6181 * config/posix/sem.c (gomp_sem_getcount): New function.
6182 * config/accel/sem.h (gomp_sem_getcount): New function.
6183 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6184 (omp_fulfill_event): Likewise.
6186 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
6188 * fortran.c (omp_fulfill_event_): New.
6189 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6190 (struct gomp_team): Add task_detach_queue and task_detach_count
6192 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6193 * libgomp_g.h (GOMP_task): Add extra argument.
6194 * omp.h.in (enum omp_event_handle_t): New.
6195 (omp_fulfill_event): New.
6196 * omp_lib.f90.in (omp_event_handle_kind): New.
6197 (omp_fulfill_event): New.
6198 * omp_lib.h.in (omp_event_handle_kind): New.
6199 (omp_fulfill_event): Declare.
6200 * priority_queue.c (priority_tree_find): New.
6201 (priority_list_find): New.
6202 (priority_queue_find): New.
6203 * priority_queue.h (priority_queue_predicate): New.
6204 (priority_queue_find): New.
6205 * task.c (gomp_init_task): Initialize detach field.
6206 (task_fulfilled_p): New.
6207 (GOMP_task): Add detach argument. Ignore detach argument if
6208 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
6209 field. Copy address of completion_sem into detach argument and
6210 into the start of the data record. Wait for detach event if task
6212 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6213 Remove completed tasks and requeue dependent tasks.
6214 (omp_fulfill_event): New.
6215 * team.c (gomp_new_team): Initialize task_detach_queue and
6216 task_detach_count fields.
6217 (free_team): Free task_detach_queue field.
6218 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6219 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6220 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6221 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6222 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6223 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6224 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6225 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6226 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6227 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6228 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6229 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6231 2021-01-15 Jakub Jelinek <jakub@redhat.com>
6234 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6235 be added through preprocessor check on
6236 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6238 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
6241 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6243 * configure: Regenerate.
6244 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6247 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6249 * configure: Re-generate.
6251 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6253 * configure: Re-generate.
6255 2021-01-05 Julian Brown <julian@codesourcery.com>
6257 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6258 (struct ptx_device): Add omp_stacks struct.
6259 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6260 (nvptx_close_device): Free cached stacks block and mutex.
6261 (nvptx_stacks_free): New function.
6262 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6263 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6264 (nvptx_stacks_alloc): Rename to...
6265 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6266 size or smaller is required.
6267 (nvptx_stacks_free): Remove.
6268 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6269 during kernel execution.
6271 2021-01-01 Jakub Jelinek <jakub@redhat.com>
6273 * libgomp.texi: Bump @copying's copyright year.
6275 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6277 * libgomp.texi (Top): Avoid bad "up" link.
6279 2020-12-18 Jakub Jelinek <jakub@redhat.com>
6281 * testsuite/libgomp.c/task-6.c: New test.
6283 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
6285 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6286 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6288 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
6290 * testsuite/libgomp.fortran/scan-1.f90: New test.
6292 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6295 * configure: Regenerate.
6297 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
6299 * configure: Regenerate.
6301 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6303 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6304 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6306 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
6308 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6311 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
6313 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6314 (reserved): Delete unused define.
6316 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6318 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6319 Tcl 8.5-specific behavior.
6320 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6322 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6324 * env.c (gomp_global_icv): Remove nest_var field. Add
6325 max_active_levels_var field.
6326 (gomp_max_active_levels_var): Remove.
6327 (parse_boolean): Return true on success.
6328 (handle_omp_display_env): Express OMP_NESTED in terms of
6329 max_active_levels_var. Change format specifier for
6330 max_active_levels_var.
6331 (initialize_env): Set max_active_levels_var from
6332 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6334 * icv.c (omp_set_nested): Express in terms of
6335 max_active_levels_var.
6336 (omp_get_nested): Likewise.
6337 (omp_set_max_active_levels): Use max_active_levels_var field instead
6338 of gomp_max_active_levels_var.
6339 (omp_get_max_active_levels): Likewise.
6340 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6341 max_active_levels_var field.
6342 (gomp_supported_active_levels): Set to UCHAR_MAX.
6343 (gomp_max_active_levels_var): Delete.
6344 * libgomp.texi (omp_get_nested): Update documentation.
6345 (omp_set_nested): Likewise.
6346 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6347 (OMP_NESTED): Likewise.
6348 (OMP_NUM_THREADS): Likewise.
6349 (OMP_PROC_BIND): Likewise.
6350 * parallel.c (gomp_resolve_num_threads): Replace reference
6351 to nest_var with max_active_levels_var. Use max_active_levels_var
6352 field instead of gomp_max_active_levels_var.
6354 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
6356 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6357 nvptx_usleep; use also for device={arch(gcn)}.
6359 2020-11-14 Jakub Jelinek <jakub@redhat.com>
6361 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6362 (foo): Add tests for non-VLA private and firstprivate clauses on
6364 (bar): Likewise. Remove taking of address from private/firstprivate
6366 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6367 (foo): Add p, q, px and s arguments. Add tests for array reductions
6368 and for non-VLA private and firstprivate clauses on omp task.
6370 (main): Adjust foo caller. Don't call bar.
6372 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6373 Thomas Schwinge <thomas@codesourcery.com>
6375 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6377 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6379 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6381 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6382 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6384 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6385 Thomas Schwinge <thomas@codesourcery.com>
6388 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6390 2020-11-13 Jakub Jelinek <jakub@redhat.com>
6392 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6393 for array reductions.
6394 (main): Adjust foo callers.
6396 2020-11-12 Jakub Jelinek <jakub@redhat.com>
6398 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6399 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6400 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6401 * allocator.c (omp_aligned_alloc): New for now static function,
6402 add alignment argument and handle it.
6403 (omp_alloc): Reimplement using omp_aligned_alloc.
6404 (GOMP_alloc, GOMP_free): New functions.
6405 (omp_free): Add ialias.
6406 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6407 * testsuite/libgomp.c++/allocate-1.C: New test.
6409 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6412 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6414 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6416 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6418 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6419 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6420 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6421 (goacc_enter_data_internal): Likewise.
6422 * target.c (gomp_map_vars_internal):
6423 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6424 of gomp_attach_pointer for OpenMP cases.
6425 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6426 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6427 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6429 2020-11-05 Ulrich Drepper <drepper@redhat.com>
6430 Kwok Cheung Yeung <kcy@codesourcery.com>
6432 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6433 * Makefile.in: Regenerate.
6434 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6435 pragmas to ignore -Wdeprecated-declarations warnings.
6437 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6438 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6439 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6440 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6442 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6444 * testsuite/libgomp.c/affinity-1.c: Likewise.
6445 * testsuite/libgomp.c/affinity-2.c: Likewise.
6446 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6447 * testsuite/libgomp.c/lib-1.c: Likewise.
6448 * testsuite/libgomp.c/nested-1.c: Likewise.
6449 * testsuite/libgomp.c/nested-2.c: Likewise.
6450 * testsuite/libgomp.c/nested-3.c: Likewise.
6451 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6452 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6453 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6454 * testsuite/libgomp.c/pr35549.c: Likewise.
6455 * testsuite/libgomp.c/pr42942.c: Likewise.
6456 * testsuite/libgomp.c/pr61200.c: Likewise.
6457 * testsuite/libgomp.c/sort-1.c: Likewise.
6458 * testsuite/libgomp.c/target-5.c: Likewise.
6459 * testsuite/libgomp.c/target-6.c: Likewise.
6460 * testsuite/libgomp.c/teams-1.c: Likewise.
6461 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6462 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6463 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6464 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6465 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6466 * testsuite/libgomp.fortran/lib2.f: Likewise.
6467 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6468 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6470 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6473 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6474 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6475 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6477 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6481 * testsuite/lib/libgomp.exp (libgomp_init): Set
6482 'gcc_warning_prefix', 'gcc_error_prefix'.
6484 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6486 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6487 even in field_tgt_clear initializer.
6489 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6491 * testsuite/libgomp.c/target-42.c: New test.
6493 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6494 Tom de Vries <tdevries@suse.de>
6497 * testsuite/libgomp.c/usleep.h: New file.
6498 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6499 (main): Use tgt_usleep instead of usleep.
6500 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6501 (main): Use tgt_usleep instead of usleep.
6503 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6506 * testsuite/libgomp.c/declare-variant-1.c: New test.
6508 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6510 * testsuite/libgomp.c/target-41.c: New test.
6512 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6514 * icv.c (omp_get_initial_device): Remove including corresponding
6516 * icv-device.c (omp_get_initial_device): New function. Return
6517 gomp_get_num_devices (). Add ialias.
6518 * target.c (resolve_device): Don't fail with
6519 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6520 gomp_get_num_devices ().
6521 (omp_target_alloc, omp_target_free, omp_target_is_present,
6522 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6523 omp_target_disassociate_ptr, omp_pause_resource): Use
6524 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6525 first use in the functions, in uses dominated by the
6526 gomp_get_num_devices call use num_devices_openmp instead.
6527 * libgomp.texi (omp_get_initial_device): Document.
6528 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6530 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6531 * testsuite/libgomp.c/target-40.c: New test.
6533 2020-10-21 Jakub Jelinek <jakub@redhat.com>
6535 * env.c (parse_target_offload): Change new_offload var type to int,
6536 preinitialize to -1, remove found var and test new_offload != -1
6539 2020-10-20 Jakub Jelinek <jakub@redhat.com>
6541 * target.c (gomp_target_init): Inside of the function, use automatic
6542 variables corresponding to num_devices, num_devices_openmp and devices
6543 global variables and update the globals only at the end of the
6546 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6548 * env.c (gomp_target_offload_var): New.
6549 (parse_target_offload): New.
6550 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6551 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6552 * libgomp.h (gomp_target_offload_t): New.
6553 (gomp_target_offload_var): New.
6554 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6555 * target.c (resolve_device): Generate error if device not found and
6556 offloading is mandatory.
6557 (gomp_target_fallback): Generate error if offloading is mandatory.
6558 (GOMP_target): Add argument in call to gomp_target_fallback.
6559 (GOMP_target_ext): Likewise.
6560 (gomp_target_data_fallback): Generate error if offloading is mandatory.
6561 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6562 (GOMP_target_data_ext): Likewise.
6563 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6564 (gomp_target_init): Return early if offloading is disabled.
6566 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
6568 * libgomp.texi (omp_get_max_active_levels): Modify description.
6569 (omp_get_supported_active_levels): Make descriptions consistent.
6571 2020-10-14 Jakub Jelinek <jakub@redhat.com>
6573 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6575 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6577 * env.c (gomp_max_active_levels_var): Initialize to
6578 gomp_supported_active_levels.
6579 (initialize_env): Limit gomp_max_active_levels_var to be at most
6580 equal to gomp_supported_active_levels.
6581 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6582 (omp_get_supported_active_levels_): New.
6583 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6584 to at most equal to gomp_supported_active_levels.
6585 (omp_get_supported_active_levels): New.
6586 * libgomp.h (gomp_supported_active_levels): New.
6587 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6588 omp_get_supported_active_levels_.
6589 * libgomp.texi (omp_get_supported_active_levels): New.
6590 (omp_set_max_active_levels): Update. Add reference to
6591 omp_get_supported_active_levels.
6592 * omp.h.in (omp_get_supported_active_levels): New.
6593 * omp_lib.f90.in (omp_get_supported_active_levels): New.
6594 * omp_lib.h.in (omp_get_supported_active_levels): New.
6595 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6596 against omp_get_supported_active_levels.
6597 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6599 2020-10-11 Clement Chigot <clement.chigot@atos.net>
6601 * config/t-aix: Delete and recreate libgomp before creating
6604 2020-10-08 Tom de Vries <tdevries@suse.de>
6607 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6610 2020-10-06 Tom de Vries <tdevries@suse.de>
6612 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6614 2020-10-06 Tom de Vries <tdevries@suse.de>
6617 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6619 2020-10-05 Tom de Vries <tdevries@suse.de>
6622 * testsuite/libgomp.fortran/pr95654.f90: New test.
6624 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
6626 * Makefile.in: Regenerate with automake 1.15.1.
6627 * aclocal.m4: Likewise.
6628 * configure: Likewise.
6629 * testsuite/Makefile.in: Likewise.
6631 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
6633 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6636 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6638 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6640 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
6642 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6643 total number of threads is one.
6644 (gomp_team_barrier_wake): Likewise.
6645 (gomp_team_barrier_wait_end): Likewise.
6646 (gomp_team_barrier_wait_cancel_end): Likewise.
6647 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6648 (gomp_team_barrier_wake): Likewise.
6649 (gomp_team_barrier_wait_end): Likewise.
6650 (gomp_team_barrier_wait_cancel_end): Likewise.
6651 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6653 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6656 * testsuite/libgomp.c++/pr96390.C: New test.
6657 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6659 2020-09-27 Clement Chigot <clement.chigot@atos.net>
6661 * config/t-aix: Use $(AR) without -X32_64.
6663 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6665 * testsuite/libgomp.c/loop-25.c: New test.
6667 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
6670 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6672 2020-09-22 Tom de Vries <tdevries@suse.de>
6674 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6677 2020-09-16 Nathan Sidwell <nathan@acm.org>
6679 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6681 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6684 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6686 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6689 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6690 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6691 (gomp_map_vars_existing): Update call to it.
6692 (gomp_map_fields_existing): Likewise
6693 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6694 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6696 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6698 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6699 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6701 2020-09-14 Tom de Vries <tdevries@suse.de>
6703 * config/nvptx/atomic.c: New file. Add
6704 __sync_val_compare_and_swap_16.
6705 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6706 target offload_target_nvptx.
6708 2020-09-08 Julian Brown <julian@codesourcery.com>
6710 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6711 iteration-ordering assumptions.
6713 2020-09-08 Julian Brown <julian@codesourcery.com>
6715 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6716 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6718 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
6720 * plugin/plugin-nvptx.c (nvptx_free):
6721 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6722 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6725 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
6727 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6729 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6731 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6733 2020-08-13 Jakub Jelinek <jakub@redhat.com>
6735 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6736 * testsuite/libgomp.c/loop-23.c (main): Likewise.
6737 * testsuite/libgomp.c/loop-24.c: New test.
6739 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6740 Tobias Burnus <tobias@codesourcery.com>
6743 * testsuite/libgomp.fortran/pr93553.f90: New test.
6745 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6747 * testsuite/libgomp.c/loop-22.c: New test.
6748 * testsuite/libgomp.c/loop-23.c: New test.
6750 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6753 * testsuite/libgomp.c/teams-3.c: New test.
6754 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6756 (N(test)): Use it before all N(f*) calls.
6757 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6758 (main): Don't call all test_* functions from within
6759 #pragma omp teams reduction(|:err), call them directly.
6761 2020-08-04 Tom de Vries <tdevries@suse.de>
6764 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6765 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6767 2020-08-03 Julian Brown <julian@codesourcery.com>
6768 Thomas Schwinge <thomas@codesourcery.com>
6770 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6771 shared-memory devices. Extend with further checking.
6773 2020-08-03 Martin Jambor <mjambor@suse.cz>
6775 * plugin/Makefrag.am: Remove configuration of HSA plugin.
6776 * aclocal.m4: Regenerated.
6777 * Makefile.in: Regenerated.
6778 * config.h.in: Regenerated.
6779 * configure: Regenerated.
6780 * plugin/configfrag.ac: Likewise.
6781 * plugin/hsa_ext_finalize.h: Removed.
6782 * plugin/plugin-hsa.c: Likewise.
6783 * testsuite/Makefile.in: Regenerated.
6784 * testsuite/lib/libgomp.exp
6785 (offload_target_to_openacc_device_type): Remove hsa case.
6786 (check_effective_target_hsa_offloading_selected_nocache): Removed
6787 (check_effective_target_hsa_offloading_selected): Likewise.
6788 (libgomp_init): Do not add -Wno-hsa to additional_flags.
6789 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6790 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6791 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6792 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6793 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6794 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6795 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6796 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6797 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6798 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6799 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6800 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6801 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6802 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6803 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6804 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6805 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6806 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6807 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6808 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6809 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6810 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6811 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6812 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6814 2020-07-27 Julian Brown <julian@codesourcery.com>
6815 Thomas Schwinge <thomas@codesourcery.com>
6817 * libgomp.h (struct target_var_desc): Rename do_detach field to
6819 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
6820 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6821 (goacc_enter_data_internal): Don't affect reference counts
6822 for attach mappings.
6823 (goacc_exit_data_internal): Don't affect reference counts for detach
6825 * target.c (gomp_map_vars_existing): Don't affect reference counts for
6827 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6828 mark attach mappings.
6829 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6830 reference count for attach mappings.
6831 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6832 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6833 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6834 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6836 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6837 gracefully in no-finalize mode.
6838 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6840 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
6842 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6844 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6845 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6847 2020-07-23 Julian Brown <julian@codesourcery.com>
6848 Thomas Schwinge <thomas@codesourcery.com>
6850 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6851 finalization for detach operation.
6852 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6855 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
6857 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6858 * libgomp_f.h.in (omp_check_defines): Check whether
6859 sizeof of determined Fortran kind and C typedef match.
6860 * omp_lib.f90.in: Add omp_depened_kind.
6861 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6862 * configure: Regenerate.
6863 * Makefile.in: Regenerate.
6864 * testsuite/Makefile.in: Regenerate.
6866 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6868 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6869 gcc/testsuite/c-c++-common/gomp/.
6870 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6871 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6872 from gcc/testsuite/gfortran.dg/gomp/.
6873 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6875 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6877 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6878 * omp_lib.h.in: Likewise.
6880 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
6883 * testsuite/libgomp.c/pr95620.c: New test.
6885 2020-07-16 Julian Brown <julian@codesourcery.com>
6886 Thomas Schwinge <thomas@codesourcery.com>
6888 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6889 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6891 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6893 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6894 avoid conversion on 32bit systems from 32bit to 64bit due
6895 to -fdefault-integer-8.
6897 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6899 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6900 variables; add character(kind=4) tests; update TODO comment.
6902 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6904 * allocator.c: Add ialias for omp_init_allocator and
6905 omp_destroy_allocator.
6906 * configure.ac: Set INTPTR_T_KIND.
6907 * configure: Regenerate.
6908 * Makefile.in: Regenerate.
6909 * testsuite/Makefile.in: Regenerate.
6910 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6911 omp_set_default_allocator_, omp_get_default_allocator_): New
6912 functions and ialias_redirect.
6913 * icv.c: Add ialias for omp_set_default_allocator and
6914 omp_get_default_allocator.
6915 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6916 omp_destroy_allocator_, omp_set_default_allocator_ and
6917 omp_get_default_allocator_.
6918 * omp_lib.f90.in: Add allocator traits parameters, declare
6919 allocator routines and add related kind parameters.
6920 * omp_lib.h.in: Likewise.
6921 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6922 * testsuite/libgomp.fortran/alloc-1.F90: New test.
6923 * testsuite/libgomp.fortran/alloc-2.F90: New test.
6924 * testsuite/libgomp.fortran/alloc-3.F: New test.
6925 * testsuite/libgomp.fortran/alloc-4.f90: New test.
6926 * testsuite/libgomp.fortran/alloc-5.f90: New test.
6928 2020-07-14 Tom de Vries <tom@codesourcery.com>
6929 Cesar Philippidis <cesar@codesourcery.com>
6930 Thomas Schwinge <thomas@codesourcery.com>
6931 Kwok Cheung Yeung <kcy@codesourcery.com>
6933 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6935 (acc_init_1): Set acc_init_thread to pthread_self (). Set
6936 acc_init_state to initializing at the start, and to initialized at the
6938 (self_initializing_p): New function.
6939 (acc_get_device_type): Return acc_device_none if called by thread that
6940 is currently executing acc_init_1.
6941 * libgomp.texi (acc_get_device_type): Update documentation.
6942 (Implementation Status and Implementation-Defined Behavior): Likewise.
6943 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6945 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
6947 * config/t-aix: Set BITS from compiler cpp macro.
6949 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6951 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6953 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6956 * testsuite/libgomp.fortran/target-map-1.f90: New test.
6958 2020-07-14 Jakub Jelinek <jakub@redhat.com>
6960 * testsuite/libgomp.c/loop-21.c: New test.
6962 2020-07-13 Julian Brown <julian@codesourcery.com>
6963 Thomas Schwinge <thomas@codesourcery.com>
6965 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6967 2020-07-10 Julian Brown <julian@codesourcery.com>
6968 Thomas Schwinge <thomas@codesourcery.com>
6970 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6972 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6973 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6975 (acc_unmap_data): Update comment.
6976 (goacc_map_var_existing, goacc_enter_datum): Adjust for
6977 dynamic_refcount semantics.
6978 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6979 Adjust for dynamic_refcount semantics.
6980 (goacc_enter_data_internal): Implement "present" case of dynamic
6981 memory-map handling here. Update "non-present" case for
6982 dynamic_refcount semantics.
6983 (goacc_exit_data_internal): Use goacc_exit_datum_1.
6984 * target.c (gomp_map_vars_internal): Remove
6985 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
6987 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6988 (gomp_load_image_to_device): Substitute dynamic_refcount for
6990 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6991 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6992 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6993 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6994 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6996 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6998 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7000 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7001 Remove stale comment.
7002 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7003 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7004 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7005 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7006 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7007 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7009 2020-07-10 Julian Brown <julian@codesourcery.com>
7010 Thomas Schwinge <thomas@codesourcery.com>
7012 * oacc-mem.c (goacc_map_var_existing): New function.
7013 (goacc_enter_datum): Use above function.
7014 (goacc_exit_datum_1): New function.
7015 (goacc_exit_datum): Use above function.
7017 2020-07-09 Julian Brown <julian@codesourcery.com>
7018 Thomas Schwinge <thomas@codesourcery.com>
7021 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7022 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7024 2020-07-09 Julian Brown <julian@codesourcery.com>
7026 * oacc-mem.c (find_group_last): Group data-movement clauses
7027 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7028 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
7030 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7032 * testsuite/libgomp.c/loop-19.c: New test.
7033 * testsuite/libgomp.c/loop-20.c: New test.
7035 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7037 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7038 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
7039 it. Remove __omp_alloctrait_value_max__.
7040 * allocator.c (omp_init_allocator): Handle omp_atv_default for
7041 omp_atk_alignment and omp_atk_pool_size.
7043 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7045 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7046 behavior for 'GOMP_MAP_FORCE_FROM'.
7047 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7049 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7051 * oacc-mem.c (goacc_exit_data_internal): Remove
7052 'GOMP_MAP_ALWAYS_FROM' handling.
7054 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7056 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7057 'scan-assembler' with 'scan-offload-rtl'.
7058 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7059 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7060 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7061 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7063 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7065 * target.c (gomp_map_vars_existing): Assert 'kind !=
7067 (gomp_map_vars_internal): Clean up.
7069 2020-06-27 Jakub Jelinek <jakub@redhat.com>
7071 * testsuite/libgomp.c/loop-17.c: New test.
7072 * testsuite/libgomp.c/loop-18.c: New test.
7074 2020-06-26 Marek Polacek <polacek@redhat.com>
7076 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7078 2020-06-23 Alexandre Oliva <oliva@adacore.com>
7080 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7081 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7083 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
7085 * Makefile.am: Use -include.
7086 * Makefile.in: Regenerate.
7088 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
7090 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7091 * Makefile.in: Regenerate
7092 * configure.ac (tmake_file): Substitute.
7093 * configure: Regenerate.
7094 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7095 * config/t-aix: New file.
7097 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
7100 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7103 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
7105 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7106 variant for HSA_RUNTIME_LIB name.
7107 (find_executable_symbol_1): Delete.
7108 (find_executable_symbol): Delete.
7109 (init_kernel_properties): Add ".kd" suffix to symbol names.
7110 (find_load_offset): Delete.
7111 (create_and_finalize_hsa_program): Remove relocation handling.
7113 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
7115 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7117 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
7121 * testsuite/libgomp.fortran/target-var.f90: New test.
7123 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7124 Julian Brown <julian@codesourcery.com>
7126 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7129 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7130 Julian Brown <julian@codesourcery.com>
7132 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7135 2020-06-05 Julian Brown <julian@codesourcery.com>
7137 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7138 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7140 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7142 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7143 Evaluate 'copyfrom' individually for each entry.
7144 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7146 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7148 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7149 Evaluate 'finalize' individually for each entry.
7150 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7151 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7154 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7156 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7158 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7160 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7161 Julian Brown <julian@codesourcery.com>
7163 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7165 (acc_unmap_data, goacc_exit_data_internal): Restore
7166 'is_tgt_unmapped' checking.
7167 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7169 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7170 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7171 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7172 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7173 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7174 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7176 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7177 Julian Brown <julian@codesourcery.com>
7179 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7181 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7184 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7186 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7189 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7192 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7193 Julian Brown <julian@codesourcery.com>
7195 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7197 (acc_map_data): Clean up accordingly.
7199 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7201 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7202 of over-eager 'finalize' clause.
7203 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7205 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7206 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7207 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7208 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7209 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7210 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7211 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7212 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7214 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7216 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7218 2020-06-04 Julian Brown <julian@codesourcery.com>
7220 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7222 (goacc_detach_internal): Likewise.
7224 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7226 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7228 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7229 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7230 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7231 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7232 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7234 2020-06-02 Jakub Jelinek <jakub@redhat.com>
7236 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7239 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7241 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7243 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7245 * allocator.c (omp_alloc): For size == 0, return NULL early.
7247 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
7250 * configure: Regenerated.
7252 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7255 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7257 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7259 * omp.h.in (omp_uintptr_t): New typedef.
7260 (__GOMP_UINTPTR_T_ENUM): Define.
7261 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7262 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7263 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7264 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7265 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7266 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7267 (gomp_def_allocator): Declare.
7268 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7269 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7270 omp_alloc and omp_free.
7271 * team.c (gomp_team_start): Copy over ts.def_allocator.
7272 * env.c (gomp_def_allocator): New variable.
7273 (parse_wait_policy): Adjust function comment.
7274 (parse_allocator): New function.
7275 (handle_omp_display_env): Print OMP_ALLOCATOR.
7276 (initialize_env): Call parse_allocator.
7277 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7278 * allocator.c: New file.
7279 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7281 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7282 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7283 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7284 * Makefile.in: Regenerated.
7286 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7289 * configure: Regenerated.
7291 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7294 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7296 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7298 * configure: Regenerated.
7300 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7302 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7304 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
7307 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7308 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7309 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7310 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7311 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7312 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7313 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7315 2020-05-12 Jakub Jelinek <jakub@redhat.com>
7317 * testsuite/libgomp.c/target-39.c: New test.
7319 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7321 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7322 * openacc.f90 (acc_device_current): Likewise.
7323 * openacc.h (acc_device_current): Likewise.
7324 * openacc_lib.h (acc_device_current): Likewise.
7327 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7328 'dg-allow-blank-lines-in-output'.
7330 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7331 * testsuite/lib/libgomp.exp
7332 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7333 'radeon'. Adjust all users.
7334 (check_effective_target_openacc_amdgcn_accel_present): Rename
7336 (check_effective_target_openacc_radeon_accel_present): ... this.
7338 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7339 (check_effective_target_openacc_radeon_accel_selected): ... this.
7342 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7345 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
7349 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7351 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7352 hsa_agent_iterate_regions.
7354 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7357 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7360 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
7363 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7366 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
7369 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7371 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7374 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7376 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7378 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7380 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7382 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7384 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7386 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7388 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7390 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7392 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7394 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7396 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7398 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7400 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7402 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7404 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7406 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7408 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7410 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7412 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7414 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7416 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7418 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7420 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7422 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7424 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7426 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7428 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7430 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7432 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7434 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7436 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7439 2020-04-10 Julian Brown <julian@codesourcery.com>
7440 Thomas Schwinge <thomas@codesourcery.com>
7443 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7445 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7447 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7449 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7451 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7453 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7455 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7457 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7459 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7461 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7463 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7465 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7467 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7469 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7471 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7473 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7476 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7478 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7481 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7484 * libgomp.oacc-c++/declare-pr94120.C: New.
7486 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7488 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7490 * configure: Regenerate.
7491 * testsuite/libgomp-site-extra.exp.in: New file.
7492 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7494 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7496 * testsuite/Makefile.in: Regenerate.
7498 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7500 PR tree-optimization/89713
7502 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7504 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7506 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7508 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7509 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7511 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7514 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7516 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7519 * target.c (gomp_load_image_to_device): Fix link
7522 2020-03-19 Jakub Jelinek <jakub@redhat.com>
7525 * testsuite/libgomp.c++/pr93931.C: New test.
7527 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
7529 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7530 dg-allow-blank-lines-in-output.
7532 2020-03-18 Julian Brown <julian@codesourcery.com>
7533 Tobias Burnus <tobias@codesourcery.com>
7535 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7536 it work concurrently.
7538 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
7540 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7541 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7542 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7544 2020-03-14 Jakub Jelinek <jakub@redhat.com>
7547 * testsuite/libgomp.c/pr93566.c: New test.
7549 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
7551 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7552 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7553 integer(acc_device_property) for the type of the return value of
7556 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
7558 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7559 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7560 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7561 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7562 (acc_set_device_num): Fix Fortran argument name, use same name for C.
7563 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7564 corrections; add note about the previous interface and named constant.
7565 (OpenACC library and environment variables): Fix two typos.
7566 * openacc.f90: Use for all procedures the argument names from the spec
7567 as for …_h they are user visible.
7568 (openacc_kinds): Rename acc_device_property to
7569 acc_device_property_kinds and change value to int32 ; and update users.
7570 Re-add acc_device_property for for backward compatibility.
7571 (acc_get_property_string_h): Clean up as acc_device_property_kind
7573 (acc_get_property_h): Likewise and return c_size_t instead of
7574 acc_device_property.
7575 (openacc): Also export acc_device_property_kinds.
7576 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7577 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7578 handling; check against /= 0 instead of == 1 to match C.
7579 * openacc_lib.h: Use for all procedures the argument names from the spec
7580 as for …_h they are user visible. Place !GCC$ into the first column to
7581 be active also for fixed-form souce form.
7582 (acc_device_current, acc_device_property_kind, acc_device_property,
7583 acc_property_memory, acc_property_free_memory, acc_property_name,
7584 acc_property_vendor, acc_property_driver): New named constants.
7585 (acc_get_property, acc_get_property_string): New generic interface.
7587 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
7590 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7591 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7593 (gomp_target_task_fn): Assert "devicep->async_run_func".
7594 (clear_unsupported_flags): New function to remove unsupported flags
7595 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7596 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7597 * testsuite/libgomp.c/target-33.c:
7598 Remove xfail for offload_target_nvptx.
7599 * testsuite/libgomp.c/target-34.c: Likewise.
7601 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
7603 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7604 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7605 * testsuite/libgomp.c/target-34.c: Likewise.
7606 * testsuite/libgomp.c/target-link-1.c: Add xfail for
7607 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7609 2020-02-09 Jakub Jelinek <jakub@redhat.com>
7611 * testsuite/libgomp.c/target-38.c: New test.
7613 2020-02-06 Jakub Jelinek <jakub@redhat.com>
7616 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7618 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
7620 * testsuite/lib/libgomp.exp
7621 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7622 and not as 'source' argument to libgomp_target_compile.
7624 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
7626 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7627 (gcn_gfx801_s): Remove.
7628 (isa_hsa_name): Remove gfx801.
7629 (isa_gcc_name): Remove gfx801/carizzo.
7630 (isa_code): Remove gfx801.
7632 2020-02-03 Julian Brown <julian@codesourcery.com>
7633 Tobias Burnus <tobias@codesourcery.com>
7635 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7636 and *_finalize variants; document acc_attach and acc_detach; update
7637 references from OpenACC 2.0 to 2.6.
7638 * openacc.f90 (openacc_version): Update to 201711.
7639 * openacc_lib.h (openacc_version): Update to 201711.
7640 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7641 openacc_version to 201711.
7642 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7644 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
7646 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7647 and vgpr_count fields.
7648 (struct kernel_info): Add a field for a hsa_kernel_description.
7649 (run_kernel): Reduce the number of threads/workers if the requested
7650 number would require too many VGPRs.
7651 (init_basic_kernel_info): Initialize description field with
7652 the hsa_kernel_description entry for the kernel.
7654 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
7657 * plugin/configfrag.ac (enable_offload_targets): Skip
7658 HSA and GCN plugin besides -m32 also for -mx32.
7659 * configure: Regenerate.
7661 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7663 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7665 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7667 * plugin-gcn.c (struct agent_info): Add fields "name" and
7669 (GOMP_OFFLOAD_init_device): ... and init from here.
7670 (struct hsa_context_info): Add field "driver_version_s" ...
7671 (init_hsa_contest): ... and init from here.
7672 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7674 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7675 Enable test execution for amdgcn and host offloading targets.
7676 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7677 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7678 (expect_device_properties): Split function into ...
7679 (expect_device_string_properties): ... this new function ...
7680 (expect_device_memory): ... and this new function.
7681 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7684 2020-01-28 Julian Brown <julian@codesourcery.com>
7686 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7687 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7688 component/non-component variable refs in a single directive.
7689 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7691 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
7693 * configure.ac: Handle `--with-toolexeclibdir='.
7694 * Makefile.in: Regenerate.
7695 * aclocal.m4: Regenerate.
7696 * configure: Regenerate.
7697 * testsuite/Makefile.in: Regenerate.
7699 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
7701 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7702 (expect_device_properties): Remove "expected_free_mem" argument,
7703 change "expected_total_mem" argument type to size_t;
7704 change types of acc_get_property results to size_t,
7705 adapt format strings.
7706 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7707 Use %zu instead of %zd to print size_t values.
7708 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7710 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7711 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7713 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7715 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
7717 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7720 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
7722 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7723 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7724 Adjust test dimensions for amdgcn.
7725 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7726 gang/worker/vector expectations dynamically.
7727 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7729 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7730 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7731 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7732 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7733 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7734 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7735 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7736 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7737 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7738 (acc_gang): Recognise acc_device_radeon.
7739 (acc_worker): Likewise.
7740 (acc_vector): Likewise.
7741 (main): Set expectations for amdgcn.
7742 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7743 (main): Adjust gang/worker/vector expectations dynamically.
7744 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7745 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7746 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7747 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7750 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
7752 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7754 (openacc): Likewise.
7755 * openacc.f90 (openacc_kinds): Likewise.
7756 (openacc): Likewise.
7757 * openacc.h (acc_device_t): Likewise.
7758 * openacc_lib.h: Likewise.
7759 * testsuite/lib/libgomp.exp
7760 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7761 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7762 (cb_compute_construct_end): Likewise.
7763 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7764 (cb_enqueue_launch_start): Likewise.
7765 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7766 (cb_enter_data_end): Likewise.
7767 (cb_exit_data_start): Likewise.
7768 (cb_exit_data_end): Likewise.
7769 (cb_compute_construct_end): Likewise.
7770 (cb_enqueue_launch_start): Likewise.
7771 (cb_enqueue_launch_end): Likewise.
7772 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7775 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
7777 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
7778 to use this instead of 'enum gomp_device_property'.
7779 (GOMP_OFFLOAD_get_property): Rename to...
7780 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
7781 * libgomp.h (struct gomp_device_descr): Move
7782 'GOMP_OFFLOAD_openacc_get_property'...
7783 (struct acc_dispatch_t): ... here. Adjust all users.
7784 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7786 * target.c (gomp_map_vars_internal)
7787 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7790 2020-01-10 Jakub Jelinek <jakub@redhat.com>
7793 * libgomp.h (gomp_print_string): Change return type from void to int.
7794 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
7795 not all characters have been written.
7797 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
7799 * libgomp.texi: Fix typos, use https.
7801 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
7803 * testsuite/libgomp.fortran/optional-map.f90: Add test for
7804 unallocated/disassociated actual arguments to nonallocatable/nonpointer
7805 dummy arguments; those are/shall be regarded as absent arguments.
7806 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7807 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7809 2020-01-01 Jakub Jelinek <jakub@redhat.com>
7811 Update copyright years.
7813 * libgomp.texi: Bump @copying's copyright year.
7815 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
7818 * oacc-init.c (goacc_runtime_deinitialize): New function.
7820 2019-12-28 Jakub Jelinek <jakub@redhat.com>
7823 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7824 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
7826 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
7827 Frederik Harwath <frederik@codesourcery.com>
7828 Thomas Schwinge <tschwinge@codesourcery.com>
7830 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7831 * libgomp-plugin.h (gomp_device_property_value): New union.
7832 (gomp_device_property_value): New prototype.
7833 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7835 (acc_device_property_t): New enum.
7836 (acc_get_property, acc_get_property_string): New prototypes.
7837 * oacc-init.c (acc_get_device_type): Also assert that result
7838 is not `acc_device_current'.
7839 (get_property_any, acc_get_property, acc_get_property_string):
7841 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7842 `acc_property_memory', `acc_property_free_memory',
7843 `acc_property_name', `acc_property_vendor' and
7844 `acc_property_driver' constants. Add `acc_device_property' data
7846 (openacc_internal): Add `acc_get_property' and
7847 `acc_get_property_string' interfaces. Add `acc_get_property_h',
7848 `acc_get_property_string_h', `acc_get_property_l' and
7849 `acc_get_property_string_l'.
7850 * oacc-host.c (host_get_property): New function.
7851 (host_dispatch): Wire it.
7852 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7853 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7854 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7855 * libgomp.texi (OpenACC Runtime Library Routines): Add
7857 (acc_get_property): New node.
7858 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7860 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7861 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7862 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7864 (GOMP_OFFLOAD_get_property): New function.
7865 (struct ptx_device): Add new field "name".
7866 (cuda_driver_version_s): Add new static variable ...
7867 (nvptx_init): ... and init from here.
7869 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7870 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7871 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7872 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7873 with test helper functions.
7875 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7877 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
7879 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7882 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
7884 * target.c (gomp_map_vars_internal): Restore 'omp declare target
7887 2019-12-19 Julian Brown <julian@codesourcery.com>
7889 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7890 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7891 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7893 2019-12-19 Julian Brown <julian@codesourcery.com>
7894 Cesar Philippidis <cesar@codesourcery.com>
7896 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7897 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7898 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7899 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7900 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7901 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7902 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7903 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7904 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7905 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7906 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7907 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7908 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7910 2019-12-19 Julian Brown <julian@codesourcery.com>
7912 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7913 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7914 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7915 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7916 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7917 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7918 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7919 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7920 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7921 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7922 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7923 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7925 2019-12-19 Julian Brown <julian@codesourcery.com>
7927 * libgomp.h (struct target_var_desc): Add do_detach flag.
7928 * oacc-init.c (acc_shutdown_1): Free aux block if present.
7929 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7930 struct components. Tidy up and add some new checks.
7931 (goacc_enter_data_internal): Update call to find_group_last.
7932 (goacc_exit_data_internal): Support detach operations and
7934 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7935 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
7936 attach/detach in enter/exit data detection code.
7937 * target.c (gomp_map_vars_existing): Initialise do_detach field of
7939 (gomp_map_vars_internal): Support attach.
7940 (gomp_unmap_vars_internal): Support detach.
7942 2019-12-19 Julian Brown <julian@codesourcery.com>
7943 Thomas Schwinge <thomas@codesourcery.com>
7945 * libgomp.h (struct splay_tree_aux): Add attach_count field.
7946 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7947 * libgomp.map (OACC_2.6): New section. Add acc_attach,
7948 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7949 acc_detach_finalize_async.
7950 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7951 acc_detach, acc_detach_async, acc_detach_finalize,
7952 acc_detach_finalize_async): New functions.
7953 * openacc.h (acc_attach, acc_attach_async, acc_detach,
7954 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7956 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7957 (gomp_remove_var_internal): Free attachment counts if present.
7958 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7959 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7961 2019-12-19 Julian Brown <julian@codesourcery.com>
7962 Cesar Philippidis <cesar@codesourcery.com>
7964 * libgomp.h (gomp_map_val): Add prototype.
7965 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7966 open-coding device-address calculation.
7967 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7970 2019-12-19 Julian Brown <julian@codesourcery.com>
7972 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7973 field for virtual_refcount.
7974 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7975 (gomp_free_memmap): Remove prototype.
7976 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7977 instead of calling gomp_free_memmap.
7978 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7980 (acc_unmap_data): Open code instead of forcing target_mem_desc's
7981 to_free field to NULL then calling gomp_unmap_vars. Handle
7982 REFCOUNT_INFINITY on target blocks.
7983 (goacc_enter_data): Rename to...
7984 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
7985 handling for mapping groups. Use virtual_refcount instead of
7986 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7987 map_map_vars_async call. Re-do lookup for target pointer return value.
7988 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7989 renamed goacc_enter_datum function.
7990 (goacc_exit_data): Rename to...
7991 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
7992 (acc_delete, acc_delete_async, acc_delete_finalize,
7993 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7994 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7995 goacc_exit_datum function.
7996 (gomp_acc_remove_pointer, find_pointer): Remove functions.
7997 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7999 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8000 goacc_exit_data_internal helper functions.
8001 * target.c (gomp_map_vars_internal): Handle
8002 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
8004 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8005 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8006 virtual_refcount field instead of dynamic_refcount.
8007 (gomp_free_memmap): Remove function.
8008 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8009 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8010 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8012 2019-12-19 Julian Brown <julian@codesourcery.com>
8013 Thomas Schwinge <thomas@codesourcery.com>
8015 * libgomp.h (struct splay_tree_aux): New.
8016 (struct splay_tree_key_s): Replace link_key field with aux pointer.
8017 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8019 (gomp_remove_var_internal): Free aux block if present.
8020 (gomp_load_image_to_device): Zero-initialise aux field instead of
8022 (omp_target_associate_pointer): Zero-initialise aux field.
8024 2019-12-18 Jakub Jelinek <jakub@redhat.com>
8027 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8029 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8032 2019-12-19 Julian Brown <julian@codesourcery.com>
8033 Maciej W. Rozycki <macro@codesourcery.com>
8034 Tobias Burnus <tobias@codesourcery.com>
8035 Thomas Schwinge <thomas@codesourcery.com>
8037 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8038 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8039 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8040 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8041 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8042 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8043 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8044 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8045 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8047 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
8049 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8051 (goacc_insert_pointer): ... from here, "present" case.
8052 (goacc_insert_pointer): Inline function into...
8053 (GOACC_enter_exit_data): ... here, and simplify.
8055 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8057 (goacc_insert_pointer): ... from here, "not present" case.
8059 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
8062 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8063 'goacc_enter_data', 'goacc_exit_data'.
8065 * oacc-mem.c (delete_copyout): Refactor into...
8066 (goacc_exit_data): ... this. Adjust all users.
8068 * oacc-mem.c (present_create_copy): Refactor into...
8069 (goacc_enter_data): ... this. Adjust all users.
8071 * target.c (gomp_unmap_vars_internal): Add a safeguard to
8074 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8075 like 'GOMP_MAP_FROM'.
8080 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8082 (GOACC_enter_exit_data): Simplify accordingly.
8083 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8085 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8086 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8088 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8090 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8091 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8093 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8095 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8097 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8098 'finalize' handling.
8101 * oacc-mem.c (acc_map_data, present_create_copy)
8102 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8103 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8104 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8105 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8106 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8107 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8108 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8109 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8112 * target.c (gomp_unmap_tgt): Make it 'static'.
8113 * libgomp.h (gomp_unmap_tgt): Remove.
8115 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
8118 * testsuite/libgomp.c/pr86416-1.c: New.
8119 * testsuite/libgomp.c/pr86416-2.c: New.
8121 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
8123 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8124 all symbols as public except for the 'use …, only' imported symbol,
8126 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8127 all symbols from module openacc_kinds as PUBLIC
8128 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8130 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8132 2019-12-13 Julian Brown <julian@codesourcery.com>
8136 * libgomp.h (gomp_remove_var_async): Add prototype.
8137 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8139 * target.c (gomp_unref_tgt): Change return type to bool, indicating
8140 whether target_mem_desc was unmapped.
8141 (gomp_unref_tgt_void): New.
8142 (gomp_remove_var): Reimplement in terms of...
8143 (gomp_remove_var_internal): ...this new helper function.
8144 (gomp_remove_var_async): New, implemented using above helper function.
8145 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8148 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
8150 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8151 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8152 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8153 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8154 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8156 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8157 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8159 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
8161 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8162 as public except for the 'use …, only' imported symbol, which is
8164 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8165 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8166 attributes for acc_copyout_finalize and acc_delete_finalize.
8168 2019-12-11 Jakub Jelinek <jakub@redhat.com>
8171 * testsuite/libgomp.fortran/atomic1.f90: New test.
8173 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8176 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8177 reference counting for structured 'REFCOUNT_INFINITY'. Add some
8179 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8180 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8181 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8182 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8183 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8185 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8186 * oacc-mem.c: ... here.
8187 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8188 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8189 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8191 * libgomp_g.h: Update.
8193 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8194 * oacc-async.c: ... here.
8195 * oacc-int.h (goacc_wait): Declare.
8196 * libgomp_g.h: Update
8199 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8201 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8203 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8205 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8207 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8209 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8212 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8213 Julian Brown <julian@codesourcery.com>
8215 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8216 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8218 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8220 * omp_lib.h.in: Fix spelling of function declaration
8221 omp_get_cancell(l)ation.
8222 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8224 * env.c: Fix comment typos.
8225 * oacc-host.c: Likewise.
8226 * ordered.c: Likewise.
8229 * config/gcn/task.c: Likewise.
8230 * config/gcn/team.c: Likewise.
8231 * config/nvptx/task.c: Likewise.
8232 * config/nvptx/team.c: Likewise.
8233 * plugin/plugin-gcn.c: Likewise.
8234 * testsuite/libgomp.fortran/jacobi.f: Likewise.
8235 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8236 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8238 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8240 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8241 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8242 unnecessary 'dg-additional-options "-w"'.
8244 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8245 Julian Brown <julian@codesourcery.com>
8250 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8251 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8253 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8255 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8257 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8259 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8262 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8263 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8265 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8267 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8269 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8271 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8273 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8275 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8276 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8277 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8278 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8279 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8280 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8281 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8282 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8283 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8284 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8287 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8288 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8289 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8291 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8293 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8295 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8296 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8299 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8301 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8303 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8305 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8307 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8308 ... with their content moved into, and extended in this new file.
8309 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8311 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8313 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8315 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8318 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8321 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8323 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8325 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8327 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
8329 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8331 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8332 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8333 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8334 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8336 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8337 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8339 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8341 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8343 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
8344 Kwok Cheung Yeung <kcy@codesourcery.com>
8346 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8347 if input it a NULL pointer.
8348 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8349 diagnostic of NULL pointer.
8350 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8351 * testsuite/libgomp.fortran/optional-map.f90: New.
8352 * testsuite/libgomp.fortran/use_device_addr-1.f90
8353 (test_dummy_opt_callee_1_absent): New.
8354 (test_dummy_opt_call_1): Call it.
8355 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8356 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8357 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8358 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8359 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8360 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8361 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8362 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8363 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8364 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8365 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8366 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8367 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8368 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8369 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8370 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8372 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
8374 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8375 expect dg-output of 'Error termination.' for GCN.
8376 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8377 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8379 2019-12-04 Jakub Jelinek <jakub@redhat.com>
8382 * testsuite/libgomp.fortran/teams1.f90: New test.
8383 * testsuite/libgomp.fortran/teams2.f90: New test.
8385 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
8387 * oacc-init.c (acc_known_device_type): Add function.
8388 (unknown_device_type_error): Add function.
8389 (name_of_acc_device_t): Change to call unknown_device_type_error
8391 (resolve_device): Use acc_known_device_type.
8392 (acc_init): Fail if acc_device_t argument is not valid.
8393 (acc_shutdown): Likewise.
8394 (acc_get_num_devices): Likewise.
8395 (acc_set_device_type): Likewise.
8396 (acc_get_device_num): Likewise.
8397 (acc_set_device_num): Likewise.
8398 (acc_on_device): Add comment that argument validity is not checked.
8400 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
8402 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8404 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8405 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8406 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8407 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8408 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8410 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8413 * configure.tgt: Avoid IE tls on *-*-musl*.
8415 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
8417 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8418 adding a common-block test case.
8420 2019-11-29 Jakub Jelinek <jakub@redhat.com>
8423 * testsuite/libgomp.c++/udr-20.C: New test.
8424 * testsuite/libgomp.c++/udr-21.C: New test.
8426 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8428 * testsuite/lib/libgomp.exp
8429 (check_effective_target_offload_target_nvptx): New proc.
8430 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8432 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8433 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8434 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8436 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8438 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8439 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8440 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8441 * testsuite/libgomp.c/private-1.c: Likewise.
8442 * testsuite/libgomp.c/task-1.c: Likewise.
8443 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8445 2019-11-20 Julian Brown <julian@codesourcery.com>
8447 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8449 (queue_push_launch): Lock aq->mutex before calling
8450 wait_for_queue_nonfull.
8451 (queue_push_callback): Likewise.
8452 (queue_push_asyncwait): Likewise.
8453 (queue_push_placeholder): Likewise.
8455 2019-11-20 Julian Brown <julian@codesourcery.com>
8457 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8458 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8459 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8462 2019-11-20 Julian Brown <julian@codesourcery.com>
8466 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8467 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8468 in non-present/create case.
8469 (delete_copyout): Change error condition to fail only on copies outside
8470 of mapped block. Adjust error message accordingly.
8471 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8472 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8473 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8475 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8476 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8477 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8479 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8481 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8482 libatomic in build-tree testing.
8484 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8486 * testsuite/Makefile.in: Regenerate.
8488 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8490 * testsuite/libgomp.c/target-print-1.c: New file.
8491 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8492 * testsuite/libgomp.oacc-c/print-1.c: New file.
8493 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8495 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8496 Kwok Cheung Yeung <kcy@codesourcery.com>
8497 Julian Brown <julian@codesourcery.com>
8498 Tom de Vries <tom@codesourcery.com>
8500 * plugin/Makefrag.am: Add amdgcn plugin support.
8501 * plugin/configfrag.ac: Likewise.
8502 * plugin/plugin-gcn.c: New file.
8503 * configure: Regenerate.
8504 * Makefile.in: Regenerate.
8505 * testsuite/Makefile.in: Regenerate.
8507 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8509 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8510 and use team_malloc variants.
8511 (gomp_gcn_exit_kernel): Use team_free.
8512 * libgomp.h (TEAM_ARENA_SIZE): Define.
8513 (TEAM_ARENA_START): Define.
8514 (TEAM_ARENA_FREE): Define.
8515 (TEAM_ARENA_END): Define.
8516 (team_malloc): New function.
8517 (team_malloc_cleared): New function.
8518 (team_free): New function.
8519 * team.c (gomp_new_team): Initialize and use team_malloc.
8520 (free_team): Use team_free.
8521 (gomp_free_thread): Use team_free.
8522 (gomp_pause_host): Use team_free.
8523 * work.c (gomp_init_work_share): Use team_malloc.
8524 (gomp_fini_work_share): Use team_free.
8526 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8527 Kwok Cheung Yeung <kcy@codesourcery.com>
8528 Julian Brown <julian@codesourcery.com>
8529 Tom de Vries <tom@codesourcery.com>
8531 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8532 * Makefile.in: Regenerate.
8533 * config.h.in (PLUGIN_GCN): Add new undef.
8534 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8535 * config/gcn/affinity-fmt.c: New file.
8536 * config/gcn/bar.c: New file.
8537 * config/gcn/bar.h: New file.
8538 * config/gcn/doacross.h: New file.
8539 * config/gcn/icv-device.c: New file.
8540 * config/gcn/oacc-target.c: New file.
8541 * config/gcn/simple-bar.h: New file.
8542 * config/gcn/target.c: New file.
8543 * config/gcn/task.c: New file.
8544 * config/gcn/team.c: New file.
8545 * config/gcn/time.c: New file.
8546 * configure.ac: Add amdgcn*-*-*.
8547 * configure: Regenerate.
8548 * configure.tgt: Add amdgcn*-*-*.
8549 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8550 * libgomp.h (gcn_thrs): Add amdgcn variant.
8551 (set_gcn_thrs): Likewise.
8552 (gomp_thread): Likewise.
8553 * oacc-int.h (goacc_thread): Likewise.
8554 * oacc-target.c: New file.
8555 * openacc.f90 (acc_device_gcn): New parameter.
8556 * openacc.h (acc_device_t): Add acc_device_gcn.
8557 * team.c (gomp_free_pool_helper): Add amdgcn support.
8559 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8560 Julian Brown <julian@codesourcery.com>
8562 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8564 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8566 * oacc-host.c (host_openacc_async_construct): Add device parameter.
8567 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8570 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8572 * configure.tgt (nvptx*-*-*): Add "accel" directory.
8573 * config/nvptx/libgomp-plugin.c: Move ...
8574 * config/accel/libgomp-plugin.c: ... to here.
8575 * config/nvptx/lock.c: Move ...
8576 * config/accel/lock.c: ... to here.
8577 * config/nvptx/mutex.c: Move ...
8578 * config/accel/mutex.c: ... to here.
8579 * config/nvptx/mutex.h: Move ...
8580 * config/accel/mutex.h: ... to here.
8581 * config/nvptx/oacc-async.c: Move ...
8582 * config/accel/oacc-async.c: ... to here.
8583 * config/nvptx/oacc-cuda.c: Move ...
8584 * config/accel/oacc-cuda.c: ... to here.
8585 * config/nvptx/oacc-host.c: Move ...
8586 * config/accel/oacc-host.c: ... to here.
8587 * config/nvptx/oacc-init.c: Move ...
8588 * config/accel/oacc-init.c: ... to here.
8589 * config/nvptx/oacc-mem.c: Move ...
8590 * config/accel/oacc-mem.c: ... to here.
8591 * config/nvptx/oacc-plugin.c: Move ...
8592 * config/accel/oacc-plugin.c: ... to here.
8593 * config/nvptx/omp-lock.h: Move ...
8594 * config/accel/omp-lock.h: ... to here.
8595 * config/nvptx/openacc.f90: Move ...
8596 * config/accel/openacc.f90: ... to here.
8597 * config/nvptx/pool.h: Move ...
8598 * config/accel/pool.h: ... to here.
8599 * config/nvptx/proc.c: Move ...
8600 * config/accel/proc.c: ... to here.
8601 * config/nvptx/ptrlock.c: Move ...
8602 * config/accel/ptrlock.c: ... to here.
8603 * config/nvptx/ptrlock.h: Move ...
8604 * config/accel/ptrlock.h: ... to here.
8605 * config/nvptx/sem.c: Move ...
8606 * config/accel/sem.c: ... to here.
8607 * config/nvptx/sem.h: Move ...
8608 * config/accel/sem.h: ... to here.
8609 * config/nvptx/thread-stacksize.h: Move ...
8610 * config/accel/thread-stacksize.h: ... to here.
8612 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
8613 Tobias Burnus <tobias@codesourcery.com>
8614 Frederik Harwath <frederik@codesourcery.com>
8615 Thomas Schwinge <thomas@codesourcery.com>
8618 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8619 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8620 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8622 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
8623 Kwok Cheung Yeung <kcy@codesourcery.com>
8625 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8626 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8628 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
8630 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8632 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8634 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8635 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8637 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
8639 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8640 Add expected warnings about missing reduction clauses.
8641 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8643 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8645 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8648 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8650 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8651 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8652 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8653 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8654 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8655 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8657 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8660 * testsuite/libgomp.fortran/allocatable2.f90: Use
8661 unique numbers with 'stop'.
8662 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8663 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8664 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8665 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8666 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8668 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
8670 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8671 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8672 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8673 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8674 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8675 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8677 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8679 * testsuite/libgomp.fortran/target9.f90: New.
8681 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8683 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8684 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8685 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8686 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8687 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8688 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8689 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8690 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8691 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8692 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8693 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8694 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8695 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8696 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8697 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8698 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8699 * testsuite/libgomp.fortran/associate1.f90: Ditto.
8700 * testsuite/libgomp.fortran/associate2.f90: Ditto.
8701 * testsuite/libgomp.fortran/associate3.f90: Ditto.
8702 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8703 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8704 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8705 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8706 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8707 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8708 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8709 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8710 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8711 * testsuite/libgomp.fortran/character1.f90: Ditto.
8712 * testsuite/libgomp.fortran/character2.f90: Ditto.
8713 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8714 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8715 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8716 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8717 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8718 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8719 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8720 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8721 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8722 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8723 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8724 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8725 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8726 * testsuite/libgomp.fortran/do1.f90: Ditto.
8727 * testsuite/libgomp.fortran/do2.f90: Ditto.
8728 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8729 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8730 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8731 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8732 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8733 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8734 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8735 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8736 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8737 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8738 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8739 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8740 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8741 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8742 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8743 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8744 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8745 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8746 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8747 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8748 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8749 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8750 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8751 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8752 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8753 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8754 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8755 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8756 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8757 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8758 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8759 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8760 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8761 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8762 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8763 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8764 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8765 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8766 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8767 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8768 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8769 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8770 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8771 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8772 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8773 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8774 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8775 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8776 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8777 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8778 * testsuite/libgomp.fortran/lib1.f90: Ditto.
8779 * testsuite/libgomp.fortran/lib4.f90: Ditto.
8780 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8781 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8782 * testsuite/libgomp.fortran/nested1.f90: Ditto.
8783 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8784 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8785 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8786 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8787 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8788 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8789 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8790 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8791 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8792 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8793 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8794 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8795 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8796 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8797 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8798 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8799 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8800 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8801 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8802 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8803 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8804 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8805 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8806 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8807 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8808 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8809 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8810 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8811 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8812 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8813 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8814 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8815 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8816 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8817 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8818 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8819 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8820 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8821 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8822 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8823 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8824 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8825 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8826 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8827 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8828 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8829 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8830 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8831 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8832 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8833 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8834 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8835 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8836 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8837 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8838 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8839 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8840 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8841 * testsuite/libgomp.fortran/reference1.f90: Ditto.
8842 * testsuite/libgomp.fortran/reference2.f90: Ditto.
8843 * testsuite/libgomp.fortran/retval1.f90: Ditto.
8844 * testsuite/libgomp.fortran/retval2.f90: Ditto.
8845 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8846 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8847 * testsuite/libgomp.fortran/simd1.f90: Ditto.
8848 * testsuite/libgomp.fortran/simd2.f90: Ditto.
8849 * testsuite/libgomp.fortran/simd3.f90: Ditto.
8850 * testsuite/libgomp.fortran/simd4.f90: Ditto.
8851 * testsuite/libgomp.fortran/simd5.f90: Ditto.
8852 * testsuite/libgomp.fortran/simd6.f90: Ditto.
8853 * testsuite/libgomp.fortran/simd7.f90: Ditto.
8854 * testsuite/libgomp.fortran/stack.f90: Ditto.
8855 * testsuite/libgomp.fortran/strassen.f90: Ditto.
8856 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8857 * testsuite/libgomp.fortran/tabs2.f: Ditto.
8858 * testsuite/libgomp.fortran/target1.f90: Ditto.
8859 * testsuite/libgomp.fortran/target2.f90: Ditto.
8860 * testsuite/libgomp.fortran/target3.f90: Ditto.
8861 * testsuite/libgomp.fortran/target4.f90: Ditto.
8862 * testsuite/libgomp.fortran/target5.f90: Ditto.
8863 * testsuite/libgomp.fortran/target6.f90: Ditto.
8864 * testsuite/libgomp.fortran/target7.f90: Ditto.
8865 * testsuite/libgomp.fortran/target8.f90: Ditto.
8866 * testsuite/libgomp.fortran/task1.f90: Ditto.
8867 * testsuite/libgomp.fortran/task2.f90: Ditto.
8868 * testsuite/libgomp.fortran/task3.f90: Ditto.
8869 * testsuite/libgomp.fortran/task4.f90: Ditto.
8870 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8871 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8872 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8873 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8874 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8875 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8876 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8877 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8878 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8879 * testsuite/libgomp.fortran/udr1.f90: Ditto.
8880 * testsuite/libgomp.fortran/udr10.f90: Ditto.
8881 * testsuite/libgomp.fortran/udr11.f90: Ditto.
8882 * testsuite/libgomp.fortran/udr12.f90: Ditto.
8883 * testsuite/libgomp.fortran/udr13.f90: Ditto.
8884 * testsuite/libgomp.fortran/udr14.f90: Ditto.
8885 * testsuite/libgomp.fortran/udr15.f90: Ditto.
8886 * testsuite/libgomp.fortran/udr2.f90: Ditto.
8887 * testsuite/libgomp.fortran/udr3.f90: Ditto.
8888 * testsuite/libgomp.fortran/udr4.f90: Ditto.
8889 * testsuite/libgomp.fortran/udr5.f90: Ditto.
8890 * testsuite/libgomp.fortran/udr6.f90: Ditto.
8891 * testsuite/libgomp.fortran/udr7.f90: Ditto.
8892 * testsuite/libgomp.fortran/udr8.f90: Ditto.
8893 * testsuite/libgomp.fortran/udr9.f90: Ditto.
8894 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8895 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8896 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8897 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8898 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8899 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8900 * testsuite/libgomp.fortran/vla7.f90: Ditto.
8901 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8902 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8903 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8905 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8907 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8908 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8909 Ditto; add 'dg-do run' for torture testing.
8910 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
8911 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8912 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8913 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8914 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8915 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8916 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8917 * testsuite/libgomp.fortran/task2.f90: Ditto.
8918 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8919 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8920 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8921 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8922 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8923 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8925 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
8927 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8928 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8929 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8930 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8931 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8932 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8933 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8934 Use 'stop' not abort().
8935 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8936 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8937 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8938 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8939 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8940 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8941 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8942 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8943 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8944 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8945 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8946 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8947 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8948 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8949 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8950 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8951 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8953 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8955 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8957 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8959 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8961 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8963 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8965 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8967 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8969 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8971 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8973 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8975 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8977 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8979 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8980 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8981 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8982 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8983 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8984 Likewise and also add 'dg-do run'.
8985 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8988 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
8989 Tobias Burnus <tobias@codesourcery.com>
8991 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8992 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8993 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8995 2019-10-14 Jakub Jelinek <jakub@redhat.com>
8998 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9001 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9003 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9004 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9006 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
9009 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9012 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
9015 * testsuite/libgomp.fortran/fortran.exp: Conditionally
9017 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9019 2019-10-09 Jakub Jelinek <jakub@redhat.com>
9022 * target.c (gomp_map_vars_internal): Readd the previous
9023 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9024 though do that just in the !not_found_cnt case.
9026 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
9028 * gfortran.dg/gomp/target-simd.f90: New.
9030 2019-10-02 Julian Brown <julian@codesourcery.com>
9031 Cesar Philippidis <cesar@codesourcery.com>
9033 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9034 * target.c (FIELD_TGT_EMPTY): Define.
9035 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
9036 as switch instead of list of ifs.
9037 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9039 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
9041 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9042 include. Replace alloca () with __builtin_alloca ().
9043 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9045 2019-10-01 Jakub Jelinek <jakub@redhat.com>
9047 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9048 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9049 * oacc-parallel.c: Don't include "libgomp_g.h".
9050 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9051 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9052 * aclocal.m4: Regenerated.
9053 * config.h.in: Regenerated.
9054 * configure: Regenerated.
9055 * Makefile.in: Regenerated.
9057 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
9059 * libgomp_g.h: Include stdint.h instead of gstdint.h.
9061 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
9063 * configure: Regenerate.
9065 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
9067 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9068 string is initialized.
9070 2019-09-06 Florian Weimer <fweimer@redhat.com>
9072 * configure: Regenerate.
9074 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
9077 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9078 scanning to conform to the GNU Coding Standards.
9079 * configure: Regenerate.
9081 2019-08-28 Jakub Jelinek <jakub@redhat.com>
9084 * testsuite/libgomp.c/scan-21.c: New test.
9085 * testsuite/libgomp.c/scan-22.c: New test.
9087 2019-08-27 Jakub Jelinek <jakub@redhat.com>
9090 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9092 * testsuite/libgomp.c/scan-12.c: Likewise.
9093 * testsuite/libgomp.c/scan-13.c: Likewise.
9094 * testsuite/libgomp.c/scan-14.c: Likewise.
9095 * testsuite/libgomp.c/scan-15.c: Likewise.
9096 * testsuite/libgomp.c/scan-16.c: Likewise.
9097 * testsuite/libgomp.c/scan-17.c: Likewise.
9098 * testsuite/libgomp.c/scan-18.c: Likewise.
9099 * testsuite/libgomp.c/scan-19.c: Likewise.
9100 * testsuite/libgomp.c/scan-20.c: Likewise.
9101 * testsuite/libgomp.c++/scan-9.C: Likewise.
9102 * testsuite/libgomp.c++/scan-10.C: Likewise.
9103 * testsuite/libgomp.c++/scan-11.C: Likewise.
9104 * testsuite/libgomp.c++/scan-12.C: Likewise.
9105 * testsuite/libgomp.c++/scan-14.C: Likewise.
9106 * testsuite/libgomp.c++/scan-15.C: Likewise.
9107 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
9108 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9109 * testsuite/libgomp.c++/scan-16.C: Likewise.
9111 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
9114 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9115 -std=legacy so invalid code in the test case is accepted.
9117 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9120 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9123 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9125 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9126 perform the lookup in the first loop only if !not_found_cnt, otherwise
9127 perform lookups for it in the second loop guarded with
9128 if (not_found_cnt || has_firstprivate).
9129 * testsuite/libgomp.c/target-37.c: New test.
9130 * testsuite/libgomp.c++/target-22.C: New test.
9132 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9134 * testsuite/libgomp.c/target-18.c (struct S): New type.
9135 (foo): Use use_device_addr clause instead of use_device_ptr clause
9136 where required by OpenMP 5.0, add further tests for both use_device_ptr
9137 and use_device_addr clauses.
9138 * testsuite/libgomp.c++/target-9.C (struct S): New type.
9139 (foo): Use use_device_addr clause instead of use_device_ptr clause
9140 where required by OpenMP 5.0, add further tests for both use_device_ptr
9141 and use_device_addr clauses. Add t and u arguments.
9142 (main): Adjust caller.
9144 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9146 * testsuite/libgomp.c++/loop-13.C: New test.
9147 * testsuite/libgomp.c++/loop-14.C: New test.
9148 * testsuite/libgomp.c++/loop-15.C: New test.
9150 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9153 * testsuite/libgomp.c++/for-27.C: New test.
9155 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
9157 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9158 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9160 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9162 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9164 2019-07-08 Jakub Jelinek <jakub@redhat.com>
9166 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9167 * testsuite/libgomp.c++/scan-16.C: Likewise.
9169 2019-07-06 Jakub Jelinek <jakub@redhat.com>
9171 * testsuite/libgomp.c/scan-19.c: New test.
9172 * testsuite/libgomp.c/scan-20.c: New test.
9174 * testsuite/libgomp.c/scan-11.c: New test.
9175 * testsuite/libgomp.c/scan-12.c: New test.
9176 * testsuite/libgomp.c/scan-13.c: New test.
9177 * testsuite/libgomp.c/scan-14.c: New test.
9178 * testsuite/libgomp.c/scan-15.c: New test.
9179 * testsuite/libgomp.c/scan-16.c: New test.
9180 * testsuite/libgomp.c/scan-17.c: New test.
9181 * testsuite/libgomp.c/scan-18.c: New test.
9182 * testsuite/libgomp.c++/scan-9.C: New test.
9183 * testsuite/libgomp.c++/scan-10.C: New test.
9184 * testsuite/libgomp.c++/scan-11.C: New test.
9185 * testsuite/libgomp.c++/scan-12.C: New test.
9186 * testsuite/libgomp.c++/scan-13.C: New test.
9187 * testsuite/libgomp.c++/scan-14.C: New test.
9188 * testsuite/libgomp.c++/scan-15.C: New test.
9189 * testsuite/libgomp.c++/scan-16.C: New test.
9191 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9193 * testsuite/libgomp.c/scan-9.c: New test.
9194 * testsuite/libgomp.c/scan-10.c: New test.
9196 2019-07-03 Jakub Jelinek <jakub@redhat.com>
9198 * testsuite/libgomp.c++/scan-1.C: New test.
9199 * testsuite/libgomp.c++/scan-2.C: New test.
9200 * testsuite/libgomp.c++/scan-3.C: New test.
9201 * testsuite/libgomp.c++/scan-4.C: New test.
9202 * testsuite/libgomp.c++/scan-5.C: New test.
9203 * testsuite/libgomp.c++/scan-6.C: New test.
9204 * testsuite/libgomp.c++/scan-7.C: New test.
9205 * testsuite/libgomp.c++/scan-8.C: New test.
9206 * testsuite/libgomp.c/scan-1.c: New test.
9207 * testsuite/libgomp.c/scan-2.c: New test.
9208 * testsuite/libgomp.c/scan-3.c: New test.
9209 * testsuite/libgomp.c/scan-4.c: New test.
9210 * testsuite/libgomp.c/scan-5.c: New test.
9211 * testsuite/libgomp.c/scan-6.c: New test.
9212 * testsuite/libgomp.c/scan-7.c: New test.
9213 * testsuite/libgomp.c/scan-8.c: New test.
9215 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9217 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9218 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9221 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9224 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
9226 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9229 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9232 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9234 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9235 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9236 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9237 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9240 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9243 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9245 2019-06-16 Tom de Vries <tdevries@suse.de>
9247 PR tree-optimization/89376
9248 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9250 2019-06-15 Tom de Vries <tdevries@suse.de>
9252 PR tree-optimization/89713
9253 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9254 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9256 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9259 * testsuite/libgomp.c/pr90779.c: New test.
9260 * testsuite/libgomp.fortran/pr90779.f90: New test.
9262 2019-06-15 Tom de Vries <tdevries@suse.de>
9264 PR tree-optimization/90009
9265 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9267 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9269 PR tree-optimization/89713
9270 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9272 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9275 * testsuite/libgomp.c/pr90811.c: New test.
9277 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9279 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9280 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9282 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9284 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9285 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9286 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9287 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9289 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9291 * configure.ac: Call AX_COUNT_CPUS.
9292 Substitute CPU_COUNT.
9293 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9295 * aclocal.m4: Regenerate.
9296 * configure: Regenerate.
9297 * Makefile.in, testsuite/Makefile.in: Regenerate.
9299 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9301 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9303 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9304 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9305 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9307 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9309 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9311 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9314 * work.c (gomp_init_work_share): Instead of aligning final ordered
9315 value to multiples of long long alignment, align to that the
9316 first part (ordered team ids) and if inline_ordered_team_ids
9317 is not on a long long alignment boundary within the structure,
9318 use __alignof__ (long long) - 1 pad size always.
9319 * loop.c (GOMP_loop_start): Fix *mem computation if
9320 inline_ordered_team_ids is not aligned on long long alignment boundary
9321 within the structure.
9322 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9323 * sections.c (GOMP_sections2_start): Likewise.
9325 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9327 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9328 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9331 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9332 HAVE_INTTYPES_H is defined.
9333 (print_uint64_t): New typedef.
9334 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9335 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9336 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9337 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9338 before casting to void *.
9339 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9340 * oacc-mem.c: Don't include config.h nor stdint.h.
9341 * target.c: Don't include config.h.
9342 * oacc-cuda.c: Likewise.
9343 * oacc-host.c: Don't include stdint.h.
9345 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9348 * alloc.c (_GNU_SOURCE): Define.
9350 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9352 * acc_prof.h: New file.
9353 * oacc-profiling.c: Likewise.
9354 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9355 Add these, respectively.
9356 * Makefile.in: Regenerate.
9357 * env.c (initialize_env): Call goacc_profiling_initialize.
9358 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9359 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9360 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9361 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9362 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9363 acc_prof_register, acc_prof_unregister, and acc_register_library.
9364 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9365 GOMP_PLUGIN_goacc_thread.
9366 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9367 prof_callbacks_enabled members.
9368 (goacc_prof_enabled, goacc_profiling_initialize)
9369 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9370 (goacc_profiling_dispatch): Declare.
9371 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9372 (GOACC_PROFILING_SETUP_P): Define.
9373 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9374 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9375 OpenACC Profiling Interface.
9376 * oacc-cuda.c (acc_get_current_cuda_device)
9377 (acc_get_current_cuda_context, acc_get_cuda_stream)
9378 (acc_set_cuda_stream): Likewise.
9379 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9380 (acc_init, acc_set_device_type, acc_get_device_type)
9381 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9382 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9383 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9384 (acc_unmap_data, present_create_copy, delete_copyout)
9385 (update_dev_host): Likewise.
9386 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9387 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9389 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9390 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9392 * libgomp.texi: Update.
9393 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9395 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9396 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9398 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9400 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9402 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9405 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9407 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9408 (struct goacc_asyncqueue_list): Likewise.
9409 (goacc_aq): Likewise.
9410 (goacc_aq_list): Likewise.
9411 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9412 (GOMP_OFFLOAD_openacc_async_test): Remove.
9413 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9414 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9415 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9416 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9417 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9418 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9419 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9420 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9421 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9422 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9423 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9424 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9425 (GOMP_OFFLOAD_openacc_async_test): Declare.
9426 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9427 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9428 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9429 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9430 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9432 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9433 (gomp_acc_insert_pointer): Adjust declaration.
9434 (gomp_copy_host2dev): New declaration.
9435 (gomp_copy_dev2host): Likewise.
9436 (gomp_map_vars_async): Likewise.
9437 (gomp_unmap_tgt): Likewise.
9438 (gomp_unmap_vars_async): Likewise.
9439 (gomp_fini_device): Likewise.
9441 * oacc-async.c (get_goacc_thread): New function.
9442 (get_goacc_thread_device): New function.
9443 (lookup_goacc_asyncqueue): New function.
9444 (get_goacc_asyncqueue): New function.
9445 (acc_async_test): Adjust code to use new async design.
9446 (acc_async_test_all): Likewise.
9447 (acc_wait): Likewise.
9448 (acc_wait_async): Likewise.
9449 (acc_wait_all): Likewise.
9450 (acc_wait_all_async): Likewise.
9451 (goacc_async_free): New function.
9452 (goacc_init_asyncqueues): Likewise.
9453 (goacc_fini_asyncqueues): Likewise.
9454 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9456 (acc_set_cuda_stream): Likewise.
9457 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9458 (host_openacc_register_async_cleanup): Remove.
9459 (host_openacc_async_exec): New function.
9460 (host_openacc_async_test): Adjust parameters.
9461 (host_openacc_async_test_all): Remove.
9462 (host_openacc_async_wait): Remove.
9463 (host_openacc_async_wait_async): Remove.
9464 (host_openacc_async_wait_all): Remove.
9465 (host_openacc_async_wait_all_async): Remove.
9466 (host_openacc_async_set_async): Remove.
9467 (host_openacc_async_synchronize): New function.
9468 (host_openacc_async_serialize): New function.
9469 (host_openacc_async_host2dev): New function.
9470 (host_openacc_async_dev2host): New function.
9471 (host_openacc_async_queue_callback): New function.
9472 (host_openacc_async_construct): New function.
9473 (host_openacc_async_destruct): New function.
9474 (struct gomp_device_descr host_dispatch): Remove initialization of old
9475 interface, add initialization of new async sub-struct.
9476 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9477 (goacc_attach_host_thread_to_device): Remove old async code usage.
9478 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9479 (goacc_fini_asyncqueues): Likewise.
9480 (goacc_async_copyout_unmap_vars): Likewise.
9481 (goacc_async_free): Likewise.
9482 (get_goacc_asyncqueue): Likewise.
9483 (lookup_goacc_asyncqueue): Likewise.
9484 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9486 (present_create_copy): Adjust code to use new async design.
9487 (delete_copyout): Likewise.
9488 (update_dev_host): Likewise.
9489 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9491 (gomp_acc_remove_pointer): Adjust code to use new async design.
9492 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9494 (GOACC_enter_exit_data): Likewise.
9495 (goacc_wait): Likewise.
9496 (GOACC_update): Likewise.
9497 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9498 when called, warn as obsolete in comment.
9499 * target.c (goacc_device_copy_async): New function.
9500 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9501 add goacc_device_copy_async case.
9502 (gomp_copy_dev2host): Likewise.
9503 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9504 (gomp_map_pointer): Likewise.
9505 (gomp_map_fields_existing): Likewise.
9506 (gomp_map_vars_internal): New always_inline function, renamed from
9508 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9509 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9510 passing goacc_asyncqueue argument.
9511 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9512 (gomp_unref_tgt): New function.
9513 (gomp_unmap_vars_internal): New always_inline function, renamed from
9515 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9516 (gomp_unmap_vars_async): Implement by calling
9517 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9518 (gomp_fini_device): New function.
9519 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9520 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9521 new async interface.
9522 (gomp_target_fini): Adjust code to call gomp_fini_device.
9524 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9525 (struct ptx_stream): Remove.
9526 (struct nvptx_thread): Remove current_stream field.
9527 (cuda_map_create): Remove.
9528 (cuda_map_destroy): Remove.
9533 (struct goacc_asyncqueue): Define.
9534 (struct nvptx_callback): Define.
9535 (struct ptx_free_block): Define.
9536 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9537 stream_lock, and next fields.
9538 (enum ptx_event_type): Remove.
9539 (struct ptx_event): Remove.
9540 (ptx_event_lock): Remove.
9541 (ptx_events): Remove.
9542 (init_streams_for_device): Remove.
9543 (fini_streams_for_device): Remove.
9544 (select_stream_for_async): Remove.
9545 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9546 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9548 (nvptx_open_device): Add free_blocks initialization, remove
9549 init_streams_for_device call.
9550 (nvptx_close_device): Remove fini_streams_for_device call, add
9551 free_blocks destruct code.
9553 (event_add): Remove.
9554 (nvptx_exec): Adjust parameters and code.
9555 (nvptx_free): Likewise.
9556 (nvptx_host2dev): Remove.
9557 (nvptx_dev2host): Remove.
9558 (nvptx_set_async): Remove.
9559 (nvptx_async_test): Remove.
9560 (nvptx_async_test_all): Remove.
9561 (nvptx_wait): Remove.
9562 (nvptx_wait_async): Remove.
9563 (nvptx_wait_all): Remove.
9564 (nvptx_wait_all_async): Remove.
9565 (nvptx_get_cuda_stream): Remove.
9566 (nvptx_set_cuda_stream): Remove.
9567 (GOMP_OFFLOAD_alloc): Adjust code.
9568 (GOMP_OFFLOAD_free): Likewise.
9569 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9570 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9571 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9572 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9573 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9574 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9575 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9576 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9577 (cuda_free_argmem): New function.
9578 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9579 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9580 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9581 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9582 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9583 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9584 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9585 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9586 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9587 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9588 (cuda_callback_wrapper): New function.
9589 (cuda_memcpy_sanity_check): New function.
9590 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9591 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9592 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9593 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9595 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
9598 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9600 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
9602 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9604 2019-03-27 Kevin Buettner <kevinb@redhat.com>
9606 * team.c (gomp_team_start): Initialize pool->threads[0].
9608 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9610 * testsuite/libgomp.oacc-c++/c++.exp: Specify
9611 "-foffload=$offload_target".
9612 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9613 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9614 * testsuite/lib/libgomp.exp
9615 (check_effective_target_openacc_nvidia_accel_configured): Remove,
9616 as (conceptually) merged into
9617 check_effective_target_openacc_nvidia_accel_selected. Adjust all
9620 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9621 * testsuite/libgomp-test-support.exp.in: Adjust.
9622 * testsuite/lib/libgomp.exp: Likewise. Don't populate
9623 openacc_device_types_s.
9624 (offload_target_to_openacc_device_type): New proc.
9625 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9626 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9627 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9628 * Makefile.in: Regenerate.
9629 * configure: Likewise.
9630 * testsuite/Makefile.in: Likewise.
9632 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9633 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9634 instead of OFFLOAD_TARGETS.
9635 * target.c (gomp_target_init): Adjust.
9636 * testsuite/libgomp-test-support.exp.in: Likewise.
9637 * testsuite/lib/libgomp.exp: Likewise. Populate
9638 openacc_device_types_s instead of offload_targets_s_openacc.
9639 (check_effective_target_openacc_nvidia_accel_selected)
9640 (check_effective_target_openacc_host_selected): Adjust.
9641 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9642 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9643 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9644 * Makefile.in: Regenerate.
9645 * config.h.in: Likewise.
9646 * configure: Likewise.
9647 * testsuite/Makefile.in: Likewise.
9649 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9650 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
9651 "offloading: supported, but hardware not accessible".
9652 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9653 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9655 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
9658 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9660 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9661 and related adjustment.
9663 2019-01-30 Jakub Jelinek <jakub@redhat.com>
9666 * testsuite/libgomp.c++/pr88988.C: New test.
9668 2019-01-28 Jakub Jelinek <jakub@redhat.com>
9671 * testsuite/libgomp.c/pr89002.c: New test.
9673 2019-01-28 Richard Biener <rguenther@suse.de>
9676 PR tree-optimization/86865
9677 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9679 2019-01-24 Tom de Vries <tdevries@suse.de>
9681 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9682 once instantiated_devices drops to 0.
9684 2019-01-23 Tom de Vries <tdevries@suse.de>
9687 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9689 (nvptx_exec): Don't call map_push if mapnum == 0.
9690 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9692 2019-01-23 Tom de Vries <tdevries@suse.de>
9696 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9697 (map_fini): Remove "assert (!s->map->active)".
9698 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9700 2019-01-23 Tom de Vries <tdevries@suse.de>
9703 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9704 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9706 2019-01-15 Tom de Vries <tdevries@suse.de>
9709 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9712 2019-01-12 Tom de Vries <tdevries@suse.de>
9714 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9715 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9716 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9717 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9719 2019-01-12 Tom de Vries <tdevries@suse.de>
9721 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9723 2019-01-12 Tom de Vries <tdevries@suse.de>
9725 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9726 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9727 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9729 2019-01-12 Tom de Vries <tdevries@suse.de>
9732 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9733 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9735 2019-01-12 Tom de Vries <tdevries@suse.de>
9738 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9739 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9741 2019-01-12 Tom de Vries <tdevries@suse.de>
9743 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9744 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9745 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9747 2019-01-12 Tom de Vries <tdevries@suse.de>
9749 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9750 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9751 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9753 2019-01-12 Tom de Vries <tdevries@suse.de>
9755 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9756 resources diagnostic.
9758 2019-01-12 Tom de Vries <tdevries@suse.de>
9760 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9761 vector length to be 128.
9762 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9763 length 2097152 to be reduced to 1024 instead of 32.
9765 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
9766 James Norris <jnorris@codesourcery.com>
9768 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9769 Library Routines", and "Environment Variables".
9771 2019-01-11 Tom de Vries <tdevries@suse.de>
9773 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9776 2019-01-11 Tom de Vries <tdevries@suse.de>
9778 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9780 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9781 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9782 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9783 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9785 2019-01-11 Tom de Vries <tdevries@suse.de>
9787 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9790 2019-01-10 Nathan Sidwell <nathan@acm.org>
9791 Julian Brown <julian@codesourcery.com>
9794 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9795 * testsuite/libgomp.oacc-c++/pr71959.C: New.
9797 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9799 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9802 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9804 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
9805 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9808 2019-01-09 Tom de Vries <tdevries@suse.de>
9811 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9812 #define instead of "const int".
9813 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9814 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9815 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9816 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9818 2019-01-09 Tom de Vries <tdevries@suse.de>
9820 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9823 2019-01-07 Tom de Vries <tdevries@suse.de>
9825 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9826 GOMP_OPENACC_DIM argument.
9828 2019-01-03 Tom de Vries <tdevries@suse.de>
9830 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9831 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9833 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9835 Update copyright years.
9837 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9839 * libgomp.texi: Bump @copying's copyright year.
9841 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9843 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9844 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9845 (GOACC_declare): Redefine the "device" argument to "flags".
9847 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9848 Cesar Philippidis <cesar@codesourcery.com>
9850 * target.c (struct gomp_coalesce_chunk): New structure.
9851 (struct gomp_coalesce_buf): Update the chunks member to use that
9852 type. Adjust all users.
9854 2018-12-19 Tom de Vries <tdevries@suse.de>
9856 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9857 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9858 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9860 2018-12-19 Tom de Vries <tdevries@suse.de>
9862 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9863 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9864 gcc/testsuite/gcc.dg/goacc.
9865 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9867 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9868 Chung-Lin Tang <cltang@codesourcery.com>
9870 * oacc-mem.c (acc_present_or_create): Remove definition and change
9871 to alias of acc_create.
9872 (acc_present_or_copyin): Remove definition and change to alias of
9874 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9875 of acc_present_or_create.
9876 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9877 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9878 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9879 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9880 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9881 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9882 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9883 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9884 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9885 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9886 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9887 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9888 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9889 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9890 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9891 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9893 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9896 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9897 "identical parameters".
9898 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9899 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9902 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9903 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9906 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9907 (nvptx_wait_async): Unseen async-argument is a no-op.
9908 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9909 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9910 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9911 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9912 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9913 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9914 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
9915 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9916 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
9918 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9919 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9921 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
9923 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9924 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9925 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9927 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9930 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9931 (acc_set_cuda_stream): Clarify.
9932 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9934 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9936 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9937 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9938 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9939 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9941 2018-12-14 Tom de Vries <tdevries@suse.de>
9943 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9944 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9945 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9946 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9947 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9949 2018-12-13 Tom de Vries <tdevries@suse.de>
9951 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9952 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9953 * fortran.c (omp_display_affinity_): ... here.
9954 * libgomp.h (gomp_print_string): Declare.
9955 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
9956 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9959 2018-12-13 Jakub Jelinek <jakub@redhat.com>
9962 * testsuite/libgomp.c++/for-24.C (results): Include it in
9963 omp declare target region.
9964 (main): Use map (always, tofrom: results) instead of
9965 map (tofrom: results).
9967 2018-12-12 Jakub Jelinek <jakub@redhat.com>
9970 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9971 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9973 * testsuite/libgomp.c-c++-common/for-16.c: New test.
9975 2018-12-12 Andreas Schwab <schwab@suse.de>
9977 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9980 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
9983 * testsuite/libgomp.fortran/async_io_8.f90: New test.
9985 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
9986 Jakub Jelinek <jakub@redhat.com>
9988 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9989 devicep->host2dev_func.
9991 2018-12-08 Jakub Jelinek <jakub@redhat.com>
9994 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9995 tls_runtime effective target.
9996 (t): New threadprivate variable.
9997 (main): Set t in threads which execute iterations of the worksharing
9998 loop. Propagate that to the task after the loop and don't abort
9999 if the current taskgroup hasn't been cancelled.
10001 2018-12-02 Jakub Jelinek <jakub@redhat.com>
10003 * testsuite/libgomp.c/task-reduction-3.c: New test.
10005 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10007 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
10010 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10011 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10013 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
10015 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10017 2018-10-19 Richard Biener <rguenther@suse.de>
10019 PR tree-optimization/88182
10020 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10022 2018-11-26 Jakub Jelinek <jakub@redhat.com>
10024 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10025 (RUNTEST): Don't define.
10026 (RUNTESTDEFAULTFLAGS): Add.
10027 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10028 (distclean-am): Depend on distclean-DEJAGNU.
10029 (check-am): If -j% option is present in MFLAGS and if
10030 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10031 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10032 * testsuite/Makefile.in: Regenerated.
10034 2018-11-26 Richard Biener <rguenther@suse.de>
10036 PR tree-optimization/88182
10037 * testsuite/libgomp.c++/pr88182.C: New testcase.
10039 2018-11-20 Jakub Jelinek <jakub@redhat.com>
10042 * config/mingw32/affinity-fmt.c: New file.
10044 2018-11-09 Jakub Jelinek <jakub@redhat.com>
10046 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10047 (gomp_display_affinity): Use __builtin_choose_expr to handle
10048 properly handle argument having integral, or pointer or some other
10049 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
10050 with uint64_t type instead of %llx and unsigned long long.
10052 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10053 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10055 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10057 * affinity.c: Include <string.h>, <stdio.h>.
10058 (gomp_display_affinity_place): Remove cpusetp.
10059 * teams.c: Include <limits.h>.
10061 2018-11-08 Jakub Jelinek <jakub@redhat.com>
10063 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10064 in_reduction clause for s[0].
10066 * affinity.c (gomp_display_affinity_place): New function.
10067 * affinity-fmt.c: New file.
10068 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10069 * config/linux/affinity.c (gomp_display_affinity_place): New function.
10070 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10071 Move these functions to ...
10072 * config/nvptx/teams.c: ... here. New file.
10073 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10075 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10077 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10078 and _aligned_malloc.
10079 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10080 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10081 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10082 gomp_affinity_format_len): New variables.
10083 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10084 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
10085 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10086 modifiers. Display (non-default) chunk sizes. Print
10087 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10088 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
10089 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10090 * fortran.c: Include stdio.h and string.h.
10091 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10092 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10093 (omp_set_affinity_format_, omp_get_affinity_format_,
10094 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10095 omp_pause_resource_all_): New functions.
10096 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10098 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10100 * teams.c: ... here. New file.
10101 * libgomp_g.h: Include gstdint.h.
10102 (GOMP_loop_nonmonotonic_runtime_start,
10103 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10104 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10105 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10106 GOMP_parallel_loop_nonmonotonic_runtime,
10107 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10108 GOMP_loop_ull_nonmonotonic_runtime_start,
10109 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10110 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10111 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10112 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10113 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10114 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10115 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10116 GOMP_teams_reg): Declare.
10117 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10118 gomp_aligned_alloc uses fallback implementation.
10119 (gomp_aligned_alloc, gomp_aligned_free): Declare.
10120 (enum gomp_schedule_type): Add GFS_MONOTONIC.
10121 (struct gomp_doacross_work_share): Add extra field.
10122 (struct gomp_work_share): Add task_reductions field.
10123 (struct gomp_taskgroup): Add workshare and reductions fields.
10124 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10125 (gomp_thread_handle): New typedef.
10126 (gomp_display_affinity_place, gomp_set_affinity_format,
10127 gomp_display_string, gomp_display_affinity,
10128 gomp_display_affinity_thread): Declare.
10129 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10130 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10131 gomp_workshare_task_reduction_register): Declare.
10132 (gomp_team_start): Add taskgroup argument.
10133 (gomp_pause_host): Declare.
10134 (gomp_init_work_share, gomp_work_share_start): Change bool argument
10136 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10137 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10138 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10139 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10140 GOMP_loop_ull_doacross_start,
10141 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10142 GOMP_loop_maybe_nonmonotonic_runtime_next,
10143 GOMP_loop_maybe_nonmonotonic_runtime_start,
10144 GOMP_loop_nonmonotonic_runtime_next,
10145 GOMP_loop_nonmonotonic_runtime_start,
10146 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10147 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10148 GOMP_loop_ull_nonmonotonic_runtime_next,
10149 GOMP_loop_ull_nonmonotonic_runtime_start,
10150 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10151 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10152 GOMP_taskgroup_reduction_register,
10153 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10154 GOMP_teams_reg and GOMP_taskwait_depend.
10155 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10156 omp_{capture,display}_affinity{,_}, and
10157 omp_[gs]et_affinity_format{,_}.
10158 * loop.c: Include string.h.
10159 (GOMP_loop_runtime_next): Add ialias.
10160 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10161 (gomp_loop_static_start, gomp_loop_dynamic_start,
10162 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10163 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10164 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10165 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10166 or gomp_doacross_init callers.
10167 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10168 GOMP_loop_doacross_start): New functions.
10169 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10170 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10171 Mask off GFS_MONOTONIC bit.
10172 (GOMP_loop_maybe_nonmonotonic_runtime_next,
10173 GOMP_loop_maybe_nonmonotonic_runtime_start,
10174 GOMP_loop_nonmonotonic_runtime_next,
10175 GOMP_loop_nonmonotonic_runtime_start,
10176 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10177 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10179 (gomp_parallel_loop_start): Pass NULL as taskgroup to
10181 * loop_ull.c: Include string.h.
10182 (GOMP_loop_ull_runtime_next): Add ialias.
10183 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10184 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10185 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10186 gomp_loop_ull_ordered_dynamic_start,
10187 gomp_loop_ull_ordered_guided_start,
10188 gomp_loop_ull_doacross_static_start,
10189 gomp_loop_ull_doacross_dynamic_start,
10190 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10191 and gomp_doacross_ull_init callers.
10192 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10193 GOMP_loop_ull_doacross_start): New functions.
10194 (GOMP_loop_ull_runtime_start,
10195 GOMP_loop_ull_ordered_runtime_start,
10196 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10197 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10198 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10199 GOMP_loop_ull_nonmonotonic_runtime_next,
10200 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10201 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10202 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10203 (omp_pause_resource_t, omp_depend_t): New typedefs.
10204 (enum omp_lock_hint_t): Renamed to ...
10205 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
10206 enumerators using numbers and omp_lock_hint_* as their aliases.
10207 (omp_lock_hint_t): New typedef. Rename to ...
10208 (omp_sync_hint_t): ... this.
10209 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10210 omp_sync_hint_t instead of omp_lock_hint_t.
10211 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10212 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10214 (omp_target_is_present, omp_target_disassociate_ptr):
10215 Change first argument from void * to const void *.
10216 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10217 from void * to const void *.
10218 (omp_target_associate_ptr): Change first and second arguments from
10219 void * to const void *.
10220 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10221 omp_pause_hard): New parameters.
10222 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10223 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10225 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10226 omp_pause_hard): New parameters.
10227 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10228 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10230 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10231 EXTRA argument. If not needed to prepare array, if extra is 0,
10232 clear ws->doacross, otherwise allocate just doacross structure and
10233 extra payload. If array is needed, allocate also extra payload.
10234 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10235 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10237 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10239 (GOMP_parallel): Likewise. Formatting fix.
10240 (GOMP_parallel_reductions): New function.
10241 (GOMP_cancellation_point): If taskgroup has workshare
10242 flag set, check cancelled of prev taskgroup if any.
10243 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10244 on prev taskgroup if any.
10245 * sections.c: Include string.h.
10246 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10247 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10248 (GOMP_sections2_start): New function.
10249 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10250 Pass NULL as taskgroup to gomp_team_start.
10251 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10252 gomp_work_share_start callers.
10253 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10254 If taskgroup has workshare flag set, check cancelled on prev
10255 taskgroup if any. Guard all cancellation tests with
10256 gomp_cancel_var test.
10257 (omp_target_is_present, omp_target_disassociate_ptr):
10258 Change ptr argument from void * to const void *.
10259 (omp_target_memcpy): Change src argument from void * to const void *.
10260 (omp_target_memcpy_rect): Likewise.
10261 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10262 instead of char * where needed.
10263 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10264 from void * to const void *.
10265 (omp_pause_resource, omp_pause_resource_all): New functions.
10266 * task.c (gomp_task_handle_depend): Handle new depend array format
10267 in addition to the old. Handle mutexinoutset kinds the same as
10268 inout for now, handle unspecified kinds.
10269 (gomp_create_target_task): If taskgroup has workshare flag set, check
10270 cancelled on prev taskgroup if any. Guard all cancellation tests with
10271 gomp_cancel_var test. Handle new depend array format count in
10272 addition to the old.
10273 (GOMP_task): Likewise. Adjust function comment.
10274 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10275 cancelled on prev taskgroup if any. Guard all cancellation tests with
10276 gomp_cancel_var test.
10277 (GOMP_taskwait_depend): New function.
10278 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10279 format in addition to the old. Handle mutexinoutset kinds the same as
10280 inout for now, handle unspecified kinds. Fix a function comment typo.
10281 (gomp_taskgroup_init): New function.
10282 (GOMP_taskgroup_start): Use it.
10283 (gomp_reduction_register, gomp_create_artificial_team,
10284 GOMP_taskgroup_reduction_register,
10285 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10286 gomp_parallel_reduction_register,
10287 gomp_workshare_task_reduction_register,
10288 gomp_workshare_taskgroup_start,
10289 GOMP_workshare_task_reduction_unregister): New functions.
10290 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10291 check cancelled on prev taskgroup if any. Guard all cancellation
10292 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10293 by calling GOMP_taskgroup_reduction_register.
10294 * team.c (gomp_thread_attr): Remove comment.
10295 (struct gomp_thread_start_data): Add handle field.
10296 (gomp_thread_start): Call pthread_detach.
10297 (gomp_new_team): Adjust gomp_init_work_share caller.
10298 (gomp_free_pool_helper): Call pthread_detach.
10299 (gomp_team_start): Add taskgroup argument, initialize implicit
10300 tasks' taskgroup field to that. Don't call
10301 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10302 (gomp_team_end): Determine nesting by thr->ts.level != 0
10303 rather than thr->ts.team != NULL.
10304 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10305 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10306 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10307 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10308 if more than 1 allocate also extra payload at the end of array. Never
10309 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10310 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10311 return true instead of ws.
10312 * Makefile.in: Regenerated.
10313 * configure: Regenerated.
10314 * config.h.in: Regenerated.
10315 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10317 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10318 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10319 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10320 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10321 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10322 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10323 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10324 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10325 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10326 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10327 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10328 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10329 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10330 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10331 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10332 define a different N(test), don't define N(f0) to N(f14), but instead
10333 define N(f20) to N(f34) using != comparisons.
10334 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10335 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10336 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10337 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10338 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10339 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10340 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10341 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10342 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10343 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10344 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10345 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10346 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10347 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10348 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10349 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10350 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10351 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10352 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10353 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10354 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10355 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10356 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10357 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10358 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10359 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10360 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10361 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10362 * testsuite/libgomp.c++/depend-1.C: New test.
10363 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10364 * testsuite/libgomp.c++/depobj-1.C: New test.
10365 * testsuite/libgomp.c++/for-16.C: New test.
10366 * testsuite/libgomp.c++/for-21.C: New test.
10367 * testsuite/libgomp.c++/for-22.C: New test.
10368 * testsuite/libgomp.c++/for-23.C: New test.
10369 * testsuite/libgomp.c++/for-24.C: New test.
10370 * testsuite/libgomp.c++/for-25.C: New test.
10371 * testsuite/libgomp.c++/for-26.C: New test.
10372 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10373 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10374 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10375 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10376 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10377 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10378 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10379 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10380 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10381 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10382 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10383 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10384 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10385 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10386 * testsuite/libgomp.c/task-reduction-1.c: New test.
10387 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10388 * testsuite/libgomp.c/task-reduction-2.c: New test.
10389 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10390 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10391 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10392 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10393 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10394 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10395 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10396 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10397 * testsuite/libgomp.c/teams-1.c: New test.
10398 * testsuite/libgomp.c/teams-2.c: New test.
10399 * testsuite/libgomp.c/thread-limit-4.c: New test.
10400 * testsuite/libgomp.c/thread-limit-5.c: New test.
10401 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10403 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10405 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10406 acc_memcpy_to/from_device functions, now with async parameter.
10407 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10408 (acc_memcpy_from_device): Likewise.
10409 (acc_memcpy_to_device_async): New API function.
10410 (acc_memcpy_from_device_async): Likewise.
10411 (present_create_copy): Add async parameter and async setting/unsetting.
10412 (acc_create): Adjust present_create_copy call.
10413 (acc_copyin): Likewise.
10414 (acc_present_or_create): Likewise.
10415 (acc_present_or_copyin): Likewise.
10416 (acc_create_async): New API function.
10417 (acc_copyin_async): New API function.
10418 (delete_copyout): Add async parameter and async setting/unsetting.
10419 (acc_delete): Adjust delete_copyout call.
10420 (acc_copyout): Likewise.
10421 (acc_delete_async): New API function.
10422 (acc_copyout_async): Likewise.
10423 (update_dev_host): Add async parameter and async setting/unsetting.
10424 (acc_update_device): Adjust update_dev_host call.
10425 (acc_update_self): Likewise.
10426 (acc_update_device_async): New API function.
10427 (acc_update_self_async): Likewise.
10428 * openacc.h (acc_copyin_async): Declare new API function.
10429 (acc_create_async): Likewise.
10430 (acc_copyout_async): Likewise.
10431 (acc_delete_async): Likewise.
10432 (acc_update_device_async): Likewise.
10433 (acc_update_self_async): Likewise.
10434 (acc_memcpy_to_device_async): Likewise.
10435 (acc_memcpy_from_device_async): Likewise.
10436 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10437 (acc_copyin_async_64_h): New subroutine.
10438 (acc_copyin_async_array_h): New subroutine.
10439 (acc_create_async_32_h): New subroutine.
10440 (acc_create_async_64_h): New subroutine.
10441 (acc_create_async_array_h): New subroutine.
10442 (acc_copyout_async_32_h): New subroutine.
10443 (acc_copyout_async_64_h): New subroutine.
10444 (acc_copyout_async_array_h): New subroutine.
10445 (acc_delete_async_32_h): New subroutine.
10446 (acc_delete_async_64_h): New subroutine.
10447 (acc_delete_async_array_h): New subroutine.
10448 (acc_update_device_async_32_h): New subroutine.
10449 (acc_update_device_async_64_h): New subroutine.
10450 (acc_update_device_async_array_h): New subroutine.
10451 (acc_update_self_async_32_h): New subroutine.
10452 (acc_update_self_async_64_h): New subroutine.
10453 (acc_update_self_async_array_h): New subroutine.
10454 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10455 (acc_copyin_async_64_h): New subroutine.
10456 (acc_copyin_async_array_h): New subroutine.
10457 (acc_create_async_32_h): New subroutine.
10458 (acc_create_async_64_h): New subroutine.
10459 (acc_create_async_array_h): New subroutine.
10460 (acc_copyout_async_32_h): New subroutine.
10461 (acc_copyout_async_64_h): New subroutine.
10462 (acc_copyout_async_array_h): New subroutine.
10463 (acc_delete_async_32_h): New subroutine.
10464 (acc_delete_async_64_h): New subroutine.
10465 (acc_delete_async_array_h): New subroutine.
10466 (acc_update_device_async_32_h): New subroutine.
10467 (acc_update_device_async_64_h): New subroutine.
10468 (acc_update_device_async_array_h): New subroutine.
10469 (acc_update_self_async_32_h): New subroutine.
10470 (acc_update_self_async_64_h): New subroutine.
10471 (acc_update_self_async_array_h): New subroutine.
10472 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10473 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10474 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10475 acc_memcpy_to_device_async*, acc_update_device_async*, and
10476 acc_update_self_async* entries.
10477 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10478 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10479 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10481 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10484 * Makefile.am: Include multilib.am
10485 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10486 (CLEANFILES): Remove libgomp.info.
10487 * configure.ac: Remove AC_PREREQ.
10488 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10489 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10492 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10493 Julian Brown <julian@codesourcery.com>
10495 * testsuite/libgomp.oacc-c++/this.C: New.
10497 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10499 * plugin/plugin-nvptx.c (struct cuda_map): New.
10500 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10501 h_tail with (cuda_map *) map.
10502 (cuda_map_create): New function.
10503 (cuda_map_destroy): New function.
10504 (map_init): Update to use a linked list of cuda_map objects.
10505 (map_fini): Likewise.
10506 (map_pop): Likewise.
10507 (map_push): Likewise. Return CUdeviceptr instead of void.
10508 (init_streams_for_device): Remove stales references to ptx_stream
10510 (select_stream_for_async): Likewise.
10511 (nvptx_exec): Update call to map_init.
10513 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10514 Julian Brown <julian@codesourcery.com>
10516 PR middle-end/86336
10517 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10519 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10520 Thomas Koenig <tkoenig@gcc.gnu.org>
10523 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10524 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10525 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10526 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10527 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10528 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10529 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10531 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10532 Tom de Vries <tdevries@suse.de>
10535 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10536 (cuOccupancyMaxPotentialBlockSize): Declare.
10537 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10538 CUDA_ONE_CALL_MAYBE_NULL.
10539 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10540 CUoccupancyB2DSize and declare
10541 cuOccupancyMaxPotentialBlockSize.
10542 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10543 default num_gangs and num_workers when the driver supports it.
10545 2018-08-08 Tom de Vries <tdevries@suse.de>
10547 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10548 CUDA_ONE_CALL_MAYBE_NULL.
10549 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10550 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10551 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10554 2018-08-08 Tom de Vries <tdevries@suse.de>
10556 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10557 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10560 2018-08-08 Tom de Vries <tdevries@suse.de>
10562 * plugin/plugin-nvptx.c
10563 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10564 (nvptx_open_device): Use
10565 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10567 2018-08-08 Tom de Vries <tdevries@suse.de>
10569 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10570 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
10572 2018-08-07 Tom de Vries <tdevries@suse.de>
10574 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10575 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10576 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
10577 corresponding call in CUDA_ONE_CALL. Add def/undef of
10578 CUDA_ONE_CALL_MAYBE_NULL.
10579 (CUDA_CALL_EXISTS): Define.
10581 2018-08-07 Tom de Vries <tdevries@suse.de>
10583 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10584 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10585 corresponding undefs right after.
10587 2018-08-04 Tom de Vries <tdevries@suse.de>
10589 * plugin/configfrag.ac: For --without-cuda-driver, set
10590 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
10591 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10592 * configure: Regenerate.
10594 2018-08-02 Tom de Vries <tdevries@suse.de>
10597 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10598 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10599 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10601 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10602 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10603 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10605 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10606 Thomas Schwinge <thomas@codesourcery.com>
10608 * config/nvptx/oacc-parallel.c: Truncate.
10610 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10611 James Norris <jnorris@codesourcery.com>
10613 * plugin/plugin-nvptx.c (struct map): Removed.
10614 (map_init, map_pop): Remove use of struct map.
10615 (map_push): Likewise and change argument list.
10616 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10618 2018-08-01 Tom de Vries <tdevries@suse.de>
10620 * plugin/cuda-lib.def: New file. Factor out of ...
10621 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10622 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10625 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
10627 Revert 'AsyncI/O patch committed'.
10628 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10629 Thomas Koenig <tkoenig@gcc.gnu.org>
10632 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10633 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10634 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10635 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10636 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10637 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10638 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10640 2018-07-30 Tom de Vries <tdevries@suse.de>
10642 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10643 (nvptx_exec): Ensure worker and vector default dims don't exceed
10644 targ_fn->max_threads_per_block.
10646 2018-07-30 Tom de Vries <tdevries@suse.de>
10648 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10649 (nvptx_open_device): Init default_dims for device.
10650 (nvptx_exec): Use default_dims from device.
10652 2018-07-26 Jakub Jelinek <jakub@redhat.com>
10655 * testsuite/libgomp.c++/for-15.C (results): Include it in
10656 omp declare target region.
10657 (main): Use map (always, tofrom: results) instead of
10658 map (tofrom: results).
10660 PR middle-end/86660
10661 * testsuite/libgomp.c/pr86660.c: New test.
10663 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10664 Tom de Vries <tdevries@suse.de>
10666 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10667 sufficient resources to launch a kernel, and give a hint on how to fix
10670 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10671 Tom de Vries <tdevries@suse.de>
10673 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10674 max_threads_per_block and max_threads_per_multiprocessor fields.
10675 (nvptx_open_device): Initialize new fields.
10676 (nvptx_exec): Use num_sms, and new fields.
10678 2018-07-26 Tom de Vries <tdevries@suse.de>
10680 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10681 to correct locations. Remove xfail.
10683 2018-07-26 Tom de Vries <tdevries@suse.de>
10685 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10686 acc_wait. Move acc_async_test calls to correct locations. Remove
10689 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10690 Thomas Koenig <tkoenig@gcc.gnu.org>
10693 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10694 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10695 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10696 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10697 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10698 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10699 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10701 2018-07-17 Jakub Jelinek <jakub@redhat.com>
10703 PR middle-end/86542
10704 * testsuite/libgomp.c++/pr86542.C: New test.
10706 PR middle-end/86539
10707 * testsuite/libgomp.c++/pr86539.C: New test.
10709 2018-07-11 Jakub Jelinek <jakub@redhat.com>
10712 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10713 (results): Make sure the variable is not inside declare target region.
10714 (qux): Remove unused function.
10716 2018-07-10 Jakub Jelinek <jakub@redhat.com>
10719 * testsuite/libgomp.c++/for-15.C: New test.
10721 2018-06-26 Jakub Jelinek <jakub@redhat.com>
10724 * testsuite/libgomp.c++/pr86291.C: New test.
10726 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
10728 * libgomp.texi (Top): Move www.openmp.org to https.
10729 (Enabling OpenMP): Ditto.
10730 (omp_get_active_level): Ditto.
10731 (omp_get_ancestor_thread_num): Ditto.
10732 (omp_get_cancellation): Ditto.
10733 (omp_get_default_device): Ditto.
10734 (omp_get_dynamic): Ditto.
10735 (omp_get_level): Ditto.
10736 (omp_get_max_active_levels): Ditto.
10737 (omp_get_max_task_priority): Ditto.
10738 (omp_get_max_threads): Ditto.
10739 (omp_get_nested): Ditto.
10740 (omp_get_num_devices): Ditto.
10741 (omp_get_num_procs): Ditto.
10742 (omp_get_num_teams): Ditto.
10743 (omp_get_num_threads): Ditto.
10744 (omp_get_proc_bind): Ditto.
10745 (omp_get_schedule): Ditto.
10746 (omp_get_team_num): Ditto.
10747 (omp_get_team_size): Ditto.
10748 (omp_get_thread_limit): Ditto.
10749 (omp_get_thread_num): Ditto.
10750 (omp_in_parallel): Ditto.
10751 (omp_in_final): Ditto.
10752 (omp_is_initial_device): Ditto.
10753 (omp_set_default_device): Ditto.
10754 (omp_set_dynamic): Ditto.
10755 (omp_set_max_active_levels): Ditto.
10756 (omp_set_nested): Ditto.
10757 (omp_set_num_threads): Ditto.
10758 (omp_set_schedule): Ditto.
10759 (omp_init_lock): Ditto.
10760 (omp_set_lock): Ditto.
10761 (omp_test_lock): Ditto.
10762 (omp_unset_lock): Ditto.
10763 (omp_destroy_lock): Ditto.
10764 (omp_init_nest_lock): Ditto.
10765 (omp_set_nest_lock): Ditto.
10766 (omp_test_nest_lock): Ditto.
10767 (omp_unset_nest_lock): Ditto.
10768 (omp_destroy_nest_lock): Ditto.
10769 (omp_get_wtick): Ditto.
10770 (omp_get_wtime): Ditto.
10771 (OMP_CANCELLATION): Ditto.
10772 (OMP_DISPLAY_ENV): Ditto.
10773 (OMP_DEFAULT_DEVICE): Ditto.
10774 (OMP_DYNAMIC): Ditto.
10775 (OMP_MAX_ACTIVE_LEVELS): Ditto.
10776 (OMP_MAX_TASK_PRIORITY): Ditto.
10777 (OMP_NESTED): Ditto.
10778 (OMP_NUM_THREADS): Ditto.
10779 (OMP_PROC_BIND): Ditto.
10780 (OMP_PLACES): Ditto.
10781 (OMP_STACKSIZE): Ditto.
10782 (OMP_SCHEDULE): Ditto.
10783 (OMP_THREAD_LIMIT): Ditto.
10784 (OMP_WAIT_POLICY): Ditto.
10786 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
10787 James Norris <jnorris@codesourcery.com>
10788 Julian Brown <julian@codesourcery.com>
10789 Thomas Schwinge <thomas@codesourcery.com>
10790 Tom de Vries <tom@codesourcery.com>
10792 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10793 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10794 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10795 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10796 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10797 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10798 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10799 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10800 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10801 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10803 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10805 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10807 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10809 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10811 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10813 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10815 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10817 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10819 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10821 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10823 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10825 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10827 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10829 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10831 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10833 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10835 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10837 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10839 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10841 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10843 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10845 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10847 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10849 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10851 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10853 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10855 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10856 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10857 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10858 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10859 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10860 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10861 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10862 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10863 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10865 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10867 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10868 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10869 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10871 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10872 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10873 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10875 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10877 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10879 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10881 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10883 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10885 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10887 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10889 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10891 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10893 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10895 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10897 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10899 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10901 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10903 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10904 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10905 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10906 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10907 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10908 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10909 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10911 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
10912 Thomas Schwinge <thomas@codesourcery.com>
10913 Cesar Philippidis <cesar@codesourcery.com>
10915 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10916 (gomp_acc_remove_pointer): Update declaration.
10917 (gomp_acc_declare_allocate): Declare.
10918 (gomp_remove_var): Declare.
10919 * libgomp.map (OACC_2.5): Define.
10920 * oacc-mem.c (acc_map_data): Update refcount.
10921 (acc_unmap_data): Likewise.
10922 (present_create_copy): Likewise.
10923 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10924 (acc_copyin): Likewise.
10925 (FLAG_FINALIZE): Define.
10926 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10927 (acc_delete_finalize): New function.
10928 (acc_delete_finalize_async): New function.
10929 (acc_copyout_finalize): New function.
10930 (acc_copyout_finalize_async): New function.
10931 (gomp_acc_insert_pointer): Update refcounts.
10932 (gomp_acc_remove_pointer): Return if data is not present on the
10934 * oacc-parallel.c (find_pset): Rename to find_pointer.
10935 (find_pointer): Add support for GOMP_MAP_POINTER.
10936 (handle_ftn_pointers): New function.
10937 (GOACC_parallel_keyed): Update refcounts of variables.
10938 (GOACC_enter_exit_data): Add support for finalized data mappings.
10939 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10941 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10942 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10943 for GOMP_MAP_FORCE_FROM.
10944 * openacc.f90 (module openacc_internal): Add
10945 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10946 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10947 acc_copyout_finalize and acc_delete_finalize.
10948 (acc_copyout_finalize_32_h): New subroutine.
10949 (acc_copyout_finalize_64_h): New subroutine.
10950 (acc_copyout_finalize_array_h): New subroutine.
10951 (acc_delete_finalize_32_h): New subroutine.
10952 (acc_delete_finalize_64_h): New subroutine.
10953 (acc_delete_finalize_array_h): New subroutine.
10954 * openacc.h (acc_copyout_finalize): Declare.
10955 (acc_copyout_finalize_async): Declare.
10956 (acc_delete_finalize): Declare.
10957 (acc_delete_finalize_async): Declare.
10958 * openacc_lib.h (acc_copyout_finalize): New interface.
10959 (acc_delete_finalize): New interface.
10960 * target.c (gomp_map_vars): Update dynamic_refcount.
10961 (gomp_remove_var): New function.
10962 (gomp_unmap_vars): Use it.
10963 (gomp_unload_image_from_device): Likewise.
10964 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10965 case to utilize OpenACC 2.5 data clause semantics.
10966 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10967 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10968 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10969 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10970 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10971 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10972 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10973 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10974 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10975 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10976 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10977 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10978 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10979 utilize OpenACC 2.5 data clause semantics.
10980 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10981 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10982 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10983 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10984 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10985 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10986 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10987 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10988 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10990 2018-05-21 Janus Weil <janus@gcc.gnu.org>
10994 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10995 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10996 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10997 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10998 * testsuite/libgomp.fortran/task2.f90: Ditto.
10999 * testsuite/libgomp.fortran/vla1.f90: Ditto.
11000 * testsuite/libgomp.fortran/vla2.f90: Ditto.
11001 * testsuite/libgomp.fortran/vla3.f90: Ditto.
11002 * testsuite/libgomp.fortran/vla4.f90: Ditto.
11003 * testsuite/libgomp.fortran/vla5.f90: Ditto.
11004 * testsuite/libgomp.fortran/vla6.f90: Ditto.
11005 * testsuite/libgomp.fortran/vla8.f90: Ditto.
11006 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11007 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11009 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
11012 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11014 2018-05-09 Tom de Vries <tom@codesourcery.com>
11017 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11018 to GOACC_enter_exit_data.
11020 2018-05-09 Tom de Vries <tom@codesourcery.com>
11023 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11024 (async_synchronous_p): New function.
11025 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11027 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11028 async_valid_stream_id_p.
11029 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11030 * oacc-parallel.c (GOACC_parallel_keyed): Same.
11032 2018-05-07 Tom de Vries <tom@codesourcery.com>
11035 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11036 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11038 2018-05-03 Tom de Vries <tom@codesourcery.com>
11041 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11042 extra_tool_flags if it contains an -foffload=-fdump-* flag.
11043 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11044 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11046 2018-05-02 Tom de Vries <tom@codesourcery.com>
11049 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11050 GOMP_OPENACC_DIM ...
11051 * env.c (parse_gomp_openacc_dim): ... here. New function.
11052 (initialize_env): Call parse_gomp_openacc_dim.
11053 (goacc_default_dims): Define.
11054 * libgomp.h (goacc_default_dims): Declare.
11055 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11056 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11057 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11058 GOMP_PLUGIN_acc_default_dim.
11059 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11060 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11062 2018-05-02 Tom de Vries <tom@codesourcery.com>
11065 * testsuite/libgomp.c++/udr-9.C: Update.
11066 * testsuite/libgomp.c++/atomic-16.C: Remove.
11067 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11068 * testsuite/libgomp.c++/loop-13.C: Remove.
11069 * testsuite/libgomp.c++/loop-14.C: Remove.
11070 * testsuite/libgomp.c++/loop-15.C: Remove.
11071 * testsuite/libgomp.c++/monotonic-1.C: Remove.
11072 * testsuite/libgomp.c++/monotonic-2.C: Remove.
11073 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11074 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11075 * testsuite/libgomp.c++/ordered-1.C: Remove.
11076 * testsuite/libgomp.c++/pr45784.C: Remove.
11077 * testsuite/libgomp.c++/pr64824.C: Remove.
11078 * testsuite/libgomp.c++/pr64868.C: Remove.
11079 * testsuite/libgomp.c++/pr66199-1.C: Remove.
11080 * testsuite/libgomp.c++/pr66199-2.C: Remove.
11081 * testsuite/libgomp.c++/pr66199-3.C: Remove.
11082 * testsuite/libgomp.c++/pr66199-4.C: Remove.
11083 * testsuite/libgomp.c++/pr66199-5.C: Remove.
11084 * testsuite/libgomp.c++/pr66199-6.C: Remove.
11085 * testsuite/libgomp.c++/pr66199-7.C: Remove.
11086 * testsuite/libgomp.c++/pr66199-8.C: Remove.
11087 * testsuite/libgomp.c++/pr66199-9.C: Remove.
11088 * testsuite/libgomp.c++/pr69389.C: Remove.
11089 * testsuite/libgomp.c++/simd10.C: Remove.
11090 * testsuite/libgomp.c++/simd11.C: Remove.
11091 * testsuite/libgomp.c++/simd12.C: Remove.
11092 * testsuite/libgomp.c++/simd13.C: Remove.
11093 * testsuite/libgomp.c++/target-1.C: Remove.
11094 * testsuite/libgomp.c++/target-3.C: Remove.
11095 * testsuite/libgomp.c++/target-4.C: Remove.
11096 * testsuite/libgomp.c++/target-5.C: Remove.
11097 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11098 * testsuite/libgomp.c++/taskloop-1.C: Remove.
11099 * testsuite/libgomp.c++/taskloop-2.C: Remove.
11100 * testsuite/libgomp.c++/taskloop-3.C: Remove.
11101 * testsuite/libgomp.c++/taskloop-4.C: Remove.
11102 * testsuite/libgomp.c++/udr-9.C: Remove.
11103 * testsuite/libgomp.c++/for-10.C: Remove.
11104 * testsuite/libgomp.c++/for-11.C: Remove.
11105 * testsuite/libgomp.c++/for-12.C: Remove.
11106 * testsuite/libgomp.c++/for-13.C: Remove.
11107 * testsuite/libgomp.c++/for-14.C: Remove.
11108 * testsuite/libgomp.c++/for-9.C: Remove.
11109 * testsuite/libgomp.c/atomic-18.c: Move ...
11110 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11111 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11112 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11113 * testsuite/libgomp.c/loop-13.c: Move ...
11114 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11115 * testsuite/libgomp.c/loop-14.c: Move ...
11116 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11117 * testsuite/libgomp.c/loop-15.c: Remove.
11118 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11119 * testsuite/libgomp.c/monotonic-1.c: Move ...
11120 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11121 * testsuite/libgomp.c/monotonic-2.c: Move ...
11122 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11123 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11124 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11125 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11126 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11127 * testsuite/libgomp.c/ordered-4.c: Move ...
11128 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11129 * testsuite/libgomp.c/pr45784.c: Move ...
11130 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11131 * testsuite/libgomp.c/pr64824.c: Move ...
11132 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11133 * testsuite/libgomp.c/pr64868.c: Move ...
11134 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11135 * testsuite/libgomp.c/pr66199-1.c: Move ...
11136 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11137 * testsuite/libgomp.c/pr66199-2.c: Move ...
11138 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11139 * testsuite/libgomp.c/pr66199-3.c: Move ...
11140 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11141 * testsuite/libgomp.c/pr66199-4.c: Move ...
11142 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11143 * testsuite/libgomp.c/pr66199-5.c: Move ...
11144 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11145 * testsuite/libgomp.c/pr66199-6.c: Move ...
11146 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11147 * testsuite/libgomp.c/pr66199-7.c: Move ...
11148 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11149 * testsuite/libgomp.c/pr66199-8.c: Move ...
11150 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11151 * testsuite/libgomp.c/pr66199-9.c: Move ...
11152 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11153 * testsuite/libgomp.c/pr69389.c: Move ...
11154 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11155 * testsuite/libgomp.c/simd-14.c: Move ...
11156 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11157 * testsuite/libgomp.c/simd-15.c: Move ...
11158 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11159 * testsuite/libgomp.c/simd-16.c: Move ...
11160 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11161 * testsuite/libgomp.c/simd-17.c: Move ...
11162 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11163 * testsuite/libgomp.c/target-1.c: Move ...
11164 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11165 * testsuite/libgomp.c/target-10.c: Move ...
11166 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11167 * testsuite/libgomp.c/target-13.c: Move ...
11168 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11169 * testsuite/libgomp.c/target-2.c: Move ...
11170 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11171 * testsuite/libgomp.c/taskgroup-1.c: Move ...
11172 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11173 * testsuite/libgomp.c/taskloop-1.c: Move ...
11174 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11175 * testsuite/libgomp.c/taskloop-2.c: Move ...
11176 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11177 * testsuite/libgomp.c/taskloop-3.c: Move ...
11178 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11179 * testsuite/libgomp.c/taskloop-4.c: Move ...
11180 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11181 * testsuite/libgomp.c/udr-1.c: Move ...
11182 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11183 * testsuite/libgomp.c/for-1.c: Move ...
11184 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11185 * testsuite/libgomp.c/for-1.h: Move ...
11186 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11187 * testsuite/libgomp.c/for-2.c: Move ...
11188 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11189 * testsuite/libgomp.c/for-2.h: Move ...
11190 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11191 * testsuite/libgomp.c/for-3.c: Move ...
11192 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11193 * testsuite/libgomp.c/for-4.c: Move ...
11194 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11195 * testsuite/libgomp.c/for-5.c: Move ...
11196 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11197 * testsuite/libgomp.c/for-6.c: Move ...
11198 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11200 2018-05-02 Tom de Vries <tom@codesourcery.com>
11203 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11204 __builtin_goacc_parlevel_{id,size}.
11205 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11206 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11207 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11208 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11209 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11210 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11211 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11212 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11213 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11214 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11215 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11216 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11217 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11218 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11219 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11220 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11221 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11222 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11223 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11224 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11225 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11226 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11227 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11229 2018-05-02 Tom de Vries <tom@codesourcery.com>
11232 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11234 2018-05-02 Tom de Vries <tom@codesourcery.com>
11237 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11239 2018-04-29 Julian Brown <julian@codesourcery.com>
11240 Tom de Vries <tom@codesourcery.com>
11243 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11244 arbitrary order for iterations of atomic subtract check.
11246 2018-04-28 Tom de Vries <tom@codesourcery.com>
11249 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11250 atomic capture results obtained in parallel loop to an array, instead of
11253 2018-04-26 Tom de Vries <tom@codesourcery.com>
11256 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11257 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11258 (process_GOMP_NVPTX_JIT): New function.
11259 (link_ptx): Use process_GOMP_NVPTX_JIT.
11261 2018-04-26 Richard Biener <rguenther@suse.de>
11262 Tom de Vries <tom@codesourcery.com>
11265 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11267 2018-04-26 Tom de Vries <tom@codesourcery.com>
11270 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11271 recursion depth from 25 to 23.
11272 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11274 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11276 * configure: Regenerated.
11278 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11279 Tom de Vries <tom@codesourcery.com>
11282 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11284 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11287 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11288 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11289 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11290 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11291 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11292 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11294 PR libfortran/85166
11295 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11297 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11299 2018-04-19 Jakub Jelinek <jakub@redhat.com>
11301 * configure: Regenerated.
11303 2018-04-18 David Malcolm <dmalcolm@redhat.com>
11306 * configure: Regenerate.
11308 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11309 Tom de Vries <tom@codesourcery.com>
11311 PR middle-end/84955
11312 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11313 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11315 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11319 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11320 test from gfortran.dg to here.
11322 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11324 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11325 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11327 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11329 PR middle-end/84955
11330 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11331 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11333 2018-04-05 Tom de Vries <tom@codesourcery.com>
11336 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11338 2018-03-26 Tom de Vries <tom@codesourcery.com>
11340 PR tree-optimization/85063
11341 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11342 * testsuite/libgomp.c/switch-conversion.c: New test.
11343 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11344 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11346 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11349 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11350 call abort by STOP n.
11351 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11352 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11353 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11354 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11355 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11356 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11357 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11358 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11359 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11360 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11361 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11362 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11363 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11364 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11365 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11366 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11367 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11368 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11369 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11370 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11371 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11372 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11373 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11374 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11375 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11376 * testsuite/libgomp.fortran/character1.f90: Likewise.
11377 * testsuite/libgomp.fortran/character2.f90: Likewise.
11378 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11379 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11380 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11381 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11382 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11383 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11384 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11385 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11386 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11387 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11388 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11389 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11390 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11391 * testsuite/libgomp.fortran/do1.f90: Likewise.
11392 * testsuite/libgomp.fortran/do2.f90: Likewise.
11393 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11394 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11395 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11396 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11397 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11398 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11399 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11400 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11401 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11402 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11403 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11404 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11405 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11406 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11407 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11408 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11409 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11410 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11411 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11412 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11413 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11414 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11415 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11416 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11417 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11418 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11419 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11420 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11421 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11422 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11423 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11424 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11425 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11426 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11427 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11428 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11429 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11430 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11431 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11432 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11433 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11434 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11435 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11436 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11437 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11438 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11439 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11440 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11441 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11442 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11443 * testsuite/libgomp.fortran/lib2.f: Likewise.
11444 * testsuite/libgomp.fortran/lib3.f: Likewise.
11445 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11446 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11447 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11448 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11449 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11450 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11451 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11452 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11453 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11454 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11455 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11456 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11457 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11458 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11459 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11460 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11461 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11462 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11463 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11464 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11465 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11466 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11467 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11468 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11469 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11470 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11471 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11472 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11473 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11474 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11475 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11476 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11477 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11478 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11479 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11480 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11481 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11482 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11483 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11484 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11485 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11486 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11487 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11488 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11489 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11490 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11491 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11492 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11493 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11494 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11495 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11496 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11497 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11498 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11499 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11500 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11501 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11502 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11503 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11504 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11505 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11506 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11507 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11508 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11509 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11510 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11511 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11512 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11513 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11514 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11515 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11516 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11517 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11518 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11519 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11520 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11521 * testsuite/libgomp.fortran/stack.f90: Likewise.
11522 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11523 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11524 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11525 * testsuite/libgomp.fortran/target1.f90: Likewise.
11526 * testsuite/libgomp.fortran/target2.f90: Likewise.
11527 * testsuite/libgomp.fortran/target3.f90: Likewise.
11528 * testsuite/libgomp.fortran/target4.f90: Likewise.
11529 * testsuite/libgomp.fortran/target5.f90: Likewise.
11530 * testsuite/libgomp.fortran/target6.f90: Likewise.
11531 * testsuite/libgomp.fortran/target7.f90: Likewise.
11532 * testsuite/libgomp.fortran/target8.f90: Likewise.
11533 * testsuite/libgomp.fortran/task1.f90: Likewise.
11534 * testsuite/libgomp.fortran/task2.f90: Likewise.
11535 * testsuite/libgomp.fortran/task3.f90: Likewise.
11536 * testsuite/libgomp.fortran/task4.f90: Likewise.
11537 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11538 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11539 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11540 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11541 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11542 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11543 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11544 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11545 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11546 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11547 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11548 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11549 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11550 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11551 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11552 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11553 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11554 * testsuite/libgomp.fortran/udr3.f90: Likewise.
11555 * testsuite/libgomp.fortran/udr4.f90: Likewise.
11556 * testsuite/libgomp.fortran/udr5.f90: Likewise.
11557 * testsuite/libgomp.fortran/udr6.f90: Likewise.
11558 * testsuite/libgomp.fortran/udr7.f90: Likewise.
11559 * testsuite/libgomp.fortran/udr8.f90: Likewise.
11560 * testsuite/libgomp.fortran/udr9.f90: Likewise.
11561 * testsuite/libgomp.fortran/vla1.f90: Likewise.
11562 * testsuite/libgomp.fortran/vla2.f90: Likewise.
11563 * testsuite/libgomp.fortran/vla3.f90: Likewise.
11564 * testsuite/libgomp.fortran/vla4.f90: Likewise.
11565 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11566 * testsuite/libgomp.fortran/vla6.f90: Likewise.
11567 * testsuite/libgomp.fortran/vla7.f90: Likewise.
11568 * testsuite/libgomp.fortran/vla8.f90: Likewise.
11569 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11570 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11571 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11572 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11573 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11574 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11575 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11576 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11577 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11578 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11579 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11580 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11581 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11582 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11583 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11584 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11585 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11586 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11587 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11588 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11589 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11590 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11591 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11592 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11593 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11594 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11595 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11596 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11597 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11598 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11599 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11600 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11601 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11602 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11603 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11604 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11605 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11606 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11607 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11608 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11609 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11610 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11611 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11612 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11613 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11614 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11615 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11616 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11617 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11618 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11619 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11620 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11621 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11622 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11623 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11624 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11625 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11626 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11627 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11628 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11629 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11630 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11631 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11632 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11633 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11634 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11635 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11636 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11637 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11638 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11639 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11640 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11641 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11642 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11643 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11644 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11645 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11646 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11647 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11648 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11649 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11650 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11651 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11652 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11653 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11654 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11655 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11656 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11657 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11658 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11659 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11660 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11661 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11662 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11664 2018-03-20 Richard Biener <rguenther@suse.de>
11666 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11667 parallelizable loop.
11669 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11672 * configure: Regenerate.
11674 2018-02-16 Jakub Jelinek <jakub@redhat.com>
11677 * libgomp.fortran/pr84418-1.f90: New test.
11678 * libgomp.fortran/pr84418-2.f90: New test.
11680 2018-02-14 Jakub Jelinek <jakub@redhat.com>
11683 * testsuite/libgomp.fortran/threadprivate4.f90: Add
11684 -std=f2003 -fall-intrinsics into dg-additional-options.
11686 2018-02-08 Martin Jambor <mjambor@suse.cz>
11688 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11691 2018-02-08 Martin Jambor <mjambor@suse.cz>
11693 * testsuite/libgomp.hsa.c/staticvar.c: New test.
11695 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11697 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11698 [__cplusplus]: Declare extern "C".
11700 2018-02-07 Tom de Vries <tom@codesourcery.com>
11703 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11705 2018-01-29 Christoph Spiel <cspiel@freenet.de>
11706 Jakub Jelinek <jakub@redhat.com>
11709 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11710 instead of omp_lock_t.
11712 2018-01-25 Tom de Vries <tom@codesourcery.com>
11715 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11717 2018-01-24 Tom de Vries <tom@codesourcery.com>
11720 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11722 2018-01-24 Tom de Vries <tom@codesourcery.com>
11725 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11727 2018-01-19 Tom de Vries <tom@codesourcery.com>
11728 Cesar Philippidis <cesar@codesourcery.com>
11731 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11732 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11734 2018-01-03 Jakub Jelinek <jakub@redhat.com>
11736 Update copyright years.
11738 * libgomp.texi: Bump @copying's copyright year.
11740 2017-12-30 Tom de Vries <tom@codesourcery.com>
11743 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11744 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11746 2017-12-27 Tom de Vries <tom@codesourcery.com>
11749 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11750 (test_nonstatic): Fix return type to workaround PR83046.
11752 2017-12-05 Jakub Jelinek <jakub@redhat.com>
11755 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11756 j suffix instead of i.
11757 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11760 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
11762 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11763 call to acc_wait (1).
11765 2017-11-24 Jakub Jelinek <jakub@redhat.com>
11768 * testsuite/libgomp.fortran/pr81304.f90: New test.
11770 2017-11-23 Jakub Jelinek <jakub@redhat.com>
11773 * libgomp.fortran/pr81841.f90: New test.
11775 2017-11-22 Jakub Jelinek <jakub@redhat.com>
11778 * target.c (gomp_target_init): Compute lengths just once and
11779 use them in both malloc size and subsequent copying.
11781 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11783 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11784 * acinclude.m4: Add cet.m4.
11785 * configure: Regenerate.
11786 * Makefile.in: Likewise.
11787 * testsuite/Makefile.in: Likewise.
11789 2017-11-15 Tom de Vries <tom@codesourcery.com>
11791 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11792 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
11793 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11794 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
11795 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11796 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
11798 2017-11-14 Tom de Vries <tom@codesourcery.com>
11800 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11801 non-nvidia devices.
11803 2017-11-07 Jakub Jelinek <jakub@redhat.com>
11806 * testsuite/libgomp.c++/pr82835.C: New test.
11808 2017-11-06 Martin Liska <mliska@suse.cz>
11810 * testsuite/libgomp.c++/loop-2.C: Return a value
11811 for functions with non-void return type, or change type to void,
11812 or add -Wno-return-type for test.
11813 * testsuite/libgomp.c++/loop-4.C: Likewise.
11814 * testsuite/libgomp.c++/parallel-1.C: Likewise.
11815 * testsuite/libgomp.c++/shared-1.C: Likewise.
11816 * testsuite/libgomp.c++/single-1.C: Likewise.
11817 * testsuite/libgomp.c++/single-2.C: Likewise.
11819 2017-10-31 Tom de Vries <tom@codesourcery.com>
11821 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11822 "do {} while (false)".
11823 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11824 after HSA_DEBUG call.
11826 2017-10-28 Jakub Jelinek <jakub@redhat.com>
11828 * target.c (struct gomp_coalesce_buf): New type.
11829 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11830 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11831 (gomp_copy_host2dev): Add CBUF argument, if copying into
11832 the cached ranges, memcpy into buffer instead of copying
11834 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11835 Add CBUF argument, pass it through to other calls.
11836 (gomp_map_vars): Aggregate copies from host to device if small enough
11837 and with small enough gaps in between into memcpy into a buffer and
11838 fewer host to device copies from the buffer.
11839 (gomp_update): Adjust gomp_copy_host2dev caller.
11841 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
11843 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11845 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11846 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11847 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11848 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11850 2017-10-16 Tom de Vries <tom@codesourcery.com>
11852 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11853 openacc_nvidia_accel_selected.
11854 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11855 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11856 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11857 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11858 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11859 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11860 openacc_nvidia_accel_selected. Skip for shared memory device.
11861 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11862 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11864 2017-10-09 Martin Jambor <mjambor@suse.cz>
11867 * testsuite/libgomp.hsa.c/pr82416.c: New test.
11869 2017-10-07 Tom de Vries <tom@codesourcery.com>
11871 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11872 Remove acc_device_nvidia references.
11873 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11876 2017-10-05 Tom de Vries <tom@codesourcery.com>
11878 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11879 vector_length(32) clause from acc parallel directive.
11880 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11882 2017-10-04 Tom de Vries <tom@codesourcery.com>
11884 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11885 (main): Reduce sum of arr elements. Assert that hres is exactly
11886 representable in 32-bit floating point.
11887 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11888 (main): Reduce sum of arr elements. Assert that hres and hmres are
11889 exactly representable in 32-bit floating point.
11890 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11892 2017-09-28 Tom de Vries <tom@codesourcery.com>
11894 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11896 * testsuite/libgomp.c++/pr69393.C: Same.
11897 * testsuite/libgomp.c++/taskloop-1.C: Same.
11898 * testsuite/libgomp.c++/taskloop-3.C: Same.
11899 * testsuite/libgomp.c++/taskloop-4.C: Same.
11900 * testsuite/libgomp.c/for-4.c: Same.
11901 * testsuite/libgomp.c/pr66199-3.c: Same.
11902 * testsuite/libgomp.c/pr66199-4.c: Same.
11903 * testsuite/libgomp.c/pr66199-6.c: Same.
11904 * testsuite/libgomp.c/taskloop-1.c: Same.
11905 * testsuite/libgomp.c/taskloop-3.c: Same.
11906 * testsuite/libgomp.c/taskloop-4.c: Same.
11907 * testsuite/libgomp.fortran/aligned1.f03: Same.
11908 * testsuite/libgomp.fortran/condinc1.f: Same.
11909 * testsuite/libgomp.fortran/condinc3.f90: Same.
11910 * testsuite/libgomp.fortran/crayptr1.f90: Same.
11911 * testsuite/libgomp.fortran/crayptr2.f90: Same.
11912 * testsuite/libgomp.fortran/crayptr3.f90: Same.
11913 * testsuite/libgomp.fortran/omp_cond1.f: Same.
11914 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11915 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11916 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11917 * testsuite/libgomp.fortran/recursion1.f90: Same.
11918 * testsuite/libgomp.fortran/target2.f90: Same.
11919 * testsuite/libgomp.fortran/target5.f90: Same.
11920 * testsuite/libgomp.fortran/task3.f90: Same.
11922 2017-09-28 Tom de Vries <tom@codesourcery.com>
11924 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11925 vector_length(32) clause from acc parallel directive.
11926 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11928 2017-09-27 Tom de Vries <tom@codesourcery.com>
11930 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11931 Remove acc_device_nvidia references.
11933 2017-09-16 Tom de Vries <tom@codesourcery.com>
11936 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11938 2017-09-14 Tom de Vries <tom@codesourcery.com>
11940 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11941 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11942 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11943 * testsuite/libgomp.c/c.exp: Include test-cases from
11944 libgomp.c-c++-common.
11945 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
11948 2017-09-14 Jakub Jelinek <jakub@redhat.com>
11951 * testsuite/libgomp.c++/pr81314.C: New test.
11953 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
11955 * libgomp.texi (Top): www.openacc.org now uses https.
11956 (Enabling OpenACC): Ditto.
11957 (acc_get_num_devices): Ditto.
11958 (acc_set_device_type): Ditto.
11959 (acc_get_device_type): Ditto.
11960 (acc_set_device_num): Ditto.
11961 (acc_get_device_num): Ditto.
11962 (acc_async_test): Ditto.
11963 (acc_async_test_all): Ditto.
11965 (acc_wait_all): Ditto.
11966 (acc_wait_all_async): Ditto.
11967 (acc_wait_async): Ditto.
11969 (acc_shutdown): Ditto.
11970 (acc_on_device): Ditto.
11971 (acc_malloc): Ditto.
11973 (acc_copyin): Ditto.
11974 (acc_present_or_copyin): Ditto.
11975 (acc_create): Ditto.
11976 (acc_present_or_create): Ditto.
11977 (acc_copyout): Ditto.
11978 (acc_delete): Ditto.
11979 (acc_update_device): Ditto.
11980 (acc_update_self): Ditto.
11981 (acc_map_data): Ditto.
11982 (acc_unmap_data): Ditto.
11983 (acc_deviceptr): Ditto.
11984 (acc_hostptr): Ditto.
11985 (acc_is_present): Ditto.
11986 (acc_memcpy_to_device): Ditto.
11987 (acc_memcpy_from_device): Ditto.
11988 (acc_get_current_cuda_device): Ditto.
11989 (acc_get_current_cuda_context): Ditto.
11990 (acc_get_cuda_stream): Ditto.
11991 (acc_set_cuda_stream): Ditto.
11992 (ACC_DEVICE_TYPE): Ditto.
11993 (ACC_DEVICE_NUM): Ditto.
11994 (OpenACC Library Interoperability): Ditto.
11996 2017-08-09 Jakub Jelinek <jakub@redhat.com>
11999 * testsuite/libgomp.c/pr81687-1.c: New test.
12000 * testsuite/libgomp.c/pr81687-2.c: New test.
12002 2017-08-07 Jakub Jelinek <jakub@redhat.com>
12005 * testsuite/libgomp.c/pr69389.c: New test.
12006 * testsuite/libgomp.c++/pr69389.C: New test.
12008 2017-08-07 Tom de Vries <tom@codesourcery.com>
12010 PR middle-end/78266
12011 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12012 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12014 2017-07-27 Jakub Jelinek <jakub@redhat.com>
12017 * testsuite/libgomp.c/pr45784.c: New test.
12018 * testsuite/libgomp.c++/pr45784.C: New test.
12020 2017-07-19 Tom de Vries <tom@codesourcery.com>
12022 * testsuite/libgomp.oacc-c/vec.c: New test.
12024 2017-07-03 Tom de Vries <tom@codesourcery.com>
12026 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12028 2017-06-27 Tom de Vries <tom@codesourcery.com>
12030 * plugin/plugin-nvptx.c (notify_var): New function.
12031 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12033 2017-06-27 Tom de Vries <tom@codesourcery.com>
12035 * env.c (parse_unsigned_long_1): Factor out of ...
12036 (parse_unsigned_long): ... here.
12037 (parse_int_1): Factor out of ...
12038 (parse_int): ... here.
12039 (parse_int_secure): New function.
12040 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12041 * secure_getenv.h: Factor out of ...
12042 * plugin/plugin-hsa.c: ... here.
12043 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12045 2017-06-21 Jakub Jelinek <jakub@redhat.com>
12048 * testsuite/libgomp.c++/pr81130.C: New test.
12050 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12052 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12054 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12055 dg-xfail-run-if default args.
12057 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12059 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12060 * testsuite/libgomp.c/pr39591-3.c: Likewise.
12062 2017-05-30 Jakub Jelinek <jakub@redhat.com>
12065 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12066 (gomp_affinity_init_level): Use it. Always analyze the core and thread
12067 sibling lists, depending on level just pick up what CPUs to put
12068 together into a place vs. whether add multiple ordered places.
12070 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
12072 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12073 * libgomp.map (OACC_2.0.1): Add these.
12074 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12075 for "acc_wait", and "acc_wait_all", respectively.
12076 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12077 for "acc_wait", and "acc_wait_all", respectively.
12078 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12079 * libgomp.texi (acc_wait, acc_wait_all): Update.
12080 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12081 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12082 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12084 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12085 acc_present_or_copyin and acc_present_or_create procedures,
12087 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12088 generally different variants of OpenACC Runtime Library functions.
12089 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12091 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12092 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12094 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12095 of preprocessor definitions.
12096 * libgomp.h (strong_alias): Guard by "#ifdef
12097 HAVE_ATTRIBUTE_ALIAS".
12098 * oacc-mem.c: Provide "acc_pcreate" as alias for
12099 "acc_present_or_create", and "acc_pcopyin" as alias for
12100 "acc_present_or_copyin".
12101 * libgomp.map: New version "OACC_2.0.1".
12102 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12103 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12104 its content into...
12105 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12108 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12109 when disabling nvptx offloading.
12111 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
12113 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12114 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12115 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12117 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12118 * testsuite/lib/libgomp.exp
12119 (check_effective_target_openacc_nvidia_accel_configured): New
12121 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12122 (check_effective_target_c++): New procs.
12123 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12124 (check_effective_target_c++): Likewise.
12126 2017-05-22 Jakub Jelinek <jakub@redhat.com>
12128 PR middle-end/80809
12129 * testsuite/libgomp.c/pr80809-2.c: New test.
12130 * testsuite/libgomp.c/pr80809-3.c: New test.
12132 PR middle-end/80809
12133 * testsuite/libgomp.c/pr80809-1.c: New test.
12135 PR middle-end/80853
12136 * testsuite/libgomp.c/pr80853.c: New test.
12138 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
12140 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12141 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12142 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12143 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12144 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12146 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12147 Debug output for failure.
12149 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12151 * testsuite/lib/libgomp.exp: Load scanlang.exp.
12153 2017-04-27 Jakub Jelinek <jakub@redhat.com>
12156 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12157 bootstrap compare failures.
12159 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
12161 * testsuite/libgomp.c/target-36.c: New testcase.
12163 2017-04-13 Jakub Jelinek <jakub@redhat.com>
12165 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12168 2017-04-11 Jakub Jelinek <jakub@redhat.com>
12171 * testsuite/libgomp.c/pr80394.c: New test.
12173 2017-04-04 Jakub Jelinek <jakub@redhat.com>
12176 * config/posix/thread-stacksize.h: New file.
12177 * config/darwin/thread-stacksize.h: New file.
12178 * config/nvptx/thread-stacksize.h: New file.
12179 * env.c: Include thread-stacksize.h.
12180 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12181 instead of 0. Call pthread_attr_setstacksize even if
12182 GOMP_DEFAULT_STACKSIZE is non-zero.
12184 2017-03-30 Jakub Jelinek <jakub@redhat.com>
12186 * env.c (initialize_env): Initialize stacksize to 0.
12188 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
12191 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12193 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12196 * testsuite/libgomp.c/pr79940.c: New test.
12198 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12200 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12202 Add __float128 options.
12204 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
12206 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12207 hppa*-*-* dg-skip-if directive.
12209 2017-02-09 Jakub Jelinek <jakub@redhat.com>
12211 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12212 dg-skip-if directive into a comment.
12214 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12215 Chung-Lin Tang <cltang@codesourcery.com>
12217 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12218 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12219 add additional case.
12220 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12221 "openacc_nvidia_accel_selected".
12222 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12223 Add num_workers(8) clause.
12225 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
12227 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12229 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12230 include complex.h on hppa*-*-hpux*.
12231 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12233 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
12235 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12237 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12238 GOMP_OFFLOAD_openacc_exec. Adjust all users.
12239 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12240 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
12241 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12242 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
12243 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12244 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
12245 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12246 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
12248 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12250 * libgomp-plugin.h: #include <stdbool.h>.
12251 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12252 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12253 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12254 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12255 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12256 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12257 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12258 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12259 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12260 (GOMP_OFFLOAD_openacc_async_test)
12261 (GOMP_OFFLOAD_openacc_async_test_all)
12262 (GOMP_OFFLOAD_openacc_async_wait)
12263 (GOMP_OFFLOAD_openacc_async_wait_async)
12264 (GOMP_OFFLOAD_openacc_async_wait_all)
12265 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12266 (GOMP_OFFLOAD_openacc_async_set_async)
12267 (GOMP_OFFLOAD_openacc_create_thread_data)
12268 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12269 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12270 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12271 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12272 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12273 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12275 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12276 (GOMP_OFFLOAD_unload_image): Fix argument types.
12278 2017-01-26 Jakub Jelinek <jakub@redhat.com>
12280 * testsuite/lib/libgomp.exp
12281 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12282 check_compile invocation. Fix up removal of executable. Drop
12283 bogus "2>&1" argument.
12285 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12288 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
12289 Martin Jambor <mjambor@suse.cz>
12291 * plugin/hsa.h: Moved to top level include.
12292 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12294 2017-01-21 Jakub Jelinek <jakub@redhat.com>
12297 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12298 of cat to get version from BASE-VER file.
12299 * testsuite/Makefile.in: Regenerated.
12301 2017-01-19 Jakub Jelinek <jakub@redhat.com>
12303 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12306 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12308 * plugin/hsa.h: Add GCC runtime library exception.
12309 * plugin/hsa_ext_finalize.h: Likewise.
12311 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12312 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12313 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12314 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12315 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12316 library to link ptx plugin against.
12317 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12318 (CUDA_CALLS): Define.
12319 (cuda_lib, cuda_lib_inited): New variables.
12320 (init_cuda_lib): New function.
12321 (CUDA_CALL_PREFIX): Define.
12322 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12323 (CUDA_CALL): Use FN instead of (FN).
12324 (CUDA_CALL_NOCHECK): Define.
12325 (cuda_error, fini_streams_for_device, select_stream_for_async,
12326 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12327 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12328 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12329 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12331 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12333 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12334 Use CUDA_CALL_NOCHECK.
12335 * plugin/cuda/cuda.h: New file.
12336 * config.h.in: Regenerated.
12337 * configure: Regenerated.
12340 * configure.ac: Add GCC_BASE_VER.
12341 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12342 get version from BASE-VER file.
12343 * testsuite/Makefile.in: Regenerated.
12344 * configure: Regenerated.
12345 * Makefile.in: Regenerated.
12347 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12350 * Makefile.am: Make fincludedir multilib-aware.
12351 * Makefile.in: Regenerate.
12353 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12355 Update copyright years.
12357 * libgomp.texi: Bump @copying's copyright year.
12359 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12361 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12362 pthread_spinlock_t instead of gomp_mutex_t lock.
12363 (gomp_get_thread_pool): Likewise.
12364 (gomp_release_thread_pool): Likewise.
12365 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12368 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12370 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12371 thread pool in case nthreads == 1.
12373 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12375 * config/nvptx/env.c: Delete.
12376 * icv.c: Move definitions of ICV variables back ...
12377 * env.c: ...here. Do not compile environment-related functionality if
12378 LIBGOMP_OFFLOADED_ONLY is set.
12380 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12382 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12383 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12384 * configure: Regenerate.
12385 * config.h.in: Likewise.
12387 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12389 * Makefile.in: Regenerate with automake-1.11.6.
12390 * aclocal.m4: Likewise.
12391 * configure: Likewise.
12392 * testsuite/Makefile.in: Likewise.
12394 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
12396 * config/nvptx/critical.c: Delete to use generic implementation.
12398 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12400 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12401 ../../affinity.c as fallback.
12402 * config/nvptx/affinity.c: Delete to use fallback implementation.
12404 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
12405 Jakub Jelinek <jakub@redhat.com>
12406 Dmitry Melnik <dm@ispras.ru>
12408 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12409 * Makefile.in. Regenerate.
12410 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12411 (LIBGOMP_USE_PTHREADS): ...here; new define.
12412 * configure: Regenerate.
12413 * config.h.in: Likewise.
12414 * config/posix/affinity.c: Move to...
12415 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12416 interface by LIBGOMP_USE_PTHREADS.
12417 * critical.c: Split out GOMP_atomic_{start,end} into...
12418 * atomic.c: ...here (new file).
12419 * env.c: Split out ICV definitions into...
12420 * icv.c: ...here (new file) and...
12421 * icv-device.c: ...here. New file.
12422 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12423 (gomp_destroy_lock_30): Ditto.
12424 (gomp_set_lock_30): Ditto.
12425 (gomp_unset_lock_30): Ditto.
12426 (gomp_test_lock_30): Ditto.
12427 (gomp_init_nest_lock_30): Ditto.
12428 (gomp_destroy_nest_lock_30): Ditto.
12429 (gomp_set_nest_lock_30): Ditto.
12430 (gomp_unset_nest_lock_30): Ditto.
12431 (gomp_test_nest_lock_30): Ditto.
12433 * config/nvptx/lock.c: New.
12434 * config/nvptx/bar.c: New.
12435 * config/nvptx/bar.h: New.
12436 * config/nvptx/doacross.h: New.
12437 * config/nvptx/error.c: New.
12438 * config/nvptx/icv-device.c: New.
12439 * config/nvptx/mutex.h: New.
12440 * config/nvptx/pool.h: New.
12441 * config/nvptx/proc.c: New.
12442 * config/nvptx/ptrlock.h: New.
12443 * config/nvptx/sem.h: New.
12444 * config/nvptx/simple-bar.h: New.
12445 * config/nvptx/target.c: New.
12446 * config/nvptx/task.c: New.
12447 * config/nvptx/team.c: New.
12448 * config/nvptx/time.c: New.
12449 * config/posix/simple-bar.h: New.
12450 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12451 (gomp_num_teams_var): Declare.
12452 (struct gomp_thread_pool): Change threads_dock member to
12453 gomp_simple_barrier_t.
12454 [__nvptx__] (gomp_thread): New implementation.
12455 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12456 (gomp_thread_destructor): Ditto.
12457 (gomp_init_thread_affinity): Ditto.
12458 * team.c: Guard uses of Pthreads-specific interfaces by
12459 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12460 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12461 * config/nvptx/alloc.c: Delete.
12462 * config/nvptx/barrier.c: Ditto.
12463 * config/nvptx/fortran.c: Ditto.
12464 * config/nvptx/iter.c: Ditto.
12465 * config/nvptx/iter_ull.c: Ditto.
12466 * config/nvptx/loop.c: Ditto.
12467 * config/nvptx/loop_ull.c: Ditto.
12468 * config/nvptx/ordered.c: Ditto.
12469 * config/nvptx/parallel.c: Ditto.
12470 * config/nvptx/priority_queue.c: Ditto.
12471 * config/nvptx/sections.c: Ditto.
12472 * config/nvptx/single.c: Ditto.
12473 * config/nvptx/splay-tree.c: Ditto.
12474 * config/nvptx/work.c: Ditto.
12475 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12476 -foffload=-lgfortran in addition to -lgfortran.
12477 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12478 * plugin/plugin-nvptx.c: Include <limits.h>.
12479 (struct targ_fn_descriptor): Add new fields.
12480 (struct ptx_device): Ditto. Set them...
12481 (nvptx_open_device): ...here.
12482 (nvptx_adjust_launch_bounds): New.
12483 (nvptx_host2dev): Allow NULL 'nvthd'.
12484 (nvptx_dev2host): Ditto.
12485 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12486 (link_ptx): Adjust log sizes.
12487 (nvptx_host2dev): Allow NULL 'nvthd'.
12488 (nvptx_dev2host): Ditto.
12489 (nvptx_set_clocktick): New. Use it...
12490 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12492 (GOMP_OFFLOAD_dev2dev): New.
12493 (nvptx_adjust_launch_bounds): New.
12494 (nvptx_stacks_size): New.
12495 (nvptx_stacks_alloc): New.
12496 (nvptx_stacks_free): New.
12497 (GOMP_OFFLOAD_run): New.
12498 (GOMP_OFFLOAD_async_run): New (stub).
12500 2016-11-23 Martin Jambor <mjambor@suse.cz>
12502 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12503 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12504 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12506 2016-11-23 Martin Liska <mliska@suse.cz>
12507 Martin Jambor <mjambor@suse.cz>
12509 * plugin/hsa.h: New file.
12510 * plugin/hsa_ext_finalize.h: New file.
12511 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12512 header file unistd.h, and functions secure_getenv, __secure_getenv,
12513 getuid, geteuid, getgid and getegid.
12514 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12516 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12517 Handle various cases of secure_getenv presence, add an implementation
12518 when we can test effective UID and GID.
12519 (struct hsa_runtime_fn_info): New structure.
12520 (hsa_runtime_fn_info hsa_fns): New variable.
12521 (hsa_runtime_lib): Likewise.
12522 (support_cpu_devices): Likewise.
12523 (init_enviroment_variables): Load newly introduced ENV
12525 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12526 (hsa_fatal): Likewise.
12527 (DLSYM_FN): New macro.
12528 (init_hsa_runtime_functions): New function.
12529 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12530 structure. Depending on environment, also allow CPU devices.
12531 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12532 (get_kernarg_memory_region): Likewise.
12533 (GOMP_OFFLOAD_init_device): Likewise.
12534 (destroy_hsa_program): Likewise.
12535 (init_basic_kernel_info): New function.
12536 (GOMP_OFFLOAD_load_image): Use it.
12537 (create_and_finalize_hsa_program): Call hsa run-time functions via
12539 (create_single_kernel_dispatch): Likewise.
12540 (release_kernel_dispatch): Likewise.
12541 (init_single_kernel): Likewise.
12542 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12543 (get_group_size): New function.
12544 (run_kernel): Likewise.
12545 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12546 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12548 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12549 * testsuite/libgomp-test-support.exp.in: Likewise.
12550 * Makefile.in: Regenerated.
12551 * aclocal.m4: Likewise.
12552 * config.h.in: Likewise.
12553 * configure: Likewise.
12554 * testsuite/Makefile.in: Likewise.
12556 2016-11-15 Martin Jambor <mjambor@suse.cz>
12557 Alexander Monakov <amonakov@ispras.ru>
12559 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12560 mapping clauses to target constructs.
12561 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12563 2016-11-15 Matthias Klose <doko@ubuntu.com>
12565 * configure: Regenerate.
12567 2016-11-10 Jakub Jelinek <jakub@redhat.com>
12569 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12570 * omp_lib.h.in (openmp_version): Likewise.
12571 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12573 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12575 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12576 (fib_wrapper): Add map(from: x) clause.
12577 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12578 (e_53_2): Likewise.
12579 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12580 (accum): Add map(tmp) clause.
12581 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12582 (accum): Add map(tofrom: tmp) clause.
12583 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12584 (gramSchmidt): Likewise.
12585 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12586 map(tofrom: sum) clause.
12587 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12588 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
12589 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12590 only allowed on the loop iterator.
12591 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12592 * testsuite/libgomp.fortran/taskloop2.f90: New test.
12593 * testsuite/libgomp.fortran/taskloop4.f90: New test.
12594 * testsuite/libgomp.fortran/doacross1.f90: New test.
12595 * testsuite/libgomp.fortran/doacross3.f90: New test.
12596 * testsuite/libgomp.fortran/taskloop1.f90: New test.
12597 * testsuite/libgomp.fortran/taskloop3.f90: New test.
12598 * testsuite/libgomp.fortran/doacross2.f90: New test.
12599 * testsuite/libgomp.c/doacross-1.c (main): Add missing
12600 #pragma omp atomic read.
12601 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12602 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12604 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
12605 Nathan Sidwell <nathan@acm.org>
12607 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12608 to determine default geometry.
12609 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12612 2016-11-01 Jakub Jelinek <jakub@redhat.com>
12614 * hashtab.h: Use standard GPLv3 with runtime exception
12617 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
12619 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12620 size when allocating new thread.
12622 2016-09-14 Marek Polacek <polacek@redhat.com>
12624 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12626 2016-08-19 Jakub Jelinek <jakub@redhat.com>
12629 * testsuite/libgomp.fortran/pr71014.f90: New test.
12631 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
12633 PR middle-end/70895
12634 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12635 firstprivate clauses.
12636 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12638 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12639 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12640 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12641 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12642 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12643 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12644 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12645 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12646 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12647 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12648 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12649 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12651 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
12654 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12656 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12659 * testsuite/libgomp.c++/pr58706.C: New test.
12661 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
12663 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12664 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12665 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12667 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12668 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12670 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12672 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12673 test, and don't hardcode -O0.
12675 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12677 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12679 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12681 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12684 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
12686 PR middle-end/71734
12687 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12688 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12690 2016-07-01 Jakub Jelinek <jakub@redhat.com>
12693 * testsuite/libgomp.fortran/associate3.f90: New test.
12695 2016-06-17 Jakub Jelinek <jakub@redhat.com>
12697 * testsuite/libgomp.c++/target-21.C: New test.
12699 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12701 * testsuite/libgomp.c++/target-20.C: New test.
12703 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12704 Cesar Philippidis <cesar@codesourcery.com>
12706 PR middle-end/71373
12707 * libgomp.oacc-c/nested-function-1.c: New file.
12708 * libgomp.oacc-c/nested-function-2.c: Likewise.
12709 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12710 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12711 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12713 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12716 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12717 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12718 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12720 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
12722 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12723 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12725 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
12728 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12730 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12732 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12733 instead of invalid schedule(static, 0).
12734 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12736 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12738 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12739 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12740 parameter, use to set async stream around call to gomp_unmap_vars,
12741 call gomp_unmap_vars() with 'do_copyfrom' set to true.
12742 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12743 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12744 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12745 (event_add): Add int parameter, initialize 'val' field when
12746 adding new ptx_event struct.
12747 (nvptx_evec): Adjust event_add() call arguments.
12748 (nvptx_host2dev): Likewise.
12749 (nvptx_dev2host): Likewise.
12750 (nvptx_wait_async): Likewise.
12751 (nvptx_wait_all_async): Likewise.
12752 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12753 pass to event_add() call.
12754 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12756 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12757 call openacc.register_async_cleanup_func() hook.
12758 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12759 * target.c (gomp_copy_from_async): Delete function.
12760 (gomp_map_vars): Remove async_refcount.
12761 (gomp_unmap_vars): Likewise.
12762 (gomp_load_image_to_device): Likewise.
12763 (omp_target_associate_ptr): Likewise.
12764 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12765 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12766 (gomp_copy_from_async): Remove.
12768 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12770 * target.c (gomp_device_copy): New function.
12771 (gomp_copy_host2dev): Likewise.
12772 (gomp_copy_dev2host): Likewise.
12773 (gomp_free_device_memory): Likewise.
12774 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12775 (gomp_map_pointer): Likewise.
12776 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12777 NULL value from alloc_func plugin hook.
12778 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12779 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12780 (gomp_unmap_vars): Likewise.
12781 (gomp_update): Adjust to call gomp_copy_dev2host and
12782 gomp_copy_host2dev functions.
12783 (gomp_unload_image_from_device): Handle false value from
12784 unload_image_func plugin hook.
12785 (gomp_init_device): Handle false value from init_device_func
12787 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12788 (omp_target_free): Adjust to call gomp_free_device_memory.
12789 (omp_target_memcpy): Handle return values from host2dev_func,
12790 dev2host_func, and dev2dev_func plugin hooks.
12791 (omp_target_memcpy_rect_worker): Likewise.
12792 (gomp_target_fini): Handle false value from fini_device_func
12794 * libgomp.h (struct gomp_device_descr): Adjust return type of
12795 init_device_func, fini_device_func, unload_image_func, free_func,
12796 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12797 * oacc-init.c (acc_shutdown_1): Handle false value from
12798 fini_device_func plugin hook.
12799 * oacc-host.c (host_init_device): Change return type to bool.
12800 (host_fini_device): Likewise.
12801 (host_unload_image): Likewise.
12802 (host_free): Likewise.
12803 (host_dev2host): Likewise.
12804 (host_host2dev): Likewise.
12805 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12806 (acc_memcpy_to_device): Likewise.
12807 (acc_memcpy_from_device): Likewise.
12808 (delete_copyout): Add libfnname parameter, handle free_func
12809 hook fatal error case.
12810 (acc_delete): Adjust delete_copyout call.
12811 (acc_copyout): Likewise.
12812 (update_dev_host): Move gomp_mutex_unlock to after
12813 host2dev/dev2host hook calls.
12815 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12816 to 'hsa_error_msg', for clarity.
12817 (hsa_fatal): Likewise.
12818 (hsa_error): New function.
12819 (init_hsa_context): Change return type to bool, adjust to return
12821 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12823 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12824 return false on error.
12825 (get_agent_info): Adjust to return NULL on error.
12826 (destroy_hsa_program): Change return type to bool, adjust to
12827 return false on error.
12828 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12829 (destroy_module): Change return type to bool, adjust to
12830 return false on error.
12831 (GOMP_OFFLOAD_unload_image): Likewise.
12832 (GOMP_OFFLOAD_fini_device): Likewise.
12833 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12834 (GOMP_OFFLOAD_free): Change to return false when called.
12835 (GOMP_OFFLOAD_dev2host): Likewise.
12836 (GOMP_OFFLOAD_host2dev): Likewise.
12837 (GOMP_OFFLOAD_dev2dev): Likewise.
12839 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12840 (CUDA_CALL): Likewise.
12841 (CUDA_CALL_ASSERT): Likewise.
12842 (map_init): Change return type to bool, use CUDA_CALL* macros.
12843 (map_fini): Likewise.
12844 (init_streams_for_device): Change return type to bool, adjust
12846 (fini_streams_for_device): Change return type to bool, adjust
12848 (select_stream_for_async): Release stream_lock before calls to
12849 GOMP_PLUGIN_fatal, adjust call to map_init.
12850 (nvptx_init): Use CUDA_CALL* macros.
12851 (nvptx_attach_host_thread_to_device): Change return type to bool,
12852 use CUDA_CALL* macros.
12853 (nvptx_open_device): Use CUDA_CALL* macros.
12854 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12856 (nvptx_get_num_devices): Use CUDA_CALL* macros.
12857 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12858 (nvptx_exec): Use CUDA_CALL* macros.
12859 (nvptx_alloc): Use CUDA_CALL* macros.
12860 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12861 (nvptx_host2dev): Likewise.
12862 (nvptx_dev2host): Likewise.
12863 (nvptx_wait): Use CUDA_CALL* macros.
12864 (nvptx_wait_async): Likewise.
12865 (nvptx_wait_all): Likewise.
12866 (nvptx_wait_all_async): Likewise.
12867 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12868 use CUDA_CALL* macros, adjust call to map_fini.
12869 (GOMP_OFFLOAD_init_device): Change return type to bool,
12870 adjust code accordingly.
12871 (GOMP_OFFLOAD_fini_device): Likewise.
12872 (GOMP_OFFLOAD_load_image): Adjust calls to
12873 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12874 use CUDA_CALL* macros.
12875 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12877 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12878 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12879 handle error return.
12880 (GOMP_OFFLOAD_dev2host): Likewise.
12881 (GOMP_OFFLOAD_host2dev): Likewise.
12882 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12883 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12885 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
12887 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12888 (acc_free): Likewise.
12889 (acc_memcpy_to_device): Likewise.
12890 (acc_memcpy_from_device): Likewise.
12891 (acc_deviceptr): Likewise.
12892 (acc_hostptr): Likewise.
12893 (acc_is_present): Likewise.
12894 (acc_map_data): Likewise.
12895 (acc_unmap_data): Likewise.
12896 (present_create_copy): Likewise.
12897 (delete_copyout): Likewise.
12898 (update_dev_host): Likewise.
12899 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12900 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12901 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12902 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12903 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12904 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12905 it only runs on nvptx targets.
12906 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12907 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12908 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12909 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12910 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12911 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12912 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12913 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12914 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12915 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12916 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12917 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12918 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12919 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12920 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12921 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12922 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12923 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12924 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12925 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12926 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12927 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12928 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12930 2016-05-23 Martin Jambor <mjambor@suse.cz>
12932 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12934 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
12936 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12937 to gomp_init_targets_once.
12938 (acc_set_device_type): Remove !cached_base_dev condition on call to
12939 gomp_init_targets_once, move call to before acc_device_lock acquire,
12941 (acc_get_device_num): Remove !cached_base_dev condition on call to
12942 gomp_init_targets_once.
12943 (acc_set_device_num): Likewise.
12945 2016-05-16 Martin Jambor <mjambor@suse.cz>
12947 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12949 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
12951 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12952 expected partitioning.
12954 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
12956 PR middle-end/70626
12957 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12958 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12959 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12961 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
12963 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12966 2016-04-19 Jakub Jelinek <jakub@redhat.com>
12968 PR middle-end/70680
12969 * testsuite/libgomp.c/pr70680-1.c: New test.
12970 * testsuite/libgomp.c/pr70680-2.c: New test.
12972 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12974 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12975 pass parameter variables to subroutines.
12977 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12979 PR middle-end/70643
12980 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12982 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
12985 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12986 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12988 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
12990 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12991 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12992 GOACC_declare prototype.
12994 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12995 Merge this file, and...
12996 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12997 ... this file, and...
12998 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12999 ... this file, and...
13000 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13001 ... this file, and...
13002 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13003 ... this file, and...
13004 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13005 ... this file, and...
13006 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13007 ... this file, and...
13008 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13009 ... this file, and...
13010 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13011 ... this file, and...
13012 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13013 ... this file, and...
13014 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13015 ... this file, and...
13016 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13017 ... this file, and...
13018 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13019 ... this file into...
13020 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13023 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13024 Make failure observable.
13026 2016-04-12 Jakub Jelinek <jakub@redhat.com>
13028 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13030 * target.c (gomp_target_fallback_firstprivate,
13031 gomp_target_unshare_firstprivate): Removed.
13032 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13033 before waiting for dependencies.
13034 (gomp_target_task_fn): Don't copy firstprivate vars here.
13035 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13036 firstprivate_copies here.
13037 (gomp_create_target_task): Don't initialize firstprivate_copies field.
13038 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13039 explicit/implicit firstprivate.
13041 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
13045 PR tree-optimization/70373
13046 PR middle-end/70533
13047 PR middle-end/70534
13048 PR middle-end/70535
13049 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13051 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13053 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13055 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13057 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13059 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13061 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13063 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13065 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13067 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13068 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13069 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13070 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13072 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13074 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13076 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13078 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13080 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13081 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13082 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13083 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13084 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13085 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13087 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13088 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13089 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13090 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13091 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13092 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13093 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13094 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13095 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13096 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13097 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13098 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13099 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13100 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13101 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13103 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
13104 James Norris <jnorris@codesourcery.com>
13105 Nathan Sidwell <nathan@codesourcery.com>
13106 Julian Brown <julian@codesourcery.com>
13107 Cesar Philippidis <cesar@codesourcery.com>
13108 Chung-Lin Tang <cltang@codesourcery.com>
13109 Tom de Vries <tom@codesourcery.com>
13111 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13112 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13113 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13114 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13115 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13116 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13117 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13118 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13119 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13121 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13123 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13125 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13126 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13127 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13128 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13130 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13132 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13133 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13134 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13135 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13136 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13137 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13138 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13139 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13140 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13141 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13143 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13144 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13145 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13147 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13149 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13151 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13153 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13155 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13156 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13157 ... this new file. Update.
13158 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13159 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13160 ... this new file. Update.
13161 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13162 file. Incorporate...
13163 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13165 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13167 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13169 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13171 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
13173 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13174 set-torture-options.
13176 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
13178 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13180 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13181 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13182 -fno-builtin-acc_on_device instead of -O0.
13183 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13185 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13186 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13188 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13189 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13190 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13191 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13192 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13193 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13194 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13195 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13196 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13197 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13198 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13199 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13200 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13201 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13202 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13203 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13204 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13205 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13207 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13209 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13212 2016-03-24 Martin Liska <mliska@suse.cz>
13214 * plugin/plugin-hsa.c (packet_store_release): New function
13215 that is taken from the HSA runtime manual.
13216 (GOMP_OFFLOAD_run): Use the function.
13218 2016-03-23 Jakub Jelinek <jakub@redhat.com>
13221 * testsuite/libgomp.c++/pr70376.C: New test.
13223 2016-03-23 Tom de Vries <tom@codesourcery.com>
13225 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13226 initialization of lresult and lvresult.
13227 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13229 2016-03-23 James Norris <jnorris@codesourcery.com>
13230 Daichi Fukuoka <dc-fukuoka@sgi.com>
13233 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13234 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13235 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13236 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13238 2016-03-23 Martin Liska <mliska@suse.cz>
13241 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13242 argument just in case a dispatched kernel uses that argument.
13244 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
13246 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13247 -ftree-parallelize-loops/-fopenacc changes.
13248 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13250 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13252 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13254 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13256 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13257 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13259 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13261 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13262 always_ld_library_path the path to libgcc_s.
13264 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13267 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13269 2016-03-09 Tom de Vries <tom@codesourcery.com>
13271 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13272 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13273 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13275 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13276 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13277 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13278 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13280 2016-03-07 Martin Jambor <mjambor@suse.cz>
13282 * testsuite/lib/libgomp.exp
13283 (check_effective_target_hsa_offloading_selected_nocache): New.
13284 (check_effective_target_hsa_offloading_selected): Likewise.
13285 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13286 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13287 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13288 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13289 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13290 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13291 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13292 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13293 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13294 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13295 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13296 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13297 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13298 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13299 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13300 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13301 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13303 2016-03-07 Martin Jambor <mjambor@suse.cz>
13305 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13306 non-shared memory accelerators.
13307 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13308 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13309 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13310 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13311 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13312 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13313 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13314 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13315 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13317 2016-03-07 Martin Jambor <mjambor@suse.cz>
13319 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13322 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13325 * testsuite/libgomp.c++/pr69555-1.C: New test.
13326 * testsuite/libgomp.c++/pr69555-2.C: New test.
13328 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13329 Martin Jambor <mjambor@suse.cz>
13331 * testsuite/lib/libgomp.exp
13332 (check_effective_target_offload_device_shared_as): New proc.
13333 * testsuite/libgomp.c++/declare_target-1.C: New test.
13335 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13338 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13340 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13342 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13343 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13345 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13346 -ftree-parallelize-loops/-fopenacc changes.
13347 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13348 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13350 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13352 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13354 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13356 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13358 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13360 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13362 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13363 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13365 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13366 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13368 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13369 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13372 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13374 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13376 2016-02-19 Jakub Jelinek <jakub@redhat.com>
13379 * testsuite/libgomp.c/pr69805.c: New test.
13381 2016-02-16 Tom de Vries <tom@codesourcery.com>
13384 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13386 2016-02-09 Tom de Vries <tom@codesourcery.com>
13388 PR tree-optimization/69599
13389 * testsuite/libgomp.c/omp-nested-3.c: New test.
13390 * testsuite/libgomp.c/pr46032-2.c: New test.
13391 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13392 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13394 2016-02-09 Tom de Vries <tom@codesourcery.com>
13397 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13399 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13401 * testsuite/libgomp.c/target-31.c: Fix testcase.
13403 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13405 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13407 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13408 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13409 reduction and map clauses.
13410 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13412 2016-02-02 James Norris <jnorris@codesourcery.com>
13414 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13416 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13418 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13419 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13421 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13424 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13426 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13427 (hsa_kmt_lib): Set variables.
13428 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13429 always_ld_library_path.
13430 * Makefile.in: Regenerate.
13431 * configure: Likewise.
13432 * testsuite/Makefile.in: Likewise.
13434 * plugin/configfrag.ac (offload_additional_options)
13435 (offload_additional_lib_paths): Don't amend for hsa offloading.
13436 * configure: Regenerate.
13438 * plugin/configfrag.ac: Don't configure for offloading target if
13439 we don't build the corresponding plugin.
13440 * configure: Regenerate.
13442 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13444 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13445 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13447 2016-01-26 Tom de Vries <tom@codesourcery.com>
13449 PR tree-optimization/69110
13450 * testsuite/libgomp.c/pr69110.c: New test.
13452 2016-01-25 Richard Biener <rguenther@suse.de>
13455 * testsuite/libgomp.c++/pr69393.C: New testcase.
13457 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13459 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13460 function wasn't mapped to the device with non-shared memory.
13462 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13464 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13466 2016-01-19 Martin Jambor <mjambor@suse.cz>
13467 Martin Liska <mliska@suse.cz>
13469 * plugin/Makefrag.am: Add HSA plugin requirements.
13470 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13471 (HSA_RUNTIME_LIB): Likewise.
13472 (HSA_RUNTIME_CPPFLAGS): Likewise.
13473 (HSA_RUNTIME_INCLUDE): New substitution.
13474 (HSA_RUNTIME_LIB): Likewise.
13475 (HSA_RUNTIME_LDFLAGS): Likewise.
13476 (hsa-runtime): New configure option.
13477 (hsa-runtime-include): Likewise.
13478 (hsa-runtime-lib): Likewise.
13479 (PLUGIN_HSA): New substitution variable.
13480 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13482 (PLUGIN_HSA_CPPFLAGS): Likewise.
13483 (PLUGIN_HSA_LDFLAGS): Likewise.
13484 (PLUGIN_HSA_LIBS): Likewise.
13485 Check that we have access to HSA run-time.
13486 * libgomp-plugin.h (offload_target_type): New element
13487 OFFLOAD_TARGET_TYPE_HSA.
13488 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13490 (bool gomp_create_target_task): Updated.
13491 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13492 new field can_run_func.
13493 * libgomp_g.h (GOMP_target_ext): Update prototype.
13494 * oacc-host.c (host_run): Added a new parameter args.
13495 * target.c (calculate_firstprivate_requirements): New function.
13496 (copy_firstprivate_data): Likewise.
13497 (gomp_target_fallback_firstprivate): Use them.
13498 (gomp_target_unshare_firstprivate): New function.
13499 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13501 (GOMP_target): Do host fallback for all shared memory devices. Do not
13502 pass any args to plugins.
13503 (GOMP_target_ext): Introduce device-specific argument parameter args.
13504 Allow host fallback if device shares memory. Do not remap data if
13505 device has shared memory.
13506 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13507 like host fallback for mappings.
13508 (GOMP_target_data): Treat shared memory devices like host fallback.
13509 (GOMP_target_data_ext): Likewise.
13510 (GOMP_target_update): Likewise.
13511 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13512 gomp_create_target_task.
13513 (GOMP_target_enter_exit_data): Likewise.
13514 (omp_target_alloc): Treat shared memory devices like host fallback.
13515 (omp_target_free): Likewise.
13516 (omp_target_is_present): Likewise.
13517 (omp_target_memcpy): Likewise.
13518 (omp_target_memcpy_rect): Likewise.
13519 (omp_target_associate_ptr): Likewise.
13520 (gomp_load_plugin_for_device): Also load can_run.
13521 * task.c (GOMP_PLUGIN_target_task_completion): Free
13522 firstprivate_copies.
13523 (gomp_create_target_task): Accept new argument args and store it to
13525 * plugin/plugin-hsa.c: New file.
13527 2016-01-18 Tom de Vries <tom@codesourcery.com>
13529 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13530 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13531 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13532 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13533 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13534 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13535 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13536 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13537 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13538 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13539 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13541 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13543 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13544 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13545 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13546 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13547 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13548 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13549 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13550 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13552 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13554 2016-01-15 Jakub Jelinek <jakub@redhat.com>
13556 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13558 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13560 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13562 2016-01-12 James Norris <jnorris@codesourcery.com>
13564 * libgomp.texi: Updates for OpenACC.
13566 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
13568 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13570 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13573 * testsuite/libgomp.fortran/pr66680.f90: New test.
13575 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13577 PR middle-end/68960
13578 * testsuite/libgomp.c/pr68960.c: New test.
13580 2016-01-06 Nathan Sidwell <nathan@acm.org>
13582 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13583 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13585 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13587 Update copyright years.
13589 * libgomp.texi: Bump @copying's copyright year.
13591 2015-12-31 Nathan Sidwell <nathan@acm.org>
13593 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13594 dg-additional-options syntax.
13595 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13596 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13597 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13598 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13599 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13600 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13601 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13602 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13603 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13604 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13605 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13606 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13607 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13608 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13609 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13610 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13611 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13612 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13614 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
13616 * libgomp.h (REFCOUNT_LINK): Define.
13617 (struct splay_tree_key_s): Add link_key.
13618 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13619 Replace target address of the pointer with target address of newly
13620 mapped object in the splay tree. Set link pointer on target to the
13621 device address of the mapped object.
13622 (gomp_unmap_vars): Restore target address of the pointer in the splay
13623 tree for REFCOUNT_LINK objects after unmapping.
13624 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13625 declare target link" objects.
13626 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
13627 "omp declare target link" objects, which were mapped for the image.
13628 (gomp_exit_data): Restore target address of the pointer in the splay
13629 tree for REFCOUNT_LINK objects after unmapping.
13630 * testsuite/libgomp.c/target-link-1.c: New file.
13632 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
13634 * libgomp.h (gomp_device_state): New enum.
13635 (struct gomp_device_descr): Replace is_initialized with state.
13636 (gomp_fini_device): Remove declaration.
13637 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13638 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13639 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
13640 (acc_set_device_type): Use state instead of is_initialized.
13641 (acc_set_device_num): Likewise.
13642 * target.c (resolve_device): Use state instead of is_initialized.
13643 Do not initialize finalized device.
13644 (gomp_map_vars): Do nothing if device is finalized.
13645 (gomp_unmap_vars): Likewise.
13646 (gomp_update): Likewise.
13647 (GOMP_offload_register_ver): Use state instead of is_initialized.
13648 (GOMP_offload_unregister_ver): Likewise.
13649 (gomp_init_device): Likewise.
13650 (gomp_unload_device): Likewise.
13651 (gomp_fini_device): Remove.
13652 (gomp_get_target_fn_addr): Do nothing if device is finalized.
13653 (GOMP_target): Go to host fallback if device is finalized.
13654 (GOMP_target_ext): Likewise.
13655 (gomp_exit_data): Do nothing if device is finalized.
13656 (gomp_target_task_fn): Go to host fallback if device is finalized.
13657 (gomp_target_fini): New static function.
13658 (gomp_target_init): Use state instead of is_initialized.
13659 Call gomp_target_fini at exit.
13661 2015-12-09 Tom de Vries <tom@codesourcery.com>
13663 PR tree-optimization/68716
13664 * testsuite/libgomp.c/omp-nested-2.c: New test.
13666 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
13668 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13669 target openacc_nvidia_accel_selected.
13670 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13671 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13672 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13673 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13675 2015-12-01 Julian Brown <julian@codesourcery.com>
13676 James Norris <James_Norris@mentor.com>
13678 * oacc-parallel.c (GOACC_host_data): New function.
13679 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13680 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13681 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13682 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13683 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13684 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13685 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13687 2015-11-30 James Norris <jnorris@codesourcery.com>
13688 Cesar Philippidis <cesar@codesourcery.com>
13691 * libgomp.oacc-fortran/routine-5.f90: New test.
13692 * libgomp.oacc-fortran/routine-7.f90: New test.
13693 * libgomp.oacc-fortran/routine-9.f90: New test.
13695 2015-11-30 Tom de Vries <tom@codesourcery.com>
13697 PR tree-optimization/46032
13698 * testsuite/libgomp.c/pr46032.c: New test.
13700 2015-11-27 Jakub Jelinek <jakub@redhat.com>
13703 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13704 (gomp_create_target_task): Call it before freeing
13705 GOMP_TARGET_TASK_DATA tasks.
13708 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13709 in between case label and OpenMP standalone directives.
13710 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13712 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
13714 * configure: Regenerate.
13716 2015-11-26 Jakub Jelinek <jakub@redhat.com>
13718 * testsuite/libgomp.c/target-35.c: New test.
13720 2015-11-22 James Norris <jnorris@codesourcery.com>
13721 Cesar Philippidis <cesar@codesourcery.com>
13723 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13724 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13725 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13726 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13727 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13729 2015-11-20 Jakub Jelinek <jakub@redhat.com>
13731 PR middle-end/68221
13732 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13733 * testsuite/libgomp.c/reduction-12.c: Likewise.
13734 * testsuite/libgomp.c++/reduction-11.C: Likewise.
13735 * testsuite/libgomp.c++/reduction-12.C: Likewise.
13737 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
13739 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13740 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13741 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13742 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13743 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13745 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13746 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13748 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
13750 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13751 worker & gang cases.
13752 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13754 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
13756 * config/nvptx/priority_queue.c: New file.
13758 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13760 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13763 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13764 Aldy Hernandez <aldyh@redhat.com>
13765 Ilya Verbin <ilya.verbin@intel.com>
13767 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13768 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13769 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13770 iterators or IV by chunk size.
13771 * parallel.c (gomp_resolve_num_threads): Don't assume that
13772 if thr->ts.team is non-NULL, then pool must be non-NULL.
13773 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13774 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13775 GOMP_PLUGIN_target_task_completion.
13776 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13777 * Makefile.in: Regenerate.
13778 * libgomp.h: Shuffle prototypes and forward definitions around so
13779 priority queues can be defined.
13780 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13781 (enum gomp_target_task_state): New enum.
13782 (struct gomp_target_task): Add state, tgt, task and team fields.
13783 (gomp_create_target_task): Change return type to bool, add
13785 (gomp_target_task_fn): Change return type to bool.
13786 (struct gomp_device_descr): Add async_run_func.
13787 (struct gomp_task): Remove children, next_child, prev_child,
13788 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13790 (struct gomp_taskgroup): Remove children.
13791 Add taskgroup_queue.
13792 (struct gomp_team): Change task_queue type to a priority queue.
13793 (splay_compare): Define inline.
13794 (priority_queue_offset): New.
13795 (priority_node_to_task): New.
13796 (task_to_priority_node): New.
13797 * oacc-mem.c: Do not include splay-tree.h.
13798 * priority_queue.c: New file.
13799 * priority_queue.h: New file.
13800 * splay-tree.c: Do not include splay-tree.h.
13801 (splay_tree_foreach_internal): New.
13802 (splay_tree_foreach): New.
13803 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13804 (splay_tree_callback): Define typedef.
13805 * target.c (splay_compare): Move to libgomp.h.
13806 (GOMP_target): Don't adjust *thr in any way around running offloaded
13808 (GOMP_target_ext): Likewise. Handle target nowait.
13809 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13810 return value from gomp_create_target_task, if false, fallthrough
13811 as if no dependencies exist.
13812 (gomp_target_task_fn): Change return type to bool, return true
13813 if the task should have another part scheduled later. Handle
13815 (gomp_load_plugin_for_device): Initialize async_run.
13816 * task.c (gomp_init_task): Initialize children_queue.
13817 (gomp_clear_parent_in_list): New.
13818 (gomp_clear_parent_in_tree): New.
13819 (gomp_clear_parent): Handle priorities.
13820 (GOMP_task): Likewise.
13821 (priority_queue_move_task_first,
13822 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13824 (gomp_create_target_task): Use priority queues. Change return type
13825 to bool, add state argument, return false if for async
13826 {{enter,exit} data,update} constructs no dependencies need to be
13827 waited for, handle target nowait. Set task->fn to NULL instead of
13828 gomp_target_task_fn.
13829 (verify_children_queue): Remove.
13830 (priority_list_upgrade_task): New.
13831 (priority_queue_upgrade_task): New.
13832 (verify_task_queue): Remove.
13833 (priority_list_downgrade_task): New.
13834 (priority_queue_downgrade_task): New.
13835 (gomp_task_run_pre): Use priority queues.
13836 Abstract code out to priority_queue_downgrade_task.
13837 (gomp_task_run_post_handle_dependers): Use priority queues.
13838 (gomp_task_run_post_remove_parent): Likewise.
13839 (gomp_task_run_post_remove_taskgroup): Likewise.
13840 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
13842 (GOMP_taskwait): Likewise.
13843 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
13844 priority-queue_upgrade_task.
13845 (GOMP_taskgroup_start): Use priority queues.
13846 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
13847 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
13849 * taskloop.c (GOMP_taskloop): Handle priorities.
13850 * team.c (gomp_new_team): Call priority_queue_init.
13851 (free_team): Call priority_queue_free.
13852 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13853 team created for target nowait in implicit parallel region.
13854 (gomp_team_start): For nested check, test thr->ts.level instead of
13855 thr->ts.team != NULL.
13856 * testsuite/libgomp.c/doacross-3.c: New test.
13857 * testsuite/libgomp.c/ordered-5.c: New test.
13858 * testsuite/libgomp.c/priority.c: New test.
13859 * testsuite/libgomp.c/target-31.c: New test.
13860 * testsuite/libgomp.c/target-32.c: New test.
13861 * testsuite/libgomp.c/target-33.c: New test.
13862 * testsuite/libgomp.c/target-34.c: New test.
13864 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13866 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13868 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13869 loop is sequential.
13871 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13873 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13874 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13876 2015-11-12 James Norris <jnorris@codesourcery.com>
13877 Joseph Myers <joseph@codesourcery.com>
13879 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13880 * oacc-parallel.c (GOACC_declare): New function.
13881 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13882 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13883 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13884 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13885 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13887 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
13889 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13891 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
13893 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13894 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13896 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13898 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13899 inadvertent commit.
13901 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13903 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13904 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13905 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13906 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13907 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13909 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
13911 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13912 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13914 2015-11-05 Jakub Jelinek <jakub@redhat.com>
13915 Ilya Verbin <ilya.verbin@intel.com>
13917 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13918 GOMP_loop_nonmonotonic_dynamic_start,
13919 GOMP_loop_nonmonotonic_guided_next,
13920 GOMP_loop_nonmonotonic_guided_start,
13921 GOMP_loop_ull_nonmonotonic_dynamic_next,
13922 GOMP_loop_ull_nonmonotonic_dynamic_start,
13923 GOMP_loop_ull_nonmonotonic_guided_next,
13924 GOMP_loop_ull_nonmonotonic_guided_start,
13925 GOMP_parallel_loop_nonmonotonic_dynamic,
13926 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13927 (GOMP_target_41): Renamed to ...
13928 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13930 (GOMP_target_data_41): Renamed to ...
13931 (GOMP_target_data_ext): ... this.
13932 (GOMP_target_update_41): Renamed to ...
13933 (GOMP_target_update_ext): ... this.
13934 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13935 GOMP_target_data_ext and GOMP_target_update_ext instead of
13936 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13937 Export GOMP_loop_nonmonotonic_dynamic_next,
13938 GOMP_loop_nonmonotonic_dynamic_start,
13939 GOMP_loop_nonmonotonic_guided_next,
13940 GOMP_loop_nonmonotonic_guided_start,
13941 GOMP_loop_ull_nonmonotonic_dynamic_next,
13942 GOMP_loop_ull_nonmonotonic_dynamic_start,
13943 GOMP_loop_ull_nonmonotonic_guided_next,
13944 GOMP_loop_ull_nonmonotonic_guided_start,
13945 GOMP_parallel_loop_nonmonotonic_dynamic and
13946 GOMP_parallel_loop_nonmonotonic_guided.
13947 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13948 GOMP_parallel_loop_nonmonotonic_guided,
13949 GOMP_loop_nonmonotonic_dynamic_start,
13950 GOMP_loop_nonmonotonic_guided_start,
13951 GOMP_loop_nonmonotonic_dynamic_next,
13952 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13953 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13954 GOMP_loop_ull_nonmonotonic_guided_start,
13955 GOMP_loop_ull_nonmonotonic_dynamic_next,
13956 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13957 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13959 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
13960 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13961 Use gomp_map_val function.
13962 (gomp_target_fallback_firstprivate): New static function.
13963 (GOMP_target_41): Renamed to ...
13964 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13965 arguments. Move firstprivate fallback handling into a new
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 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13972 gomp_map_0len_lookup instead of gomp_map_lookup.
13973 (omp_target_is_present): Use gomp_map_0len_lookup instead of
13975 * testsuite/libgomp.c/target-28.c: Likewise.
13976 * testsuite/libgomp.c/monotonic-1.c: New test.
13977 * testsuite/libgomp.c/monotonic-2.c: New test.
13978 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13979 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13980 * testsuite/libgomp.c/pr66199-5.c: New test.
13981 * testsuite/libgomp.c/pr66199-6.c: New test.
13982 * testsuite/libgomp.c/pr66199-7.c: New test.
13983 * testsuite/libgomp.c/pr66199-8.c: New test.
13984 * testsuite/libgomp.c/pr66199-9.c: New test.
13985 * testsuite/libgomp.c/reduction-11.c: New test.
13986 * testsuite/libgomp.c/reduction-12.c: New test.
13987 * testsuite/libgomp.c/reduction-13.c: New test.
13988 * testsuite/libgomp.c/reduction-14.c: New test.
13989 * testsuite/libgomp.c/reduction-15.c: New test.
13990 * testsuite/libgomp.c/target-12.c (main): Adjust for
13991 omp_target_is_present change for one-past-last element.
13992 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13993 the same var is both mapped and privatized.
13994 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13995 handling of zero-length array sections.
13996 * testsuite/libgomp.c/target-28.c: New test.
13997 * testsuite/libgomp.c/target-29.c: New test.
13998 * testsuite/libgomp.c/target-30.c: New test.
13999 * testsuite/libgomp.c/target-teams-1.c: New test.
14000 * testsuite/libgomp.c++/member-6.C: New test.
14001 * testsuite/libgomp.c++/member-7.C: New test.
14002 * testsuite/libgomp.c++/monotonic-1.C: New test.
14003 * testsuite/libgomp.c++/monotonic-2.C: New test.
14004 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
14005 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
14006 * testsuite/libgomp.c++/pr66199-3.C: New test.
14007 * testsuite/libgomp.c++/pr66199-4.C: New test.
14008 * testsuite/libgomp.c++/pr66199-5.C: New test.
14009 * testsuite/libgomp.c++/pr66199-6.C: New test.
14010 * testsuite/libgomp.c++/pr66199-7.C: New test.
14011 * testsuite/libgomp.c++/pr66199-8.C: New test.
14012 * testsuite/libgomp.c++/pr66199-9.C: New test.
14013 * testsuite/libgomp.c++/reduction-11.C: New test.
14014 * testsuite/libgomp.c++/reduction-12.C: New test.
14015 * testsuite/libgomp.c++/target-13.C: New test.
14016 * testsuite/libgomp.c++/target-14.C: New test.
14017 * testsuite/libgomp.c++/target-15.C: New test.
14018 * testsuite/libgomp.c++/target-16.C: New test.
14019 * testsuite/libgomp.c++/target-17.C: New test.
14020 * testsuite/libgomp.c++/target-18.C: New test.
14021 * testsuite/libgomp.c++/target-19.C: New test.
14023 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14025 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14026 and reduction copy.
14027 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14028 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14029 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14030 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14031 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14032 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14033 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14034 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14035 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14036 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14037 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14038 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14039 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14040 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14042 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14044 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14045 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14046 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14047 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14048 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14049 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14050 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14051 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14053 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
14055 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14056 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14057 (GOMP_OFFLOAD_openacc_parallel): Likewise.
14058 * oacc-host.c (host_openacc_exec): Likewise.
14059 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14061 2015-11-03 Julian Brown <julian@codesourcery.com>
14062 Thomas Schwinge <thomas@codesourcery.com>
14064 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14065 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14066 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14068 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14069 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14071 2015-11-03 James Norris <jnorris@codesourcery.com>
14073 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14075 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14077 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14078 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14079 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14080 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14081 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14083 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
14085 * openacc.h (enum acc_device_t): Reformat. Ensure layout
14087 (enum acc_async_t): Reformat.
14088 (acc_on_device): Declare compatible with builtin and provide C++
14090 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14092 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
14093 Cesar Philippidis <cesar@codesourcery.com>
14095 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14096 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14097 ... this. Add a description of the test at the top of the file.
14098 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14099 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14100 ... this. Add a description of the test at the top of the file.
14102 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
14104 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14105 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14106 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14107 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14108 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14109 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14111 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
14113 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14116 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
14119 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14121 2015-10-27 James Norris <jnorris@codesourcery.com>
14123 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14124 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14126 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
14128 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14129 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14131 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14132 acc_device_nvidia usage.
14133 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14134 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14135 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14137 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14138 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14141 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14145 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14146 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14148 2015-10-23 Tom de Vries <tom@codesourcery.com>
14151 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14153 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
14155 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14157 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14159 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
14160 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
14162 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14163 to 0 when mapnum is 0.
14165 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
14167 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14168 Cast to int from int32_t.
14170 2015-10-13 Jakub Jelinek <jakub@redhat.com>
14171 Aldy Hernandez <aldyh@redhat.com>
14172 Ilya Verbin <ilya.verbin@intel.com>
14174 * config/linux/affinity.c (omp_get_place_num_procs,
14175 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14176 * config/linux/doacross.h: New file.
14177 * config/posix/affinity.c (omp_get_place_num_procs,
14178 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14179 * config/posix/doacross.h: New file.
14180 * env.c: Include gomp-constants.h.
14181 (struct gomp_task_icv): Rename run_sched_modifier to
14182 run_sched_chunk_size.
14183 (gomp_max_task_priority_var): New variable.
14184 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14185 (handle_omp_display_env): Change _OPENMP value from 201307 to
14186 201511. Print OMP_MAX_TASK_PRIORITY.
14187 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14188 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14189 chunk_size and run_sched_modifier to run_sched_chunk_size.
14190 (omp_get_max_task_priority, omp_get_initial_device,
14191 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14192 omp_get_partition_place_nums): New functions.
14193 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14194 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14196 (omp_get_num_places_, omp_get_place_num_procs_,
14197 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14198 omp_get_place_proc_ids_8_, omp_get_place_num_,
14199 omp_get_partition_num_places_, omp_get_partition_place_nums_,
14200 omp_get_partition_place_nums_8_, omp_get_initial_device_,
14201 omp_get_max_task_priority_): New functions.
14202 * libgomp_g.h (GOMP_loop_doacross_static_start,
14203 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14204 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14205 GOMP_loop_ull_doacross_dynamic_start,
14206 GOMP_loop_ull_doacross_guided_start,
14207 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14208 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14209 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14210 GOMP_target_data_41, GOMP_target_update_41,
14211 GOMP_target_enter_exit_data): New prototypes.
14212 (GOMP_task): Add prototype argument.
14213 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14214 (struct gomp_doacross_work_share): New type.
14215 (struct gomp_work_share): Add doacross field.
14216 (struct gomp_task_icv): Rename run_sched_modifier to
14217 run_sched_chunk_size.
14218 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14219 GOMP_TASK_UNDEFERRED. Add comments.
14220 (struct gomp_task_depend_entry): Add comments.
14221 (struct gomp_task): Likewise.
14222 (struct gomp_taskgroup): Likewise.
14223 (struct gomp_target_task): New type.
14224 (struct gomp_team): Add comment.
14225 (gomp_get_place_proc_ids_8, gomp_doacross_init,
14226 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14227 gomp_create_target_task, gomp_target_task_fn): New prototypes.
14228 (struct target_var_desc): New type.
14229 (struct target_mem_desc): Adjust comment. Use struct
14230 target_var_desc instead of splay_tree_key for list.
14231 (REFCOUNT_INFINITY): Define.
14232 (struct splay_tree_key_s): Remove copy_from field.
14233 (struct gomp_device_descr): Add dev2dev_func field.
14234 (enum gomp_map_vars_kind): New enum.
14235 (gomp_map_vars): Add one argument.
14236 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14237 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14238 omp_get_place_num_procs, omp_get_place_num_procs_,
14239 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14240 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14241 omp_get_place_num_, omp_get_partition_num_places,
14242 omp_get_partition_num_places_, omp_get_partition_place_nums,
14243 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14244 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14245 omp_target_free, omp_target_is_present, omp_target_memcpy,
14246 omp_target_memcpy_rect, omp_target_associate_ptr and
14247 omp_target_disassociate_ptr.
14248 (GOMP_4.0.2): Renamed to ...
14249 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14250 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14251 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14252 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14253 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14254 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14255 GOMP_loop_ull_doacross_guided_start,
14256 GOMP_loop_ull_doacross_runtime_start,
14257 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14258 GOMP_doacross_ull_wait.
14259 * libgomp.texi: Document omp_get_max_task_priority.
14260 Rename modifier argument to chunk_size for omp_set_schedule and
14261 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14262 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14263 to run_sched_chunk_size renaming.
14264 (GOMP_loop_ordered_runtime_start): Likewise.
14265 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14266 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14267 GOMP_parallel_loop_runtime_start): New functions.
14268 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14269 to run_sched_chunk_size renaming.
14270 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14271 GOMP_loop_doacross_guided_start): New functions or aliases.
14272 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14273 run_sched_modifier to run_sched_chunk_size renaming.
14274 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14275 (gomp_loop_ull_doacross_static_start,
14276 gomp_loop_ull_doacross_dynamic_start,
14277 gomp_loop_ull_doacross_guided_start,
14278 GOMP_loop_ull_doacross_runtime_start): New functions.
14279 (GOMP_loop_ull_doacross_static_start,
14280 GOMP_loop_ull_doacross_dynamic_start,
14281 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14282 * oacc-mem.c (acc_map_data, present_create_copy,
14283 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14285 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14286 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14287 instead of false to gomp_map_vars.
14288 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14289 * omp.h.in (omp_lock_hint_t): New type.
14290 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14291 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14292 omp_get_place_num, omp_get_partition_num_places,
14293 omp_get_partition_place_nums, omp_get_initial_device,
14294 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14295 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14296 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14298 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14299 (omp_lock_hint_none, omp_lock_hint_uncontended,
14300 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14301 omp_lock_hint_speculative): New parameters.
14302 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14303 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14304 omp_get_place_num, omp_get_partition_num_places,
14305 omp_get_partition_place_nums, omp_get_initial_device,
14306 omp_get_max_task_priority): New interfaces.
14307 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14309 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14310 (omp_lock_hint_none, omp_lock_hint_uncontended,
14311 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14312 omp_lock_hint_speculative): New parameters.
14313 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14314 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14315 omp_get_place_num, omp_get_partition_num_places,
14316 omp_get_partition_place_nums, omp_get_initial_device,
14317 omp_get_max_task_priority): New functions and subroutines.
14318 * ordered.c: Include stdarg.h and string.h.
14319 (MAX_COLLAPSED_BITS): Define.
14320 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14321 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14322 GOMP_doacross_ull_wait): New functions.
14323 * target.c: Include errno.h.
14324 (resolve_device): If device is not initialized, call
14325 gomp_init_device on it.
14326 (gomp_map_lookup): New function.
14327 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14328 Don't bump refcount if REFCOUNT_INFINITY. Handle
14329 GOMP_MAP_ALWAYS_TO_P.
14330 (get_kind): Rename is_openacc argument to short_mapkind.
14331 (gomp_map_pointer): Use gomp_map_lookup.
14332 (gomp_map_fields_existing): New function.
14333 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14334 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14335 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14336 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14337 Adjust for tgt->list changed type and copy_from living in there.
14338 (gomp_copy_from_async): Adjust for tgt->list changed type and
14339 copy_from living in there.
14340 (gomp_unmap_vars): Likewise.
14341 (gomp_update): Likewise. Rename is_openacc argument to
14342 short_mapkind. Don't fail if object is not mapped.
14343 (gomp_load_image_to_device): Initialize refcount to
14345 (gomp_target_fallback): New function.
14346 (gomp_get_target_fn_addr): Likewise.
14347 (GOMP_target): Adjust gomp_map_vars caller, use
14348 gomp_get_target_fn_addr and gomp_target_fallback.
14349 (GOMP_target_41): New function.
14350 (gomp_target_data_fallback): New function.
14351 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14352 (GOMP_target_data_41): New function.
14353 (GOMP_target_update): Adjust gomp_update caller.
14354 (GOMP_target_update_41): New function.
14355 (gomp_exit_data, GOMP_target_enter_exit_data,
14356 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14357 omp_target_is_present, omp_target_memcpy,
14358 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14359 omp_target_associate_ptr, omp_target_disassociate_ptr,
14360 gomp_load_plugin_for_device): New functions.
14361 * task.c: Include gomp-constants.h. Include taskloop.c
14362 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14363 (gomp_task_handle_depend): New function.
14364 (GOMP_task): Use it. Add priority argument. Use
14365 gomp-constant.h constants instead of hardcoded numbers.
14366 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14367 (gomp_create_target_task): New function.
14368 (verify_children_queue, verify_taskgroup_queue,
14369 verify_task_queue): New functions.
14370 (gomp_task_run_pre): Call verify_*_queue functions.
14371 If an upcoming tied task is about to leave the sibling or
14372 taskgroup queues in an invalid state, adjust appropriately.
14373 Remove taskgroup argument. Add comments.
14374 (gomp_task_run_post_handle_dependers): Add comments.
14375 (gomp_task_run_post_remove_parent): Likewise.
14376 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14377 (GOMP_taskwait): Likewise. Add comments.
14378 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14379 problem such that the first non parent_depends_on task does not
14380 end up at the end of the children queue.
14381 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14382 GOMP_TASK_UNDEFERRED.
14383 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14384 * taskloop.c: New file.
14385 * testsuite/lib/libgomp.exp
14386 (check_effective_target_offload_device_nonshared_as): New proc.
14387 * testsuite/libgomp.c/affinity-2.c: New test.
14388 * testsuite/libgomp.c/doacross-1.c: New test.
14389 * testsuite/libgomp.c/doacross-2.c: New test.
14390 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14391 Add map clause to target.
14392 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14393 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14394 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14395 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14396 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14398 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14399 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14400 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14401 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14402 not defined. Use those where needed.
14403 * testsuite/libgomp.c/for-4.c: New test.
14404 * testsuite/libgomp.c/for-5.c: New test.
14405 * testsuite/libgomp.c/for-6.c: New test.
14406 * testsuite/libgomp.c/linear-1.c: New test.
14407 * testsuite/libgomp.c/ordered-4.c: New test.
14408 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14409 only allowed on the loop iterator.
14410 * testsuite/libgomp.c/pr66199-3.c: New test.
14411 * testsuite/libgomp.c/pr66199-4.c: New test.
14412 * testsuite/libgomp.c/reduction-7.c: New test.
14413 * testsuite/libgomp.c/reduction-8.c: New test.
14414 * testsuite/libgomp.c/reduction-9.c: New test.
14415 * testsuite/libgomp.c/reduction-10.c: New test.
14416 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14418 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14419 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14420 * testsuite/libgomp.c/target-11.c: New test.
14421 * testsuite/libgomp.c/target-12.c: New test.
14422 * testsuite/libgomp.c/target-13.c: New test.
14423 * testsuite/libgomp.c/target-14.c: New test.
14424 * testsuite/libgomp.c/target-15.c: New test.
14425 * testsuite/libgomp.c/target-16.c: New test.
14426 * testsuite/libgomp.c/target-17.c: New test.
14427 * testsuite/libgomp.c/target-18.c: New test.
14428 * testsuite/libgomp.c/target-19.c: New test.
14429 * testsuite/libgomp.c/target-20.c: New test.
14430 * testsuite/libgomp.c/target-21.c: New test.
14431 * testsuite/libgomp.c/target-22.c: New test.
14432 * testsuite/libgomp.c/target-23.c: New test.
14433 * testsuite/libgomp.c/target-24.c: New test.
14434 * testsuite/libgomp.c/target-25.c: New test.
14435 * testsuite/libgomp.c/target-26.c: New test.
14436 * testsuite/libgomp.c/target-27.c: New test.
14437 * testsuite/libgomp.c/taskloop-1.c: New test.
14438 * testsuite/libgomp.c/taskloop-2.c: New test.
14439 * testsuite/libgomp.c/taskloop-3.c: New test.
14440 * testsuite/libgomp.c/taskloop-4.c: New test.
14441 * testsuite/libgomp.c++/ctor-13.C: New test.
14442 * testsuite/libgomp.c++/doacross-1.C: New test.
14443 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14444 Replace offload_device with offload_device_nonshared_as.
14445 * testsuite/libgomp.c++/for-12.C: New test.
14446 * testsuite/libgomp.c++/for-13.C: New test.
14447 * testsuite/libgomp.c++/for-14.C: New test.
14448 * testsuite/libgomp.c++/linear-1.C: New test.
14449 * testsuite/libgomp.c++/member-1.C: New test.
14450 * testsuite/libgomp.c++/member-2.C: New test.
14451 * testsuite/libgomp.c++/member-3.C: New test.
14452 * testsuite/libgomp.c++/member-4.C: New test.
14453 * testsuite/libgomp.c++/member-5.C: New test.
14454 * testsuite/libgomp.c++/ordered-1.C: New test.
14455 * testsuite/libgomp.c++/reduction-5.C: New test.
14456 * testsuite/libgomp.c++/reduction-6.C: New test.
14457 * testsuite/libgomp.c++/reduction-7.C: New test.
14458 * testsuite/libgomp.c++/reduction-8.C: New test.
14459 * testsuite/libgomp.c++/reduction-9.C: New test.
14460 * testsuite/libgomp.c++/reduction-10.C: New test.
14461 * testsuite/libgomp.c++/reference-1.C: New test.
14462 * testsuite/libgomp.c++/simd14.C: New test.
14463 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14464 * testsuite/libgomp.c++/target-5.C: New test.
14465 * testsuite/libgomp.c++/target-6.C: New test.
14466 * testsuite/libgomp.c++/target-7.C: New test.
14467 * testsuite/libgomp.c++/target-8.C: New test.
14468 * testsuite/libgomp.c++/target-9.C: New test.
14469 * testsuite/libgomp.c++/target-10.C: New test.
14470 * testsuite/libgomp.c++/target-11.C: New test.
14471 * testsuite/libgomp.c++/target-12.C: New test.
14472 * testsuite/libgomp.c++/taskloop-1.C: New test.
14473 * testsuite/libgomp.c++/taskloop-2.C: New test.
14474 * testsuite/libgomp.c++/taskloop-3.C: New test.
14475 * testsuite/libgomp.c++/taskloop-4.C: New test.
14476 * testsuite/libgomp.c++/taskloop-5.C: New test.
14477 * testsuite/libgomp.c++/taskloop-6.C: New test.
14478 * testsuite/libgomp.c++/taskloop-7.C: New test.
14479 * testsuite/libgomp.c++/taskloop-8.C: New test.
14480 * testsuite/libgomp.c++/taskloop-9.C: New test.
14481 * testsuite/libgomp.fortran/affinity1.f90: New test.
14482 * testsuite/libgomp.fortran/affinity2.f90: New test.
14484 2015-10-13 Tom de Vries <tom@codesourcery.com>
14486 PR tree-optimization/67476
14487 * testsuite/libgomp.c/autopar-3.c: New test.
14488 * testsuite/libgomp.c/autopar-4.c: New test.
14489 * testsuite/libgomp.c/autopar-5.c: New test.
14490 * testsuite/libgomp.c/autopar-6.c: New test.
14491 * testsuite/libgomp.c/autopar-7.c: New test.
14492 * testsuite/libgomp.c/autopar-8.c: New test.
14494 2015-10-12 James Norris <jnorris@codesourcery.com>
14496 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14499 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14501 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14502 using load_gcc_lib.
14504 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14506 * oacc-ptx.h: Remove file, moving its content into...
14507 * config/nvptx/fortran.c: ... here...
14508 * config/nvptx/oacc-init.c: ..., here...
14509 * config/nvptx/oacc-parallel.c: ..., and here.
14510 * config/nvptx/openacc.f90: New file.
14511 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14512 (link_ptx): Don't link in predefined bits of PTX code.
14514 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14515 Bernd Schmidt <bernds@codesourcery.com>
14517 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14518 (struct targ_ptx_obj): New.
14519 (nvptx_tdata): Move earlier, change data format.
14520 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14522 (GOMP_OFFLOAD_load_image): Adjust.
14524 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14526 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14527 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14528 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14529 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14530 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14531 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14532 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14533 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14534 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14535 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14536 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14537 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14538 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14539 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14540 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14541 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14542 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14543 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14544 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14545 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14546 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14547 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14548 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14549 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14550 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14551 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14552 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14553 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14554 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14555 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14556 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14557 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14558 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14559 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14560 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14561 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14562 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14563 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14564 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14565 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14566 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14567 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14568 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14569 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14570 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14571 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14572 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14573 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14574 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14575 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14576 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14577 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14578 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14579 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14580 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14581 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14582 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14583 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14584 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14585 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14586 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14587 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14588 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14590 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14592 * oacc-init.c (acc_on_device): Force optimization level.
14594 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14596 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14597 (cuda_errlist): Delete.
14598 (cuda_error): Reimplement.
14600 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14602 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14604 * libgomp.map (GOACC_parallel_keyed): New.
14605 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
14607 (GOACC_parallel_keyed): New interface. Lose geometry arguments
14608 and take keyed varargs list. Adjust call to exec_func.
14609 (GOACC_parallel): Force host fallback.
14610 * libgomp_g.h (GOACC_parallel): Remove.
14611 (GOACC_parallel_keyed): Declare.
14612 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14613 (struct targ_gn_descriptor): Replace name field with launch field.
14614 (nvptx_exec): Lose separate geometry args, take array. Process
14615 dynamic dimensions and adjust.
14616 (struct nvptx_tdata): Replace fn_names field with fn_descs.
14617 (GOMP_OFFLOAD_load_image): Adjust for change in function table
14619 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14621 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14624 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14627 * oacc-int.h (goacc_host_init): Add declaration.
14628 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14629 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14631 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14632 Sebastian Pop <s.pop@samsung.com>
14634 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14636 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14637 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14638 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14639 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14640 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14642 2015-09-03 Jakub Jelinek <jakub@redhat.com>
14644 * configure.tgt: Add missing ;; in between nvptx and rtems
14647 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14649 * config/posix/pool.h (gomp_adjust_thread_attr): New.
14650 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14651 (gomp_thread_pool_reservoir): Add priority member.
14652 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14654 (parse_thread_pools): Likewise.
14655 * team.c (gomp_team_start): Call configuration provided
14656 gomp_adjust_thread_attr(). Destroy thread attributes if
14658 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14660 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14662 * config/posix/pool.h: New.
14663 * config/rtems/pool.h: Likewise.
14664 * config/rtems/proc.c: Likewise.
14665 * libgomp.h (gomp_thread_destructor): Declare.
14666 * team.c: Include configuration provided "pool.h".
14667 (gomp_get_thread_pool): Define in configuration.
14668 (gomp_team_end): Call configuration defined
14669 gomp_release_thread_pool().
14671 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14673 * config/rtems/bar.c: New.
14674 * config/rtems/bar.h: Likewise.
14675 * config/rtems/mutex.c: Likewise.
14676 * config/rtems/mutex.h: Likewise.
14677 * config/rtems/sem.c: Likewise.
14678 * config/rtems/sem.h: Likewise.
14679 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14680 <sys/lock.h> header file.
14681 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14682 supported by Newlib.
14683 * configure: Regenerate.
14685 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14687 * team.c (gomp_new_thread_pool): Delete and move content to ...
14688 (gomp_get_thread_pool): ... new function. Allocate and
14689 initialize thread pool on demand.
14690 (get_last_team): Use gomp_get_thread_pool().
14691 (gomp_team_start): Delete thread pool initialization.
14693 2015-09-03 Tom de Vries <tom@codesourcery.com>
14695 PR tree-optimization/65637
14696 * testsuite/libgomp.c/autopar-2.c: New test.
14698 2015-08-29 Tom de Vries <tom@codesourcery.com>
14700 PR tree-optimization/46193
14701 * testsuite/libgomp.c/pr46193.c: New test.
14703 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14706 * libgomp.map: Add 4.0.2 version.
14707 * target.c (offload_image_descr): Add version field.
14708 (gomp_load_image_to_device): Add version argument. Adjust plugin
14709 call. Improve load mismatch diagnostic.
14710 (gomp_unload_image_from_device): Add version argument. Adjust plugin
14712 (GOMP_offload_regster): Make stub function, move bulk to ...
14713 (GOMP_offload_register_ver): ... here. Process version argument.
14714 (GOMP_offload_unregister): Make stub function, move bulk to ...
14715 (GOMP_offload_unregister_ver): ... here. Process version argument.
14716 (gomp_init_device): Process version field.
14717 (gomp_unload_device): Process version field.
14718 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14719 macros. Check plugin version.
14720 * libgomp.h (gomp_device_descr): Add version function field. Adjust
14721 loader and unloader types.
14722 * oacc-host.c: Include gomp-constants.h.
14723 (host_version): New.
14724 (host_load_image, host_unload_image): Adjust.
14725 (host_dispatch): Add host_version.
14726 * plugin/plugin-nvptx.c: Include gomp-constants.h.
14727 (GOMP_OFFLOAD_version): New.
14728 (GOMP_OFFLOAD_load_image): Add version arg and check it.
14729 (GOMP_OFFLOAD_unload_image): Likewise.
14730 * plugin/plugin-host.c: Include gomp-constants.h.
14731 (GOMP_OFFLOAD_version): New.
14732 (GOMP_OFFLOAD_load_image): Add version arg.
14733 (GOMP_OFFLOAD_unload_image): Likewise.
14735 2015-08-24 Tom de Vries <tom@codesourcery.com>
14737 PR tree-optimization/65468
14738 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14740 2015-08-24 Tom de Vries <tom@codesourcery.com>
14742 PR tree-optimization/65468
14743 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14745 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
14749 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14750 (gomp_iter_guided_next): Idem.
14751 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14752 (gomp_iter_ull_guided_next): Idem.
14753 * config/linux/wait.h (do_spin): Idem.
14755 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14757 * libgomp-plugin.h (enum offload_target_type): Remove
14758 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14759 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14760 * openacc.h (enum acc_device_t): Likewise.
14761 * openacc_lib.h: Likewise.
14762 * oacc-init.c (name_of_acc_device_t): Don't handle it.
14763 (acc_on_device): Just use __builtin_acc_on_device.
14764 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14765 of acc_on_device builtin.
14766 * plugin/plugin-host.h: Remove file.
14767 * plugin/plugin-host.c: Likewise, but salvage some content into...
14768 * oacc-host.c: ... this file.
14769 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14770 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14771 * Makefile.in: Regenerate.
14772 * configure: Likewise.
14773 * testsuite/lib/libgomp.exp
14774 (check_effective_target_openacc_host_nonshm_selected): Remove.
14775 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14776 ACC_DEVICE_TYPE=host_nonshm.
14777 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14778 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14779 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14780 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14781 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14782 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14784 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14785 Jakub Jelinek <jakub@redhat.com>
14787 * config/nvptx/affinity.c: New file.
14788 * config/nvptx/alloc.c: Likewise.
14789 * config/nvptx/bar.c: Likewise.
14790 * config/nvptx/barrier.c: Likewise.
14791 * config/nvptx/critical.c: Likewise.
14792 * config/nvptx/env.c: Likewise.
14793 * config/nvptx/error.c: Likewise.
14794 * config/nvptx/fortran.c: Likewise.
14795 * config/nvptx/iter.c: Likewise.
14796 * config/nvptx/iter_ull.c: Likewise.
14797 * config/nvptx/libgomp-plugin.c: Likewise.
14798 * config/nvptx/lock.c: Likewise.
14799 * config/nvptx/loop.c: Likewise.
14800 * config/nvptx/loop_ull.c: Likewise.
14801 * config/nvptx/mutex.c: Likewise.
14802 * config/nvptx/oacc-async.c: Likewise.
14803 * config/nvptx/oacc-cuda.c: Likewise.
14804 * config/nvptx/oacc-host.c: Likewise.
14805 * config/nvptx/oacc-init.c: Likewise.
14806 * config/nvptx/oacc-mem.c: Likewise.
14807 * config/nvptx/oacc-parallel.c: Likewise.
14808 * config/nvptx/oacc-plugin.c: Likewise.
14809 * config/nvptx/omp-lock.h: Likewise.
14810 * config/nvptx/ordered.c: Likewise.
14811 * config/nvptx/parallel.c: Likewise.
14812 * config/nvptx/proc.c: Likewise.
14813 * config/nvptx/ptrlock.c: Likewise.
14814 * config/nvptx/sections.c: Likewise.
14815 * config/nvptx/sem.c: Likewise.
14816 * config/nvptx/single.c: Likewise.
14817 * config/nvptx/splay-tree.c: Likewise.
14818 * config/nvptx/target.c: Likewise.
14819 * config/nvptx/task.c: Likewise.
14820 * config/nvptx/team.c: Likewise.
14821 * config/nvptx/time.c: Likewise.
14822 * config/nvptx/work.c: Likewise.
14823 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14824 * configure: Regenerate.
14825 * configure.tgt (config_path): Set to "nvptx" for target
14828 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14830 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14832 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
14834 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14835 (cuda_errlist): Constify.
14836 (errmsg): Move into ...
14837 (cuda_error): ... here. Make smaller.
14838 (_XSTR, _STR): Delete.
14839 (cuda_synames): Delete.
14840 (verify_device_library): Delete.
14841 (nvptx_init): Don't call it.
14843 2015-07-28 Tom de Vries <tom@codesourcery.com>
14845 * testsuite/libgomp.c/uns-outer-4.c: New test.
14847 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14849 * testsuite/libgomp.c/pr66714.c: New test.
14851 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
14854 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14855 (fib_ref): New function.
14856 (fib): Correct corner cases in the recursion.
14857 (main): Replace the non-simd loop with fib_ref call.
14858 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14860 (fibonacci): Lower the parameter N to 30. Correct accordingly check
14861 for the last array element value. Replace the non-simd loop with
14862 fib_ref call. Remove redundant b_ref array. Remove the comparison
14863 of the last array element with according Fibonacci sequence element.
14864 (fib): Correct corner cases in the recursion.
14866 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
14868 * target.c (gomp_offload_image_to_device): Rename to ...
14869 (gomp_load_image_to_device): ... here.
14870 (GOMP_offload_register): Adjust call.
14871 (gomp_init_device): Likewise.
14872 (gomp_unload_image_from_device): New. Broken out of ...
14873 (GOMP_offload_unregister): ... here. Call it.
14874 (gomp_unload_device): New.
14875 * libgomp.h (gomp_unload_device): Declare.
14876 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14879 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
14881 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14883 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14885 (goacc_waits): Move !num_waits handling to ...
14886 (GOACC_wait): ... here, the only caller that might have zero waits.
14888 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14889 (struct ptx_image_data): Move earlier, add fns field.
14890 (struct ptx_device): Add images and image_lock fields.
14891 (ptx_images, ptx_image_lock): Delete.
14892 (nvptx_open_device): Initialize images and image_lock fields.
14893 (nvptx_close_device): Destroy image_lock.
14894 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14895 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14898 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14900 * target.c (GOMP_offload_register): Use int for device type arg.
14901 (GOMP_offload_unregister): Likewise.
14903 * target.c (struct_offload_image_descr): Constify host_table.
14904 (gomp_offload_image_to_device): Likewise.
14905 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14907 * libgomp.h (gomp_device_descr): Constify target data arguments.
14908 * target.c (struct offload_image_descr): Constify target_data.
14909 (gomp_offload_image_to_device): Likewise.
14910 (GOMP_offload_register): Likewise.
14911 (GOMP_offload_unregister): Likewise.
14912 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14913 GOMP_OFFLOAD_unload_image): Constify target data.
14914 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14915 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14917 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
14919 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14920 Workaround driver library const error.
14921 (struct nvptx_tdata, nvptx_tdata_t): New.
14922 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14925 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
14927 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14928 of EPS parameter from integer to real.
14929 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14930 type of EPS parameter from integer to real.
14932 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
14934 * team.c (get_last_team): New.
14935 (gomp_new_team): Recycle last non-nested team if possible.
14936 (gomp_team_end): Move team work share list free lock destruction
14938 (free_team): ... here.
14940 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
14942 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14943 and ref from int to double. Replaced their comparison with
14944 an inequality of their difference and EPS.
14945 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14946 comparison of pri and a reference number with an inequality of their
14947 difference and EPS.
14948 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14949 the comparison of sum and sum_ref with an inequality of their
14950 difference and EPS.
14951 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14952 the comparison of pri and a reference number with an inequality of
14953 their difference and EPS.
14955 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
14957 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14958 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14959 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14960 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14961 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14962 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14963 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14964 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14965 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14966 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14967 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14968 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14969 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14971 (vec_mult): Likewise. Add #pragma omp taskwait.
14972 (main): Adjust caller.
14973 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14974 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14975 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14976 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14977 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14978 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14979 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14980 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14981 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14982 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14983 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14984 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14985 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14986 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14987 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14988 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14989 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14990 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14991 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14992 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14993 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14994 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14995 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14996 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14997 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14998 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14999 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15000 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15001 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15002 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15003 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15004 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15005 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15006 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15007 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15008 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15009 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15010 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15011 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15012 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15013 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15014 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15015 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15016 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15017 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15018 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15019 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15020 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15021 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15022 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15023 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15024 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15025 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15026 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15027 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15028 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15029 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15030 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15031 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15032 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15033 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15034 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15035 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15036 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15037 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15038 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15039 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15040 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15041 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15042 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15043 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15044 (vec_mult): Add !$omp taskwait.
15045 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15046 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15047 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15048 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15049 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15050 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15051 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15052 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15053 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15054 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15055 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15056 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15057 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15058 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15059 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15060 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15061 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15062 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15063 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15064 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15065 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15066 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15067 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15068 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15069 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15070 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15071 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15072 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15073 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15074 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15075 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15076 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15077 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15078 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15079 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15080 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15081 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15082 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15083 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15084 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15085 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15086 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15087 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15088 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15089 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15090 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15091 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15092 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15093 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15094 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15095 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15096 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15097 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15098 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15099 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15100 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15101 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15102 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15103 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15104 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15105 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15106 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15107 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15108 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15109 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15110 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15111 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15113 2015-07-10 Tom de Vries <tom@codesourcery.com>
15115 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15116 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15118 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15121 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15122 in a 64-bit configuration.
15123 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15124 offloading testing if no such device is available.
15125 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15126 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15128 2015-07-08 Tom de Vries <tom@codesourcery.com>
15130 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15132 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15134 2015-07-07 Tom de Vries <tom@codesourcery.com>
15136 PR tree-optimization/66642
15137 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15138 iteration count case.
15139 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15140 function, factor out of ...
15141 (main): ... here. Test low iteration count case.
15143 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
15145 * libgomp.h (gomp_thread_pool): Comment last_team field.
15147 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
15149 * testsuite/libgomp.c++/pr66702-1.C: Require
15150 vect_simd_clones effective target.
15151 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15153 2015-06-30 Tom de Vries <tom@codesourcery.com>
15155 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15156 already set. Use DEFAULT_CFLAGS in dg-runtest.
15157 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15160 2015-06-30 Tom de Vries <tom@codesourcery.com>
15162 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15163 already set. Use DEFAULT_CFLAGS in dg-runtest.
15164 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15165 * testsuite/libgomp.c++/pr64824.C: Same.
15166 * testsuite/libgomp.c++/pr64868.C: Same.
15167 * testsuite/libgomp.c++/pr66199-1.C: Same.
15168 * testsuite/libgomp.c++/pr66199-2.C: Same.
15169 * testsuite/libgomp.c++/target-2.C: Same.
15170 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15171 -std=<standard> option.
15172 * testsuite/libgomp.c++/udr-11.C: Same.
15173 * testsuite/libgomp.c++/udr-12.C: Same.
15174 * testsuite/libgomp.c++/udr-13.C: Same.
15175 * testsuite/libgomp.c++/udr-14.C: Same.
15176 * testsuite/libgomp.c++/udr-15.C: Same.
15177 * testsuite/libgomp.c++/udr-16.C: Same.
15178 * testsuite/libgomp.c++/udr-17.C: Same.
15179 * testsuite/libgomp.c++/udr-18.C: Same.
15180 * testsuite/libgomp.c++/udr-19.C: Same.
15181 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15182 * testsuite/libgomp.c++/simd-1.C: Same.
15183 * testsuite/libgomp.c++/simd-2.C: Same.
15184 * testsuite/libgomp.c++/simd-3.C: Same.
15185 * testsuite/libgomp.c++/simd-4.C: Same.
15186 * testsuite/libgomp.c++/simd-5.C: Same.
15187 * testsuite/libgomp.c++/simd-6.C: Same.
15188 * testsuite/libgomp.c++/simd-7.C: Same.
15189 * testsuite/libgomp.c++/simd-8.C: Same.
15190 * testsuite/libgomp.c++/simd-9.C: Same.
15191 * testsuite/libgomp.c++/simd10.C: Same.
15192 * testsuite/libgomp.c++/simd11.C: Same.
15193 * testsuite/libgomp.c++/simd12.C: Same.
15194 * testsuite/libgomp.c++/simd13.C: Same.
15196 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15198 PR middle-end/66702
15199 * testsuite/libgomp.c++/pr66702-1.C: New test.
15200 * testsuite/libgomp.c++/pr66702-2.C: New test.
15202 2015-06-30 Tom de Vries <tom@codesourcery.com>
15204 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15205 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15206 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15207 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15209 2015-06-30 Tom de Vries <tom@codesourcery.com>
15211 PR tree-optimization/66652
15212 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15213 using restrict pointers.
15214 (main): Add arguments to calls to f.
15215 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15217 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
15219 * configure.ac: Fix check for header <sys/sysctl.h>.
15220 * configure: Regenerate.
15221 * config.h.in: Likewise.
15223 2015-06-23 Tom de Vries <tom@codesourcery.com>
15225 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15227 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15229 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
15231 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15235 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15236 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15238 2015-06-15 Tom de Vries <tom@codesourcery.com>
15240 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
15241 dg-additional-options for any remaining options.
15242 * testsuite/libgomp.c/atomic-2.c: Same.
15243 * testsuite/libgomp.c/atomic-4.c: Same.
15244 * testsuite/libgomp.c/atomic-5.c: Same.
15245 * testsuite/libgomp.c/atomic-6.c: Same.
15246 * testsuite/libgomp.c/autopar-1.c: Same.
15247 * testsuite/libgomp.c/copyin-1.c: Same.
15248 * testsuite/libgomp.c/copyin-2.c: Same.
15249 * testsuite/libgomp.c/copyin-3.c: Same.
15250 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15251 * testsuite/libgomp.c/nestedfn-5.c: Same.
15252 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15253 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15254 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15255 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15256 * testsuite/libgomp.c/pr32362-1.c: Same.
15257 * testsuite/libgomp.c/pr32362-2.c: Same.
15258 * testsuite/libgomp.c/pr32362-3.c: Same.
15259 * testsuite/libgomp.c/pr39591-1.c: Same.
15260 * testsuite/libgomp.c/pr39591-2.c: Same.
15261 * testsuite/libgomp.c/pr39591-3.c: Same.
15262 * testsuite/libgomp.c/pr58392.c: Same.
15263 * testsuite/libgomp.c/pr58756.c: Same.
15264 * testsuite/libgomp.c/simd-1.c: Same.
15265 * testsuite/libgomp.c/simd-10.c: Same.
15266 * testsuite/libgomp.c/simd-11.c: Same.
15267 * testsuite/libgomp.c/simd-12.c: Same.
15268 * testsuite/libgomp.c/simd-13.c: Same.
15269 * testsuite/libgomp.c/simd-14.c: Same.
15270 * testsuite/libgomp.c/simd-15.c: Same.
15271 * testsuite/libgomp.c/simd-2.c: Same.
15272 * testsuite/libgomp.c/simd-3.c: Same.
15273 * testsuite/libgomp.c/simd-4.c: Same.
15274 * testsuite/libgomp.c/simd-5.c: Same.
15275 * testsuite/libgomp.c/simd-6.c: Same.
15276 * testsuite/libgomp.c/simd-7.c: Same.
15277 * testsuite/libgomp.c/simd-8.c: Same.
15278 * testsuite/libgomp.c/simd-9.c: Same.
15280 2015-06-15 Tom de Vries <tom@codesourcery.com>
15282 * testsuite/libgomp.c/pr35625.c: Fix typo.
15284 2015-06-15 Tom de Vries <tom@codesourcery.com>
15286 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15288 * testsuite/libgomp.c/atomic-3.c: Same.
15289 * testsuite/libgomp.c/debug-1.c: Same.
15290 * testsuite/libgomp.c/nqueens-1.c: Same.
15291 * testsuite/libgomp.c/pr26171.c: Same.
15292 * testsuite/libgomp.c/pr48591.c: Same.
15293 * testsuite/libgomp.c/pr64824.c: Same.
15294 * testsuite/libgomp.c/pr64868.c: Same.
15295 * testsuite/libgomp.c/pr66133.c: Same.
15296 * testsuite/libgomp.c/pr66199-1.c: Same.
15297 * testsuite/libgomp.c/pr66199-2.c: Same.
15298 * testsuite/libgomp.c/target-8.c: Same.
15300 2015-06-15 Tom de Vries <tom@codesourcery.com>
15302 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15304 * testsuite/libgomp.c/for-1.c: Same.
15305 * testsuite/libgomp.c/for-2.c: Same.
15306 * testsuite/libgomp.c/for-3.c: Same.
15307 * testsuite/libgomp.c/pr35625.c: Same.
15308 * testsuite/libgomp.c/pr39154.c: Same.
15309 * testsuite/libgomp.c/simd-16.c: Same.
15310 * testsuite/libgomp.c/simd-17.c: Same.
15312 2015-06-13 Tom de Vries <tom@codesourcery.com>
15314 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15316 2015-06-13 Tom de Vries <tom@codesourcery.com>
15318 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15319 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15320 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15322 (main): Use N instead of hardcoded constants.
15324 2015-06-05 Tom de Vries <tom@codesourcery.com>
15326 merge from gomp4 branch:
15327 2015-05-28 Tom de Vries <tom@codesourcery.com>
15329 PR tree-optimization/65443
15330 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15331 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15332 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15334 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15336 * testsuite/libgomp.graphite/bounds.c: Adjust for
15337 cleanup-tree-dump removal.
15338 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15339 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15340 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15341 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15342 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15343 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15344 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15345 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15346 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15347 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15349 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
15351 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15352 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15353 (futex_wake) [!__x86_64__]: Ditto.
15355 2015-05-28 Julian Brown <julian@codesourcery.com>
15357 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15358 function comment. Only call gomp_fatal if new argument is true.
15359 (acc_dev_num_out_of_range): New function.
15360 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15361 acc_dev_num_out_of_range as appropriate.
15362 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15363 (acc_get_device_num, acc_set_device_num): Update calls to
15365 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15368 2015-05-28 Julian Brown <julian@codesourcery.com>
15371 * oacc-init.c (plugin/plugin-host.h): Include.
15372 (acc_on_device): Check whether we're in an offloaded region for
15374 plugin. Don't use __builtin_acc_on_device.
15375 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15376 nonshm_exec flag in thread-local data.
15377 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15378 data for host_nonshm plugin.
15379 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15380 for host_nonshm plugin.
15381 * plugin/plugin-host.h: New.
15383 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15385 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15387 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15389 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15391 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15392 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15395 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15397 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15399 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15401 * target.c (gomp_map_pointer): New function abstracting out
15402 GOMP_MAP_POINTER handling.
15403 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15404 gomp_map_pointer().
15406 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15408 PR middle-end/66199
15409 * testsuite/libgomp.c/pr66199-1.c: New test.
15410 * testsuite/libgomp.c/pr66199-2.c: New test.
15411 * testsuite/libgomp.c++/pr66199-1.C: New test.
15412 * testsuite/libgomp.c++/pr66199-2.C: New test.
15413 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15414 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15416 2015-05-19 Julian Brown <julian@codesourcery.com>
15418 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15421 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15423 PR middle-end/66133
15424 * testsuite/libgomp.c/pr66133.c: New test.
15426 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15428 * Makefile.in: Regenerated with automake-1.11.6.
15429 * aclocal.m4: Likewise.
15430 * config.h.in: Likewise.
15431 * configure: Likewise.
15432 * testsuite/Makefile.in: Likewise.
15434 2015-05-08 Jason Merrill <jason@redhat.com>
15436 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15439 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15441 2015-05-06 Julian Brown <julian@codesourcery.com>
15443 * oacc-init.c (acc_device_lock): Add explanatory comment.
15444 (resolve_device): Add comment about locking requirement.
15445 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15446 gomp_init_device and gomp_fini_device calls.
15447 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15448 (acc_get_device_num, acc_set_device_num): Add locking around
15449 resolve_device and gomp_init_device calls.
15451 2015-05-06 Julian Brown <julian@codesourcery.com>
15453 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15454 goacc_thread_lock on error paths.
15455 * oacc-mem.c (lookup_host): Remove locking from function. Note
15456 locking requirement for caller in function comment.
15457 (lookup_dev): Likewise.
15458 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15459 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15460 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15463 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15467 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15468 don't expect "0x" prefix for "%p" format specifier, don't expect
15469 "(nil)" for NULL pointer.
15470 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15471 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15472 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15473 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15474 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15475 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15476 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15477 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15478 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15479 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15480 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15481 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15482 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15483 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15484 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15485 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15486 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15487 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15488 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15489 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15490 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15491 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15492 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15493 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15494 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15495 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15496 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15497 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15498 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15499 accurately specify what we're looking for.
15500 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15501 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15502 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15503 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15504 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15506 2015-04-30 James Norris <jnorris@codesourcery.com>
15509 * testsuite/lib/libgomp.exp
15510 (check_effective_target_openacc_host_selected)
15511 (check_effective_target_openacc_host_nonshm_selected): New
15513 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15515 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15516 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15517 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15518 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15519 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15520 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15521 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15522 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15523 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15524 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15525 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15526 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15527 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15528 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15529 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15530 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15531 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15532 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15533 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15534 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15535 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15536 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15537 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15538 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15539 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15540 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15541 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15542 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15543 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15544 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15545 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15546 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15547 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15548 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15549 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15550 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15551 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15552 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15553 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15554 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15555 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15556 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15557 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15559 2015-04-08 Julian Brown <julian@codesourcery.com>
15561 * libgomp.h (target_mem_desc: Remove mem_map field.
15562 (acc_dispatch_t): Remove open_device_func, close_device_func,
15563 get_device_num_func, set_device_num_func, target_data members.
15564 Change create_thread_data_func argument to device number instead of
15566 * oacc-async.c (assert.h): Include.
15567 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15568 (acc_wait_all, acc_wait_all_async): Use current host thread's
15569 active device, not base_dev.
15570 * oacc-cuda.c (acc_get_current_cuda_device)
15571 (acc_get_current_cuda_context, acc_get_cuda_stream)
15572 (acc_set_cuda_stream): Likewise.
15573 * oacc-host.c (host_dispatch): Don't set open_device_func,
15574 close_device_func, get_device_num_func or set_device_num_func.
15575 * oacc-init.c (base_dev, init_key): Remove.
15576 (cached_base_dev): New.
15577 (name_of_acc_device_t): New.
15578 (acc_init_1): Initialise default-numbered device, not zeroth.
15579 (acc_shutdown_1): Close all devices of a given type.
15580 (goacc_destroy_thread): Don't use base_dev.
15581 (lazy_open, lazy_init, lazy_init_and_open): Remove.
15582 (goacc_attach_host_thread_to_device): New.
15583 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15584 (acc_get_num_devices): Don't use base_dev.
15585 (acc_set_device_type): Reimplement.
15586 (acc_get_device_type): Don't use base_dev.
15587 (acc_get_device_num): Tweak logic.
15588 (acc_set_device_num): Likewise.
15589 (acc_on_device): Use acc_get_device_type.
15590 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15591 (goacc_lazy_initialize): Reimplement with acc_init and
15592 goacc_attach_host_thread_to_device.
15593 * oacc-int.h (goacc_thread): Add base_dev field.
15594 (base_dev): Remove extern declaration.
15595 (goacc_attach_host_thread_to_device): Add prototype.
15596 * oacc-mem.c (acc_malloc): Use current thread's device instead of
15598 (acc_free): Likewise.
15599 (acc_memcpy_to_device): Likewise.
15600 (acc_memcpy_from_device): Likewise.
15601 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15602 goacc_lazy_initialize (throughout).
15603 (GOACC_parallel): Use tgt_offset to locate target functions.
15604 * target.c (gomp_map_vars): Don't set tgt->mem_map.
15605 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15606 (gomp_load_plugin_for_device): Remove open_device, close_device,
15607 get_device_num, set_device_num openacc hook initialisation. Don't set
15608 openacc.target_data.
15609 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15610 (GOMP_OFFLOAD_openacc_close_device)
15611 (GOMP_OFFLOAD_openacc_get_device_num)
15612 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15613 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15615 * plugin/plugin-nvptx.c (ptx_inited): Remove.
15616 (instantiated_devices, ptx_dev_lock): New.
15617 (struct ptx_image_data): New.
15618 (ptx_devices, ptx_images, ptx_image_lock): New.
15619 (fini_streams_for_device): Reorder cuStreamDestroy call.
15620 (nvptx_get_num_devices): Remove forward declaration.
15621 (nvptx_init): Change return type to bool.
15622 (nvptx_fini): Remove.
15623 (nvptx_attach_host_thread_to_device): New.
15624 (nvptx_open_device): Return struct ptx_device* instead of void*.
15625 (nvptx_close_device): Change argument type to struct ptx_device*,
15626 return type to void.
15627 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15628 (kernel_target_data, kernel_host_table): Remove static globals.
15629 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15630 (GOMP_OFFLOAD_init_device): Reimplement.
15631 (GOMP_OFFLOAD_fini_device): Likewise.
15632 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15633 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15634 (GOMP_OFFLOAD_host2dev): Use ORD argument.
15635 (GOMP_OFFLOAD_openacc_open_device)
15636 (GOMP_OFFLOAD_openacc_close_device)
15637 (GOMP_OFFLOAD_openacc_set_device_num)
15638 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15639 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15643 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15645 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15647 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15648 * libgomp.h (struct gomp_memory_mapping): Remove.
15649 (struct target_mem_desc): Change type of mem_map from
15650 gomp_memory_mapping * to splay_tree_s *.
15651 (struct gomp_device_descr): Remove register_image_func, get_table_func.
15652 Add load_image_func, unload_image_func.
15653 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15654 Remove offload_regions_registered.
15655 (gomp_init_tables): Remove.
15656 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15658 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15659 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15660 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15661 offload_regions_registered.
15662 Initialize load_image_func, unload_image_func, mem_map.root.
15663 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15664 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15665 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15666 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15667 gomp_memory_mapping *. Use dev's lock and splay_tree.
15668 (lookup_dev): Use dev's lock.
15669 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15670 (acc_is_present): Likewise.
15671 (acc_map_data): Likewise.
15672 (acc_unmap_data): Likewise. Use dev's lock.
15673 (present_create_copy): Likewise.
15674 (delete_copyout): Pass dev to lookup_host instead of mem_map.
15675 (update_dev_host): Likewise.
15676 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
15677 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15678 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15679 (GOMP_OFFLOAD_get_table): Remove
15680 (GOMP_OFFLOAD_load_image): New function.
15681 (GOMP_OFFLOAD_unload_image): New function.
15682 * target.c (register_lock): New mutex for offload image registration.
15683 (num_devices): Do not guard with PLUGIN_SUPPORT.
15684 (gomp_realloc_unlock): New static function.
15685 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
15687 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15688 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
15689 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15691 (gomp_unmap_vars): Likewise.
15692 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
15693 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
15694 (gomp_offload_image_to_device): New static function.
15695 (GOMP_offload_register): Add mutex lock.
15696 Call gomp_offload_image_to_device for all initialized devices.
15697 Replace gomp_realloc with gomp_realloc_unlock.
15698 (GOMP_offload_unregister): New function.
15699 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
15700 get_table_func from the plugin with calls to init_device_func and
15701 gomp_offload_image_to_device.
15702 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15704 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
15705 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
15706 (GOMP_target_data): Do not call gomp_init_tables.
15707 (GOMP_target_update): Likewise. Remove argument from gomp_update.
15708 (gomp_load_plugin_for_device): Replace register_image and get_table
15709 with load_image and unload_image in DLSYM ().
15710 (gomp_register_images_for_device): Remove function.
15711 (gomp_target_init): Do not initialize current_device.mem_map.*,
15712 current_device.offload_regions_registered.
15713 Remove call to gomp_register_images_for_device.
15714 Do not free offload_images and num_offload_images.
15716 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15719 * testsuite/libgomp.fortran/pr65597.f90: New test.
15721 2015-03-27 Tom de Vries <tom@codesourcery.com>
15724 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15725 (init, check): New function.
15726 (foo): Change return type to void.
15727 (main): Call init and check.
15729 2015-03-27 Tom de Vries <tom@codesourcery.com>
15732 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15733 (foo): Use M for non-inner loops to scale down test-case.
15735 2015-03-25 Kai Tietz <ktietz@redhat.com>
15738 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15739 (GOACC_data_start): Likewise.
15740 * target.c (gomp_map_vars): Likewise.
15742 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
15744 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15747 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15749 * testsuite/libgomp.c/target-10.c: New test.
15750 * testsuite/libgomp.c++/target-4.C: New test.
15752 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
15754 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15755 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15757 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
15759 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15760 * configure.ac (*-*-rtems*): Assume Pthread is supported.
15761 (pthread.h): Check for this header file.
15762 * configure: Regenerate.
15764 2015-02-25 Tom de Vries <tom@codesourcery.com>
15766 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15767 (check_reduction_op, check_reduction_macro, max, min):
15769 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15771 (main): Use new functions.
15773 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
15775 * target.c (gomp_load_plugin_for_device): Use const char * instead of
15776 char * for variables holding dlerror return values.
15777 (DLSYM_OPT): Ditto.
15779 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15781 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15783 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15784 Cesar Philippidis <cesar@codesourcery.com>
15786 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15787 GOACC_ctaid, and GOACC_nctaid routines.
15789 2015-02-11 Jakub Jelinek <jakub@redhat.com>
15792 * testsuite/libgomp.c/atomic-18.c: New test.
15793 * testsuite/libgomp.c++/atomic-16.C: New test.
15795 2015-02-04 Jakub Jelinek <jakub@redhat.com>
15799 * testsuite/libgomp.c/pr64824.c: New test.
15800 * testsuite/libgomp.c/pr64868.c: New test.
15801 * testsuite/libgomp.c++/pr64824.C: New test.
15802 * testsuite/libgomp.c++/pr64868.C: New test.
15804 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
15807 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15808 Link with -lpthread.
15809 * config/aix/plugin-suffix.h: Delete.
15811 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
15814 * configure.tgt (*-*-aix*): Use config_path "aix posix".
15815 (*-*-darwin*): Use config_path "bsd darwin posix".
15816 (*-*-hpux*): Use config_path "hpux posix".
15817 * target.c: Add include of plugin-suffix.h and use
15818 SONAME_SUFFIX macro.
15819 * config/aix/plugin-suffix.h: New file.
15820 * config/darwin/plugin-suffix.h: New file.
15821 * config/hpux/plugin-suffix.h: New file.
15822 * config/posix/plugin-suffix.h: New file.
15824 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15826 PR middle-end/64734
15827 * libgomp.c/pr64734.c: New test.
15829 2015-01-23 Tom de Vries <tom@codesourcery.com>
15832 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15834 2015-01-23 Tom de Vries <tom@codesourcery.com>
15837 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15840 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
15843 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15844 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15845 formal parameter. Update all users.
15846 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15847 Document unused formal parameter.
15849 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
15851 * oacc-parallel.c: Don't include <alloca.h>.
15852 (GOACC_parallel): Use gomp_alloca instead of alloca.
15854 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
15856 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15858 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
15859 James Norris <jnorris@codesourcery.com>
15860 Tom de Vries <tom@codesourcery.com>
15861 Julian Brown <julian@codesourcery.com>
15862 Cesar Philippidis <cesar@codesourcery.com>
15863 Nathan Sidwell <nathan@codesourcery.com>
15864 Tobias Burnus <burnus@net-b.de>
15866 * Makefile.am (search_path): Add $(top_srcdir)/../include.
15867 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15868 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15869 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15870 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15871 Include $(top_srcdir)/plugin/Makefrag.am.
15872 (nodist_libsubinclude_HEADERS): Add openacc.h.
15873 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15874 openacc.f90, openacc.mod, openacc_kinds.mod.
15875 (omp_lib.mod): Generalize into...
15876 (%.mod): ... this new rule.
15877 (openacc_kinds.mod, openacc.mod): New rules.
15878 * plugin/configfrag.ac: New file.
15879 * configure.ac: Move plugin/offloading support into it. Include
15880 it. Instantiate testsuite/libgomp-test-support.pt.exp.
15881 * plugin/Makefrag.am: New file.
15882 * testsuite/Makefile.am (OFFLOAD_TARGETS)
15883 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15885 (libgomp-test-support.exp): New rule.
15886 (all-local): Depend on it.
15887 * Makefile.in: Regenerate.
15888 * testsuite/Makefile.in: Regenerate.
15889 * config.h.in: Likewise.
15890 * configure: Likewise.
15891 * configure.tgt: Harden shell syntax.
15892 * env.c: Include "oacc-int.h".
15893 (parse_acc_device_type): New function.
15894 (gomp_debug_var, goacc_device_type, goacc_device_num): New
15896 (initialize_env): Initialize those. Call
15897 goacc_runtime_initialize.
15898 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15899 (gomp_fatal): Call gomp_vfatal.
15900 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15901 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15902 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15903 (splay_tree_node, splay_tree, splay_tree_key)
15904 (struct target_mem_desc, struct splay_tree_key_s)
15905 (struct gomp_memory_mapping, struct acc_dispatch_t)
15906 (struct gomp_device_descr, gomp_acc_insert_pointer)
15907 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15908 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15909 (gomp_free_memmap, gomp_fini_device): New declarations.
15910 (gomp_vdebug, gomp_debug): New macros.
15911 Include "splay-tree.h".
15912 * libgomp.map (OACC_2.0): New symbol version. Use for
15913 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15914 acc_set_device_type_h_, acc_get_device_type,
15915 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15916 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15917 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15918 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15919 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15920 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15921 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15922 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15923 acc_copyin_array_h_, acc_present_or_copyin,
15924 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15925 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15926 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15927 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15928 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15929 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15930 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15931 acc_update_device, acc_update_device_32_h_,
15932 acc_update_device_64_h_, acc_update_device_array_h_,
15933 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15934 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15935 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15936 acc_is_present_64_h_, acc_is_present_array_h_,
15937 acc_memcpy_to_device, acc_memcpy_from_device,
15938 acc_get_current_cuda_device, acc_get_current_cuda_context,
15939 acc_get_cuda_stream, acc_set_cuda_stream.
15940 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
15941 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15942 GOACC_update, GOACC_wait, GOACC_get_thread_num,
15943 GOACC_get_num_threads.
15944 (GOMP_PLUGIN_1.0): New symbol version. Use for
15945 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15946 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15947 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15948 GOMP_PLUGIN_acc_thread.
15949 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15950 environment variable.
15951 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15952 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15953 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15954 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15955 (splay_tree_remove): New declarations.
15956 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15957 (splay_tree_remove, splay_tree_lookup): Move into...
15958 * splay-tree.c: ... this new file.
15959 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15960 (splay_tree_node, splay_tree, splay_tree_key)
15961 (struct target_mem_desc, struct splay_tree_key_s)
15962 (struct gomp_device_descr): Don't declare.
15963 (num_devices_openmp): New variable.
15964 (gomp_get_num_devices ): Use it.
15965 (gomp_init_targets_once): New function.
15966 (gomp_get_num_devices ): Use it.
15967 (get_kind, gomp_copy_from_async, gomp_free_memmap)
15968 (gomp_fini_device, gomp_register_image_for_device): New functions.
15969 (gomp_map_vars): Add devaddrs parameter.
15970 (gomp_update): Add mm parameter.
15971 (gomp_init_device): Move most of it into...
15972 (gomp_init_tables): ... this new function.
15973 (gomp_register_images_for_device): Remove function.
15974 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15975 Make them hidden instead of static.
15976 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15977 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15978 (GOMP_target_end_data, GOMP_target_update)
15979 (gomp_load_plugin_for_device, gomp_target_init): Update for
15981 * oacc-async.c: New file.
15982 * oacc-cuda.c: Likewise.
15983 * oacc-host.c: Likewise.
15984 * oacc-init.c: Likewise.
15985 * oacc-int.h: Likewise.
15986 * oacc-mem.c: Likewise.
15987 * oacc-parallel.c: Likewise.
15988 * oacc-plugin.c: Likewise.
15989 * oacc-plugin.h: Likewise.
15990 * oacc-ptx.h: Likewise.
15991 * openacc.f90: Likewise.
15992 * openacc.h: Likewise.
15993 * openacc_lib.h: Likewise.
15994 * plugin/plugin-host.c: Likewise.
15995 * plugin/plugin-nvptx.c: Likewise.
15996 * libgomp-plugin.c: Likewise.
15997 * libgomp-plugin.h: Likewise.
15998 * libgomp_target.h: Remove file after merging content into the
15999 former file. Update all users.
16000 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16001 (offload_targets_s, offload_targets_s_openacc): New variables.
16002 (check_effective_target_openacc_nvidia_accel_present)
16003 (check_effective_target_openacc_nvidia_accel_selected): New
16005 (libgomp_init): Update for OpenACC changes.
16006 * testsuite/libgomp-test-support.exp.in: New file.
16007 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16008 * testsuite/libgomp.oacc-c/c.exp: Likewise.
16009 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16010 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16011 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16012 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16013 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16014 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16015 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16016 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16017 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16018 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16019 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16020 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16021 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16022 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16023 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16024 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16025 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16026 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16027 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16028 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16029 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16030 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16031 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16032 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16033 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16034 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16035 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16036 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16037 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16038 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16039 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16040 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16041 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16042 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16043 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16044 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16045 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16046 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16047 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16048 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16049 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16050 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16051 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16052 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16053 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16054 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16055 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16056 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16057 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16058 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16059 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16060 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16061 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16062 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16063 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16064 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16065 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16066 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16067 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16068 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16069 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16070 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16071 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16072 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16073 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16074 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16075 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16076 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16077 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16078 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16079 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16080 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16081 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16082 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16083 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16084 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16085 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16086 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16087 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16088 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16089 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16090 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16091 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16092 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16093 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16094 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16095 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16096 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16097 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16098 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16099 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16100 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16101 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16102 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16103 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16104 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16105 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16106 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16107 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16108 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16109 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16110 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16111 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16112 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16113 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16114 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16115 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16116 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16117 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16118 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16119 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16120 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16121 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16122 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16123 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16124 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16125 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16126 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16127 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16128 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16129 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16130 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16131 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16132 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16133 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16134 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16135 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16136 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16137 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16138 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16139 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16140 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16141 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16142 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16143 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16144 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16145 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16146 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16148 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16149 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16150 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16151 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16152 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16153 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16154 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16155 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16156 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16157 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16158 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16159 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16160 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16161 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16162 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16163 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16164 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16165 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16166 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16167 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16168 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16169 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16170 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16171 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16172 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16173 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16174 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16175 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16176 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16177 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16178 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16179 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16180 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16181 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16182 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16183 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16184 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16185 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16186 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16187 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16188 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16189 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16190 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16191 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16192 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16193 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16194 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16195 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16196 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16197 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16198 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16199 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16200 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16201 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16202 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16203 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16204 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16205 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16206 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16207 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16209 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
16210 Julian Brown <julian@codesourcery.com>
16211 David Malcolm <dmalcolm@redhat.com>
16213 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16214 to "GNU Offloading and Multi Processing Runtime Library". Change
16216 * configure: Regenerate.
16217 * libgomp.texi: Update.
16219 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
16221 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16223 * configure: Regenerate.
16225 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16226 "intelmic" in $offload_targets.
16228 2015-01-05 Jakub Jelinek <jakub@redhat.com>
16230 Update copyright years.
16232 * libgomp.texi: Bump @copying's copyright year.
16234 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16236 * testsuite/lib/libgomp.exp: Load target-utils.exp.
16237 Move load of target-supports.exp earlier.
16239 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
16241 * testsuite/libgomp.c/target-9.c: New test.
16243 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
16245 * config.h.in: Regenerate.
16246 * configure: Regenerate.
16247 * configure.ac: Add GCC_CHECK_EMUTLS.
16248 * libgomp.h: Add check for USE_EMUTLS: this case
16249 is equal to HAVE_TLS.
16250 * team.c: Likewise.
16252 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
16254 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16256 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16257 Ilya Verbin <ilya.verbin@intel.com>
16259 * testsuite/libgomp.c/target-critical-1.c: New test.
16261 2014-11-26 Jakub Jelinek <jakub@redhat.com>
16263 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16264 to dg-options unless expensive testing is on.
16265 (TESTITERS): Define to N if not defined.
16266 (main): Use TESTITERS instead of N.
16267 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16268 dg-additional-options depending on whether expensive testing is on.
16269 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16270 Decrease N to 100000 and CHUNKSZ to 10000.
16272 2014-11-24 Jakub Jelinek <jakub@redhat.com>
16275 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16276 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16278 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
16280 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16282 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16285 * configure: Regenerated.
16287 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
16289 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16290 vect_simd_clones effective target.
16291 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16293 2014-11-14 Jakub Jelinek <jakub@redhat.com>
16295 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16296 of 32 as block_size.
16297 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16298 instead of 32 as block_size.
16300 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16301 Ilya Verbin <ilya.verbin@intel.com>
16303 * Makefile.in: Regenerate.
16304 * configure: Regenerate.
16305 * configure.ac: Set up offload_additional_options,
16306 offload_additional_lib_paths and offload_targets.
16307 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16308 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16309 * testsuite/Makefile.in: Regenerate.
16310 * testsuite/lib/libgomp.exp (libgomp_init): Append
16311 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16312 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16313 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16315 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16316 Ilya Verbin <ilya.verbin@intel.com>
16317 Kirill Yukhin <kirill.yukhin@intel.com>
16318 Ilya Tocar <ilya.tocar@intel.com>
16320 * testsuite/lib/libgomp.exp
16321 (check_effective_target_offload_device): New.
16322 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16323 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16324 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16325 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16326 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16327 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16328 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16329 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16330 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16331 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16332 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16333 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16334 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16335 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16336 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16337 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16338 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16339 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16340 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16341 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16342 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16343 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16344 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16345 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16346 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16347 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16348 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16349 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16350 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16351 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16352 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16353 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16354 * testsuite/libgomp.c/target-7.c: Fix test.
16355 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16356 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16357 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16358 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16359 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16360 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16361 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16362 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16363 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16364 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16365 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16366 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16367 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16368 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16369 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16370 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16371 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16372 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16373 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16374 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16375 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16376 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16377 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16378 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16379 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16380 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16381 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16382 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16383 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16384 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16385 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16387 2014-11-13 Jakub Jelinek <jakub@redhat.com>
16388 Ilya Verbin <ilya.verbin@intel.com>
16389 Thomas Schwinge <thomas@codesourcery.com>
16390 Andrey Turetskiy <andrey.turetskiy@intel.com>
16392 * libgomp.map (GOMP_4.0.1): New symbol version.
16393 Add GOMP_offload_register.
16394 * libgomp_target.h: New file.
16395 * splay-tree.h: New file.
16396 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16397 (gomp_target_init): New forward declaration.
16398 (gomp_is_initialized): New static variable.
16399 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16400 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16402 (offload_images, num_offload_images, devices, num_devices): New static
16404 (splay_compare): New static function.
16405 (struct gomp_device_descr): New structure.
16406 (gomp_get_num_devices): Call gomp_target_init.
16407 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16408 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16409 (GOMP_offload_register): New function.
16410 (GOMP_target): Arrange for host callback to be performed in a separate
16411 initial thread and contention group, inheriting ICVs from
16412 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16413 Add device initialization and lookup for target function in splay tree.
16414 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16415 (GOMP_target_end_data): Call gomp_unmap_vars.
16416 (GOMP_target_update): Add device initialization and call gomp_update.
16417 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16418 (gomp_target_init): New static functions.
16420 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16421 Thomas Schwinge <thomas@codesourcery.com>
16422 Ilya Verbin <ilya.verbin@intel.com>
16423 Andrey Turetskiy <andrey.turetskiy@intel.com>
16425 * config.h.in: Regenerate.
16426 * configure: Regenerate.
16427 * configure.ac: Check for libdl, required for plugin support.
16428 (PLUGIN_SUPPORT): Define if plugins are supported.
16429 (enable_offload_targets): Support Intel MIC targets.
16430 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16432 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16435 * configure: Regenerate.
16437 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16439 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16441 2014-10-06 Marek Polacek <polacek@redhat.com>
16443 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16444 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16445 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16446 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16448 2014-10-06 Marek Polacek <polacek@redhat.com>
16450 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16451 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16452 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16453 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16454 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16455 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16456 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16457 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16458 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16459 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16460 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16461 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16462 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16463 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16464 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16465 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16466 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16467 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16470 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16473 * testsuite/libgomp.c/pr61200.c: New test.
16475 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16478 * testsuite/libgomp.c++/pr63248.C: New test.
16480 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16482 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16483 is not zero, but taskgroup->children is NULL and there are
16484 any task->children, schedule those instead of waiting.
16485 * testsuite/libgomp.c/depend-6.c: New test.
16486 * testsuite/libgomp.c/depend-7.c: New test.
16487 * testsuite/libgomp.c/depend-8.c: New test.
16488 * testsuite/libgomp.c/depend-9.c: New test.
16489 * testsuite/libgomp.c/depend-10.c: New test.
16491 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16493 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16494 (struct gomp_taskwait): New type.
16495 (struct gomp_task): Add taskwait and parent_depends_on, remove
16496 in_taskwait and taskwait_sem fields.
16497 (gomp_finish_task): Don't destroy taskwait_sem.
16498 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16499 taskwait and parent_depends_on.
16500 (GOMP_task): For if (0) tasks with depend clause that depend on
16501 earlier tasks don't defer them, instead call
16502 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16503 Initialize redundant_out field, for redundant out entries just
16504 move them at the end of linked list instead of removing them
16505 completely, and set redundant_out flag instead of redundant.
16506 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16508 (gomp_task_run_post_handle_dependers): If parent is in
16509 gomp_task_maybe_wait_for_dependencies and newly runnable task
16510 is not parent_depends_on, queue it in parent->children linked
16511 list after all runnable tasks with parent_depends_on set.
16512 Adjust for addition of taskwait indirection.
16513 (gomp_task_run_post_remove_parent): If parent is in
16514 gomp_task_maybe_wait_for_dependencies and task to be removed
16515 is parent_depends_on, decrement n_depend and if needed awake
16516 parent. Adjust for addition of taskwait indirection.
16517 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16518 (gomp_task_maybe_wait_for_dependencies): New function.
16519 * testsuite/libgomp.c/depend-5.c: New test.
16521 2014-07-13 Tobias Burnus <burnus@net-b.de>
16523 * testsuite/libgomp.fortran/pr34020.f90: Make compile
16524 with TS 18508/Fortran 2015.
16526 2014-07-06 Marek Polacek <polacek@redhat.com>
16529 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16531 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16533 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16534 matches regex $lang_source_re, add $lang_include_flags to options.
16535 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16536 * testsuite/libgomp.c++/c++.exp: Likewise.
16537 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16538 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16540 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16542 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16544 * testsuite/libgomp.fortran/fortran.exp: Explain
16545 gfortran-dg-runtest usage.
16547 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16549 * testsuite/libgomp.fortran/simd5.f90: New test.
16550 * testsuite/libgomp.fortran/simd6.f90: New test.
16551 * testsuite/libgomp.fortran/simd7.f90: New test.
16553 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16555 * testsuite/libgomp.c/for-2.c: Define SC to static for
16556 #pragma omp for simd testing.
16557 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16558 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16560 * testsuite/libgomp.c/simd-14.c: New test.
16561 * testsuite/libgomp.c/simd-15.c: New test.
16562 * testsuite/libgomp.c/simd-16.c: New test.
16563 * testsuite/libgomp.c/simd-17.c: New test.
16564 * testsuite/libgomp.c++/for-10.C: Define SC to static for
16565 #pragma omp for simd testing.
16566 * testsuite/libgomp.c++/simd10.C: New test.
16567 * testsuite/libgomp.c++/simd11.C: New test.
16568 * testsuite/libgomp.c++/simd12.C: New test.
16569 * testsuite/libgomp.c++/simd13.C: New test.
16571 * testsuite/libgomp.fortran/aligned1.f03: New test.
16572 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16573 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16574 tasks with !$omp parallel !$omp single.
16575 * testsuite/libgomp.fortran/target8.f90: New test.
16576 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16577 not to use trim in the combiner, instead call elemental function.
16578 (fn): New elemental function.
16579 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16581 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16583 * testsuite/libgomp.fortran/udr12.f90: New test.
16584 * testsuite/libgomp.fortran/udr13.f90: New test.
16585 * testsuite/libgomp.fortran/udr14.f90: New test.
16586 * testsuite/libgomp.fortran/udr15.f90: New test.
16588 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16590 * omp_lib.f90.in (openmp_version): Set to 201307.
16591 * omp_lib.h.in (openmp_version): Likewise.
16592 * testsuite/libgomp.c/target-8.c: New test.
16593 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16594 and inbranch clauses.
16595 * testsuite/libgomp.fortran/depend-3.f90: New test.
16596 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16598 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16599 * testsuite/libgomp.fortran/target1.f90: New test.
16600 * testsuite/libgomp.fortran/target2.f90: New test.
16601 * testsuite/libgomp.fortran/target3.f90: New test.
16602 * testsuite/libgomp.fortran/target4.f90: New test.
16603 * testsuite/libgomp.fortran/target5.f90: New test.
16604 * testsuite/libgomp.fortran/target6.f90: New test.
16605 * testsuite/libgomp.fortran/target7.f90: New test.
16607 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16610 * testsuite/libgomp.fortran/allocatable9.f90: New test.
16611 * testsuite/libgomp.fortran/allocatable10.f90: New test.
16612 * testsuite/libgomp.fortran/allocatable11.f90: New test.
16613 * testsuite/libgomp.fortran/allocatable12.f90: New test.
16614 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16615 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16616 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16617 * testsuite/libgomp.fortran/associate1.f90: New test.
16618 * testsuite/libgomp.fortran/associate2.f90: New test.
16619 * testsuite/libgomp.fortran/procptr1.f90: New test.
16621 2014-06-06 Jakub Jelinek <jakub@redhat.com>
16623 * testsuite/libgomp.fortran/simd1.f90: New test.
16624 * testsuite/libgomp.fortran/udr1.f90: New test.
16625 * testsuite/libgomp.fortran/udr2.f90: New test.
16626 * testsuite/libgomp.fortran/udr3.f90: New test.
16627 * testsuite/libgomp.fortran/udr4.f90: New test.
16628 * testsuite/libgomp.fortran/udr5.f90: New test.
16629 * testsuite/libgomp.fortran/udr6.f90: New test.
16630 * testsuite/libgomp.fortran/udr7.f90: New test.
16631 * testsuite/libgomp.fortran/udr8.f90: New test.
16632 * testsuite/libgomp.fortran/udr9.f90: New test.
16633 * testsuite/libgomp.fortran/udr10.f90: New test.
16634 * testsuite/libgomp.fortran/udr11.f90: New test.
16636 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
16638 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16639 vect_simd_clones effective target.
16640 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16642 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16644 PR middle-end/61252
16645 * testsuite/libgomp.c++/simd-9.C: New test.
16647 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
16649 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16650 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16651 texts according to their @menu entry positions.
16653 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16655 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16656 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16657 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16658 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16659 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16660 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16661 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16662 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16663 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16664 * testsuite/libgomp.fortran/depend-1.f90: New test.
16665 * testsuite/libgomp.fortran/depend-2.f90: New test.
16666 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16667 * testsuite/libgomp.fortran/simd1.f90: New test.
16668 * testsuite/libgomp.fortran/simd2.f90: New test.
16669 * testsuite/libgomp.fortran/simd3.f90: New test.
16670 * testsuite/libgomp.fortran/simd4.f90: New test.
16671 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16673 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16675 * testsuite/libgomp.c/simd-10.c: New test.
16676 * testsuite/libgomp.c/simd-11.c: New test.
16677 * testsuite/libgomp.c/simd-12.c: New test.
16678 * testsuite/libgomp.c/simd-13.c: New test.
16680 2014-04-24 Jakub Jelinek <jakub@redhat.com>
16682 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16683 atomic type clauses in any order and optional comma in between.
16684 * testsuite/libgomp.c++/atomic-15.C: Likewise.
16685 * testsuite/libgomp.c/atomic-17.c: Likewise.
16687 * testsuite/libgomp.c/simd-7.c: New test.
16688 * testsuite/libgomp.c/simd-8.c: New test.
16689 * testsuite/libgomp.c/simd-9.c: New test.
16690 * testsuite/libgomp.c/loop-16.c: New test.
16692 2014-04-02 Richard Henderson <rth@redhat.com>
16694 * config/linux/futex.h (futex_wait): Get error value from errno.
16695 (futex_wake): Likewise.
16697 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16700 * testsuite/libgomp.c++/udr-11.C: New test.
16701 * testsuite/libgomp.c++/udr-12.C: New test.
16702 * testsuite/libgomp.c++/udr-13.C: New test.
16703 * testsuite/libgomp.c++/udr-14.C: New test.
16704 * testsuite/libgomp.c++/udr-15.C: New test.
16705 * testsuite/libgomp.c++/udr-16.C: New test.
16706 * testsuite/libgomp.c++/udr-17.C: New test.
16707 * testsuite/libgomp.c++/udr-18.C: New test.
16708 * testsuite/libgomp.c++/udr-19.C: New test.
16710 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16712 Update copyright years
16714 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16716 * hashtab.h: Use the standard form for the copyright notice.
16718 2014-01-02 Tobias Burnus <burnus@net-b.de>
16720 * libgomp.texi: Bump @copying's copyright year.
16722 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
16724 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16725 alloca () with __builtin_alloca ().
16726 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16727 * testsuite/libgomp.c/lock-3.c: Likewise.
16728 * testsuite/libgomp.c/pr48591.c: Likewise.
16730 2013-12-17 Jakub Jelinek <jakub@redhat.com>
16733 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16736 2013-12-16 Jakub Jelinek <jakub@redhat.com>
16739 * testsuite/libgomp.c/pr58756.c: New test.
16741 2013-12-12 Jakub Jelinek <jakub@redhat.com>
16744 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16747 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
16749 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16751 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16752 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16753 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16754 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16757 * libgomp_g.h: Include <stddef.h> for size_t.
16759 * libgomp.spec.in: Update comment about libgomp's dependencies.
16760 * configure.ac: Likewise.
16761 * configure: Regenerate.
16763 2013-10-16 Tobias Burnus <burnus@net-b.de>
16765 * libgomp.texi: (Runtime Library Routines): Update references for
16766 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16767 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16768 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16769 (Environment Variables): Update references for OpenMP 4.0. Add
16770 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16771 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16774 2013-10-14 Jakub Jelinek <jakub@redhat.com>
16776 * env.c (parse_bind_var): Initialize value to avoid
16777 (false positive) warning.
16779 2013-10-12 Jakub Jelinek <jakub@redhat.com>
16782 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16784 (gomp_init_num_threads): Move i variable declaration into
16785 #ifdef CPU_ALLOC_SIZE block.
16786 * config/linux/affinity.c (gomp_affinity_init_level): Test
16787 gomp_places_list_len == 0 rather than gomp_places_list == 0
16788 when checking for topology reading error.
16789 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16790 * env.c (parse_affinity): Add ignore argument, if true, don't populate
16791 gomp_places_list, only parse env var and always return false.
16792 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
16793 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16794 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16795 and either of these variables were parsed correctly into a places
16798 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16799 Jakub Jelinek <jakub@redhat.com>
16801 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16802 of 5 loopfn matches.
16803 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16804 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16805 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16806 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16807 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16808 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16809 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16810 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16812 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16814 * Makefile.am (omp_lib.mod): Streamline rule.
16815 * Makefile.in: Regenerate.
16817 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16820 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16821 * testsuite/libgomp.fortran/lib1.f90: Likewise.
16822 * testsuite/libgomp.fortran/lib2.f: Likewise.
16823 * testsuite/libgomp.fortran/lib3.f: Likewise.
16825 * configure.ac: Typo fix.
16826 * configure: Regenerate.
16828 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16829 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16831 * omp.h.in: Don't touch the user's namespace.
16833 2013-10-11 Jakub Jelinek <jakub@redhat.com>
16834 Tobias Burnus <burnus@net-b.de>
16835 Richard Henderson <rth@redhat.com>
16837 * target.c: New file.
16838 * Makefile.am (libgomp_la_SOURCES): Add target.c.
16839 * Makefile.in: Regenerated.
16840 * libgomp_g.h (GOMP_task): Add depend argument.
16841 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16842 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16843 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16844 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16845 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16846 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16847 GOMP_taskgroup_start, GOMP_taskgroup_end,
16848 GOMP_parallel_sections): New prototypes.
16849 * fortran.c (omp_is_initial_device): Add ialias_redirect.
16850 (omp_is_initial_device_): New function.
16851 (ULP, STR1, STR2, ialias_redirect): Removed.
16852 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16853 omp_set_default_device_8_, omp_get_default_device_,
16854 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16856 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16857 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16858 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16860 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16861 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16862 omp_set_default_device, omp_set_default_device_,
16863 omp_set_default_device_8_, omp_get_default_device,
16864 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16865 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16866 omp_get_team_num_): Export @@OMP_4.0.
16867 * team.c (struct gomp_thread_start_data): Add place field.
16868 (gomp_thread_start): Clear thr->thread_pool and
16869 thr->task before returning. Use gomp_team_barrier_wait_final
16870 instead of gomp_team_barrier_wait. Initialize thr->place.
16871 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16872 team_cancelled and task_queued_count fields.
16873 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16874 before calling pthread_exit.
16875 (gomp_free_thread): No longer static. Use
16876 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16877 (gomp_team_start): Add flags argument. Set
16878 thr->thread_pool->threads_busy to nthreads immediately after creating
16879 new pool. Use gomp_managed_threads_lock instead of
16880 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
16881 (gomp_team_end): Use gomp_managed_threads_lock instead of
16882 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
16883 of gomp_team_barrier_wait. If team->team_cancelled, call
16884 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16885 rather than thr->ts.work_share.
16886 (initialize_team): Don't call gomp_sem_init here.
16887 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16889 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16890 * env.c (gomp_global_icv): Add default_device_var, target_data and
16891 bind_var initializers.
16892 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16893 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16894 gomp_places_list_len): New variables.
16895 (parse_bind_var, parse_one_place, parse_places_var): New functions.
16896 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16898 (gomp_cancel_var): New global variable.
16899 (parse_int): New function.
16900 (handle_omp_display_env): New function.
16901 (initialize_env): Use it. Initialize default_device_var.
16902 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
16903 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
16904 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
16905 been successfully parsed (and call gomp_init_affinity in that case).
16906 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16907 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16908 omp_get_team_num, omp_is_initial_device): New functions.
16909 * libgomp.h: Include stdlib.h.
16910 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16912 (struct target_mem_desc): Forward declare.
16913 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16914 and thread_limit_var fields.
16915 (gomp_get_num_devices): New prototype.
16916 (gomp_cancel_var): New extern decl.
16917 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16918 team_cancelled and task_queued_count fields. Add comments about
16919 task_{,queued_,running_}count.
16920 (gomp_cancel_kind): New enum.
16921 (gomp_work_share_end_cancel): New prototype.
16922 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16923 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16925 (struct gomp_taskgroup): New type.
16926 (struct gomp_task_depend_entry,
16927 struct gomp_dependers_vec): New types.
16928 (gomp_finish_task): Free depend_hash if non-NULL.
16929 (struct gomp_team_state): Add place_partition_off
16930 and place_partition_len fields.
16931 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16932 gomp_places_list_len): New extern decls.
16933 (struct gomp_thread): Add place field.
16934 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16935 (gomp_init_thread_affinity): Add place argument.
16936 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16937 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16938 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16939 gomp_affinity_init_level, gomp_affinity_print_place): New
16941 (gomp_team_start): Add flags argument.
16942 (gomp_thread_limit_var, gomp_remaining_threads_count,
16943 gomp_remaining_threads_lock): Remove.
16944 (gomp_managed_threads_lock): New variable.
16945 (struct gomp_thread_pool): Add threads_busy field.
16946 (gomp_free_thread): New prototype.
16947 * task.c: Include hashtab.h.
16948 (hash_entry_type): New typedef.
16949 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16950 (gomp_init_task): Clear dependers, depend_hash, depend_count,
16951 copy_ctors_done and taskgroup fields.
16952 (GOMP_task): Add depend argument, handle depend clauses. If
16953 gomp_team_barrier_cancelled or if it's taskgroup has been
16954 cancelled, don't queue or start new tasks. Set copy_ctors_done
16955 field if needed. Initialize taskgroup field. If copy_ctors_done
16956 and already cancelled, don't discard the task. If taskgroup is
16957 non-NULL, enqueue the task into taskgroup queue. Increment
16958 num_children field in taskgroup. Increment task_queued_count.
16959 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16960 gomp_task_run_post_remove_taskgroup): New inline functions.
16961 (gomp_task_run_post_handle_depend_hash,
16962 gomp_task_run_post_handle_dependers,
16963 gomp_task_run_post_handle_depend): New functions.
16964 (GOMP_taskwait): Use them. If more than one new tasks
16965 have been queued, wake other threads if needed.
16966 (gomp_barrier_handle_tasks): Likewise. If
16967 gomp_team_barrier_cancelled, don't start any new tasks, just free
16969 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16971 (omp_proc_bind_kind, omp_proc_bind_false,
16972 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16973 omp_proc_bind_spread): New params.
16974 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16975 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16976 omp_get_team_num, omp_is_initial_device): New interfaces.
16977 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16978 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16979 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16980 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16981 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16982 useless use omp_lib_kinds.
16983 * omp.h.in (omp_proc_bind_t): New typedef.
16984 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16985 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16986 omp_get_team_num, omp_is_initial_device): New prototypes.
16987 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16988 through to gomp_team_start.
16989 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16990 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16991 Adjust gomp_parallel_loop_start callers.
16992 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16993 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16994 GOMP_loop_end_cancel): New functions.
16995 (GOMP_parallel_end): Add ialias_redirect.
16996 * hashtab.h: New file.
16997 * libgomp.texi (Environment Variables): Minor cleanup,
16998 update section refs to OpenMP 4.0rc2.
16999 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17000 environment variables.
17001 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17002 team->work_shares_to_free to thr->ts.work_share before calling
17004 (gomp_work_share_end_cancel): New function.
17005 * config/linux/proc.c: Include errno.h.
17006 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17007 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17008 sizeof (cpu_set_t) to determine number of iterations. Fix up check
17009 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
17010 gomp_cpuset_size is sizeof (cpu_set_t).
17011 (gomp_init_num_threads): Initialize gomp_cpuset_size,
17012 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17013 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17014 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
17015 contain any logical CPUs.
17016 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17017 is NULL. Use gomp_cpusetp instead of &cpuset and pass
17018 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17019 pthread_getaffinity_np. Check gomp_places_list instead of
17020 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
17021 * config/linux/bar.c (gomp_barrier_wait_end,
17022 gomp_barrier_wait_last): Use BAR_* defines.
17023 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
17024 from state where needed. Set work_share_cancelled to 0 on last
17026 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17027 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17029 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17030 Add cpusetsize argument.
17031 (gomp_cpuset_size, gomp_cpusetp): Declare.
17032 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17033 (affinity_counter): Remove.
17034 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17035 if CPU_ALLOC_SIZE isn't defined.
17036 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17037 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17038 bind current thread to the first place.
17039 (gomp_init_thread_affinity): Rewritten. Add place argument, just
17040 pthread_setaffinity_np to gomp_places_list[place].
17041 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17042 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17043 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17044 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17045 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17046 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17047 (gomp_barrier_t): Add awaited_final field.
17048 (gomp_barrier_init): Initialize awaited_final field.
17049 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17050 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17052 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
17054 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17055 gomp_team_barrier_cancelled): New inline functions.
17056 (gomp_barrier_last_thread,
17057 gomp_team_barrier_set_task_pending,
17058 gomp_team_barrier_clear_task_pending,
17059 gomp_team_barrier_set_waiting_for_tasks,
17060 gomp_team_barrier_waiting_for_tasks,
17061 gomp_team_barrier_done): Use BAR_* defines.
17062 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17063 (gomp_barrier_wait_end): Use BAR_* defines.
17064 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17065 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17067 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17068 gomp_team_barrier_cancel): New functions.
17069 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17071 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17072 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17073 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17074 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17075 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17076 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17077 (gomp_barrier_t): Add cancellable field.
17078 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17079 gomp_team_barrier_cancel): New prototypes.
17080 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17081 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17082 gomp_team_barrier_cancelled): New inline functions.
17083 (gomp_barrier_wait_start, gomp_barrier_last_thread,
17084 gomp_team_barrier_set_task_pending,
17085 gomp_team_barrier_clear_task_pending,
17086 gomp_team_barrier_set_waiting_for_tasks,
17087 gomp_team_barrier_waiting_for_tasks,
17088 gomp_team_barrier_done): Use BAR_* defines.
17089 * barrier.c (GOMP_barrier_cancel): New function.
17090 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17091 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17092 omp_proc_bind_spread): New params.
17093 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17094 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17095 omp_get_team_num, omp_is_initial_device): New externals.
17096 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17098 (gomp_resolve_num_threads): Adjust for thread_limit now being in
17099 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17100 infinity. If not nested, just return minimum of max_num_threads
17101 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17102 to the returned value. Otherwise, don't update atomically
17103 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17104 (GOMP_parallel_end): Adjust for thread_limit now being in
17105 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17106 infinity. Adjust threads_busy in the pool rather than
17107 gomp_remaining_threads_count. Remember team->nthreads and call
17108 gomp_team_end before adjusting threads_busy, if not nested
17109 afterwards, just set it to 1 non-atomically. Add ialias.
17110 (GOMP_parallel_start): Adjust gomp_team_start caller.
17111 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17112 * testsuite/libgomp.c/affinity-1.c: New test.
17113 * testsuite/libgomp.c/atomic-15.c: New test.
17114 * testsuite/libgomp.c/atomic-16.c: New test.
17115 * testsuite/libgomp.c/atomic-17.c: New test.
17116 * testsuite/libgomp.c/cancel-for-1.c: New test.
17117 * testsuite/libgomp.c/cancel-for-2.c: New test.
17118 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17119 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17120 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17121 * testsuite/libgomp.c/cancel-sections-1.c: New test.
17122 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17123 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17124 * testsuite/libgomp.c/depend-1.c: New test.
17125 * testsuite/libgomp.c/depend-2.c: New test.
17126 * testsuite/libgomp.c/depend-3.c: New test.
17127 * testsuite/libgomp.c/depend-4.c: New test.
17128 * testsuite/libgomp.c/for-1.c: New test.
17129 * testsuite/libgomp.c/for-1.h: New file.
17130 * testsuite/libgomp.c/for-2.c: New test.
17131 * testsuite/libgomp.c/for-2.h: New file.
17132 * testsuite/libgomp.c/for-3.c: New test.
17133 * testsuite/libgomp.c/pr58392.c: New test.
17134 * testsuite/libgomp.c/simd-1.c: New test.
17135 * testsuite/libgomp.c/simd-2.c: New test.
17136 * testsuite/libgomp.c/simd-3.c: New test.
17137 * testsuite/libgomp.c/simd-4.c: New test.
17138 * testsuite/libgomp.c/simd-5.c: New test.
17139 * testsuite/libgomp.c/simd-6.c: New test.
17140 * testsuite/libgomp.c/target-1.c: New test.
17141 * testsuite/libgomp.c/target-2.c: New test.
17142 * testsuite/libgomp.c/target-3.c: New test.
17143 * testsuite/libgomp.c/target-4.c: New test.
17144 * testsuite/libgomp.c/target-5.c: New test.
17145 * testsuite/libgomp.c/target-6.c: New test.
17146 * testsuite/libgomp.c/target-7.c: New test.
17147 * testsuite/libgomp.c/taskgroup-1.c: New test.
17148 * testsuite/libgomp.c/thread-limit-1.c: New test.
17149 * testsuite/libgomp.c/thread-limit-2.c: New test.
17150 * testsuite/libgomp.c/thread-limit-3.c: New test.
17151 * testsuite/libgomp.c/udr-1.c: New test.
17152 * testsuite/libgomp.c/udr-2.c: New test.
17153 * testsuite/libgomp.c/udr-3.c: New test.
17154 * testsuite/libgomp.c++/affinity-1.C: New test.
17155 * testsuite/libgomp.c++/atomic-10.C: New test.
17156 * testsuite/libgomp.c++/atomic-11.C: New test.
17157 * testsuite/libgomp.c++/atomic-12.C: New test.
17158 * testsuite/libgomp.c++/atomic-13.C: New test.
17159 * testsuite/libgomp.c++/atomic-14.C: New test.
17160 * testsuite/libgomp.c++/atomic-15.C: New test.
17161 * testsuite/libgomp.c++/cancel-for-1.C: New test.
17162 * testsuite/libgomp.c++/cancel-for-2.C: New test.
17163 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17164 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17165 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17166 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17167 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17168 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17169 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17170 * testsuite/libgomp.c++/cancel-test.h: New file.
17171 * testsuite/libgomp.c++/for-9.C: New test.
17172 * testsuite/libgomp.c++/for-10.C: New test.
17173 * testsuite/libgomp.c++/for-11.C: New test.
17174 * testsuite/libgomp.c++/simd-1.C: New test.
17175 * testsuite/libgomp.c++/simd-2.C: New test.
17176 * testsuite/libgomp.c++/simd-3.C: New test.
17177 * testsuite/libgomp.c++/simd-4.C: New test.
17178 * testsuite/libgomp.c++/simd-5.C: New test.
17179 * testsuite/libgomp.c++/simd-6.C: New test.
17180 * testsuite/libgomp.c++/simd-7.C: New test.
17181 * testsuite/libgomp.c++/simd-8.C: New test.
17182 * testsuite/libgomp.c++/target-1.C: New test.
17183 * testsuite/libgomp.c++/target-2.C: New test.
17184 * testsuite/libgomp.c++/target-2-aux.cc: New file.
17185 * testsuite/libgomp.c++/target-3.C: New test.
17186 * testsuite/libgomp.c++/taskgroup-1.C: New test.
17187 * testsuite/libgomp.c++/udr-1.C: New test.
17188 * testsuite/libgomp.c++/udr-2.C: New test.
17189 * testsuite/libgomp.c++/udr-3.C: New test.
17190 * testsuite/libgomp.c++/udr-4.C: New test.
17191 * testsuite/libgomp.c++/udr-5.C: New test.
17192 * testsuite/libgomp.c++/udr-6.C: New test.
17193 * testsuite/libgomp.c++/udr-7.C: New test.
17194 * testsuite/libgomp.c++/udr-8.C: New test.
17195 * testsuite/libgomp.c++/udr-9.C: New test.
17197 2013-09-20 Jakub Jelinek <jakub@redhat.com>
17200 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17203 2013-09-20 Alan Modra <amodra@gmail.com>
17205 * configure: Regenerate.
17207 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17209 * testsuite/libgomp.c/sections-2.c: New test.
17211 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
17213 * testsuite/libgomp.fortran/strassen.f90:
17214 Add dg-skip-if aarch64_tiny.
17216 2013-06-20 Iain Sandoe <iain@codesourcery.com>
17217 Cesar Philippidis <cesar@codesourcery.com>
17219 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17220 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17221 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17222 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17223 * testsuite/libgomp.graphite/graphite.exp: Likewise.
17224 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17225 Use dg-runtest rather than gfortran-dg-runtest.
17227 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
17229 * testsuite/libgomp.c/icv-2.c: Extend current handling of
17230 Linux-based x86 systems to cover all GNU systems.
17231 * testsuite/libgomp.c/lock-3.c: Likewise.
17232 * testsuite/libgomp.c/pr48591.c: Likewise.
17234 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
17236 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17237 GNU/Hurd, as done for Linux-based systems.
17239 * config/posix/ptrlock.h: Fix comment.
17241 2013-05-27 Tobias Burnus <burnus@net-b.de>
17244 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17245 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17246 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17247 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17248 omp_destroy_nest_lock): Correct arguments to match the one in
17250 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17251 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17252 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17253 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17255 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17257 * testsuite/libgomp.c/loop-13.c: New test.
17258 * testsuite/libgomp.c/loop-14.c: New test.
17259 * testsuite/libgomp.c/loop-15.c: New test.
17260 * testsuite/libgomp.c++/loop-13.C: New test.
17261 * testsuite/libgomp.c++/loop-14.C: New test.
17262 * testsuite/libgomp.c++/loop-15.C: New test.
17264 2013-02-06 Jakub Jelinek <jakub@redhat.com>
17266 PR middle-end/56217
17267 * testsuite/libgomp.c++/pr56217.C: New test.
17269 2013-02-01 Alan Modra <amodra@gmail.com>
17271 * task.c (GOMP_task, GOMP_taskwait): Comment.
17273 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17274 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17277 * config/linux/wait.h (do_spin): Use atomic load for addr.
17278 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17279 for intptr and ptrlock.
17280 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17283 2013-01-22 Alan Modra <amodra@gmail.com>
17287 * task.c (GOMP_task): Revert 2011-12-09 change.
17288 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17289 barrier to read task->children..
17290 (gomp_barrier_handle_tasks): ..and matching atomic store with
17291 release barrier here when setting parent->children to NULL.
17293 2013-01-16 Jakub Jelinek <jakub@redhat.com>
17294 Tobias Burnus <burnus@net-b.de>
17297 * testsuite/libgomp.fortran/fortran.exp: Use
17298 -fintrinsic-modules-path= instead of
17299 -fintrinsic-modules-path.
17301 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17303 Update copyright years.
17305 2012-12-19 Tobias Burnus <burnus@net-b.de>
17307 * testsuite/libgomp.fortran/fortran.exp: Set
17308 -fintrinsic-modules-path.
17310 2012-12-19 Tobias Burnus <burnus@net-b.de>
17312 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17313 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17315 2012-11-21 Jakub Jelinek <jakub@redhat.com>
17318 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17319 if pool had any threads_used.
17321 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17323 * testsuite/libgomp.c++/pr24455.C: Use
17324 -Wl,-undefined,dynamic_lookup on darwin.
17326 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
17328 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17330 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17332 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17334 2012-10-23 Ian Bolton <ian.bolton@arm.com>
17335 Jim MacArthur <jim.macarthur@arm.com>
17336 Marcus Shawcroft <marcus.shawcroft@arm.com>
17337 Nigel Stephens <nigel.stephens@arm.com>
17338 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17339 Richard Earnshaw <rearnsha@arm.com>
17340 Sofiane Naci <sofiane.naci@arm.com>
17341 Stephen Thomas <stephen.thomas@arm.com>
17342 Tejas Belagod <tejas.belagod@arm.com>
17343 Yufeng Zhang <yufeng.zhang@arm.com>
17345 * configure.tgt: Add AArch64.
17347 2012-10-04 Jason Merrill <jason@redhat.com>
17349 * testsuite/libgomp.c++/tls-init1.C: New.
17351 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
17353 * configure: Regenerated.
17355 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17357 * config/linux/mips/futex.h (sys_futex0): Change to static
17358 function with noinline, nomips16 attributes under MIPS16. Adjust
17359 asm statement to place 'li v0,SYS_futex' immediately before
17362 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17364 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17365 conflict with index.html on case-insensitive file systems.
17367 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17369 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17370 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17372 2012-07-02 Richard Guenther <rguenther@suse.de>
17373 Michael Matz <matz@suse.de>
17374 Tobias Grosser <tobias@grosser.es>
17375 Sebastian Pop <sebpop@gmail.com>
17377 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17378 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17379 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17380 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17382 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17384 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17386 2012-06-22 Richard Guenther <rguenther@suse.de>
17388 Merge from graphite branch
17389 2012-01-13 Tobias Grosser <tobias@grosser.es>
17391 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17392 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17394 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17396 PR middle-end/53580
17397 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17398 use GOMP_barrier () call instead.
17399 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17400 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17401 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17402 call GOMP_barrier instead.
17403 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17405 2012-06-06 Jakub Jelinek <jakub@redhat.com>
17408 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17409 argument to memset call.
17411 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17413 * configure: Regenerated.
17415 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17417 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17419 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17422 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17424 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17426 PR middle-end/52547
17427 * testsuite/libgomp.c/pr52547.c: New test.
17429 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17431 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17433 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17435 * configure.tgt (mips-sgi-irix6*): Remove.
17437 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17439 * configure.tgt (alpha*-dec-osf*): Remove.
17441 * config/osf/sem.h: Remove.
17442 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17444 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17446 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17448 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17451 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17452 Remove ENABLE_SYMVERS_SOL2.
17453 * configure: Regenerate.
17454 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17455 (PREPROCESS): New variable.
17456 (libgomp.ver): New target.
17457 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17458 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17459 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17461 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17462 * Makefile.in: Regenerate.
17464 2012-02-14 Walter Lee <walt@tilera.com>
17466 * configure.tgt: Handle tilegx and tilepro.
17467 * config/linux/tile/futex.h: New file.
17469 2012-02-08 Richard Guenther <rguenther@suse.de>
17471 PR tree-optimization/46886
17472 * testsuite/libgomp.c/pr46886.c: New testcase.
17474 2012-01-25 Matthias Klose <doko@ubuntu.com>
17476 * config/linux/arm: Remove empty directory.
17477 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17479 2011-12-09 Alan Modra <amodra@gmail.com>
17482 * task.c (GOMP_taskwait): Don't access task->children outside of
17483 task_lock mutex region.
17484 (GOMP_task): Likewise.
17486 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17489 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17491 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17492 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17493 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17494 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17495 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17497 2011-12-02 Alan Modra <amodra@gmail.com>
17499 * config/linux/affinity.c: Use atomic rather than sync builtin.
17500 * config/linux/lock.c: Likewise.
17501 * config/linux/ptrlock.h: Likewise.
17502 * config/linux/ptrlock.c: Likewise.
17503 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17504 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17505 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17506 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17507 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17508 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17509 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17510 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17511 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17512 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17514 2011-11-30 Alan Modra <amodra@gmail.com>
17517 * config/linux/bar.h: Use atomic rather than sync builtins.
17518 * config/linux/bar.c: Likewise. Add missing acquire
17519 synchronisation on generation field.
17520 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17523 2011-11-30 Alan Modra <amodra@gmail.com>
17525 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17526 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17527 * config/linux/mutex.h: Use atomic rather than sync builtins.
17528 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17529 * config/linux/omp-lock.h: Comment fix.
17530 * config/linux/arm/mutex.h: Delete.
17531 * config/linux/powerpc/mutex.h: Delete.
17532 * config/linux/ia64/mutex.h: Delete.
17533 * config/linux/mips/mutex.h: Delete.
17535 2011-11-30 Alan Modra <amodra@gmail.com>
17538 * config/linux/sem.h: Rewrite.
17539 * config/linux/sem.c: Rewrite.
17541 2011-11-28 Richard Henderson <rth@redhat.com>
17543 * libgomp.h (enum memmodel): New.
17545 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
17547 * configure: Regenerate.
17549 2011-10-10 Matthias Klose <doko@ubuntu.com>
17551 * config/posix95: Remove empty directory.
17553 2011-08-26 Jakub Jelinek <jakub@redhat.com>
17555 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17557 2011-08-19 Jakub Jelinek <jakub@redhat.com>
17560 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17561 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17563 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17565 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17567 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17570 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17572 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
17574 * config/linux/proc.h: New.
17575 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
17576 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
17577 (gomp_init_num_threads): Update call to cpuset_popcount.
17578 (get_num_procs): Ditto.
17579 * config/linux/affinity.c (gomp_init_affinity): Call
17580 gomp_cpuset_popcount.
17582 2011-08-02 Jakub Jelinek <jakub@redhat.com>
17586 * omp.h.in (omp_in_final): New prototype.
17587 * omp_lib.f90.in (omp_in_final): New interface.
17588 (omp_integer_kind, omp_logical_kind): Remove
17589 and replace all its uses in the module with 4.
17590 (openmp_version): Change to 201107.
17591 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17592 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17593 kind for the parameters.
17594 (omp_in_final): New external.
17595 (openmp_version): Change to 201107.
17596 * task.c (omp_in_final): New function.
17597 (gomp_init_task): Initialize final_task.
17598 (GOMP_task): Remove unused attribute from flags. Handle final
17600 (GOMP_taskyield): New function.
17601 (omp_in_final): Return true if if (false) or final (true) task
17602 or descendant of final (true).
17603 * fortran.c (omp_in_final_): New function.
17604 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17605 (GOMP_3.0): Export GOMP_taskyield.
17606 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17608 (parse_unsigned_long_list): New function.
17609 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
17610 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
17611 even if parse_affinity returned false.
17612 * config/linux/affinity.c (gomp_init_affinity): Handle
17613 gomp_cpu_affinity_len == 0.
17614 * libgomp_g.h (GOMP_taskyield): New prototype.
17615 * libgomp.h (struct gomp_task): Add final_task field.
17616 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17617 * team.c (gomp_team_start): Override new task's nthreads_var icv
17618 if list form OMP_NUM_THREADS has been used and it has value for
17619 the new nesting level.
17621 * testsuite/libgomp.c/atomic-11.c: New test.
17622 * testsuite/libgomp.c/atomic-12.c: New test.
17623 * testsuite/libgomp.c/atomic-13.c: New test.
17624 * testsuite/libgomp.c/atomic-14.c: New test.
17625 * testsuite/libgomp.c/reduction-6.c: New test.
17626 * testsuite/libgomp.c/task-5.c: New test.
17627 * testsuite/libgomp.c++/atomic-2.C: New test.
17628 * testsuite/libgomp.c++/atomic-3.C: New test.
17629 * testsuite/libgomp.c++/atomic-4.C: New test.
17630 * testsuite/libgomp.c++/atomic-5.C: New test.
17631 * testsuite/libgomp.c++/atomic-6.C: New test.
17632 * testsuite/libgomp.c++/atomic-7.C: New test.
17633 * testsuite/libgomp.c++/atomic-8.C: New test.
17634 * testsuite/libgomp.c++/atomic-9.C: New test.
17635 * testsuite/libgomp.c++/task-8.C: New test.
17636 * testsuite/libgomp.c++/reduction-4.C: New test.
17637 * testsuite/libgomp.fortran/allocatable7.f90: New test.
17638 * testsuite/libgomp.fortran/allocatable8.f90: New test.
17639 * testsuite/libgomp.fortran/crayptr3.f90: New test.
17640 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17641 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17642 * testsuite/libgomp.fortran/pointer1.f90: New test.
17643 * testsuite/libgomp.fortran/pointer2.f90: New test.
17644 * testsuite/libgomp.fortran/task4.f90: New test.
17646 2011-08-02 Tobias Burnus <burnus@net-b.de>
17648 * libgomp.texi: Update OpenMP spec references to 3.1.
17649 (omp_in_final,OMP_PROC_BIND): New sections.
17650 (OMP_NUM_THREADS): Document that the value can be now a list.
17651 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17653 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
17655 * config/linux/x86/futex.h: Check __x86_64__ instead of
17658 2011-07-29 Jakub Jelinek <jakub@redhat.com>
17660 PR middle-end/49897
17661 PR middle-end/49898
17662 * testsuite/libgomp.c/pr49897-1.c: New test.
17663 * testsuite/libgomp.c/pr49897-2.c: New test.
17664 * testsuite/libgomp.c/pr49898-1.c: New test.
17665 * testsuite/libgomp.c/pr49898-2.c: New test.
17667 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
17669 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17670 for ia32 instead of ilp32.
17672 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17673 * testsuite/libgomp.c/atomic-6.c: Likewise.
17675 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
17677 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17678 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17680 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17683 * config/osf/sem.h: New file.
17684 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17686 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17689 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17692 2011-07-15 Jakub Jelinek <jakub@redhat.com>
17694 * config/linux/wait.h (do_spin): New inline, largely copied
17695 from do_wait, just don't do futex_wait here, instead return true if
17697 (do_wait): Implement using do_spin.
17698 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17700 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17701 __sync_bool_compare_and_swap, pass the oldval to
17702 gomp_mutex_lock_slow.
17703 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17704 If all mutex contenders are just spinning and not sleeping, don't
17705 change state to 2 unnecessarily. Optimize the loop when state has
17706 already become 2 to use just one atomic operation per loop instead
17708 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17710 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17711 __sync_bool_compare_and_swap, pass the oldval to
17712 gomp_mutex_lock_slow.
17714 2011-06-22 Jakub Jelinek <jakub@redhat.com>
17717 * iter.c (gomp_iter_static_next): For chunk size 0
17718 only use n ceil/ nthreads size for the first
17719 n % nthreads threads in the team instead of
17720 all threads except for the last few ones which
17721 get less work or none at all.
17722 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17723 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17724 chunk argument, set run_sched_modifier to 0 for static
17725 resp. 1 for other kinds. If chunk argument is 0
17726 and not static, set value to 1.
17728 2011-05-19 Jakub Jelinek <jakub@redhat.com>
17731 * testsuite/libgomp.c++/pr49043.C: New test.
17734 * testsuite/libgomp.c++/pr48869.C: New test.
17736 2011-05-06 Jakub Jelinek <jakub@redhat.com>
17739 * fortran.c: Include limits.h.
17741 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17743 (omp_set_num_threads_8_, omp_set_schedule_8_,
17744 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17745 omp_get_team_size_8_): Use TO_INT macro.
17746 * testsuite/libgomp.fortran/pr48894.f90: New test.
17748 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17750 PR middle-end/48591
17751 * testsuite/libgomp.c/pr48591.c: New test.
17753 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17756 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17757 * configure: Regenerate.
17759 2011-02-27 Jakub Jelinek <jakub@redhat.com>
17762 * testsuite/libgomp.fortran/task3.f90: New test.
17764 2011-02-24 Tobias Burnus <burnus@net-b.de>
17766 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17768 2011-02-23 Jakub Jelinek <jakub@redhat.com>
17771 * libgomp.texi (omp_get_wtime): Don't say time in the past
17772 must be Unix Epoch.
17774 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17777 * testsuite/libgomp.fortran/fortran.exp: Check for both
17778 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
17779 but $blddir != "", still append ${blddir}/${lang_library_path}
17780 to ld_library_path.
17782 2011-02-16 Tobias Burnus <burnus@net-b.de>
17785 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17786 of libquadmath.a before adding its libpath to ldflags.
17788 2011-02-14 Jakub Jelinek <jakub@redhat.com>
17791 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17792 to FUTEX_WAIT futex syscall.
17793 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17795 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17797 * configure: Regenerate.
17799 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
17802 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17804 2011-01-16 Gerald Pfeifer
17806 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17808 2010-12-14 Jakub Jelinek <jakub@redhat.com>
17811 * libgomp.fortran/allocatable6.f90: New test.
17813 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17815 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17816 * configure: Regenerate.
17818 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
17822 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17823 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17824 * aclocal.m4: Regenerate.
17825 * configure: Regenerate.
17826 * Makefile.in: Regenerate.
17827 * testsuite/Makefile.in: Regenerate.
17829 2010-12-02 Jakub Jelinek <jakub@redhat.com>
17832 * libgomp.fortran/pr46753.f90: New test.
17835 * env.c (initialize_env): Default to spin count 300000
17836 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17840 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17841 at the end if sync builtins aren't supported.
17843 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17845 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17847 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17849 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17851 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
17853 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17855 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17856 Tobias Burnus <burnus@net-b.de>
17860 * configure: Regenerate.
17862 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
17864 * config/linux/futex.h: New.
17865 * config/linux/arm/mutex.h: New.
17866 * configure.tgt (arm*-*-linux*): Add config path.
17868 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
17870 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17872 2010-09-23 Tobias Burnus <burnus@net-b.de>
17874 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17875 Change Fortran datatype to LOGICAL.
17876 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17877 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17879 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17881 * configure: Regenerate.
17883 2010-07-26 Jakub Jelinek <jakub@redhat.com>
17885 * libgomp.texi: Add function keyword to a couple of Fortran
17886 interfaces, use integer instead of int for Fortran.
17888 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
17890 * libgomp.texi: Fix spelling and pasto problems throughout.
17891 Adjust prototypes to match code.
17893 2010-07-24 Tobias Burnus <burnus@net-b.de>
17895 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17896 silence -fwhole-file warning.
17898 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17900 * configure.tgt (*-*-solaris2.[56]*): Removed.
17902 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17904 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17905 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17906 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17907 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17908 targetting solaris2*.
17909 * configure: Regenerate.
17910 * config.h.in: Regenerate.
17912 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17913 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17914 Add libgomp_version_dep.
17915 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17917 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17918 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17919 * Makefile.in: Regenerate.
17921 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17922 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17923 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17924 to common block, protected by
17925 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17927 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
17929 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
17931 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
17934 * configure: Regenerate.
17936 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17939 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17940 * configure: Regenerate.
17941 * Makefile.in: Regenerate.
17942 * testsuite/Makefile.in: Regenerate.
17944 2010-04-26 Jakub Jelinek <jakub@redhat.com>
17947 * testsuite/libgomp.c/pr43893.c: New test.
17948 * testsuite/libgomp.c++/pr43893.C: New test.
17950 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17952 PR middle-end/43570
17953 * testsuite/libgomp.fortran/vla8.f90: New test.
17955 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17958 * config/linux/affinity.c (gomp_init_affinity): Decrease
17959 gomp_available_cpus if affinity mask confines the process to fewer
17961 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17962 non-NULL, just return gomp_available_cpus.
17965 * sections.c (gomp_sections_init): Initialize ws->mode.
17967 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17969 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17970 not unused bar variable.
17971 * configure: Regenerate.
17973 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17975 * Makefile.in: Regenerate.
17976 * aclocal.m4: Regenerate.
17977 * testsuite/Makefile.in: Regenerate.
17979 2010-03-22 Jakub Jelinek <jakub@redhat.com>
17982 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17983 (initialize_env): Adjust callers.
17984 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17985 when the argument is 0.
17987 * testsuite/libgomp.c/pr42942.c: New test.
17989 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17991 PR middle-end/42644
17992 PR middle-end/42130
17993 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17994 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17996 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17998 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17999 * testsuite/libgomp.c++/task-6.C: Likewise.
18001 2010-01-28 Steve Ellcey <sje@cup.hp.com>
18003 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18005 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
18007 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18008 * configure: Regenerate.
18010 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18013 * testsuite/libgomp.fortran/allocatable5.f90: New test.
18015 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
18017 * configure.ac: Test for executability of GFORTRAN.
18018 * configure: Regenerate.
18020 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18022 * configure: Regenerate.
18024 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18027 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18029 2010-01-03 Richard Guenther <rguenther@suse.de>
18031 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18033 2009-12-23 Sebastian Pop <sebpop@gmail.com>
18035 * testsuite/libgomp.graphite/pr4118.c: New.
18037 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18039 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18040 for darwin, protect the test with require-effective-target tls_runtime.
18041 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18043 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18046 * testsuite/lib/libgomp.exp: Provide -B options to allow for
18047 link spec %s substitutions for static libraries.
18049 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
18052 * libgomp.graphite/force-parallel-2.c: Reduce array size.
18054 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18056 * Makefile.in: Regenerate.
18057 * configure: Regenerate.
18058 * testsuite/Makefile.in: Regenerate.
18060 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
18062 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18063 settings for LC_ALL and LANG.
18065 2009-11-25 Jakub Jelinek <jakub@redhat.com>
18068 * testsuite/libgomp.fortran/pr42162.f90: New test.
18070 2009-11-13 Jakub Jelinek <jakub@redhat.com>
18072 PR middle-end/42029
18073 * testsuite/libgomp.c/pr42029.c: New test.
18075 2009-10-26 Jakub Jelinek <jakub@redhat.com>
18077 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18078 *s. Accept ld version without text in ()s.
18079 * configure: Regenerated.
18081 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
18083 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18085 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18088 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18089 or a hyphen (happens with fortran language disabled).
18090 * configure: Regenerate.
18092 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18094 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18095 use sed script portable to Solaris /bin/sed for extracting ld
18097 * configure: Regenerate.
18099 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
18101 * testsuite/libgomp.graphite/bounds.c: New test.
18103 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18105 * Makefile.am (libgomp_la_LINK): New.
18106 * Makefile.in: Regenerate.
18108 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18110 * configure.ac (AC_PREREQ): Bump to 2.64.
18112 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18114 * Makefile.am (install-html, install-pdf): Remove.
18115 * Makefile.in: Regenerate.
18117 * Makefile.in: Regenerate.
18118 * aclocal.m4: Regenerate.
18119 * config.h.in: Regenerate.
18120 * configure: Regenerate.
18121 * testsuite/Makefile.in: Regenerate.
18123 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18125 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18126 * Makefile.in: Regenerate.
18128 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
18130 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18131 * Makefile.in: Regenerate.
18133 2009-08-19 Tobias Burnus <burnus@net-b.de>
18136 omp_lib.h.in: Fix -std=f95 errors.
18138 2009-08-14 David Edelsohn <edelsohn@gnu.org>
18140 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18141 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18142 * testsuite/libgomp.graphite/graphite.exp: New.
18144 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
18146 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18149 2009-08-04 David Daney <ddaney@caviumnetworks.com>
18151 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18152 needed memory barrier semantics.
18153 * config/linux/mips/mutex.h: New file.
18155 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18157 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18159 2009-07-16 Joseph Myers <joseph@codesourcery.com>
18161 * configure: Regenerate.
18163 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
18168 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18169 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18170 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18172 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18174 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18175 options when choosing a multilib.
18177 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
18179 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18180 ld_library_path. Use add_path. Add just find_libgcc_s to
18181 ld_library_path, not every libgcc multilib directory.
18182 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18183 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18184 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18186 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18188 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
18190 * Makefile.am (LTLDFLAGS): Define.
18192 * Makefile.in: Regenerate.
18194 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
18197 * testsuite/libgomp.fortran/fortran.exp: Don't link with
18198 libgfortranbegin, check existence of libgfortran.a instead of
18199 libgfortranbegin.a.
18201 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18204 * team.c (gomp_thread_start): Destroy thr->release semaphore.
18205 (gomp_free_pool_helper): Likewise.
18207 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
18208 Jakub Jelinek <jakub@redhat.com>
18211 * testsuite/libgomp.fortran/workshare2.f90: New test.
18213 2009-04-09 Nick Clifton <nickc@redhat.com>
18215 * iter.c: Change copyright header to refer to version 3 of the
18216 GNU General Public License with version 3.1 of the GCC Runtime
18217 Library Exception and to point readers at the COPYING3 and
18218 COPYING3.RUNTIME files and the FSF's license web page.
18219 * alloc.c: Likewise.
18220 * barrier.c: Likewise.
18221 * config/bsd/proc.c: Likewise.
18222 * config/linux/affinity.c: Likewise.
18223 * config/linux/alpha/futex.h: Likewise.
18224 * config/linux/bar.c: Likewise.
18225 * config/linux/bar.h: Likewise.
18226 * config/linux/ia64/futex.h: Likewise.
18227 * config/linux/ia64/mutex.h: Likewise.
18228 * config/linux/lock.c: Likewise.
18229 * config/linux/mips/futex.h: Likewise.
18230 * config/linux/mutex.c: Likewise.
18231 * config/linux/mutex.h: Likewise.
18232 * config/linux/powerpc/futex.h: Likewise.
18233 * config/linux/proc.c: Likewise.
18234 * config/linux/ptrlock.c: Likewise.
18235 * config/linux/ptrlock.h: Likewise.
18236 * config/linux/s390/futex.h: Likewise.
18237 * config/linux/sem.c: Likewise.
18238 * config/linux/sem.h: Likewise.
18239 * config/linux/sparc/futex.h: Likewise.
18240 * config/linux/wait.h: Likewise.
18241 * config/linux/x86/futex.h: Likewise.
18242 * config/mingw32/proc.c: Likewise.
18243 * config/mingw32/time.c: Likewise.
18244 * config/posix/affinity.c: Likewise.
18245 * config/posix/bar.c: Likewise.
18246 * config/posix/bar.h: Likewise.
18247 * config/posix/lock.c: Likewise.
18248 * config/posix/mutex.h: Likewise.
18249 * config/posix/proc.c: Likewise.
18250 * config/posix/ptrlock.h: Likewise.
18251 * config/posix/sem.c: Likewise.
18252 * config/posix/sem.h: Likewise.
18253 * config/posix/time.c: Likewise.
18254 * config/posix95/lock.c: Likewise.
18255 * critical.c: Likewise.
18257 * error.c: Likewise.
18258 * fortran.c: Likewise.
18259 * iter_ull.c: Likewise.
18260 * libgomp.h: Likewise.
18261 * libgomp_f.h.in: Likewise.
18262 * libgomp_g.h: Likewise.
18263 * loop.c: Likewise.
18264 * loop_ull.c: Likewise.
18265 * omp.h.in: Likewise.
18266 * omp_lib.f90.in: Likewise.
18267 * omp_lib.h.in: Likewise.
18268 * ordered.c: Likewise.
18269 * parallel.c: Likewise.
18270 * sections.c: Likewise.
18271 * single.c: Likewise.
18272 * task.c: Likewise.
18273 * team.c: Likewise.
18274 * work.c: Likewise.
18276 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18278 * testsuite/config/default.exp: Change copyright header to refer to
18279 version 3 of the GNU General Public License and to point readers
18280 at the COPYING3 file and the FSF's license web page.
18282 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18284 PR middle-end/39573
18285 * libgomp.c++/pr39573.C: New test.
18287 2009-04-01 Jakub Jelinek <jakub@redhat.com>
18290 * testsuite/libgomp.c/pr39591-1.c: New test.
18291 * testsuite/libgomp.c/pr39591-2.c: New test.
18292 * testsuite/libgomp.c/pr39591-3.c: New test.
18294 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
18296 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18297 * testsuite/libgomp.c/atomic-6.c: Ditto.
18299 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18302 * testsuite/libgomp.c/loop-12.c: New test.
18303 * testsuite/libgomp.c/loop-11.c: New test.
18304 * testsuite/libgomp.c++/loop-11.C: New test.
18305 * testsuite/libgomp.c++/loop-12.C: New test.
18306 * testsuite/libgomp.c++/for-8.C: New test.
18308 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18310 * configure: Regenerate.
18312 2009-02-11 Jakub Jelinek <jakub@redhat.com>
18314 PR middle-end/39154
18315 * testsuite/libgomp.c/pr39154.c: New test.
18317 2009-01-30 Ian Lance Taylor <iant@google.com>
18319 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18320 libgomp_ld_is_gold. Get gold version number.
18321 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18322 * configure: Rebuild.
18324 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18326 * testsuite/lib/libgomp.exp: Add -B option for targets that
18327 use libgfortran.a%s in their specs.
18329 2009-01-07 Jakub Jelinek <jakub@redhat.com>
18332 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18333 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18334 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18335 * configure: Regenerated.
18336 * config.h.in: Likewise.
18338 2008-12-28 Jakub Jelinek <jakub@redhat.com>
18341 * testsuite/libgomp.c/pr38650.c: New test.
18342 * testsuite/libgomp.c++/pr38650.C: New test.
18344 2008-12-27 Jakub Jelinek <jakub@redhat.com>
18346 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18348 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
18350 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18352 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18354 * configure: Regenerate.
18356 2008-12-08 Jakub Jelinek <jakub@redhat.com>
18358 PR middle-end/36802
18359 * testsuite/libgomp.c/pr36802-1.c: New test.
18360 * testsuite/libgomp.c/pr36802-2.c: New test.
18361 * testsuite/libgomp.c/pr36802-3.c: New test.
18363 2008-12-01 Janis Johnson <janis187@us.ibm.com>
18366 * config/linux/powerpc/mutex.h: New.
18368 2008-12-01 Jakub Jelinek <jakub@redhat.com>
18371 * testsuite/libgomp.c++/for-7.C: New test.
18374 * testsuite/libgomp.c++/for-6.C: New test.
18376 2008-11-26 Janis Johnson <janis187@us.ibm.com>
18379 * testsuite/lib/libgomp.exp: Include new timeout library files.
18380 (libgomp_target_compile): Set timeout value from new proc.
18382 2008-11-13 Steve Ellcey <sje@cup.hp.com>
18385 * config/linux/ia64/mutex.h: New.
18387 2008-11-04 Tobias Burnus <burnus@net-b.de>
18390 * libgomp.texi (Runtime library routines, environment variables):
18391 Update for OpenMP version 3.0.
18393 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18394 Steve Ellcey <sje@cup.hp.com>
18396 * configure: Regenerate for new libtool.
18397 * Makefile.in: Ditto.
18398 * testsuite/Makefile.in: Ditto.
18400 2008-09-19 Jakub Jelinek <jakub@redhat.com>
18401 Andreas Tobler <a.tobler@schweiz.org>
18403 * config/bsd/proc.c: New file.
18404 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18405 * configure.ac: Check for header <sys/sysctl.h>
18406 * configure: Regenerate.
18407 * config.h.in: Likewise.
18409 2008-09-05 Janis Johnson <janis187@us.ibm.com>
18411 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18413 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18415 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18416 * Makefile.in: Regenerated.
18417 * testsuite/Makefile.in: Regenerated.
18419 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
18421 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18422 depend on blddir if blddir exists.
18423 (libgomp_target_compile): Likewise.
18424 * testsuite/libgomp.c++/c++.exp: Likewise.
18425 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18427 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18429 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18430 Do not list GPL as Invariant Section.
18432 2008-07-28 Ilie Garbacea <ilie@mips.com>
18433 Chao-ying Fu <fu@mips.com>
18435 * configure.tgt: Enable futex for MIPS.
18436 * config/linux/mips/futex.h: New file.
18438 2008-07-16 Jakub Jelinek <jakub@redhat.com>
18440 * team.c (gomp_team_end): Free team immediately if it has
18443 2008-07-08 David Edelsohn <edelsohn@gnu.org>
18445 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18446 * testsuite/libgomp.fortran/fortran.exp: Same.
18447 * testsuite/libgomp.c/c.exp: Same.
18448 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18449 directory to library path first.
18451 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18453 * env.c (parse_stacksize): Add cast to avoid warning.
18454 (parse_spincount): Likewise.
18456 2008-06-27 Jakub Jelinek <jakub@redhat.com>
18458 * testsuite/libgomp.c/loop-10.c: New test.
18459 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18460 * libgomp.c++/loop-6.C (main): Likewise.
18463 * testsuite/libgomp.c/debug-1.c: New test.
18465 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18467 * testsuite/libgomp.c/nqueens-1.c: New test.
18470 * testsuite/libgomp.c++/task-7.C: New function.
18472 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18474 * configure: Regenerate.
18476 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18478 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18479 mutex when HAVE_SYNC_BUILTINS isn't defined.
18481 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18483 * libgomp.texi (omp_test_lock): Fix typo.
18485 2008-06-12 Tobias Burnus <burnus@net-b.de>
18487 * omp_lib.f90.in: Add "implicit none".
18489 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18491 PR middle-end/36506
18492 * testsuite/libgomp.c/reduction-5.c: New test.
18494 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18496 * libgomp.h (struct gomp_task): Add in_tied_task field.
18497 * task.c (gomp_init_task): Initialize it.
18498 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18499 unconditionally. Don't call gomp_team_barrier_wake if
18500 current task is implicit or if(0) from implicit and number of
18501 running tasks is equal to nthreads - 1.
18504 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18505 omp_get_team_size_8): Fix pastos.
18508 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18509 * configure: Regenerated.
18510 * config.h.in: Regenerated.
18511 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18514 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18517 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18518 (GOMP_loop_ull_dynamic_start): Likewise.
18519 (GOMP_loop_ull_guided_start): Likewise.
18520 (GOMP_loop_ull_ordered_static_start): Likewise.
18521 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18522 (GOMP_loop_ull_ordered_guided_start): Likewise.
18524 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18525 Richard Henderson <rth@redhat.com>
18526 Ulrich Drepper <drepper@redhat.com>
18527 Jakob Blomer <jakob.blomer@ira.uka.de>
18529 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18530 Substitute also OMP_*LOCK_25*.
18531 * configure: Regenerated.
18532 * config.h.in: Regenerated.
18533 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18534 ptrlock.c and task.c.
18535 * Makefile.in: Regenerated.
18536 * testsuite/Makefile.in: Regenerated.
18537 * task.c: New file.
18538 * loop_ull.c: New file.
18539 * iter_ull.c: New file.
18540 * libgomp.h: Include ptrlock.h.
18541 (enum gomp_task_kind): New type.
18542 (struct gomp_team): Add task_lock, task_queue, task_count,
18543 task_running_count, single_count fields. Add
18544 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18545 Remove work_share_lock, generation_mask,
18546 oldest_live_gen, num_live_gen and init_work_shares fields, add
18547 work work_share_list_alloc, work_share_list_free and work_share_chunk
18548 fields. Change work_shares from pointer to pointers into an array.
18549 Change ordered_release field into gomp_sem_t ** from flexible array
18550 member. Add implicit_task and initial_work_shares fields.
18551 Move close to the end of the struct.
18552 (struct gomp_team_state): Add single_count, last_work_share,
18553 active_level and level fields, remove work_share_generation.
18554 (gomp_barrier_handle_tasks): New prototype.
18555 (gomp_finish_task): New inline function.
18556 (struct gomp_work_share): Move chunk_size, end, incr into
18557 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18558 next_ll fields. Reshuffle fields. Add next_alloc,
18559 next_ws, next_free and inline_ordered_team_ids fields, change
18560 ordered_team_ids into pointer from flexible array member.
18561 Add mode field. Put lock and next into a different cache line
18562 from most of the write-once fields.
18563 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18564 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18565 gomp_iter_ull_guided_next): New prototypes.
18566 (gomp_new_icv): New prototype.
18567 (struct gomp_thread): Add thread_pool and task fields.
18568 (struct gomp_thread_pool): New type.
18569 (gomp_new_team): New prototype.
18570 (gomp_team_start): Change type of last argument.
18571 (gomp_new_work_share): Removed.
18572 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18573 (gomp_work_share_init_done): New static inline.
18574 (gomp_throttled_spin_count_var, gomp_available_cpus,
18575 gomp_managed_threads): New extern decls.
18576 (gomp_init_task): New prototype.
18577 (gomp_spin_count_var): New extern var decl.
18578 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18579 or no alias support, or if not PIC.
18580 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18581 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18582 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18583 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18584 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18585 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18586 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18587 gomp_test_nest_lock_25): New prototypes.
18588 (omp_lock_symver, strong_alias): Define.
18589 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18591 (gomp_end_task): New.
18592 (struct gomp_task_icv, gomp_global_icv): New.
18593 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18594 (struct gomp_task): New.
18595 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18596 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18598 (gomp_schedule_type): Reorder enum to match
18600 * team.c (struct gomp_thread_start_data): Add thread_pool and task
18602 (gomp_thread_start): Add gomp_team_barrier_wait call.
18603 For non-nested case remove clearing of docked thread thr fields.
18604 Use pool fields instead of global gomp_* variables. Use
18605 gomp_barrier_wait_last when needed. Initialize ts.active_level.
18606 Create tasks for each member thread.
18607 (free_team): Only destroy team barrier, task_lock here and free it.
18608 (gomp_free_thread): Free last_team if non-NULL.
18609 (gomp_team_end): Call gomp_team_barrier_wait instead of
18610 gomp_barrier_wait. For nested case call one extra
18611 gomp_barrier_wait. Move here some destruction from free_team.
18612 Call free_team on pool->last_team if any, rather than freeing
18613 current team. Destroy work_share_list_free_lock ifndef
18614 HAVE_SYNC_BUILTINS.
18615 (gomp_new_icv): New function.
18616 (gomp_threads, gomp_threads_size, gomp_threads_used,
18617 gomp_threads_dock): Removed.
18618 (gomp_thread_destructor): New variable.
18619 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18621 (gomp_team_start): Create new pool if current thread doesn't have
18622 one. Use pool fields instead of global gomp_* variables.
18623 Initialize thread_pool field for new threads. Clear single_count.
18624 Change last argument from ws to team, don't create
18625 new team, set ts.work_share to &team->work_shares[0] and clear
18626 ts.last_work_share. Don't clear ts.work_share_generation.
18627 If number of threads changed, adjust atomically gomp_managed_threads.
18628 Use gomp_init_task instead of gomp_new_task,
18629 set thr->task to the corresponding implicit_task array entry.
18630 Create tasks for each member thread. Initialize ts.level.
18631 (initialize_team): Call pthread_key_create on
18632 gomp_thread_destructor.
18633 (team_destructor): New function.
18634 (new_team): Removed.
18635 (gomp_new_team): New function.
18636 (free_team): Free gomp_work_share blocks chained through next_alloc,
18637 instead of freeing work_shares and destroying work_share_lock.
18638 (gomp_team_end): Call gomp_fini_work_share. If number of threads
18639 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
18640 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18641 of gomp_barrier_wait.
18642 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18643 instead of gomp_barrier_wait. Call gomp_work_share_init_done
18644 if gomp_work_share_start returned true. Don't unlock ws->lock.
18645 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18646 of gomp_barrier_wait.
18647 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
18648 gomp_work_share_init_done if gomp_work_share_start returned true.
18649 Don't unlock ws->lock.
18650 * work.c: Include stddef.h.
18651 (free_work_share): Use work_share_list_free_lock instead
18652 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
18653 Call gomp_fini_work_share and then either free ws if orphaned, or
18654 put it into work_share_list_free list of the current team.
18655 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18657 (gomp_work_share_start, gomp_work_share_end,
18658 gomp_work_share_end_nowait): Rewritten.
18659 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18660 (openmp_version): Set to 200805.
18661 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18662 omp_sched_guided, omp_sched_auto): New parameters.
18663 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18664 omp_set_max_active_levels, omp_get_max_active_levels,
18665 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18666 omp_get_active_level): New interfaces.
18667 * omp_lib.h.in (openmp_version): Set to 200805.
18668 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18669 omp_sched_guided, omp_sched_auto): New parameters.
18670 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18671 omp_set_max_active_levels, omp_get_max_active_levels,
18672 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18673 omp_get_active_level): New externals.
18674 * loop.c: Include limits.h.
18675 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18677 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18678 Likewise. Use gomp_icv.
18679 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18680 ts.static_trip here.
18681 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18682 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
18683 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18684 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
18685 don't unlock ws->lock, otherwise lock it.
18686 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18687 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
18688 (gomp_parallel_loop_start): Call gomp_new_team instead of
18689 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
18690 Adjust gomp_team_start caller. Pass 0 as second argument to
18691 gomp_resolve_num_threads.
18692 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18693 If adding ws->chunk_size nthreads + 1 times after end won't
18694 overflow, set ws->mode to 1.
18695 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18696 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18697 GOMP_loop_ull_ordered_static_start,
18698 GOMP_loop_ull_ordered_dynamic_start,
18699 GOMP_loop_ull_ordered_guided_start,
18700 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18701 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18702 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18703 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18704 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18706 * libgomp.map: Export lock routines also @@OMP_2.0.
18707 (GOMP_loop_ordered_dynamic_first,
18708 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18709 GOMP_loop_ordered_static_first): Remove.
18710 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18711 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18712 GOMP_loop_ull_ordered_dynamic_next,
18713 GOMP_loop_ull_ordered_dynamic_start,
18714 GOMP_loop_ull_ordered_guided_next,
18715 GOMP_loop_ull_ordered_guided_start,
18716 GOMP_loop_ull_ordered_runtime_next,
18717 GOMP_loop_ull_ordered_runtime_start,
18718 GOMP_loop_ull_ordered_static_next,
18719 GOMP_loop_ull_ordered_static_start,
18720 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18721 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18722 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18723 (omp_set_schedule, omp_get_schedule,
18724 omp_get_thread_limit, omp_set_max_active_levels,
18725 omp_get_max_active_levels, omp_get_level,
18726 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18727 omp_set_schedule_, omp_set_schedule_8_,
18728 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18729 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18730 omp_get_max_active_levels_, omp_get_level_,
18731 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18732 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18733 New exports @@OMP_3.0.
18734 * omp.h.in (omp_sched_t): New type.
18735 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18736 omp_set_max_active_levels, omp_get_max_active_levels,
18737 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18738 omp_get_active_level): New prototypes.
18739 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18740 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18741 gomp_thread_limit_var, gomp_remaining_threads_count,
18742 gomp_remaining_threads_lock): New variables.
18743 (parse_spincount): New function.
18744 (initialize_env): Call gomp_init_num_threads unconditionally.
18745 Initialize gomp_available_cpus. Call parse_spincount,
18746 initialize gomp_{,throttled_}spin_count_var
18747 depending on presence and value of OMP_WAIT_POLICY and
18748 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
18749 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18750 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
18751 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
18752 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
18753 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18754 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18755 (gomp_global_icv): New.
18756 (parse_schedule): Use it. Parse "auto".
18757 (omp_set_num_threads): Use gomp_icv.
18758 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18760 (omp_get_max_threads): Move from parallel.c.
18761 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18762 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18764 (parse_stacksize, parse_wait_policy): New functions.
18765 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18766 both wrappers for compatibility and new locks.
18767 (omp_set_schedule, omp_get_schedule,
18768 omp_get_thread_limit, omp_set_max_active_levels,
18769 omp_get_max_active_levels, omp_get_level,
18770 omp_get_ancestor_thread_num, omp_get_team_size,
18771 omp_get_active_level): New ialias_redirect.
18772 (omp_set_schedule_, omp_set_schedule_8_,
18773 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18774 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18775 omp_get_max_active_levels_, omp_get_level_,
18776 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18777 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18779 * parallel.c: Include limits.h.
18780 (gomp_resolve_num_threads): Add count argument. Rewritten.
18781 (GOMP_parallel_start): Call gomp_new_team and pass that as last
18782 argument to gomp_team_start. Pass 0 as second argument to
18783 gomp_resolve_num_threads.
18784 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18785 if gomp_thread_limit_var != ULONG_MAX.
18786 (omp_in_parallel): Implement using ts.active_level.
18787 (omp_get_max_threads): Move to env.c.
18788 (omp_get_level, omp_get_ancestor_thread_num,
18789 omp_get_team_size, omp_get_active_level): New functions,
18791 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18792 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
18793 gomp_iter_dynamic_next instead of the _locked variant and don't take
18794 lock around it, otherwise acquire it before calling
18795 gomp_iter_dynamic_next_locked.
18796 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18797 gomp_iter_dynamic_next instead of the _locked variant and don't take
18799 (GOMP_parallel_sections_start): Call gomp_new_team instead of
18800 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
18801 Adjust gomp_team_start caller. Pass count as second argument to
18802 gomp_resolve_num_threads, don't adjust num_threads after the call.
18804 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18805 ws->chunk_size by incr.
18806 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
18808 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18810 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18811 (omp_check_defines): Check even the compat defines.
18812 * config/linux/ptrlock.c: New file.
18813 * config/linux/ptrlock.h: New file.
18814 * config/linux/wait.h: New file.
18815 * config/posix/ptrlock.c: New file.
18816 * config/posix/ptrlock.h: New file.
18817 * config/linux/bar.h (gomp_team_barrier_wait,
18818 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18819 (gomp_team_barrier_set_task_pending,
18820 gomp_team_barrier_clear_task_pending,
18821 gomp_team_barrier_set_waiting_for_tasks,
18822 gomp_team_barrier_waiting_for_tasks,
18823 gomp_team_barrier_done): New inlines.
18824 (gomp_barrier_t): Rewritten.
18825 (gomp_barrier_state_t): New typedef.
18826 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18827 gomp_barrier_wait_start): Rewritten.
18828 (gomp_barrier_wait_end): Change second argument to
18829 gomp_barrier_state_t.
18830 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18832 * config/linux/bar.c: Include wait.h instead of libgomp.h and
18834 (gomp_barrier_wait_end): Rewritten.
18835 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18836 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18837 * config/posix/bar.h (gomp_barrier_t): Add generation field.
18838 (gomp_barrier_state_t): New typedef.
18839 (gomp_team_barrier_wait,
18840 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18841 (gomp_barrier_wait_start): Or all but low 2 bits from generation
18842 into the return value. Return gomp_barrier_state_t.
18843 (gomp_team_barrier_set_task_pending,
18844 gomp_team_barrier_clear_task_pending,
18845 gomp_team_barrier_set_waiting_for_tasks,
18846 gomp_team_barrier_waiting_for_tasks,
18847 gomp_team_barrier_done): New inlines.
18848 (gomp_barrier_wait_end): Change second argument to
18849 gomp_barrier_state_t.
18850 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18852 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18853 (gomp_barrier_wait_end): Change second argument to
18854 gomp_barrier_state_t.
18855 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18856 gomp_team_barrier_wake): New functions.
18857 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18859 (gomp_futex_wake, gomp_futex_wait): New variables.
18860 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18861 * config/linux/lock.c: Rewrite to make locks task owned,
18862 for backwards compatibility provide the old entrypoints
18863 if symbol versioning. Include wait.h instead of libgomp.h and
18865 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18866 * config/posix95/lock.c: Rewrite to make locks task owned,
18867 for backwards compatibility provide the old entrypoints
18868 if symbol versioning.
18869 * config/posix/lock.c: Rewrite to make locks task owned,
18870 for backwards compatibility provide the old entrypoints
18871 if symbol versioning.
18872 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18873 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18874 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18875 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18876 (sys_futex0): Return error code.
18877 (futex_wake, futex_wait): If ENOSYS was returned, clear
18878 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18879 (cpu_relax, atomic_write_barrier): New static inlines.
18880 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18881 (futex_wake, futex_wait): If ENOSYS was returned, clear
18882 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18883 (cpu_relax, atomic_write_barrier): New static inlines.
18884 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18885 (sys_futex0): Return error code.
18886 (futex_wake, futex_wait): If ENOSYS was returned, clear
18887 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18888 (cpu_relax, atomic_write_barrier): New static inlines.
18889 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18890 (sys_futex0): Return error code.
18891 (futex_wake, futex_wait): If ENOSYS was returned, clear
18892 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18893 (cpu_relax, atomic_write_barrier): New static inlines.
18894 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18895 (sys_futex0): Return error code.
18896 (futex_wake, futex_wait): If ENOSYS was returned, clear
18897 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18898 (cpu_relax, atomic_write_barrier): New static inlines.
18899 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18900 (sys_futex0): Return error code.
18901 (futex_wake, futex_wait): If ENOSYS was returned, clear
18902 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18903 (cpu_relax, atomic_write_barrier): New static inlines.
18904 * config/linux/sem.c: Include wait.h instead of libgomp.h and
18906 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18907 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18908 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18910 (omp_nest_lock_t): Change owner into void *, add lock field.
18911 * config/posix95/omp-lock.h: Include semaphore.h.
18912 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18913 (omp_lock_t): Use sem_t instead of mutex if semaphores
18915 (omp_nest_lock_t): Likewise. Change owner to void *.
18916 * config/posix/omp-lock.h: Include semaphore.h.
18917 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18918 (omp_lock_t): Use sem_t instead of mutex if semaphores
18920 (omp_nest_lock_t): Likewise. Add owner field.
18922 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18924 * testsuite/libgomp.c/collapse-1.c: New test.
18925 * testsuite/libgomp.c/collapse-2.c: New test.
18926 * testsuite/libgomp.c/collapse-3.c: New test.
18927 * testsuite/libgomp.c/icv-1.c: New test.
18928 * testsuite/libgomp.c/icv-2.c: New test.
18929 * testsuite/libgomp.c/lib-2.c: New test.
18930 * testsuite/libgomp.c/lock-1.c: New test.
18931 * testsuite/libgomp.c/lock-2.c: New test.
18932 * testsuite/libgomp.c/lock-3.c: New test.
18933 * testsuite/libgomp.c/loop-4.c: New test.
18934 * testsuite/libgomp.c/loop-5.c: New test.
18935 * testsuite/libgomp.c/loop-6.c: New test.
18936 * testsuite/libgomp.c/loop-7.c: New test.
18937 * testsuite/libgomp.c/loop-8.c: New test.
18938 * testsuite/libgomp.c/loop-9.c: New test.
18939 * testsuite/libgomp.c/nested-3.c: New test.
18940 * testsuite/libgomp.c/nestedfn-6.c: New test.
18941 * testsuite/libgomp.c/sort-1.c: New test.
18942 * testsuite/libgomp.c/task-1.c: New test.
18943 * testsuite/libgomp.c/task-2.c: New test.
18944 * testsuite/libgomp.c/task-3.c: New test.
18945 * testsuite/libgomp.c/task-4.c: New test.
18946 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18947 to C++ testsuite default compiler options.
18948 * testsuite/libgomp.c++/collapse-1.C: New test.
18949 * testsuite/libgomp.c++/collapse-2.C: New test.
18950 * testsuite/libgomp.c++/ctor-10.C: New test.
18951 * testsuite/libgomp.c++/for-1.C: New test.
18952 * testsuite/libgomp.c++/for-2.C: New test.
18953 * testsuite/libgomp.c++/for-3.C: New test.
18954 * testsuite/libgomp.c++/for-4.C: New test.
18955 * testsuite/libgomp.c++/for-5.C: New test.
18956 * testsuite/libgomp.c++/loop-8.C: New test.
18957 * testsuite/libgomp.c++/loop-9.C: New test.
18958 * testsuite/libgomp.c++/loop-10.C: New test.
18959 * testsuite/libgomp.c++/task-1.C: New test.
18960 * testsuite/libgomp.c++/task-2.C: New test.
18961 * testsuite/libgomp.c++/task-3.C: New test.
18962 * testsuite/libgomp.c++/task-4.C: New test.
18963 * testsuite/libgomp.c++/task-5.C: New test.
18964 * testsuite/libgomp.c++/task-6.C: New test.
18965 * testsuite/libgomp.fortran/allocatable1.f90: New test.
18966 * testsuite/libgomp.fortran/allocatable2.f90: New test.
18967 * testsuite/libgomp.fortran/allocatable3.f90: New test.
18968 * testsuite/libgomp.fortran/allocatable4.f90: New test.
18969 * testsuite/libgomp.fortran/collapse1.f90: New test.
18970 * testsuite/libgomp.fortran/collapse2.f90: New test.
18971 * testsuite/libgomp.fortran/collapse3.f90: New test.
18972 * testsuite/libgomp.fortran/collapse4.f90: New test.
18973 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18974 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18975 * testsuite/libgomp.fortran/lib4.f90: New test.
18976 * testsuite/libgomp.fortran/lock-1.f90: New test.
18977 * testsuite/libgomp.fortran/lock-2.f90: New test.
18978 * testsuite/libgomp.fortran/nested1.f90: New test.
18979 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18980 * testsuite/libgomp.fortran/strassen.f90: New test.
18981 * testsuite/libgomp.fortran/tabs1.f90: New test.
18982 * testsuite/libgomp.fortran/tabs2.f: New test.
18983 * testsuite/libgomp.fortran/task1.f90: New test.
18984 * testsuite/libgomp.fortran/task2.f90: New test.
18985 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18986 * testsuite/libgomp.fortran/vla5.f90: Likewise.
18987 * testsuite/libgomp.c/pr26943-2.c: Likewise.
18988 * testsuite/libgomp.c/pr26943-3.c: Likewise.
18989 * testsuite/libgomp.c/pr26943-4.c: Likewise.
18991 2008-05-23 Jakub Jelinek <jakub@redhat.com>
18994 * testsuite/libgomp.c++/ctor-11.C: New test.
18995 * testsuite/libgomp.c++/ctor-12.C: New test.
18997 2008-05-15 Janis Johnson <janis187@us.ibm.com>
18999 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19001 2008-05-07 Jakub Jelinek <jakub@redhat.com>
19003 PR middle-end/36106
19004 * testsuite/libgomp.c/atomic-5.c: New test.
19005 * testsuite/libgomp.c/atomic-6.c: New test.
19006 * testsuite/libgomp.c/autopar-1.c: New test.
19008 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19010 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19011 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19012 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19013 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19014 * configure: Regenerate.
19015 * Makefile.in, testsuite/Makefile.in: Likewise.
19017 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
19020 * aclocal.m4: Regenerate.
19021 * configure: Regenerate.
19023 2008-03-18 Jakub Jelinek <jakub@redhat.com>
19025 PR middle-end/35611
19026 * testsuite/libgomp.c/atomic-4.c: New test.
19029 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19030 (gomp_iter_guided_next): Likewise.
19031 * testsuite/libgomp.c/pr35625.c: New test.
19033 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19035 * aclocal.m4: Regenerate.
19036 * configure: Likewise.
19037 * Makefile.in: Likewise.
19038 * testsuite/Makefile.in: Likewise.
19040 2008-03-13 Jakub Jelinek <jakub@redhat.com>
19042 PR middle-end/35185
19043 * testsuite/libgomp.c++/pr35185.C: New test.
19045 2008-03-12 Jakub Jelinek <jakub@redhat.com>
19047 PR middle-end/35549
19048 * testsuite/libgomp.c/pr35549.c: New test.
19050 2008-03-06 Jakub Jelinek <jakub@redhat.com>
19052 * testsuite/libgomp.c/atomic-3.c: New test.
19054 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19057 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
19058 .F08 file suffixes.
19060 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
19063 * configure.ac: Add ACX_HEADER_STRING.
19064 * env.c: Include strings.h.
19065 * aclocal.m4: Regenerate.
19066 * config.h.in: Regenerate.
19067 * configure: Regenerate.
19068 * Makefile.in: Regenerate.
19069 * testsuite/Makefile.in: Regenerate.
19071 2008-02-15 Jakub Jelinek <jakub@redhat.com>
19073 PR middle-end/35196
19074 * testsuite/libgomp.c/pr35196.c: New test.
19076 PR middle-end/35130
19077 * testsuite/libgomp.fortran/pr35130.f90: New test.
19078 * testsuite/libgomp.c/pr35130.c: New test.
19080 2008-01-25 Jakub Jelinek <jakub@redhat.com>
19082 PR middle-end/33880
19083 * testsuite/libgomp.c/pr33880.c: New test.
19084 * testsuite/libgomp.fortran/pr33880.f90: New test.
19086 2008-01-24 David Edelsohn <edelsohn@gnu.org>
19088 * configure: Regenerate.
19090 2008-01-08 Jakub Jelinek <jakub@redhat.com>
19092 * configure.ac: Move futex checking into ../config/futex.m4.
19093 * configure: Rebuilt.
19094 * aclocal.m4: Rebuilt.
19095 * Makefile.in: Rebuilt.
19097 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19098 2007-10-15 ../config/tls.m4 change.
19100 2007-12-19 Jakub Jelinek <jakub@redhat.com>
19103 * testsuite/libgomp.c/pr34513.c: New test.
19104 * testsuite/libgomp.c++/pr34513.C: New test.
19106 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
19109 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19111 2007-12-04 Jakub Jelinek <jakub@redhat.com>
19113 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
19115 2007-12-03 Jakub Jelinek <jakub@redhat.com>
19117 * testsuite/libgomp.c/private-1.c: New test.
19119 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
19120 Paolo Bonzini <bonzini@gnu.org>
19122 * Makefile.am: Use space as vpath separator. Use 'vpath %'
19123 instead of 'VPATH ='.
19124 * Makefile.in: Regenerate.
19126 2007-11-23 Matthias Klose <doko@ubuntu.com>
19128 * configure.ac: Adjust makeinfo version check.
19129 * configure: Regenerate.
19131 2007-11-10 Jakub Jelinek <jakub@redhat.com>
19134 * testsuite/libgomp.fortran/pr34020.f90: New test.
19136 2007-11-06 Jakub Jelinek <jakub@redhat.com>
19139 * testsuite/libgomp.c++/atomic-1.C: New test.
19141 2007-10-25 Jakub Jelinek <jakub@redhat.com>
19144 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19145 Make x and y integers rather than (implicit) reals. Add private (j)
19146 clause to the last omp parallel.
19148 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
19150 * configure: Regenerate following changes to ../config/tls.m4.
19152 2007-09-28 Jakub Jelinek <jakub@redhat.com>
19154 * testsuite/libgomp.fortran/stack.f90: New test.
19156 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
19158 * config/mingw32/proc.c: New file.
19160 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
19162 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19163 (main): Use __get_cpuid to get i386 target fetaures.
19164 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19165 (main): Use __get_cpuid to get x86_64 target fetaures.
19167 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
19170 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19171 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19173 2007-07-12 Jakub Jelinek <jakub@redhat.com>
19176 * testsuite/libgomp.fortran/pr32550.f90: New test.
19177 * testsuite/libgomp.fortran/crayptr2.f90: New test.
19179 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
19181 * aclocal.m4: Regenerated.
19183 2007-07-05 Tobias Burnus <burnus@net-b.de>
19186 * testsuite/libgomp.fortran/pr32359.f90: New.
19188 2007-07-02 Jakub Jelinek <jakub@redhat.com>
19191 * sections.c (GOMP_parallel_sections_start): Only decrease
19192 number of threads to COUNT if dyn_var is true.
19193 * testsuite/libgomp.c/pr32468.c: New test.
19195 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19198 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19200 2007-06-21 Jakub Jelinek <jakub@redhat.com>
19202 PR middle-end/32362
19203 * testsuite/libgomp.c/pr32362-1.c: New test.
19204 * testsuite/libgomp.c/pr32362-2.c: New test.
19205 * testsuite/libgomp.c/pr32362-3.c: New test.
19207 2007-06-07 Jakub Jelinek <jakub@redhat.com>
19209 * team.c (gomp_team_start): Fix setting up thread_attr
19212 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
19214 * configure: Regenerate.
19216 2007-05-23 Steve Ellcey <sje@cup.hp.com>
19218 * Makefile.in: Regenerate.
19219 * configure: Regenerate.
19220 * aclocal.m4: Regenerate.
19221 * testsuite/Makefile.in: Regenerate.
19223 2007-05-04 Jakub Jelinek <jakub@redhat.com>
19225 * config/linux/proc.c: New file.
19228 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19230 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
19232 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19234 2007-04-16 Matthias Klose <doko@debian.org>
19236 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19237 flags if not building with -m64.
19238 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19239 flag for i?86-*-* targets, if current target matches -m64.
19241 2007-04-14 Steve Ellcey <sje@cup.hp.com>
19243 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19244 * Makefile.in: Regenerate.
19246 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19249 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19251 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19253 2007-04-04 Jakub Jelinek <jakub@redhat.com>
19255 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19257 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19258 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19259 (parse_affinity): New function.
19260 (initialize_env): Call it and gomp_init_affinity.
19261 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19262 create new pthread_attr_t and call gomp_init_thread_affinity
19263 on it for each thread before passing the attribute to pthread_create.
19264 * config/linux/affinity.c: New file.
19265 * config/posix/affinity.c: New file.
19266 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19267 * configure: Rebuilt.
19268 * config.h.in: Rebuilt.
19269 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19270 * Makefile.in: Rebuilt.
19272 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19274 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19276 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19277 and use it if found.
19279 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
19281 * testsuite/config/default.exp: New file.
19282 * testsuite/lib/libgomp.exp: New file.
19283 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19284 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19285 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19286 (libgomp_load): Remove.
19287 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19288 always_ld_library_path, not ld_library_path. Set additional_flags
19289 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19290 (target_compile): Do not call libgomp_init. Append lang_library_path
19291 and lang_link_flags to options.
19292 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19293 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19295 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19296 always_ld_library_path. Set LD_LIBRARY_PATH here.
19297 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19298 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19299 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19301 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19302 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19303 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19304 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19305 * testsuite/libgomp.c/atomic-10.c: Ditto.
19307 2007-03-21 Jakub Jelinek <jakub@redhat.com>
19309 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19310 dg-final cleanup-modules line.
19311 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19312 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19313 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19314 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19315 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19316 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19317 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19319 2007-03-18 Andreas Schwab <schwab@suse.de>
19321 * acinclude.m4: Adjust regular expression for ld version
19323 * configure: Regenerate.
19325 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19327 * Makefile.am: Add install-pdf target as copied from
19328 automake v1.10 rules.
19329 * Makefile.in: Regenerate
19331 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19334 * configure: Regenerate.
19337 * testsuite/libgomp.c++/pr30703.C: New test.
19339 2007-02-02 Jakub Jelinek <jakub@redhat.com>
19342 2006-07-05 Eric Christopher <echristo@apple.com>
19343 * configure.ac: Depend addition of -pthread on host OS.
19344 * configure: Regenerate.
19346 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19348 * libgomp.texi: Fix spacing after abbreviations.
19350 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
19353 * configure.ac: Add check for makeinfo
19354 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19355 if an appropriate version of makeinfo is found.
19356 * aclocal.m4: Regenerated.
19357 * configure: Regenerated.
19358 * Makefile.in: Regenerated.
19359 * testsuite/Makefile.in: Regenerated.
19361 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
19364 * libgomp.texi: More about implementation-dependent settings.
19366 2007-01-26 Tobias Burnus <burnus@net-b.de>
19368 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19370 2007-01-24 Jakub Jelinek <jakub@redhat.com>
19372 PR middle-end/30494
19373 * testsuite/libgomp.c/pr30494.c: New test.
19375 2007-01-15 Tom Tromey <tromey@redhat.com>
19377 * configure: Rebuilt.
19378 * configure.ac: Fixed comment.
19380 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
19382 * libgomp.texi: Document implementation specific default values of
19383 environment variables.
19385 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19388 * libgomp.texi: New file.
19389 * configure.ac: Add --enable-generated-files-in-srcdir option.
19390 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19392 * Makefile.in: Regenerated.
19393 * config.h.in: Regenerated.
19394 * testsuite/Makefile.in: Regenerated.
19397 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
19400 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19402 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19404 * configure: Regenerate.
19406 2006-12-04 Jakub Jelinek <jakub@redhat.com>
19409 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19410 start if there shouldn't be any loop iterations.
19411 (gomp_loop_ordered_static_start): Remove start == end test.
19412 * testsuite/libgomp.c/pr29947-1.c: New test.
19413 * testsuite/libgomp.c/pr29947-2.c: New test.
19415 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19417 * configure.tgt: Force initial-exec TLS model on Linux only.
19419 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19421 * configure: Regenerated.
19423 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
19425 * env.c (parse_schedule): Reject out of range values.
19426 (parse_unsigned_long): Reject out of range, negative or zero values.
19428 2006-10-29 Jakub Jelinek <jakub@redhat.com>
19431 * testsuite/libgomp.fortran/pr29629.f90: New test.
19433 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19436 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19437 * config/posix95: New directory.
19438 * config/posix95/omp-lock.h: New file.
19439 * config/posix95/lock.c: Likewise.
19441 2006-10-14 Geoffrey Keating <geoffk@apple.com>
19443 * aclocal.m4: Regenerate.
19444 * configure: Regenerate.
19446 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19448 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19451 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19453 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19455 * configure: Regenerate.
19456 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19458 2006-09-26 Jakub Jelinek <jakub@redhat.com>
19460 PR middle-end/25261
19461 PR middle-end/28790
19462 * testsuite/libgomp.c/nestedfn-4.c: New test.
19463 * testsuite/libgomp.c/nestedfn-5.c: New test.
19464 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19467 * testsuite/libgomp.fortran/condinc1.f: New test.
19468 * testsuite/libgomp.fortran/condinc2.f: New test.
19469 * testsuite/libgomp.fortran/condinc3.f90: New test.
19470 * testsuite/libgomp.fortran/condinc4.f90: New test.
19471 * testsuite/libgomp.fortran/condinc1.inc: New file.
19473 2006-09-18 Tom Tromey <tromey@redhat.com>
19475 * configure: Rebuilt.
19477 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19480 PR preprocessor/14634
19481 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19483 * configure: Regenerate.
19485 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19487 * testsuite/libgomp.fortran/reduction3.f90: Change
19488 -2147483648 to -huge(i)-1 to avoid overflow.
19489 * testsuite/libgomp.fortran/reduction4.f90: Change
19490 Z'ffffffff' to not(0) to avoid overflow.
19492 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19495 * Makefile.am (libsubincludedir): New.
19496 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19497 * Makefile.in: Regenerate.
19499 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19502 * env.c: Include ctype.h.
19503 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19504 leading and/or trailing whitespace and compare strings case
19507 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19510 * testsuite/libgomp.fortran/pr28390.f: New test.
19512 2006-07-05 Eric Christopher <echristo@apple.com>
19514 * configure.ac: Depend addition of -pthread on host OS.
19515 * configure: Regenerate.
19517 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19519 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19520 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19523 2006-06-20 Jakub Jelinek <jakub@redhat.com>
19527 * configure.ac: If neither --enable-linux-futex nor
19528 --disable-linux-futex is passed, determine the default by checking
19529 for compiling and/or running against NPTL. With --enable-linux-futex,
19530 check if SYS_gettid and SYS_futex are defined.
19531 * configure: Rebuilt.
19533 2006-06-14 Richard Henderson <rth@redhat.com>
19536 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19537 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19539 2006-06-09 Richard Henderson <rth@redhat.com>
19541 * env.c (gomp_nthreads_var): Change to unsigned long.
19542 (gomp_run_sched_chunk): Likewise.
19543 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19544 (initialize_env): Initialize gomp_thread_attr.
19545 * libgomp.h (gomp_nthreads_var): Update decl.
19546 (gomp_run_sched_chunk): Likewise.
19547 (gomp_thread_attr): Declare.
19548 * team.c (gomp_thread_attr): Export.
19549 (initialize_team): Don't initialize it.
19551 2006-06-09 Jakub Jelinek <jakub@redhat.com>
19554 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19555 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19557 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19559 * config/mingw32/time.c: New file.
19560 * configure.tgt: Use it.
19562 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
19564 * Makefile.am: Add install-html target. Add install-html to .PHONY
19565 * Makefile.in: Regenerate.
19567 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19570 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19571 * testsuite/libgomp.c/critical-1.c: Likewise.
19572 * testsuite/libgomp.c/loop-1.c: Likewise.
19573 * testsuite/libgomp.c/loop-2.c: Likewise.
19574 * testsuite/libgomp.c/single-1.c: Likewise.
19575 * testsuite/libgomp.c/ordered-1.c: Likewise.
19576 * testsuite/libgomp.c/ordered-2.c: Likewise.
19578 2006-05-15 Jakub Jelinek <jakub@redhat.com>
19580 PR middle-end/27416
19581 * libgomp.fortran/pr27416-1.f90: New test.
19583 2006-05-03 Jakub Jelinek <jakub@redhat.com>
19586 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19587 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19589 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19592 * testsuite/libgomp.c/pr26943-1.c: New test.
19593 * testsuite/libgomp.c/pr26943-2.c: New test.
19594 * testsuite/libgomp.c/pr26943-3.c: New test.
19595 * testsuite/libgomp.c/pr26943-4.c: New test.
19596 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19597 * testsuite/libgomp.c++/pr26943.C: New test.
19599 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19601 PR middle-end/27337
19602 * testsuite/libgomp.c++/pr27337.C: New test.
19604 2006-04-26 Jakub Jelinek <jakub@redhat.com>
19607 * testsuite/libgomp.c/pr26171.c: New test.
19609 2006-04-25 Richard Henderson <rth@redhat.com>
19612 * configure.ac: Use GCC_CHECK_TLS.
19613 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19614 * Makefile.in, aclocal.m4, configure: Regenerate.
19616 2006-04-10 Matthias Klose <doko@debian.org>
19618 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19619 directory names containing underscores.
19621 2006-03-21 Jakub Jelinek <jakub@redhat.com>
19624 * testsuite/libgomp.c++/pr26691.C: New test.
19626 2006-03-13 Jakub Jelinek <jakub@redhat.com>
19628 * testsuite/libgomp.fortran/retval2.f90: New test.
19630 2006-03-09 Diego Novillo <dnovillo@redhat.com>
19632 * testsuite/libgomp.c++: New directory.
19634 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
19636 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19637 * config/posix/sem.c: Implement the above.
19639 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
19641 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19642 define HAVE_BROKEN_POSIX_SEMAPHORES.
19643 * configure: Rebuilt.
19644 * config.h.in: Rebuilt.
19646 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19649 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19650 for the other pthread check.
19651 * configure: Regenerate.
19652 * config.h.in: Regenerate.
19654 2006-02-15 Jakub Jelinek <jakub@redhat.com>
19658 * Makefile.am (fincludedir): New variable.
19659 (nodist_include_HEADERS): Remove Fortran files.
19660 (nodist_finclude_HEADERS): New variable.
19661 * Makefile.in: Regenerated.
19663 2006-02-13 Jakub Jelinek <jakub@redhat.com>
19665 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19666 Remove tests for returning assumed character length arrays.
19668 2006-02-12 Roger Sayle <roger@eyesopen.com>
19669 John David Anglin <dave@hiauly1.hia.nrc.ca>
19672 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19674 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
19676 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19678 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19680 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19681 part of LD_LIBRARY_PATH manually.
19683 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
19686 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19689 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
19692 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19693 * configure.ac (PERL): Don't set.
19694 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19695 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19696 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19697 * omp.h.in: Wrap the new configure substitutions with @ characters.
19698 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19699 * aclocal.m4, configure, Makefile.in: Regenerate.
19700 * mkomp_h.pl: Delete.
19702 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
19705 * configure.ac: Use GCC_HEADER_STDINT.
19706 * libgomp.h: Include gstdint.h.
19707 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19708 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19710 2006-01-24 Richard Henderson <rth@redhat.com>
19713 * configure.ac: Add AM_MAINTAINER_MODE.
19714 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19716 2006-01-24 Diego Novillo <dnovillo@redhat.com>
19718 * Makefile.in: Regenerate.
19719 * testsuite/Makefile.in: Regenerate.
19720 * aclocal.m4: Regenerate.
19722 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
19724 * config/posix/proc.c: Conditional include of sys/loadavg.h for
19726 * configure.ac: Add check for loadavg.h.
19727 (link_gomp): Adjust comment.
19728 * configure: Regenerate.
19729 * config.h.in: Regenerate.
19731 2006-01-21 Steve Ellcey <sje@cup.hp.com>
19734 * configure.ac: Remove check for alloca.h.
19735 * configure: Regenerate.
19736 * config.h.in: Regenerate.
19737 * libgomp.h: define gomp_alloca to be __builtin_alloca.
19738 * team.c: Remove use of alloca.h.
19739 Call gomp_alloca instead of alloca.
19741 2006-01-20 Steve Ellcey <sje@cup.hp.com>
19744 * team.c: Add include of alloca.h.
19745 * configure.ac: Add check for alloca.h.
19746 * configure: Regenerate.
19747 * config.h.in: Regenerate.
19749 2006-01-17 Jakub Jelinek <jakub@redhat.com>
19752 * testsuite/libgomp.fortran/pr25219.f90: New test.
19754 2005-12-05 Uros Bizjak <uros@kss-loka.si>
19756 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19757 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19758 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19759 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19760 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19761 testsuite/libgomp.fortran/threadprivate1.f90,
19762 testsuite/libgomp.fortran/threadprivate2.f90,
19763 testsuite/libgomp.fortran/threadprivate3.f90,
19764 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19765 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19766 testsuite/libgomp.fortran/omp_parse3.f90: Change required
19767 effective-target to TLS runtime.
19769 * testsuite/libgomp.fortran/pr25162.f: Require
19770 effective-target TLS runtime.
19772 2005-12-01 Jakub Jelinek <jakub@redhat.com>
19774 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19775 * testsuite/libgomp.c/nestedfn-3.c: New test.
19777 2005-11-30 Jakub Jelinek <jakub@redhat.com>
19780 * testsuite/libgomp.fortran/pr25162.f: New test.
19782 2005-11-28 Jakub Jelinek <jakub@redhat.com>
19784 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19785 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19787 2005-11-25 Jakub Jelinek <jakub@redhat.com>
19789 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19790 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19791 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19792 single.c, team.c, work.c, config/linux/alpha/futex.h,
19793 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19794 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19795 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19796 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19797 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19798 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19799 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19802 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19804 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19805 to nodist_noinst_HEADERS.
19806 * Makefile.in: Rebuilt.
19808 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19809 add integer count field.
19810 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19811 omp_nest_lock_t type change.
19812 (omp_init_nest_lock): Likewise. Initialize count to 0.
19813 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19815 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19817 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19818 Increment count if successful and return the new nesting level.
19819 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19820 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19821 * testsuite/libgomp.c/lib-1.c: New test.
19822 * testsuite/libgomp.fortran/lib1.f90: New test.
19823 * testsuite/libgomp.fortran/lib2.f: New test.
19824 * testsuite/libgomp.fortran/lib3.f: New test.
19826 2005-11-17 Richard Henderson <rth@redhat.com>
19829 * Makefile.am (nodist_toolexeclib_HEADERS): New.
19830 * configure.ac (link_gomp): New. Substitute it.
19831 (AC_CONFIG_FILES): Add libgomp.spec.
19832 * libgomp.spec.in: New file.
19833 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19834 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19836 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19838 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19839 reduction(-:var) behaving the same as reduction(+:var).
19840 * testsuite/libgomp.c/reduction-4.c: New test.
19842 2005-11-15 Uros Bizjak <uros@kss-loka.si>
19844 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19845 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19846 testsuite/libgomp.c/copyin-3.c,
19847 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19848 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19849 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19850 testsuite/libgomp.c++/pr24455.C,
19851 testsuite/libgomp.fortran/threadprivate1.f90,
19852 testsuite/libgomp.fortran/threadprivate2.f90,
19853 testsuite/libgomp.fortran/threadprivate3.f90,
19854 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19855 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19856 testsuite/libgomp.fortran/omp_parse3.f90: Require
19857 effective-target TLS.
19859 2005-11-14 Diego Novillo <dnovillo@redhat.com>
19863 2005-11-13 Jakub Jelinek <jakub@redhat.com>
19866 * team.c (initialize_team): Pass NULL rather than free as
19867 pthread_key_create destructor. Initialize thread specific data
19868 pointer in initial thread to a static local variable rather than
19871 2005-11-11 Uros Bizjak <uros@kss-loka.si>
19873 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19874 its location to ld_library_path.
19876 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19878 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19880 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19882 * testsuite/libgomp.c: Rename from libgomp.dg.
19884 2005-11-09 Diego Novillo <dnovillo@redhat.com>
19886 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19887 threadprivate variable 'i'.
19889 2005-11-09 Jakub Jelinek <jakub@redhat.com>
19891 * config/linux/s390/futex.h: New file.
19892 * configure.tgt: Use it.
19894 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19895 before the parallel.
19897 2005-11-08 Jakub Jelinek <jakub@redhat.com>
19900 * testsuite/libgomp.c++/master-1.C: New test.
19902 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19904 * testsuite/libgomp.dg/copyin-3.c: New test.
19906 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19908 * testsuite/libgomp.fortran/retval1.f90: New test.
19909 * testsuite/libgomp.fortran/vla7.f90: New test.
19911 2005-11-06 Jakub Jelinek <jakub@redhat.com>
19913 * testsuite/libgomp.fortran/vla2.f90: New test.
19914 * testsuite/libgomp.fortran/vla3.f90: New test.
19915 * testsuite/libgomp.fortran/vla4.f90: New test.
19916 * testsuite/libgomp.fortran/vla5.f90: New test.
19917 * testsuite/libgomp.fortran/vla6.f90: New test.
19919 2005-11-01 Jakub Jelinek <jakub@redhat.com>
19921 * config/linux/sparc/futex.h: New file.
19922 * configure.tgt: Use it.
19923 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19925 * critical.c: Include stdlib.h.
19926 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19927 ignoring return value.
19928 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19929 LIBGOMP_CHECK_SYNC_BUILTINS check.
19930 * configure: Rebuilt.
19932 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19934 * testsuite/libgomp.fortran/vla1.f90: New test.
19936 2005-10-31 Richard Henderson <rth@redhat.com>
19938 * testsuite/libgomp.fortran/character2.f90: Fix race condition
19939 setting 's' in different threads.
19941 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19943 * libgomp.h (attribute_hidden, ialias): Define.
19944 * config/posix/proc.c (omp_get_num_procs): Add ialias.
19945 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19946 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19947 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19948 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19949 omp_test_lock, omp_test_nest_lock): Likewise.
19950 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19951 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19952 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19953 omp_test_lock, omp_test_nest_lock): Likewise.
19954 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19955 omp_get_dynamic, omp_get_nested): Likewise.
19956 * parallel.c (omp_get_num_threads, omp_get_max_threads,
19957 omp_get_thread_num, omp_in_parallel): Likewise.
19958 * fortran.c (ialias_redirect): Define.
19959 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19960 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19961 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19962 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19963 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19964 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19965 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19966 omp_get_wtime): Add ialias_redirect.
19968 2005-10-30 Jakub Jelinek <jakub@redhat.com>
19970 * fortran.c: Include stdlib.h.
19972 2005-10-29 Jakub Jelinek <jakub@redhat.com>
19974 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19975 * Makefile.in: Regenerated.
19977 2005-10-28 Jakub Jelinek <jakub@redhat.com>
19979 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19980 * libgomp_f.h.in (omp_check_defines): New function.
19981 * env.c: Include libgomp_f.h.
19982 (initialize_env): Call omp_check_defines.
19984 * testsuite/libgomp.dg/copyin-2.c: New test.
19985 * testsuite/libgomp.c++/copyin-2.C: New test.
19986 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19988 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19989 * testsuite/libgomp.fortran/sharing2.f90: New test.
19991 * testsuite/libgomp.dg/copyin-1.c: New test.
19992 * testsuite/libgomp.c++/copyin-1.C: New test.
19994 2005-10-26 Jakub Jelinek <jakub@redhat.com>
19996 * testsuite/libgomp.fortran/crayptr1.f90: New test.
19998 * testsuite/libgomp.fortran/workshare1.f90: New test.
20000 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20002 * libgomp.fortran/sharing1.f90: New test.
20004 2005-10-24 Jakub Jelinek <jakub@redhat.com>
20007 * testsuite/libgomp.c++/loop-7.C: New test.
20009 * testsuite/libgomp.dg/nestedfn-2.c: New test.
20011 * testsuite/libgomp.dg/nestedfn-1.c: New test.
20012 * testsuite/libgomp.fortran/reduction6.f90: New test.
20013 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20015 2005-10-23 Richard Henderson <rth@redhat.com>
20017 * testsuite/libgomp.c++/ctor-1.C: New.
20018 * testsuite/libgomp.c++/ctor-2.C: New.
20019 * testsuite/libgomp.c++/ctor-3.C: New.
20020 * testsuite/libgomp.c++/ctor-4.C: New.
20021 * testsuite/libgomp.c++/ctor-5.C: New.
20022 * testsuite/libgomp.c++/ctor-6.C: New.
20023 * testsuite/libgomp.c++/ctor-7.C: New.
20024 * testsuite/libgomp.c++/ctor-8.C: New.
20025 * testsuite/libgomp.c++/ctor-9.C: New.
20027 2005-10-21 Diego Novillo <dnovillo@redhat.com>
20030 * testsuite/libgomp.c++/pr24455-1.C: New test.
20031 * testsuite/libgomp.c++/pr24455.C: New test.
20032 * testsuite/libgomp.dg/pr24455-1.c: New test.
20033 * testsuite/libgomp.dg/pr24455.c: New test.
20035 2005-10-20 Richard Henderson <rth@redhat.com>
20037 * testsuite/libgomp.c++/loop-6.C: New.
20038 * testsuite/libgomp.dg/loop-3.c: New.
20040 2005-10-20 Jakub Jelinek <jakub@redhat.com>
20042 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20043 explicitly private.
20044 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20047 2005-10-19 Diego Novillo <dnovillo@redhat.com>
20049 * testsuite/libgomp.fortran/jacobi.f: New test.
20051 2005-10-19 Richard Henderson <rth@redhat.com>
20053 * configure.tgt (i?86-linux): Default to with_arch instead of
20054 CFLAGS. Add -mtune to match target_cpu.
20055 (x86_64-linux): Tune to i686.
20057 * fortran.c (omp_test_nest_lock_): Fix typo.
20059 2005-10-19 Jakub Jelinek <jakub@redhat.com>
20061 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20062 gomp_ordered_sync): Do nothing if team->nthreads == 1.
20063 * testsuite/libgomp.dg/ordered-3.c: New test.
20065 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20066 Remove volatile keyword.
20068 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20069 in COMMON block to avoid warnings on 64-bit targets.
20071 2005-10-18 Diego Novillo <dnovillo@redhat.com>
20073 * testsuite/libgomp.dg/shared-3.c: New test.
20075 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20077 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20078 * testsuite/libgomp.fortran/reduction5.f90: New test.
20080 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20082 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20084 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
20085 flush loop now that __sync_synchronize has proper memory barrier.
20086 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20087 Add -ffixed-form to dg-options.
20089 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20091 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20092 from subdirectories.
20093 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20094 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20095 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20096 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20097 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20098 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20099 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20100 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20101 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20102 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20103 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20104 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20105 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20106 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20107 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20108 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20109 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20110 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20111 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20112 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20113 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20114 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20115 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20116 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20117 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20119 2005-10-17 Jakub Jelinek <jakub@redhat.com>
20121 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20122 lang_library_path exists. Use find instead of glob to gather tests.
20123 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20125 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20127 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20128 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20129 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20130 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20131 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20132 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20133 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20134 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20135 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20136 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20137 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20138 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20139 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20141 2005-10-15 Jakub Jelinek <jakub@redhat.com>
20143 * testsuite/libgomp.dg/vla-1.c: New test.
20145 * testsuite/libgomp.fortran/reference2.f90: New test.
20147 * testsuite/libgomp.fortran/character2.f90: Remove explicit
20148 declaration of omp_get_thread_num.
20149 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
20152 * testsuite/libgomp.fortran/reduction1.f90: New test.
20153 * testsuite/libgomp.fortran/reduction2.f90: New test.
20154 * testsuite/libgomp.fortran/reduction3.f90: New test.
20155 * testsuite/libgomp.fortran/reduction4.f90: New test.
20157 2005-10-13 Richard Henderson <rth@redhat.com>
20159 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20160 * Makefile.in: Regenerate.
20161 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20162 * libgomp.h: Include bar.h.
20163 (struct gomp_barrier): Remove.
20164 (struct gomp_team): Add barrier. Replace master_barrier with
20165 master_release. Replace threads with ordered_release.
20166 (struct gomp_thread): Replace barrier with release.
20167 * ordered.c (gomp_ordered_first): Update for ordered_release change.
20168 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20169 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20170 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20171 (GOMP_single_copy_end): Likewise.
20172 * team.c (gomp_threads_dock): New.
20173 (gomp_barrier_init, gomp_barrier_destroy): Remove.
20174 (gomp_thread_start): Use gomp_barrier_wait.
20175 (new_team, free_team): Update for gomp_team changes.
20176 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20177 (gomp_team_end): Use gomp_barrier_wait.
20178 (initialize_team): Update for gomp_thread changes.
20179 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20180 (gomp_work_share_end_nowait): Use atomic ops when available.
20181 * config/linux/bar.c, config/linux/bar.h: New files.
20182 * config/posix/bar.c, config/posix/bar.h: New files.
20184 2005-10-13 Jakub Jelinek <jakub@redhat.com>
20186 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20187 * testsuite/libgomp.dg/single-2.c: New test.
20189 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20190 lang_link_flags): Unset, so that they aren't inherited from previously
20193 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20195 2005-10-12 Richard Henderson <rth@redhat.com>
20197 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20198 (libgomp_init): Use lang_test_file, lang_library_path, and
20199 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
20201 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20202 (lang_test_file, lang_link_flags): New.
20203 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20205 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20206 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20207 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20208 testsuite/libgomp.c++/parallel-1.C,
20209 testsuite/libgomp.c++/reduction-1.C,
20210 testsuite/libgomp.c++/reduction-2.C,
20211 testsuite/libgomp.c++/reduction-3.C,
20212 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20213 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20214 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20215 New files, largely cribbed from the C testsuite.
20217 2005-10-12 Jakub Jelinek <jakub@redhat.com>
20219 * testsuite/libgomp.fortran/character1.f90: New test.
20220 * testsuite/libgomp.fortran/character2.f90: New test.
20222 * testsuite/libgomp.dg/nested-1.c: New test.
20223 * testsuite/libgomp.dg/nested-2.c: New test.
20224 * testsuite/libgomp.fortran/do1.f90: New test.
20225 * testsuite/libgomp.fortran/do2.f90: New test.
20227 * testsuite/libgomp.fortran/reference1.f90: New test.
20229 2005-10-11 Jakub Jelinek <jakub@redhat.com>
20231 * testsuite/libgomp.dg/reduction-1.c: New test.
20232 * testsuite/libgomp.dg/reduction-2.c: New test.
20233 * testsuite/libgomp.dg/reduction-3.c: New test.
20235 2005-10-10 Jakub Jelinek <jakub@redhat.com>
20237 * testsuite/libgomp.dg/atomic-1.c: New test.
20238 * testsuite/libgomp.dg/atomic-2.c: New test.
20240 2005-10-09 Richard Henderson <rth@redhat.com>
20242 * critical.c (atomic_lock): New.
20243 (initialize_critical): Initialize it.
20244 (GOMP_atomic_start, GOMP_atomic_end): New.
20245 * libgomp.map: Export them.
20246 * libgomp_g.h: Declare them.
20248 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20250 2005-10-02 Richard Henderson <rth@redhat.com>
20252 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20253 to XCFLAGS instead of CFLAGS.
20255 2005-09-30 Richard Henderson <rth@redhat.com>
20257 * configure.ac: Determine whether -pthread or -lpthread is needed.
20258 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20259 * Makefile.in, configure: Rebuild.
20261 2005-09-28 Richard Henderson <rth@redhat.com>
20263 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20264 * testsuite/libgomp.dg/omp-single-3.c: New test.
20266 2005-09-28 Diego Novillo <dnovillo@redhat.com>
20268 * testsuite/libgomp.dg/omp-single-2.c: New test.
20269 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20271 2005-09-27 Richard Henderson <rth@redhat.com>
20273 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20274 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20276 2005-09-27 Jakub Jelinek <jakub@redhat.com>
20278 * testsuite/libgomp.dg/omp-loop03.c: New test.
20280 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20282 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20284 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20286 * testsuite/libgomp.dg/omp-single-1.c: New test.
20287 * testsuite/libgomp.dg/shared-1.c: Return 0.
20288 Add prototype for abort.
20289 * testsuite/libgomp.dg/shared-2.c: Likewise.
20291 2005-09-26 Jakub Jelinek <jakub@redhat.com>
20293 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20296 2005-09-26 Diego Novillo <dnovillo@redhat.com>
20298 * testsuite/libgomp.dg/shared-1.c: New test.
20299 * testsuite/libgomp.dg/shared-2.c: New test.
20301 2005-09-24 Richard Henderson <rth@redhat.com>
20303 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20305 2005-09-24 Richard Henderson <rth@redhat.com>
20307 * iter.c (gomp_iter_static_next): Round up when computing number
20308 of iterations. Don't bother distributing a remainder equally.
20310 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20311 Don't call srand. Zero b before testing.
20314 2005-09-24 Jakub Jelinek <jakub@redhat.com>
20316 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20317 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20319 2005-09-23 Jakub Jelinek <jakub@redhat.com>
20321 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20322 without !$omp end do, followed immediately by subroutine end.
20324 2005-09-23 Diego Novillo <dnovillo@redhat.com>
20326 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20328 2005-09-22 Richard Henderson <rth@redhat.com>
20330 * critical.c (GOMP_critical_name_start): Change argument to void**.
20331 Reuse the pointer space if the mutex fits.
20332 (GOMP_critical_name_end): Likewise.
20333 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20334 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20335 (GOMP_critical_name_end): Likewise.
20336 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20337 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20339 2005-09-20 Richard Henderson <rth@redhat.com>
20341 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20342 (create_lock_lock): New.
20343 (initialize_critical): Initialize it.
20344 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20345 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20347 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20349 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20351 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20353 * testsuite/libgomp.dg/omp-loop01.c: New test.
20354 * testsuite/libgomp.dg/omp-loop02.c: New test.
20356 2005-09-20 Jakub Jelinek <jakub@redhat.com>
20358 * configure.ac (AC_PROG_FC): Add.
20359 (USE_FORTRAN): New automake conditional.
20360 * configure: Rebuilt.
20361 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20362 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20363 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20364 Add rules to build them.
20365 * Makefile.in: Rebuilt.
20366 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20367 OMP_NEST_LOCK_KIND.
20368 * libgomp.map: Add Fortran wrappers.
20369 * libgomp_f.h.in: New file.
20370 * omp_lib.h.in: New file.
20371 * omp_lib.f90.in: New file.
20372 * fortran.c: New file.
20373 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20374 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20375 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20376 libgfortran has been built.
20377 * testsuite/libgomp.fortran/fortran.exp: New file.
20378 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20379 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20380 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20381 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20382 * testsuite/libgomp.fortran/omp_hello.f: New test.
20383 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20384 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20385 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20386 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20387 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20388 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20389 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20390 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20392 2005-08-30 Richard Henderson <rth@redhat.com>
20394 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20395 function for when aliases are not usable.
20396 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20397 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20398 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20399 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20400 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20401 GOMP_loop_ordered_guided_next): Likewise.
20402 * ordered.c (GOMP_ordered_start): Likewise.
20404 2005-08-01 Diego Novillo <dnovillo@redhat.com>
20406 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20407 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20408 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20409 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20410 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20411 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20412 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20413 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20414 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20416 2005-07-07 Eric Christopher <echristo@redhat.com>
20417 Diego Novillo <dnovillo@redhat.com>
20419 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20420 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20422 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20423 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20424 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20425 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20426 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20427 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20428 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20430 2005-06-13 Diego Novillo <dnovillo@redhat.com>
20432 * TOPLEVEL.patch: Remove.
20434 2005-05-16 Richard Henderson <rth@redhat.com>
20436 * configure.ac: Test for clock_gettime.
20437 * config.h.in, configure: Rebuild.
20438 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20439 (omp_get_wtime): Use clock_gettime if available.
20440 (omp_get_wtick): Use clock_getres if available.
20442 2005-05-11 Richard Henderson <rth@redhat.com>
20444 * config/linux/ia64/futex.h: New file.
20445 * configure.tgt: Use it.
20447 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20449 2005-05-07 Richard Henderson <rth@redhat.com>
20451 * config/linux/powerpc/futex.h: New file.
20452 * configure.tgt: Use it.
20454 * config/linux/i486/futex.h: Merge ...
20455 * config/linux/x86_64/futex.h: ... into ...
20456 * config/linux/x86/futex.h: ... here.
20457 * configure.tgt: Update to match.
20459 2005-05-06 Richard Henderson <rth@redhat.com>
20461 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20462 * config/linux/i486/futex.h: Likewise.
20463 * config/linux/x86_64/futex.h: Likewise.
20465 * config/linux/lock.c: New file.
20466 * config/linux/omp-lock.h: New file.
20468 * critical.c, env.h: Don't include omp.h
20469 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20470 * config/posix/time.c: Likewise.
20471 * config/posix/omp-lock.h: New file.
20472 * libgomp.h: Include omp-lock.h and omp.h.
20473 * Makefile.am (nodist_include_HEADERS): New.
20475 * configure.ac (PERL): New.
20476 * mkomp_h.pl: New file.
20477 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20479 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20481 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20482 build directory. Re-add -march=i486 hack.
20484 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20485 (libgomp_link_flags): Remove.
20486 (libgomp_initialized): Remove.
20487 (libgomp_init): Don't protect from reinitialization. Copy code
20488 from libstdc++ for getting the multilib set correctly.
20490 2005-05-05 Richard Henderson <rth@redhat.com>
20492 * config/linux/alpha/futex.h: New file.
20493 * configure.tgt (alpha*-*-linux*): Use it.
20495 * config/posix/mutex.c: New file.
20496 * config/posix/sem.c: Use libgomp.h.
20498 * configure.tgt (x86_64-linux): Also test CC for -m32.
20499 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20501 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20504 * Makefile.am (SUBDIRS): New.
20505 (libgomp_la_LDFLAGS): Add -lpthread.
20506 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20507 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20509 * libgomp_g.h: New file.
20510 * libgomp.h: Split out all public declarations to libgomp_g.h.
20511 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20512 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20513 * config/linux/sem.h: Likewise.
20514 * config/posix/sem.h: Likewise.
20516 * Makefile.am (AM_LDFLAGS): New.
20517 (libgomp_version_script): Split out from ...
20518 (libgomp_la_LDFLAGS): ... here.
20519 (libgomp_version_info): New.
20520 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20521 (LIBGOMP_ENABLE): New.
20522 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20523 (LIBGOMP_ENABLE_SYMVERS): New.
20524 * configure.ac (AC_INIT): Version 1.0.
20525 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20526 (enable-linux-futex): Likewise. Rename from enable-futex.
20527 (libtool_VERSION): New.
20528 (LIBGOMP_ENABLE_SYMVERS): Use it.
20529 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20530 * Makefile.in, aclocal.m4, configure: Rebuild.
20532 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20533 (gomp_mutex_unlock_slow): Fix typo.
20534 * config/linux/sem.c: Similarly.
20535 (gomp_sem_post_slow): Fix typo.
20536 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20537 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20538 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20540 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20541 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20542 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20543 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20544 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20545 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20546 LDFLAGS. Pull enable_futex check to top-level.
20547 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20548 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20550 First attempt at real configury.
20551 * Makefile, config.h: Remove file.
20552 * Makefile.am, Makefile.in: New file.
20553 * acinclude.m4 aclocal.m4: New file.
20554 * configure.ac, configure.tgt, configure: New file.
20556 * config/posix/lock.c: Rename from sys-lock.c.
20557 * config/posix/mutex.h: Rename from sys-mutex.h.
20558 * config/posix/sem.c: Rename from sys-sem.c.
20559 * config/posix/sem.h: Rename from sys-sem.h.
20560 * config/posix/proc.c: Rename from sys-proc.c.
20561 * config/posix/time.c: Rename from sys-proc.c.
20563 * config/linux/mutex.c: New file.
20564 * config/linux/mutex.h: New file.
20565 * config/linux/sem.c: New file.
20566 * config/linux/sem.h: New file.
20567 * config/linux/i486/futex.h: New file.
20568 * config/linux/x86_64/futex.h: New file.
20570 2005-05-04 Richard Henderson <rth@redhat.com>
20572 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20573 * libgomp.h: Declare them.
20574 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20575 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20577 2005-05-04 Richard Henderson <rth@redhat.com>
20579 * libgomp-1 code drop
20581 2005-05-04 Richard Henderson <rth@redhat.com>
20583 * iter.c (gomp_iter_static_next): Return tri-state on 0.
20584 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20585 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20586 (gomp_iter_static_next): Update.
20587 (gomp_ordered_static_next): Update.
20588 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20589 (gomp_loop_ordered_static_start): Likewise. Exit early for a
20590 totally empty range.
20591 (gomp_loop_ordered_static_next): Refine test for calling
20592 gomp_ordered_static_next.
20593 * testsuite/ordered-1.c: Add case for more threads than iterations.
20595 * iter.c (gomp_iter_runtime_next_locked): Remove.
20596 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20597 gomp_loop_guided_start, gomp_loop_ordered_static_start,
20598 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20599 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20600 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20601 gomp_loop_ordered_guided_next): Downcase name, make static, add
20602 an external alias with the old name.
20603 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20604 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20605 switch and call one of the above static functions.
20606 * libgomp.h: Update.
20608 * work.c (gomp_work_share_start): Lock the mutex for !first too.
20609 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20610 GOMP_loop_guided_start, GOMP_loop_runtime_start,
20611 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20612 GOMP_loop_ordered_guided_start): Update to match.
20613 * sections.c (GOMP_sections_start): Likewise.
20614 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20616 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20617 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20618 Use bounds check instead of modulus.
20619 (gomp_ordered_sync): Split out of GOMP_ordered_start.
20620 (gomp_ordered_last): Don't sync with ordered_owner here.
20621 (gomp_ordered_next): Likewise.
20622 (gomp_ordered_static_loop_next): Likewise.
20623 * loop.c, libgomp.h: Update to match.
20625 * libgomp.h (GOMP_barrier): Declare.
20627 * testsuite/barrier-1.c: New file.
20628 * testsuite/critical-1.c: New file.
20629 * testsuite/ordered-2.c: New file.
20630 * testsuite/ordered-1.c: New file.
20631 * testsuite/sections-1.c: New file.
20632 * testsuite/single-1.c: New file.
20633 * testsuite/Makefile (TESTS): Add them.
20635 2005-05-04 Richard Henderson <rth@redhat.com>
20637 * libgomp.h (struct gomp_work_share): Add ordered_owner.
20638 * loop.c (GOMP_loop_static_start): If not the startup thread,
20639 acquire the mutex to wait for initialization complete.
20640 (GOMP_loop_ordered_static_start): Likewise.
20641 (GOMP_loop_ordered_runtime_start): Likewise.
20642 (GOMP_loop_ordered_static_first): Remove.
20643 (GOMP_loop_ordered_dynamic_first): Remove.
20644 (GOMP_loop_ordered_guided_first): Remove.
20645 (GOMP_loop_ordered_runtime_first): Remove.
20646 * ordered.c (gomp_ordered_loop_first): Post to own release when
20647 we're the first thread.
20648 (gomp_ordered_loop_last): Wait on release if not owner.
20649 (gomp_ordered_loop_next): Likewise.
20650 (gomp_ordered_static_loop_init): New.
20651 (gomp_ordered_static_loop_next): Use ordered_owner.
20652 (GOMP_ordered_start): Likewise.
20653 * work.c (gomp_new_work_share): Initialize ordered_owner.
20655 2005-05-03 Richard Henderson <rth@redhat.com>
20657 * Makefile (OPT): New.
20660 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20661 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20662 * libgomp.h, libgomp.map, NOTES: Update to match.
20664 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20665 Add initialized and thr members.
20666 (gomp_thread_start): Pause when initially spawned to wait for
20667 the whole team to be created.
20668 (gomp_team_start): Release team members at the end.
20670 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
20671 (f_foo_1): Use GOMP_loop_end.
20672 (f_foo_2): Use GOMP_loop_end_nowait.
20674 * testsuite/loop-2.c: New file.
20675 * testsuite/Makefile (TESTS): Add it.
20677 2005-05-03 Richard Henderson <rth@redhat.com>
20679 * iter.c (gomp_iter_static_next): Fix overflow check typo.
20680 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20681 * team.c (new_team): Initialize oldest_live_gen to 1 if no
20682 initial work_share.
20684 * testsuite/Makefile: New file.
20685 * testsuite/loop-1.c: New file.
20687 2005-05-03 Richard Henderson <rth@redhat.com>
20689 Initial implementation and checkin.
20691 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20693 Copying and distribution of this file, with or without modification,
20694 are permitted in any medium without royalty provided the copyright
20695 notice and this notice are preserved.