]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2023-11-15 Andrew Stubbs <ams@codesourcery.com>
2 Andrew Jenner <andrew@codesourcery.com>
3
4 * plugin/plugin-gcn.c (max_isa_vgprs): New.
5 (run_kernel): CDNA2 devices have more VGPRs.
6
7 2023-11-10 Tobias Burnus <tobias@codesourcery.com>
8
9 * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
10 renamed section from TR11.
11
12 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
13
14 * config/linux/target-indirect.c: Move to...
15 * target-indirect.c: ...here.
16
17 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
18
19 * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
20 * Makefile.in: Regenerate.
21 * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
22 (GOMP_OFFLOAD_load_image): Add extra argument.
23 * libgomp.h (struct indirect_splay_tree_key_s): New.
24 (indirect_splay_tree_node, indirect_splay_tree,
25 indirect_splay_tree_key): New.
26 (indirect_splay_compare): New.
27 * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
28 * libgomp.texi (OpenMP 5.1): Update documentation on indirect
29 calls in target region and on indirect clause.
30 (Other new OpenMP 5.2 features): Add entry for virtual function calls.
31 * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
32 * oacc-host.c (host_load_image): Add extra argument.
33 * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
34 enough, read host indirect functions table and pass to
35 load_image_func.
36 * config/accel/target-indirect.c: New.
37 * config/linux/target-indirect.c: New.
38 * config/gcn/team.c (build_indirect_map): Add prototype.
39 (gomp_gcn_enter_kernel): Initialize support for indirect
40 function calls on GCN target.
41 * config/nvptx/team.c (build_indirect_map): Add prototype.
42 (gomp_nvptx_main): Initialize support for indirect function
43 calls on NVPTX target.
44 * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
45 indirect functions count.
46 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
47 is high enough, build address translation table and copy it to target
48 memory.
49 * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
50 functions count.
51 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
52 is high enough, Build address translation table and copy it to target
53 memory.
54 * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
55 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
56 * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
57
58 2023-11-05 Jakub Jelinek <jakub@redhat.com>
59
60 * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
61 supported also in C.
62
63 2023-10-31 Thomas Schwinge <thomas@codesourcery.com>
64
65 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
66 'acc_map_data' variant.
67
68 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
69
70 * oacc-parallel.c (GOACC_data_start): Handle
71 'GOACC_FLAG_LOCAL_DEVICE'.
72 (GOACC_parallel_keyed): Simplify accordingly.
73 * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
74
75 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
76
77 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
78 * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
79 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
80 * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
81 * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
82
83 2023-10-25 Chung-Lin Tang <cltang@codesourcery.com>
84
85 * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
86 GOACC_FLAG_LOCAL_DEVICE case.
87 * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
88
89 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
90
91 * Makefile.am: Handle Darwin rpaths.
92 * Makefile.in: Regenerate.
93 * configure: Regenerate.
94 * configure.ac: Handle Darwin rpaths
95
96 2023-10-20 Andrew Stubbs <ams@codesourcery.com>
97
98 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
99 (isa_hsa_name): Recognise gfx1030.
100 (isa_code): Likewise.
101 * team.c (defined): Remove s_endpgm.
102
103 2023-10-20 Tobias Burnus <tobias@codesourcery.com>
104
105 * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
106 _OPENMP >= 201811.
107
108 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
109
110 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
111 improve wording especially for Fortran; mention -fopenmp-simd.
112 (Enabling OpenACC): Minor cleanup; remove conditional compilation
113 sentinel.
114
115 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
116
117 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
118 Actually document what the function does.
119 (GCC_ACC_NOTIFY): Remove unused env var.
120
121 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
122
123 * libgomp.texi: Replace most future tense by present tense.
124
125 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
126
127 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
128 dg-additional-options "-fdump-tree-gimple"; fix scan.
129
130 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
131
132 * libgomp.texi: Fix some typos.
133 (Memory Management Routines): Document remaining 5.x routines.
134 (Memory allocation): Make clear when the section applies.
135
136 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
137
138 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
139 supports the allocate directive for stack variables.
140 * testsuite/libgomp.fortran/allocate-5.f90: New test.
141 * testsuite/libgomp.fortran/allocate-6.f90: New test.
142 * testsuite/libgomp.fortran/allocate-7.f90: New test.
143 * testsuite/libgomp.fortran/allocate-8.f90: New test.
144
145 2023-10-12 Tobias Burnus <tobias@codesourcery.com>
146
147 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
148 OMP_TARGET_OFFLOAD.
149 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
150 clarify MANDATORY behavior.
151
152 2023-10-12 Zhang, Jun <jun.zhang@intel.com>
153
154 * env.c (initialize_env): Use do_adjust_default_spincount.
155 * config/linux/x86/spincount.h: New file.
156
157 2023-10-08 Tobias Burnus <tobias@codesourcery.com>
158
159 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
160
161 2023-10-06 Tobias Burnus <tobias@codesourcery.com>
162
163 * libgomp.texi (Device Memory Routines): New.
164
165 2023-10-04 Tobias Burnus <tobias@codesourcery.com>
166
167 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
168 and that other target archs have no 'arch'/'isa' traits implemented.
169
170 2023-09-20 Tobias Burnus <tobias@codesourcery.com>
171
172 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
173 implemented for C only.
174 * testsuite/libgomp.c/allocate-4.c: New test.
175 * testsuite/libgomp.c/allocate-5.c: New test.
176 * testsuite/libgomp.c/allocate-6.c: New test.
177
178 2023-09-20 Jakub Jelinek <jakub@redhat.com>
179
180 PR c++/111392
181 * libgomp.texi: Mark decl attribute was added to the C++ attribute
182 syntax as implemented.
183
184 2023-09-19 Jakub Jelinek <jakub@redhat.com>
185
186 PR libgomp/111413
187 * env.c (initialize_env): Don't dereference environ if it is NULL.
188 Reindent.
189
190 2023-09-18 Richard Biener <rguenther@suse.de>
191
192 PR tree-optimization/111294
193 * team.c (gomp_team_start): Assert alloca size to avoid false
194 positive alloc-size diagnostic.
195
196 2023-09-12 Thomas Schwinge <thomas@codesourcery.com>
197 Chung-Lin Tang <cltang@codesourcery.com>
198
199 PR testsuite/91884
200 PR testsuite/109951
201 * configure.ac: Revert earlier changes, instead
202 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
203 * Makefile.in: Regenerate.
204 * configure: Likewise.
205 * testsuite/Makefile.in: Likewise.
206 * testsuite/lib/libgomp.exp (libgomp_init): Remove
207 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
208 If '--with-build-sysroot=[...]' was specified, use it for
209 build-tree testing.
210 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
211 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
212 (SYSROOT_CFLAGS_FOR_TARGET): Set.
213 * testsuite/libgomp.c++/c++.exp (lang_source_re)
214 (lang_include_flags): Set for build-tree testing.
215 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
216 (lang_include_flags): Likewise.
217
218 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
219
220 * libgomp.texi (Memory Management Routines): New; add documentation for
221 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
222 omp_get_default_allocator.
223 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
224
225 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
226
227 * target.c (gomp_unload_device): Remove tailing whitespace.
228
229 2023-09-04 Tobias Burnus <tobias@codesourcery.com>
230 Thomas Schwinge <thomas@codesourcery.com>
231
232 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
233
234 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
235
236 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
237
238 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
239
240 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
241 * testsuite/libgomp.fortran/imperfect1.f90: New.
242 * testsuite/libgomp.fortran/imperfect2.f90: New.
243 * testsuite/libgomp.fortran/imperfect3.f90: New.
244 * testsuite/libgomp.fortran/imperfect4.f90: New.
245 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
246 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
247 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
248 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
249
250 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
251
252 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
253 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
254 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
255 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
256 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
257 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
258 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
259 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
260 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
261 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
262
263 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
264
265 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
266 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
267 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
268 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
269 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
270 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
271 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
272 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
273 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
274 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
275 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
276 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
277 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
278
279 2023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
280
281 * testsuite/lib/libgomp.exp: Add effective target.
282 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
283 functions.
284
285 2023-08-22 Tobias Burnus <tobias@codesourcery.com>
286
287 * libgomp.texi (OpenMP 5.2 status): Add depobj with
288 destroy-var argument as 'N'. Mark defaultmap with
289 'all' category as 'Y'.
290
291 2023-08-19 Tobias Burnus <tobias@codesourcery.com>
292
293 PR middle-end/111017
294 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
295
296 2023-08-17 Tobias Burnus <tobias@codesourcery.com>
297
298 PR libgomp/111024
299 * allocator.c (gomp_init_libnuma): Call numa_available; if
300 not available or not returning 0, disable libnuma usage.
301
302 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
303
304 * configure: Regenerate.
305
306 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
307
308 * configure: Regenerate.
309
310 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
311
312 * configure: Regenerate.
313
314 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
315
316 * configure: Regenerate.
317
318 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
319
320 * configure: Regenerate.
321
322 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
323
324 * configure: Regenerate.
325
326 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
327
328 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
329 GOMP_OFFLOAD_CAP_SHARED_MEM.
330 (omp_target_memcpy_rect_copy): Likewise for lock condition.
331 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
332 memcpy3d/memcpy2d.
333 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
334 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
335 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
336
337 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
338
339 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
340 GOMP_OFFLOAD_memcpy3d): New prototypes.
341 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
342 and memcpy3d_func.
343 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
344 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
345 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
346 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
347 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
348 GOMP_OFFLOAD_memcpy3d): New.
349 * target.c (omp_target_memcpy_rect_worker):
350 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
351 Permit all device-to-device copyies; invoke new plugins for
352 2D and 3D copying when available.
353 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
354 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
355 * testsuite/libgomp.fortran/target-12.f90: Likewise.
356 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
357
358 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
359
360 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
361 (Tasking Routines): Document omp_in_explicit_task.
362 (Implementation-defined ICV Initialization): Use @ref not @code.
363
364 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
365
366 * libgomp.texi (OpenMP Runtime Library Routines):
367 Split long list by adding sections and moving routines there.
368 (OMP_ALLOCATORS): Fix typo.
369
370 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
371
372 PR fortran/107424
373 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
374 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
375 commented tests.
376 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
377 test file; tests are in non-rectangular-loop-1.f90.
378 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
379 testcase to use a non-constant step to retain the 'sorry' test.
380 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
381
382 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
383 Chung-Lin Tang <cltang@codesourcery.com>
384
385 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
386 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
387
388 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
389
390 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
391 the traits. Add crossref to 'Memory allocation'.
392 (Memory allocation): Refer to OMP_ALLOCATOR for the available
393 traits and allocators/mem spaces; document the default value
394 for the pool_size trait.
395
396 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
397
398 * allocator.c (omp_init_allocator): Check whether symbol from
399 dlopened libnuma is available before using libnuma for
400 allocations.
401
402 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
403
404 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
405 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
406 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
407
408 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
409
410 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
411 'Memory allocation' section which contains the full status.
412 (TR11): Remove differently worded duplicated entry.
413
414 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
415
416 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
417 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
418 add GOMP_MEMKIND_LIBNUMA.
419 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
420 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
421 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
422 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
423 needed.
424 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
425 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
426 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
427 updated for libnuma usage.
428 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
429 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
430
431 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
432
433 * allocator.c (omp_init_allocator): Use malloc for
434 omp_high_bw_mem_space when the memkind lib is unavailable
435 instead of returning omp_null_allocator.
436 * libgomp.texi (OpenMP 5.0): Fix typo.
437 (Memory allocation with libmemkind): Document implementation
438 in more detail.
439
440 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
441
442 * libgomp.texi: Use @var for ICV vars.
443 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
444 document which ICV is set and which scope the ICV has; extend/cleanup
445 some @ref.
446 (Implementation-defined ICV Initialization): New.
447 (nvptx): Document the implementation-defined used per-warp stack size.
448
449 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
450
451 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
452 error.
453
454 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
455
456 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
457 as expected dg-output.
458
459 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
460
461 PR middle-end/110270
462 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
463 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
464 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
465 * testsuite/libgomp.c/target-19.c: Update expected value.
466 * testsuite/libgomp.c++/target-18.C: Likewise.
467 * testsuite/libgomp.c++/target-19.C: Likewise.
468 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
469 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
470 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
471
472 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
473
474 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
475 gomp_init_targets_once was called before using default-device-var.
476 * testsuite/libgomp.c/target-55.c: New test.
477 * testsuite/libgomp.c/target-55a.c: New test.
478
479 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
480
481 * env.c (gomp_def_allocator_envvar): New var.
482 (parse_allocator): Handle OpenMP 5.1 syntax.
483 (cleanup_env): New.
484 (omp_display_env): Output gomp_def_allocator_envvar
485 for an allocator with traits.
486 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
487 OMP_DISPLAY_AFFINITY): New.
488 * testsuite/libgomp.c/allocator-1.c: New test.
489 * testsuite/libgomp.c/allocator-2.c: New test.
490 * testsuite/libgomp.c/allocator-3.c: New test.
491 * testsuite/libgomp.c/allocator-4.c: New test.
492 * testsuite/libgomp.c/allocator-5.c: New test.
493 * testsuite/libgomp.c/allocator-6.c: New test.
494
495 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
496
497 * target.c (resolve_device): Align a
498 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
499 * testsuite/libgomp.c/target-51.c: Adjust.
500
501 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
502
503 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
504 set.
505 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
506 Likewise.
507 * testsuite/libgomp.c/simd-math-1.c: Remove
508 '-foffload-options=-lm'.
509 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
510 Likewise.
511 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
512 Likewise.
513
514 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
515
516 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
517 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
518 Likewise.
519
520 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
521
522 * testsuite/libgomp.c/target-51.c: Fix typo.
523
524 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
525
526 * env.c (gomp_default_icv_values): Init default_device_var to
527 an nonconforming value - INT_MIN.
528 (initialize_env): After env-var parsing, set default_device_var to
529 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
530 (omp_display_env): If default_device_var is INT_MIN, call
531 gomp_init_targets_once.
532 * icv-device.c (omp_get_default_device): Likewise.
533 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
534 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
535 * target.c (resolve_device): Improve error message device-num < 0
536 with 'mandatory' and no no-host devices available.
537 (gomp_target_init): Set default-device-var if INT_MIN.
538 * testsuite/libgomp.c/target-48.c: New test.
539 * testsuite/libgomp.c/target-49.c: New test.
540 * testsuite/libgomp.c/target-50.c: New test.
541 * testsuite/libgomp.c/target-50a.c: New test.
542 * testsuite/libgomp.c/target-51.c: New test.
543 * testsuite/libgomp.c/target-52.c: New test.
544 * testsuite/libgomp.c/target-53.c: New test.
545 * testsuite/libgomp.c/target-54.c: New test.
546
547 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
548
549 PR libgomp/109837
550 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
551 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
552
553 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
554
555 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
556 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
557 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
558 error message.
559 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
560 changed error message.
561 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
562 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
563 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
564 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
565 extend testcase to check that data is copied when needed.
566 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
567 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
568
569 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
570 Tobias Burnus <tobias@codesourcery.com>
571
572 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
573 also for non-offload_device targets; check that it runs
574 successfully for those and for all until a checkpoint for all
575 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
576 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
577 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
578 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
579 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
580 add missing vars to map clause.
581
582 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
583
584 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
585 unified_address requirement as supported.
586 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
587 'unified_address' from the not-supported requirements.
588
589 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
590 Tobias Burnus <tobias@codesourcery.com>
591
592 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
593 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
594 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
595 modifier.
596 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
597 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
598 Emit runtime error if memory region not present.
599 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
600 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
601 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
602 * testsuite/libgomp.fortran/target-present-1.f90: New test.
603 * testsuite/libgomp.fortran/target-present-2.f90: New test.
604 * testsuite/libgomp.fortran/target-present-3.f90: New test.
605
606 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
607
608 PR testsuite/66005
609 * testsuite/lib/libgomp.exp: 'flock' through stdout.
610 * testsuite/flock: New.
611 * configure.ac (FLOCK): Point to that if no 'flock' available, but
612 'perl' is.
613 * configure: Regenerate.
614
615 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
616
617 * configure.ac (PERL): Remove.
618 * configure: Regenerate.
619 * Makefile.in: Likewise.
620 * testsuite/Makefile.in: Likewise.
621
622 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
623
624 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
625
626 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
627
628 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
629
630 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
631
632 PR libgomp/109875
633 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
634 * config/nvptx/target.c (GOMP_teams4): Likewise.
635 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
636 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
637 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
638 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
639
640 2023-05-19 Jakub Jelinek <jakub@redhat.com>
641
642 PR libgomp/109904
643 * configure.ac (link_gomp): Include also $DL_LIBS.
644 * configure: Regenerated.
645
646 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
647
648 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
649 'target exit data'.
650 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
651 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
652 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
653 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
654
655 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
656
657 PR testsuite/66005
658 * configure.ac: Look for 'flock'.
659 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
660 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
661 * testsuite/lib/libgomp.exp: ... but here, instead.
662 (libgomp_load): Override for parallel testing.
663 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
664 * configure: Regenerate.
665 * Makefile.in: Regenerate.
666 * testsuite/Makefile.in: Regenerate.
667
668 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
669 Thomas Schwinge <thomas@codesourcery.com>
670
671 PR testsuite/66005
672 * testsuite/Makefile.am (PWD_COMMAND): New variable.
673 (%/site.exp): New target.
674 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
675 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
676 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
677 (check_p_subdirs)
678 (check_DEJAGNU_libgomp_targets): New variables.
679 ($(check_DEJAGNU_libgomp_targets)): New target.
680 ($(check_DEJAGNU_libgomp_targets)): New dependency.
681 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
682 * testsuite/Makefile.in: Regenerate.
683 * testsuite/lib/libgomp.exp: For parallel testing,
684 'load_file ../libgomp-test-support.exp'.
685
686 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
687
688 PR testsuite/91884
689 * configure.ac: 'AC_SUBST(CXX)'.
690 * configure: Regenerate.
691 * Makefile.in: Likewise.
692 * testsuite/Makefile.in: Likewise.
693 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
694 (GFORTRAN_UNDER_TEST): Set.
695 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
696 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
697 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
698 * testsuite/libgomp.fortran/fortran.exp: Use
699 'GFORTRAN_UNDER_TEST'.
700 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
701
702 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
703
704 PR testsuite/91884
705 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
706 specify compiler.
707 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
708 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
709 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
710 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
711 Likewise.
712 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
713 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
714 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
715 Likewise.
716
717 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
718
719 PR libstdc++/109816
720 * testsuite/libgomp.c++/target-map-class-1.C: New test.
721 * testsuite/libgomp.c++/target-map-class-2.C: New test.
722
723 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
724
725 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
726 'lang_library_path' into a list of 'lang_library_paths'.
727 * testsuite/libgomp.c++/c++.exp: Adjust.
728 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
729 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
730 libquadmath, too.
731 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
732
733 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
734
735 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
736 at 'lang_test_file_found'.
737 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
738 'return' early if not able to test. Simplify 'ld_library_path' setup.
739 * testsuite/libgomp.fortran/fortran.exp: Likewise.
740 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
741 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
742
743 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
744
745 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
746 first.
747 * testsuite/libgomp.fortran/fortran.exp: Likewise.
748 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
749 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
750
751 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
752
753 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
754 * testsuite/libgomp.c/c.exp: Likewise.
755 * testsuite/libgomp.fortran/fortran.exp: Likewise.
756 * testsuite/libgomp.graphite/graphite.exp: Likewise.
757 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
758 * testsuite/libgomp.oacc-c/c.exp: Likewise.
759 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
760
761 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
762
763 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
764 * testsuite/libgomp.fortran/fortran.exp: Likewise.
765 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
766 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
767 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
768 'lang_test_file'.
769 * testsuite/libgomp.oacc-c/c.exp: Likewise.
770 * testsuite/libgomp.graphite/graphite.exp: Likewise.
771 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
772 'lang_test_file_found' instead of 'lang_test_file'.
773
774 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
775
776 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
777 set.
778 * testsuite/libgomp.c++/c++.exp: Likewise.
779 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
780
781 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
782
783 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
784 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
785
786 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
787
788 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
789 of 'libstdcxx_includes'.
790 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
791
792 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
793
794 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
795 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
796 * libgomp.h (gomp_target_rev): Adjust.
797 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
798 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
799 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
800 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
801 (rev_off_host_to_dev_cpy): Remove.
802 (GOMP_OFFLOAD_run): Adjust.
803
804 2023-05-04 Julian Brown <julian@codesourcery.com>
805
806 PR fortran/109622
807 * testsuite/libgomp.fortran/pr109622.f90: Move test...
808 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
809 vector length warning.
810 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
811 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
812 missing copyin/copyout variable. Ignore vector length warnings.
813 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
814 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
815 vector length warnings.
816 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
817
818 2023-04-28 Julian Brown <julian@codesourcery.com>
819
820 PR fortran/109622
821 * testsuite/libgomp.fortran/pr109622.f90: New test.
822 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
823 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
824
825 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
826
827 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
828 * testsuite/libgomp.c/scan-23.c: New test.
829 * testsuite/libgomp.fortran/scan-2.f90: New test.
830
831 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
832
833 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
834 weak_undefined options.
835
836 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
837
838 * libgomp.texi (Offload-Target Specifics): Grammar fix.
839
840 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
841
842 PR fortran/104949
843 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
844 caveat/safeguard.
845
846 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
847
848 PR libgomp/90596
849 * target.c (gomp_map_vars_internal): Allow for
850 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
851 * oacc-parallel.c (GOACC_parallel_keyed): Pass
852 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
853 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
854 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
855 Adjust, simplify.
856 (gomp_offload_free): Remove.
857 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
858 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
859 (cuda_free_argmem): Remove.
860 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
861 Adjust.
862
863 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
864
865 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
866 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
867 data.
868
869 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
870
871 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
872 'GOMP_MAP_IF_PRESENT'.
873 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
874 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
875 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
876 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
877 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
878 testing.
879 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
880
881 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
882
883 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
884 shortcut.
885
886 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
887
888 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
889 another aspect of OpenACC 'async' semantics.
890
891 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
892
893 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
894 position.
895 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
896 Verify 'acc_ev_alloc', 'acc_ev_free'.
897
898 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
899
900 PR libgomp/109062
901 * env.c (wait_policy): Initialize to -1.
902 (initialize_icvs): Initialize icvs->wait_policy to -1.
903 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
904
905 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
906
907 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
908
909 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
910 Paul-Antoine Arras <pa@codesourcery.com>
911
912 * testsuite/libgomp.c/simd-math-1.c: New testcase.
913
914 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
915
916 PR middle-end/108546
917 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
918 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
919
920 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
921
922 * testsuite/libgomp.fortran/alloc-10.f90: Use
923 '-Wno-complain-wrong-lang'.
924 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
925 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
926 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
927 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
928 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
929 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
930 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
931 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
932 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
933 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
934 Likewise.
935 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
936 Likewise.
937 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
938 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
939 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
940 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
941 'dg-prune-output'.
942
943 2023-02-16 Jakub Jelinek <jakub@redhat.com>
944
945 * libgomp.texi: Fix typos - theads -> threads.
946
947 2023-02-16 Jakub Jelinek <jakub@redhat.com>
948
949 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
950 comment typo and improve its wording.
951
952 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
953
954 * target.c (gomp_target_rev): Dereference ptr
955 to get device address.
956 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
957 for unallocated allocatable.
958
959 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
960
961 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
962 kind check.
963 (GOMP_target_enter_exit_data): If the next map item is
964 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
965 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
966
967 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
968
969 PR fortran/107424
970 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
971 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
972 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
973 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
974 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
975 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
976
977 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
978
979 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
980 offloading compilation.
981
982 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
983
984 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
985 freeing not allocated memory.
986 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
987
988 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
989
990 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
991 reverse offload.
992 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
993 reverse-offload requirement.
994
995 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
996
997 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
998 (DEFAULT_TEAM_ARENA_SIZE): New define.
999 (struct heap): Move to this file.
1000 (struct kernargs_abi): Likewise.
1001 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1002 the kernargs.
1003 * libgomp.h: Include libgomp-gcn.h.
1004 (TEAM_ARENA_SIZE): Remove.
1005 (team_malloc): Update the error message.
1006 * plugin/plugin-gcn.c (struct kernargs): Move common content to
1007 struct kernargs_abi.
1008 (struct agent_info): Rename team arenas to ephemeral memories.
1009 (struct team_arena_list): Rename ....
1010 (struct ephemeral_memories_list): to this.
1011 (struct heap): Delete.
1012 (team_arena_size): New variable.
1013 (stack_size): New variable.
1014 (print_kernel_dispatch): Update debug messages.
1015 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1016 Read GCN_STACK_SIZE.
1017 (get_team_arena): Rename ...
1018 (configure_ephemeral_memories): ... to this, and set up stacks.
1019 (release_team_arena): Rename ...
1020 (release_ephemeral_memories): ... to this.
1021 (destroy_team_arenas): Rename ...
1022 (destroy_ephemeral_memories): ... to this.
1023 (create_kernel_dispatch): Add num_threads parameter.
1024 Adjust for kernargs_abi refactor and ephemeral memories.
1025 (release_kernel_dispatch): Adjust for ephemeral memories.
1026 (run_kernel): Pass thread-count to create_kernel_dispatch.
1027 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1028 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1029
1030 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
1031
1032 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1033
1034 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1035
1036 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1037 usage, remove unused -fdump-tree-original.
1038 * testsuite/libgomp.fortran/allocate-4.f90: New.
1039
1040 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1041
1042 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1043 (GCN): Add item about 'omp requires'.
1044 (nvptx): Likewise; add item about reverse offload.
1045
1046 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
1047
1048 PR fortran/108558
1049 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1050
1051 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
1052
1053 * libgomp.texi (OpenMP 5.0): Set non-rectangular
1054 loop nest back to 'P' as Fortran support is incomplete.
1055
1056 2023-01-19 Jakub Jelinek <jakub@redhat.com>
1057
1058 PR middle-end/108459
1059 * testsuite/libgomp.c/pr108459.c: New test.
1060
1061 2023-01-17 Martin Liska <mliska@suse.cz>
1062
1063 * Makefile.in: Regenerate.
1064 * configure: Regenerate.
1065
1066 2023-01-07 LIU Hao <lh_mouse@126.com>
1067
1068 PR middle-end/108300
1069 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1070 <windows.h>.
1071
1072 2023-01-05 Jakub Jelinek <jakub@redhat.com>
1073
1074 PR c++/108286
1075 * testsuite/libgomp.c++/pr108286.C: New test.
1076
1077 2023-01-02 Jakub Jelinek <jakub@redhat.com>
1078
1079 * libgomp.texi: Bump @copying's copyright year.
1080
1081 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
1082
1083 PR target/99555
1084 * config/nvptx/bar.c (generation_to_barrier): Remove.
1085 (futex_wait,futex_wake,do_spin,do_wait): Remove.
1086 (GOMP_WAIT_H): Remove.
1087 (#include "../linux/bar.c"): Remove.
1088 (gomp_barrier_wait_end): New function.
1089 (gomp_barrier_wait): Likewise.
1090 (gomp_barrier_wait_last): Likewise.
1091 (gomp_team_barrier_wait_end): Likewise.
1092 (gomp_team_barrier_wait): Likewise.
1093 (gomp_team_barrier_wait_final): Likewise.
1094 (gomp_team_barrier_wait_cancel_end): Likewise.
1095 (gomp_team_barrier_wait_cancel): Likewise.
1096 (gomp_team_barrier_cancel): Likewise.
1097 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1098 (gomp_barrier_init): Remove init of waiters, lock fields.
1099 (gomp_team_barrier_wake): Remove prototype, add new static inline
1100 function.
1101
1102 2022-12-21 Jakub Jelinek <jakub@redhat.com>
1103
1104 PR c++/108180
1105 * testsuite/libgomp.c++/pr108180.C: New test.
1106
1107 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
1108
1109 PR libfortran/108056
1110 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1111 accidentally added file.
1112
1113 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
1114
1115 PR libfortran/108056
1116 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1117
1118 2022-12-14 Julian Brown <julian@codesourcery.com>
1119
1120 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1121 test.
1122
1123 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
1124
1125 * libgomp.h (struct target_mem_desc): Predeclare; move
1126 below after 'reverse_splay_tree_node' and add rev_array
1127 member.
1128 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1129 (reverse_splay_tree_node, reverse_splay_tree,
1130 reverse_splay_tree_key): New typedef.
1131 (struct gomp_device_descr): Add mem_map_rev member.
1132 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1133 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1134 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1135 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1136 splay_tree_callback but returning int not void.
1137 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1138 taking splay_tree_callback_stop as argument.
1139 * splay-tree.c (splay_tree_foreach_internal_lazy,
1140 splay_tree_foreach_lazy): New; but early exit if callback returns
1141 nonzero.
1142 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1143 (gomp_map_lookup_rev): New.
1144 (gomp_load_image_to_device): Handle reverse-offload function
1145 lookup table.
1146 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1147 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1148 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1149 gomp_map_cdata_lookup): New auxiliary structs and functions for
1150 gomp_target_rev.
1151 (gomp_target_rev): Implement reverse offloading and its mapping.
1152 (gomp_target_init): Init current_device.mem_map_rev.root.
1153 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1154 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1155 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1156 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1157 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1158 mapping of on-device allocated variables.
1159
1160 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
1161
1162 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1163 item about 'align'; mark clause as 'Y' and directive as 'N'.
1164 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1165 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1166
1167 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1168
1169 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1170 allow processing of device-specific values.
1171 (omp_set_teams_thread_limit): Likewise.
1172 (ialias): Likewise.
1173 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1174 (omp_set_teams_thread_limit): Likewise.
1175 (ialias): Likewise.
1176 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1177 (ialias): Likewise.
1178 (omp_set_teams_thread_limit): Likewise.
1179 * icv.c (omp_set_teams_thread_limit): Removed.
1180 (omp_get_teams_thread_limit): Likewise.
1181 (ialias): Likewise.
1182 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1183 to the limitation of the number of teams.
1184 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1185 the number of teams by twice the number of compute units.
1186 (parse_target_attributes): Limit the number of teams on gcn offload
1187 devices.
1188 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1189 handling.
1190 (gomp_load_image_to_device): Added a size check for the ICVs struct
1191 variable.
1192 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1193 copy back the ICV values from device to host.
1194 (GOMP_target_ext): Update the number of teams and threads in the kernel
1195 args also considering device-specific values.
1196 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1197 of OMP_TEAMS_THREAD_LIMIT from the environment.
1198 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1199 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1200 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1201 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1202 * testsuite/libgomp.fortran/icv-5.f90: New test.
1203 * testsuite/libgomp.fortran/icv-6.f90: New test.
1204
1205 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
1206
1207 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1208 (TR11): Add missing '@tab N @tab'.
1209
1210 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
1211
1212 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1213
1214 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1215
1216 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1217 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1218 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1219 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1220 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1221 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1222 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1223
1224 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
1225
1226 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1227
1228 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1229
1230 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1231 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1232 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1233 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1234
1235 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1236
1237 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1238 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1239 as valid and the code having no reverse-offload code.
1240 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1241
1242 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1243
1244 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1245 and status for Technical Report (TR) 11.
1246
1247 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
1248
1249 * config/gcn/libgomp-gcn.h (struct output):
1250 Remove 'msg_u64' from the union, change
1251 value_u64[2] to value_u64[6].
1252 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1253 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1254 Likewise.
1255
1256 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
1257
1258 * config/gcn/libgomp-gcn.h: New file; contains
1259 struct output, declared previously in plugin-gcn.c.
1260 * config/gcn/target.c: Include it.
1261 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1262 (GOMP_target_ext): Handle reverse offload.
1263 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1264 (struct kernargs): Replace struct def by the one
1265 from libgomp-gcn.h for output_data.
1266 (process_reverse_offload): New.
1267 (console_output): Call it.
1268
1269 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
1270 Andrew Stubbs <ams@codesourcery.com>
1271
1272 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1273 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1274
1275 2022-11-14 Martin Liska <mliska@suse.cz>
1276
1277 Revert:
1278 2022-11-14 Martin Liska <mliska@suse.cz>
1279
1280 * doc/amd-radeon-gcn.rst: New file.
1281 * doc/conf.py: New file.
1282 * doc/copyright.rst: New file.
1283 * doc/cuda-streams-usage.rst: New file.
1284 * doc/enabling-openacc.rst: New file.
1285 * doc/enabling-openmp.rst: New file.
1286 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1287 * doc/first-invocation-openacc-library-api.rst: New file.
1288 * doc/funding.rst: New file.
1289 * doc/general-public-license-3.rst: New file.
1290 * doc/gnu-free-documentation-license.rst: New file.
1291 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1292 * doc/index.rst: New file.
1293 * doc/indices-and-tables.rst: New file.
1294 * doc/introduction.rst: New file.
1295 * doc/memory-allocation-with-libmemkind.rst: New file.
1296 * doc/nvptx.rst: New file.
1297 * doc/offload-target-specifics.rst: New file.
1298 * doc/openacc-environment-variables.rst: New file.
1299 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1300 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1301 * doc/openacc-environment-variables/accproflib.rst: New file.
1302 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1303 * doc/openacc-introduction.rst: New file.
1304 * doc/openacc-library-and-environment-variables.rst: New file.
1305 * doc/openacc-library-interoperability.rst: New file.
1306 * doc/openacc-profiling-interface.rst: New file.
1307 * doc/openacc-runtime-library-routines.rst: New file.
1308 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1309 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1310 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1311 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1312 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1313 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1314 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1315 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1316 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1317 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1318 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1319 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1320 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1321 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1322 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1323 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1324 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1325 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1326 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1327 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1328 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1329 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1330 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1331 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1332 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1333 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1334 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1335 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1336 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1337 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1338 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1339 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1340 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1341 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1342 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1343 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1344 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1345 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1346 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1347 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1348 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1349 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1350 * doc/openmp-context-selectors.rst: New file.
1351 * doc/openmp-environment-variables.rst: New file.
1352 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1353 * doc/openmp-environment-variables/gompdebug.rst: New file.
1354 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1355 * doc/openmp-environment-variables/gompspincount.rst: New file.
1356 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1357 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1358 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1359 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1360 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1361 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1362 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1363 * doc/openmp-environment-variables/ompnested.rst: New file.
1364 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1365 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1366 * doc/openmp-environment-variables/ompplaces.rst: New file.
1367 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1368 * doc/openmp-environment-variables/ompschedule.rst: New file.
1369 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1370 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1371 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1372 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1373 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1374 * doc/openmp-implementation-specifics.rst: New file.
1375 * doc/openmp-implementation-status.rst: New file.
1376 * doc/openmp-implementation-status/openmp-45.rst: New file.
1377 * doc/openmp-implementation-status/openmp-50.rst: New file.
1378 * doc/openmp-implementation-status/openmp-51.rst: New file.
1379 * doc/openmp-implementation-status/openmp-52.rst: New file.
1380 * doc/openmp-runtime-library-routines.rst: New file.
1381 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1382 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1383 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1384 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1385 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1386 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1387 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1388 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1389 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1390 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1391 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1392 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1393 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1394 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1395 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1396 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1397 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1398 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1399 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1400 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1401 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1402 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1403 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1404 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1405 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1406 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1407 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1408 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1409 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1410 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1411 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1412 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1413 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1414 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1415 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1416 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1417 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1418 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1419 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1420 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1421 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1422 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1423 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1424 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1425 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1426 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1427 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1428 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1429 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1430 * doc/reporting-bugs.rst: New file.
1431 * doc/the-libgomp-abi.rst: New file.
1432 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1433 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1434 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1435 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1436 New file.
1437 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1438 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1439 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1440 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1441 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1442 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1443 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1444 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1445 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1446 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1447 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1448
1449 2022-11-14 Martin Liska <mliska@suse.cz>
1450
1451 Revert:
1452 2022-11-14 Martin Liska <mliska@suse.cz>
1453
1454 * Makefile.in: Support Sphinx based documentation.
1455
1456 2022-11-14 Martin Liska <mliska@suse.cz>
1457
1458 Revert:
1459 2022-11-14 Martin Liska <mliska@suse.cz>
1460
1461 * libgomp.texi: Removed.
1462
1463 2022-11-14 Martin Liska <mliska@suse.cz>
1464
1465 Revert:
1466 2022-11-14 Martin Liska <mliska@suse.cz>
1467
1468 * Makefile.in: Support --with-sphinx-build.
1469 * configure.ac: Likewise..
1470 * configure: Regenerate.
1471
1472 2022-11-14 Martin Liska <mliska@suse.cz>
1473
1474 Revert:
1475 2022-11-09 Martin Liska <mliska@suse.cz>
1476
1477 * Makefile.in: Build info pages conditionally.
1478
1479 2022-11-14 Martin Liska <mliska@suse.cz>
1480
1481 Revert:
1482 2022-11-14 Martin Liska <mliska@suse.cz>
1483
1484 * doc/amd-radeon-gcn.rst:
1485 Add trailing newline.
1486 * doc/copyright.rst:
1487 Add trailing newline.
1488 * doc/cuda-streams-usage.rst:
1489 Add trailing newline.
1490 * doc/enabling-openacc.rst:
1491 Add trailing newline.
1492 * doc/enabling-openmp.rst:
1493 Add trailing newline.
1494 * doc/first-invocation-nvidia-cublas-library-api.rst:
1495 Add trailing newline.
1496 * doc/first-invocation-openacc-library-api.rst:
1497 Add trailing newline.
1498 * doc/funding.rst:
1499 Add trailing newline.
1500 * doc/general-public-license-3.rst:
1501 Add trailing newline.
1502 * doc/gnu-free-documentation-license.rst:
1503 Add trailing newline.
1504 * doc/implementation-status-and-implementation-defined-behavior.rst:
1505 Add trailing newline.
1506 * doc/index.rst:
1507 Add trailing newline.
1508 * doc/indices-and-tables.rst:
1509 Add trailing newline.
1510 * doc/introduction.rst:
1511 Add trailing newline.
1512 * doc/memory-allocation-with-libmemkind.rst:
1513 Add trailing newline.
1514 * doc/nvptx.rst:
1515 Add trailing newline.
1516 * doc/offload-target-specifics.rst:
1517 Add trailing newline.
1518 * doc/openacc-environment-variables.rst:
1519 Add trailing newline.
1520 * doc/openacc-environment-variables/accdevicenum.rst:
1521 Add trailing newline.
1522 * doc/openacc-environment-variables/accdevicetype.rst:
1523 Add trailing newline.
1524 * doc/openacc-environment-variables/accproflib.rst:
1525 Add trailing newline.
1526 * doc/openacc-environment-variables/gccaccnotify.rst:
1527 Add trailing newline.
1528 * doc/openacc-introduction.rst:
1529 Add trailing newline.
1530 * doc/openacc-library-and-environment-variables.rst:
1531 Add trailing newline.
1532 * doc/openacc-library-interoperability.rst:
1533 Add trailing newline.
1534 * doc/openacc-profiling-interface.rst:
1535 Add trailing newline.
1536 * doc/openacc-runtime-library-routines.rst:
1537 Add trailing newline.
1538 * doc/openacc-runtime-library-routines/accasynctest.rst:
1539 Add trailing newline.
1540 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1541 Add trailing newline.
1542 * doc/openacc-runtime-library-routines/accattach.rst:
1543 Add trailing newline.
1544 * doc/openacc-runtime-library-routines/acccopyin.rst:
1545 Add trailing newline.
1546 * doc/openacc-runtime-library-routines/acccopyout.rst:
1547 Add trailing newline.
1548 * doc/openacc-runtime-library-routines/acccreate.rst:
1549 Add trailing newline.
1550 * doc/openacc-runtime-library-routines/accdelete.rst:
1551 Add trailing newline.
1552 * doc/openacc-runtime-library-routines/accdetach.rst:
1553 Add trailing newline.
1554 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1555 Add trailing newline.
1556 * doc/openacc-runtime-library-routines/accfree.rst:
1557 Add trailing newline.
1558 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1559 Add trailing newline.
1560 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1561 Add trailing newline.
1562 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1563 Add trailing newline.
1564 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1565 Add trailing newline.
1566 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1567 Add trailing newline.
1568 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1569 Add trailing newline.
1570 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1571 Add trailing newline.
1572 * doc/openacc-runtime-library-routines/acchostptr.rst:
1573 Add trailing newline.
1574 * doc/openacc-runtime-library-routines/accinit.rst:
1575 Add trailing newline.
1576 * doc/openacc-runtime-library-routines/accispresent.rst:
1577 Add trailing newline.
1578 * doc/openacc-runtime-library-routines/accmalloc.rst:
1579 Add trailing newline.
1580 * doc/openacc-runtime-library-routines/accmapdata.rst:
1581 Add trailing newline.
1582 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1583 Add trailing newline.
1584 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1585 Add trailing newline.
1586 * doc/openacc-runtime-library-routines/accondevice.rst:
1587 Add trailing newline.
1588 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1589 Add trailing newline.
1590 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1591 Add trailing newline.
1592 * doc/openacc-runtime-library-routines/accproflookup.rst:
1593 Add trailing newline.
1594 * doc/openacc-runtime-library-routines/accprofregister.rst:
1595 Add trailing newline.
1596 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1597 Add trailing newline.
1598 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1599 Add trailing newline.
1600 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1601 Add trailing newline.
1602 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1603 Add trailing newline.
1604 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1605 Add trailing newline.
1606 * doc/openacc-runtime-library-routines/accshutdown.rst:
1607 Add trailing newline.
1608 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1609 Add trailing newline.
1610 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1611 Add trailing newline.
1612 * doc/openacc-runtime-library-routines/accupdateself.rst:
1613 Add trailing newline.
1614 * doc/openacc-runtime-library-routines/accwait.rst:
1615 Add trailing newline.
1616 * doc/openacc-runtime-library-routines/accwaitall.rst:
1617 Add trailing newline.
1618 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1619 Add trailing newline.
1620 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1621 Add trailing newline.
1622 * doc/openmp-context-selectors.rst:
1623 Add trailing newline.
1624 * doc/openmp-environment-variables.rst:
1625 Add trailing newline.
1626 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1627 Add trailing newline.
1628 * doc/openmp-environment-variables/gompdebug.rst:
1629 Add trailing newline.
1630 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1631 Add trailing newline.
1632 * doc/openmp-environment-variables/gompspincount.rst:
1633 Add trailing newline.
1634 * doc/openmp-environment-variables/gompstacksize.rst:
1635 Add trailing newline.
1636 * doc/openmp-environment-variables/ompcancellation.rst:
1637 Add trailing newline.
1638 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1639 Add trailing newline.
1640 * doc/openmp-environment-variables/ompdisplayenv.rst:
1641 Add trailing newline.
1642 * doc/openmp-environment-variables/ompdynamic.rst:
1643 Add trailing newline.
1644 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1645 Add trailing newline.
1646 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1647 Add trailing newline.
1648 * doc/openmp-environment-variables/ompnested.rst:
1649 Add trailing newline.
1650 * doc/openmp-environment-variables/ompnumteams.rst:
1651 Add trailing newline.
1652 * doc/openmp-environment-variables/ompnumthreads.rst:
1653 Add trailing newline.
1654 * doc/openmp-environment-variables/ompplaces.rst:
1655 Add trailing newline.
1656 * doc/openmp-environment-variables/ompprocbind.rst:
1657 Add trailing newline.
1658 * doc/openmp-environment-variables/ompschedule.rst:
1659 Add trailing newline.
1660 * doc/openmp-environment-variables/ompstacksize.rst:
1661 Add trailing newline.
1662 * doc/openmp-environment-variables/omptargetoffload.rst:
1663 Add trailing newline.
1664 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1665 Add trailing newline.
1666 * doc/openmp-environment-variables/ompthreadlimit.rst:
1667 Add trailing newline.
1668 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1669 Add trailing newline.
1670 * doc/openmp-implementation-specifics.rst:
1671 Add trailing newline.
1672 * doc/openmp-implementation-status.rst:
1673 Add trailing newline.
1674 * doc/openmp-implementation-status/openmp-45.rst:
1675 Add trailing newline.
1676 * doc/openmp-implementation-status/openmp-50.rst:
1677 Add trailing newline.
1678 * doc/openmp-implementation-status/openmp-51.rst:
1679 Add trailing newline.
1680 * doc/openmp-implementation-status/openmp-52.rst:
1681 Add trailing newline.
1682 * doc/openmp-runtime-library-routines.rst:
1683 Add trailing newline.
1684 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1685 Add trailing newline.
1686 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1687 Add trailing newline.
1688 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1689 Add trailing newline.
1690 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1691 Add trailing newline.
1692 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1693 Add trailing newline.
1694 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1695 Add trailing newline.
1696 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1697 Add trailing newline.
1698 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1699 Add trailing newline.
1700 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1701 Add trailing newline.
1702 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1703 Add trailing newline.
1704 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1705 Add trailing newline.
1706 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1707 Add trailing newline.
1708 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1709 Add trailing newline.
1710 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1711 Add trailing newline.
1712 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1713 Add trailing newline.
1714 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1715 Add trailing newline.
1716 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1717 Add trailing newline.
1718 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1719 Add trailing newline.
1720 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1721 Add trailing newline.
1722 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1723 Add trailing newline.
1724 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1725 Add trailing newline.
1726 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1727 Add trailing newline.
1728 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1729 Add trailing newline.
1730 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1731 Add trailing newline.
1732 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1733 Add trailing newline.
1734 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1735 Add trailing newline.
1736 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1737 Add trailing newline.
1738 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1739 Add trailing newline.
1740 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1741 Add trailing newline.
1742 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1743 Add trailing newline.
1744 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1745 Add trailing newline.
1746 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1747 Add trailing newline.
1748 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1749 Add trailing newline.
1750 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1751 Add trailing newline.
1752 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1753 Add trailing newline.
1754 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1755 Add trailing newline.
1756 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1757 Add trailing newline.
1758 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1759 Add trailing newline.
1760 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1761 Add trailing newline.
1762 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1763 Add trailing newline.
1764 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1765 Add trailing newline.
1766 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1767 Add trailing newline.
1768 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1769 Add trailing newline.
1770 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1771 Add trailing newline.
1772 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1773 Add trailing newline.
1774 * doc/openmp-runtime-library-routines/omptestlock.rst:
1775 Add trailing newline.
1776 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1777 Add trailing newline.
1778 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1779 Add trailing newline.
1780 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1781 Add trailing newline.
1782 * doc/reporting-bugs.rst:
1783 Add trailing newline.
1784 * doc/the-libgomp-abi.rst:
1785 Add trailing newline.
1786 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1787 Add trailing newline.
1788 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1789 Add trailing newline.
1790 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1791 Add trailing newline.
1792 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1793 Add trailing newline.
1794 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1795 Add trailing newline.
1796 * doc/the-libgomp-abi/implementing-for-construct.rst:
1797 Add trailing newline.
1798 * doc/the-libgomp-abi/implementing-master-construct.rst:
1799 Add trailing newline.
1800 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1801 Add trailing newline.
1802 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1803 Add trailing newline.
1804 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1805 Add trailing newline.
1806 * doc/the-libgomp-abi/implementing-private-clause.rst:
1807 Add trailing newline.
1808 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1809 Add trailing newline.
1810 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1811 Add trailing newline.
1812 * doc/the-libgomp-abi/implementing-single-construct.rst:
1813 Add trailing newline.
1814 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1815 Add trailing newline.
1816
1817 2022-11-14 Martin Liska <mliska@suse.cz>
1818
1819 Revert:
1820 2022-11-09 Martin Liska <mliska@suse.cz>
1821
1822 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1823
1824 2022-11-14 Martin Liska <mliska@suse.cz>
1825
1826 Revert:
1827 2022-11-14 Martin Liska <mliska@suse.cz>
1828
1829 * doc/conf.py: Add newline at last line.
1830
1831 2022-11-14 Martin Liska <mliska@suse.cz>
1832
1833 Revert:
1834 2022-11-14 Martin Liska <mliska@suse.cz>
1835
1836 PR other/107620
1837 * configure: Regenerate.
1838 * configure.ac: Always set sphinx-build.
1839
1840 2022-11-13 Martin Liska <mliska@suse.cz>
1841
1842 PR other/107620
1843 * configure: Regenerate.
1844 * configure.ac: Always set sphinx-build.
1845
1846 2022-11-12 Jakub Jelinek <jakub@redhat.com>
1847
1848 PR libgomp/107641
1849 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1850 unsigned long. Change type of upper from unsigned to unsigned long.
1851
1852 2022-11-10 Martin Liska <mliska@suse.cz>
1853
1854 * doc/conf.py: Add newline at last line.
1855
1856 2022-11-09 Martin Liska <mliska@suse.cz>
1857
1858 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1859
1860 2022-11-09 Martin Liska <mliska@suse.cz>
1861
1862 * doc/amd-radeon-gcn.rst:
1863 Add trailing newline.
1864 * doc/copyright.rst:
1865 Add trailing newline.
1866 * doc/cuda-streams-usage.rst:
1867 Add trailing newline.
1868 * doc/enabling-openacc.rst:
1869 Add trailing newline.
1870 * doc/enabling-openmp.rst:
1871 Add trailing newline.
1872 * doc/first-invocation-nvidia-cublas-library-api.rst:
1873 Add trailing newline.
1874 * doc/first-invocation-openacc-library-api.rst:
1875 Add trailing newline.
1876 * doc/funding.rst:
1877 Add trailing newline.
1878 * doc/general-public-license-3.rst:
1879 Add trailing newline.
1880 * doc/gnu-free-documentation-license.rst:
1881 Add trailing newline.
1882 * doc/implementation-status-and-implementation-defined-behavior.rst:
1883 Add trailing newline.
1884 * doc/index.rst:
1885 Add trailing newline.
1886 * doc/indices-and-tables.rst:
1887 Add trailing newline.
1888 * doc/introduction.rst:
1889 Add trailing newline.
1890 * doc/memory-allocation-with-libmemkind.rst:
1891 Add trailing newline.
1892 * doc/nvptx.rst:
1893 Add trailing newline.
1894 * doc/offload-target-specifics.rst:
1895 Add trailing newline.
1896 * doc/openacc-environment-variables.rst:
1897 Add trailing newline.
1898 * doc/openacc-environment-variables/accdevicenum.rst:
1899 Add trailing newline.
1900 * doc/openacc-environment-variables/accdevicetype.rst:
1901 Add trailing newline.
1902 * doc/openacc-environment-variables/accproflib.rst:
1903 Add trailing newline.
1904 * doc/openacc-environment-variables/gccaccnotify.rst:
1905 Add trailing newline.
1906 * doc/openacc-introduction.rst:
1907 Add trailing newline.
1908 * doc/openacc-library-and-environment-variables.rst:
1909 Add trailing newline.
1910 * doc/openacc-library-interoperability.rst:
1911 Add trailing newline.
1912 * doc/openacc-profiling-interface.rst:
1913 Add trailing newline.
1914 * doc/openacc-runtime-library-routines.rst:
1915 Add trailing newline.
1916 * doc/openacc-runtime-library-routines/accasynctest.rst:
1917 Add trailing newline.
1918 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1919 Add trailing newline.
1920 * doc/openacc-runtime-library-routines/accattach.rst:
1921 Add trailing newline.
1922 * doc/openacc-runtime-library-routines/acccopyin.rst:
1923 Add trailing newline.
1924 * doc/openacc-runtime-library-routines/acccopyout.rst:
1925 Add trailing newline.
1926 * doc/openacc-runtime-library-routines/acccreate.rst:
1927 Add trailing newline.
1928 * doc/openacc-runtime-library-routines/accdelete.rst:
1929 Add trailing newline.
1930 * doc/openacc-runtime-library-routines/accdetach.rst:
1931 Add trailing newline.
1932 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1933 Add trailing newline.
1934 * doc/openacc-runtime-library-routines/accfree.rst:
1935 Add trailing newline.
1936 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1937 Add trailing newline.
1938 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1939 Add trailing newline.
1940 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1941 Add trailing newline.
1942 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1943 Add trailing newline.
1944 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1945 Add trailing newline.
1946 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1947 Add trailing newline.
1948 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1949 Add trailing newline.
1950 * doc/openacc-runtime-library-routines/acchostptr.rst:
1951 Add trailing newline.
1952 * doc/openacc-runtime-library-routines/accinit.rst:
1953 Add trailing newline.
1954 * doc/openacc-runtime-library-routines/accispresent.rst:
1955 Add trailing newline.
1956 * doc/openacc-runtime-library-routines/accmalloc.rst:
1957 Add trailing newline.
1958 * doc/openacc-runtime-library-routines/accmapdata.rst:
1959 Add trailing newline.
1960 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1961 Add trailing newline.
1962 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1963 Add trailing newline.
1964 * doc/openacc-runtime-library-routines/accondevice.rst:
1965 Add trailing newline.
1966 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1967 Add trailing newline.
1968 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1969 Add trailing newline.
1970 * doc/openacc-runtime-library-routines/accproflookup.rst:
1971 Add trailing newline.
1972 * doc/openacc-runtime-library-routines/accprofregister.rst:
1973 Add trailing newline.
1974 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1975 Add trailing newline.
1976 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1977 Add trailing newline.
1978 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1979 Add trailing newline.
1980 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1981 Add trailing newline.
1982 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1983 Add trailing newline.
1984 * doc/openacc-runtime-library-routines/accshutdown.rst:
1985 Add trailing newline.
1986 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1987 Add trailing newline.
1988 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1989 Add trailing newline.
1990 * doc/openacc-runtime-library-routines/accupdateself.rst:
1991 Add trailing newline.
1992 * doc/openacc-runtime-library-routines/accwait.rst:
1993 Add trailing newline.
1994 * doc/openacc-runtime-library-routines/accwaitall.rst:
1995 Add trailing newline.
1996 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1997 Add trailing newline.
1998 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1999 Add trailing newline.
2000 * doc/openmp-context-selectors.rst:
2001 Add trailing newline.
2002 * doc/openmp-environment-variables.rst:
2003 Add trailing newline.
2004 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2005 Add trailing newline.
2006 * doc/openmp-environment-variables/gompdebug.rst:
2007 Add trailing newline.
2008 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2009 Add trailing newline.
2010 * doc/openmp-environment-variables/gompspincount.rst:
2011 Add trailing newline.
2012 * doc/openmp-environment-variables/gompstacksize.rst:
2013 Add trailing newline.
2014 * doc/openmp-environment-variables/ompcancellation.rst:
2015 Add trailing newline.
2016 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2017 Add trailing newline.
2018 * doc/openmp-environment-variables/ompdisplayenv.rst:
2019 Add trailing newline.
2020 * doc/openmp-environment-variables/ompdynamic.rst:
2021 Add trailing newline.
2022 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2023 Add trailing newline.
2024 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2025 Add trailing newline.
2026 * doc/openmp-environment-variables/ompnested.rst:
2027 Add trailing newline.
2028 * doc/openmp-environment-variables/ompnumteams.rst:
2029 Add trailing newline.
2030 * doc/openmp-environment-variables/ompnumthreads.rst:
2031 Add trailing newline.
2032 * doc/openmp-environment-variables/ompplaces.rst:
2033 Add trailing newline.
2034 * doc/openmp-environment-variables/ompprocbind.rst:
2035 Add trailing newline.
2036 * doc/openmp-environment-variables/ompschedule.rst:
2037 Add trailing newline.
2038 * doc/openmp-environment-variables/ompstacksize.rst:
2039 Add trailing newline.
2040 * doc/openmp-environment-variables/omptargetoffload.rst:
2041 Add trailing newline.
2042 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2043 Add trailing newline.
2044 * doc/openmp-environment-variables/ompthreadlimit.rst:
2045 Add trailing newline.
2046 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2047 Add trailing newline.
2048 * doc/openmp-implementation-specifics.rst:
2049 Add trailing newline.
2050 * doc/openmp-implementation-status.rst:
2051 Add trailing newline.
2052 * doc/openmp-implementation-status/openmp-45.rst:
2053 Add trailing newline.
2054 * doc/openmp-implementation-status/openmp-50.rst:
2055 Add trailing newline.
2056 * doc/openmp-implementation-status/openmp-51.rst:
2057 Add trailing newline.
2058 * doc/openmp-implementation-status/openmp-52.rst:
2059 Add trailing newline.
2060 * doc/openmp-runtime-library-routines.rst:
2061 Add trailing newline.
2062 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2063 Add trailing newline.
2064 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2065 Add trailing newline.
2066 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2067 Add trailing newline.
2068 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2069 Add trailing newline.
2070 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2071 Add trailing newline.
2072 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2073 Add trailing newline.
2074 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2075 Add trailing newline.
2076 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2077 Add trailing newline.
2078 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2079 Add trailing newline.
2080 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2081 Add trailing newline.
2082 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2083 Add trailing newline.
2084 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2085 Add trailing newline.
2086 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2087 Add trailing newline.
2088 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2089 Add trailing newline.
2090 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2091 Add trailing newline.
2092 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2093 Add trailing newline.
2094 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2095 Add trailing newline.
2096 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2097 Add trailing newline.
2098 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2099 Add trailing newline.
2100 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2101 Add trailing newline.
2102 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2103 Add trailing newline.
2104 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2105 Add trailing newline.
2106 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2107 Add trailing newline.
2108 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2109 Add trailing newline.
2110 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2111 Add trailing newline.
2112 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2113 Add trailing newline.
2114 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2115 Add trailing newline.
2116 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2117 Add trailing newline.
2118 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2119 Add trailing newline.
2120 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2121 Add trailing newline.
2122 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2123 Add trailing newline.
2124 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2125 Add trailing newline.
2126 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2127 Add trailing newline.
2128 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2129 Add trailing newline.
2130 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2131 Add trailing newline.
2132 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2133 Add trailing newline.
2134 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2135 Add trailing newline.
2136 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2137 Add trailing newline.
2138 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2139 Add trailing newline.
2140 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2141 Add trailing newline.
2142 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2143 Add trailing newline.
2144 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2145 Add trailing newline.
2146 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2147 Add trailing newline.
2148 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2149 Add trailing newline.
2150 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2151 Add trailing newline.
2152 * doc/openmp-runtime-library-routines/omptestlock.rst:
2153 Add trailing newline.
2154 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2155 Add trailing newline.
2156 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2157 Add trailing newline.
2158 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2159 Add trailing newline.
2160 * doc/reporting-bugs.rst:
2161 Add trailing newline.
2162 * doc/the-libgomp-abi.rst:
2163 Add trailing newline.
2164 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2165 Add trailing newline.
2166 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2167 Add trailing newline.
2168 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2169 Add trailing newline.
2170 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2171 Add trailing newline.
2172 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2173 Add trailing newline.
2174 * doc/the-libgomp-abi/implementing-for-construct.rst:
2175 Add trailing newline.
2176 * doc/the-libgomp-abi/implementing-master-construct.rst:
2177 Add trailing newline.
2178 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2179 Add trailing newline.
2180 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2181 Add trailing newline.
2182 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2183 Add trailing newline.
2184 * doc/the-libgomp-abi/implementing-private-clause.rst:
2185 Add trailing newline.
2186 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2187 Add trailing newline.
2188 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2189 Add trailing newline.
2190 * doc/the-libgomp-abi/implementing-single-construct.rst:
2191 Add trailing newline.
2192 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2193 Add trailing newline.
2194
2195 2022-11-09 Martin Liska <mliska@suse.cz>
2196
2197 * Makefile.in: Build info pages conditionally.
2198
2199 2022-11-09 Martin Liska <mliska@suse.cz>
2200
2201 * Makefile.in: Support --with-sphinx-build.
2202 * configure.ac: Likewise..
2203 * configure: Regenerate.
2204
2205 2022-11-09 Martin Liska <mliska@suse.cz>
2206
2207 * libgomp.texi: Removed.
2208
2209 2022-11-09 Martin Liska <mliska@suse.cz>
2210
2211 * Makefile.in: Support Sphinx based documentation.
2212
2213 2022-11-09 Martin Liska <mliska@suse.cz>
2214
2215 * doc/amd-radeon-gcn.rst: New file.
2216 * doc/conf.py: New file.
2217 * doc/copyright.rst: New file.
2218 * doc/cuda-streams-usage.rst: New file.
2219 * doc/enabling-openacc.rst: New file.
2220 * doc/enabling-openmp.rst: New file.
2221 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2222 * doc/first-invocation-openacc-library-api.rst: New file.
2223 * doc/funding.rst: New file.
2224 * doc/general-public-license-3.rst: New file.
2225 * doc/gnu-free-documentation-license.rst: New file.
2226 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2227 * doc/index.rst: New file.
2228 * doc/indices-and-tables.rst: New file.
2229 * doc/introduction.rst: New file.
2230 * doc/memory-allocation-with-libmemkind.rst: New file.
2231 * doc/nvptx.rst: New file.
2232 * doc/offload-target-specifics.rst: New file.
2233 * doc/openacc-environment-variables.rst: New file.
2234 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2235 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2236 * doc/openacc-environment-variables/accproflib.rst: New file.
2237 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2238 * doc/openacc-introduction.rst: New file.
2239 * doc/openacc-library-and-environment-variables.rst: New file.
2240 * doc/openacc-library-interoperability.rst: New file.
2241 * doc/openacc-profiling-interface.rst: New file.
2242 * doc/openacc-runtime-library-routines.rst: New file.
2243 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2244 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2245 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2246 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2247 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2248 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2249 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2250 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2251 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2252 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2253 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2254 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2255 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2256 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2257 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2258 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2259 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2260 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2261 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2262 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2263 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2264 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2265 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2266 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2267 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2268 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2269 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2270 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2271 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2272 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2273 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2274 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2275 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2276 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2277 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2278 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2279 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2280 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2281 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2282 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2283 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2284 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2285 * doc/openmp-context-selectors.rst: New file.
2286 * doc/openmp-environment-variables.rst: New file.
2287 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2288 * doc/openmp-environment-variables/gompdebug.rst: New file.
2289 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2290 * doc/openmp-environment-variables/gompspincount.rst: New file.
2291 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2292 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2293 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2294 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2295 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2296 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2297 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2298 * doc/openmp-environment-variables/ompnested.rst: New file.
2299 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2300 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2301 * doc/openmp-environment-variables/ompplaces.rst: New file.
2302 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2303 * doc/openmp-environment-variables/ompschedule.rst: New file.
2304 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2305 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2306 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2307 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2308 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2309 * doc/openmp-implementation-specifics.rst: New file.
2310 * doc/openmp-implementation-status.rst: New file.
2311 * doc/openmp-implementation-status/openmp-45.rst: New file.
2312 * doc/openmp-implementation-status/openmp-50.rst: New file.
2313 * doc/openmp-implementation-status/openmp-51.rst: New file.
2314 * doc/openmp-implementation-status/openmp-52.rst: New file.
2315 * doc/openmp-runtime-library-routines.rst: New file.
2316 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2317 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2318 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2319 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2320 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2321 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2322 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2323 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2324 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2325 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2326 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2327 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2328 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2329 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2330 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2331 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2332 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2333 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2334 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2335 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2336 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2337 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2338 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2339 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2340 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2341 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2342 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2343 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2344 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2345 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2346 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2347 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2348 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2349 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2350 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2351 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2352 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2353 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2354 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2355 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2356 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2357 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2358 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2359 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2360 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2361 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2362 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2363 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2364 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2365 * doc/reporting-bugs.rst: New file.
2366 * doc/the-libgomp-abi.rst: New file.
2367 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2368 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2369 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2370 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2371 New file.
2372 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2373 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2374 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2375 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2376 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2377 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2378 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2379 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2380 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2381 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2382 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2383
2384 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2385
2386 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2387 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2388 documentation.
2389 * plugin/configfrag.ac <enable_offload_targets>
2390 [*-intelmic-* | *-intelmicemul-*]: Remove.
2391 * configure: Regenerate.
2392 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2393 handling.
2394 (offload_target_to_openacc_device_type)
2395 [$offload_target = *-intelmic*]: Remove.
2396 (check_effective_target_offload_device_intel_mic)
2397 (check_effective_target_offload_device_any_intel_mic): Remove.
2398 * testsuite/libgomp.c-c++-common/on_device_arch.h
2399 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2400 (any_device_arch_intel_mic): Remove.
2401 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2402 'offload_device_any_intel_mic' XFAIL.
2403 * testsuite/libgomp.fortran/target10.f90: Likewise.
2404
2405 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
2406
2407 * testsuite/libgomp.fortran/target-11.f90: New test.
2408 * testsuite/libgomp.fortran/target-13.f90: New test.
2409
2410 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2411
2412 PR libgomp/106643
2413 PR fortran/96668
2414 * oacc-mem.c (goacc_enter_data_internal): Support
2415 OpenACC 'declare create' with Fortran allocatable arrays, part II.
2416 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2417 Adjust.
2418 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2419
2420 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2421
2422 PR libgomp/106643
2423 * oacc-mem.c (goacc_enter_data_internal): Support
2424 OpenACC 'declare create' with Fortran allocatable arrays, part I.
2425 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2426 New.
2427 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2428 New.
2429
2430 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2431
2432 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2433 New.
2434
2435 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2436
2437 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2438 New.
2439
2440 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
2441 Thomas Schwinge <thomas@codesourcery.com>
2442
2443 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2444
2445 2022-10-28 Julian Brown <julian@codesourcery.com>
2446 Thomas Schwinge <thomas@codesourcery.com>
2447
2448 PR middle-end/90115
2449 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2450 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2451 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2452 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2453 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2454
2455 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
2456
2457 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2458 'ptx_dev->rev_data'.
2459
2460 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
2461
2462 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2463 'static' for this variable.
2464 * config/nvptx/libgomp-nvptx.h: New file.
2465 * config/nvptx/target.c: Include it.
2466 (GOMP_ADDITIONAL_ICVS): Declare extern var.
2467 (GOMP_REV_OFFLOAD_VAR): Declare var.
2468 (GOMP_target_ext): Handle reverse offload.
2469 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2470 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2471 * target.c (gomp_target_rev): ... this new stub function.
2472 * libgomp.h (gomp_target_rev): Declare.
2473 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2474 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2475 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2476 (struct ptx_device): Add rev_data member.
2477 (nvptx_open_device): Remove async_engines query, last used in
2478 r10-304-g1f4c5b9b; add unified-address assert check.
2479 (GOMP_OFFLOAD_get_num_devices): Claim unified address
2480 support.
2481 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2482 offload functions exist. Make offload var available
2483 on host and device.
2484 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2485 (GOMP_OFFLOAD_run): Handle reverse offload.
2486
2487 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
2488
2489 PR tree-optimization/107195
2490 PR target/107344
2491 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2492 regions checking.
2493
2494 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
2495
2496 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2497 New.
2498 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2499 on_device_arch_gcn): New.
2500 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2501 requires-4.c but using heap-allocated memory.
2502
2503 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
2504
2505 PR target/105421
2506 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2507
2508 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
2509
2510 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2511 '-foffload-options' syntax.
2512
2513 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
2514
2515 * testsuite/libgomp.fortran/task-7.f90: New test.
2516 * testsuite/libgomp.fortran/task-8.f90: New test.
2517 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2518 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2519 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2520 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2521 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2522
2523 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2524
2525 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2526 in deprecation bullet.
2527
2528 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2529
2530 * omp.h.in (omp_in_explicit_task): Declare.
2531 * omp_lib.h.in (omp_in_explicit_task): Likewise.
2532 * omp_lib.f90.in (omp_in_explicit_task): New interface.
2533 * libgomp.map (OMP_5.2): New symbol version, export
2534 omp_in_explicit_task and omp_in_explicit_task_.
2535 * task.c (omp_in_explicit_task): New function.
2536 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2537 (omp_in_explicit_task_): New function.
2538 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2539 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2540 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2541 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2542
2543 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2544
2545 * task.c (gomp_create_artificial_team): Fix up handling of invocations
2546 from within explicit task.
2547 * target.c (GOMP_target_ext): Likewise.
2548 * testsuite/libgomp.c/task-7.c: New test.
2549 * testsuite/libgomp.c/task-8.c: New test.
2550 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2551 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2552
2553 2022-10-12 Martin Liska <mliska@suse.cz>
2554
2555 * configure: Regenerate.
2556
2557 2022-10-11 Olivier Hainque <hainque@adacore.com>
2558 Olivier Hainque <hainque@adacore.com>
2559
2560 * configure: Regenerate.
2561
2562 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
2563
2564 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2565
2566 2022-10-04 Jakub Jelinek <jakub@redhat.com>
2567
2568 * libgomp.texi (Support begin/end declare target syntax in C/C++):
2569 Mark as implemented.
2570
2571 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
2572
2573 PR fortran/105318
2574 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2575
2576 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
2577
2578 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2579 for C/C++. Remove duplicated 'begin declare target' entry.
2580
2581 2022-09-24 Jakub Jelinek <jakub@redhat.com>
2582
2583 PR c/106981
2584 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2585
2586 2022-09-14 Julian Brown <julian@codesourcery.com>
2587
2588 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2589 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2590 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2591 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2592 test to here, make "run" test.
2593
2594 2022-09-13 Jakub Jelinek <jakub@redhat.com>
2595
2596 PR libgomp/106906
2597 * env.c (get_icv_member_addr): Cast false to void * before assigning
2598 it to icv_addr[1], and comment the whole assignment out.
2599
2600 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
2601
2602 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2603 (nvptx): ... here.
2604
2605 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2606
2607 * libgomp.texi (Offload-Target Specifics: nvptx): Document
2608 that reverse offload requires >= -march=sm_35.
2609 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2610 with -misa=sm_35.
2611 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2612 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2613 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2614 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2615 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2616
2617 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2618
2619 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2620 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2621
2622 2022-09-12 Jakub Jelinek <jakub@redhat.com>
2623
2624 PR libgomp/106894
2625 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2626 (main): Avoid tests for which corresponding non-_ALL suffixed variable
2627 is in the environment, or for OMP_NUM_TEAMS on the device
2628 OMP_NUM_TEAMS_DEV_?.
2629
2630 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
2631
2632 * env.c (initialize_env): Include libiberty environ.h.
2633
2634 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2635
2636 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2637 function address table '$offload_func_table' if rev_fn_table
2638 is not NULL.
2639
2640 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2641
2642 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2643 .offload_func_table to populate rev_fn_table when requested.
2644
2645 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2646
2647 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2648 'uint64_t **rev_fn_table' argument.
2649 * oacc-host.c (host_load_image): Likewise.
2650 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2651 currently unused.
2652 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2653 * target.c (gomp_load_image_to_device): Update call but pass
2654 NULL for now.
2655
2656 2022-09-09 Jakub Jelinek <jakub@redhat.com>
2657
2658 PR libgomp/106894
2659 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2660 char * for dest[1] initialization from params[1]. Formatting fixes.
2661
2662 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2663
2664 PR fortran/106670
2665 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2666
2667 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2668
2669 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2670 section; move OpenMP Context Selectors from ...
2671 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2672 'nvptx' sections.
2673
2674 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
2675
2676 * config/gcn/icv-device.c (omp_get_default_device): Return device-
2677 specific ICV.
2678 (omp_get_max_teams): Added for GCN devices.
2679 (omp_set_num_teams): Likewise.
2680 (ialias): Likewise.
2681 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2682 specific ICV.
2683 (omp_get_max_teams): Added for NVPTX devices.
2684 (omp_set_num_teams): Likewise.
2685 (ialias): Likewise.
2686 * env.c (struct gomp_icv_list): New struct to store entries of initial
2687 ICV values.
2688 (struct gomp_offload_icv_list): New struct to store entries of device-
2689 specific ICV values that are copied to the device and back.
2690 (struct gomp_default_icv_values): New struct to store default values of
2691 ICVs according to the OpenMP standard.
2692 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2693 (print_env_var_error): Function that prints an error for invalid values
2694 for ICVs.
2695 (parse_unsigned_long_1): Removed getenv. Generalized.
2696 (parse_unsigned_long): Likewise.
2697 (parse_int_1): Likewise.
2698 (parse_int): Likewise.
2699 (parse_int_secure): Likewise.
2700 (parse_unsigned_long_list): Likewise.
2701 (parse_target_offload): Likewise.
2702 (parse_bind_var): Likewise.
2703 (parse_stacksize): Likewise.
2704 (parse_boolean): Likewise.
2705 (parse_wait_policy): Likewise.
2706 (parse_allocator): Likewise.
2707 (omp_display_env): Extended to output different variants of environment
2708 variables.
2709 (print_schedule): New helper function for omp_display_env which prints
2710 the values of run_sched_var.
2711 (print_proc_bind): New helper function for omp_display_env which prints
2712 the values of proc_bind_var.
2713 (enum gomp_parse_type): Collection of types used for parsing environment
2714 variables.
2715 (ENTRY): Preprocess string lengths of environment variables.
2716 (OMP_VAR_CNT): Preprocess table size.
2717 (OMP_HOST_VAR_CNT): Likewise.
2718 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2719 number.
2720 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2721 (gomp_set_icv_flag): Sets a flag for a particular ICV.
2722 (print_device_specific_icvs): New helper function for omp_display_env to
2723 print device specific ICV values.
2724 (get_device_num): New helper function for parse_device_specific.
2725 Extracts the device number from an environment variable name.
2726 (get_icv_member_addr): Gets the memory address for a particular member
2727 of an ICV struct.
2728 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2729 (initialize_icvs): New function to initialize a gomp_initial_icvs
2730 struct.
2731 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2732 (startswith): Checks if a string starts with a given prefix.
2733 (initialize_env): Extended to parse the new syntax of environment
2734 variables.
2735 * icv-device.c (omp_get_max_teams): Added.
2736 (ialias): Likewise.
2737 (omp_set_num_teams): Likewise.
2738 * icv.c (omp_set_num_teams): Moved to icv-device.c.
2739 (omp_get_max_teams): Likewise.
2740 (ialias): Likewise.
2741 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2742 (GOMP_ADDITIONAL_ICVS): New target-side struct that
2743 holds the designated ICVs of the target device.
2744 * libgomp.h (enum gomp_icvs): Collection of ICVs.
2745 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2746 no suffix.
2747 (enum gomp_env_suffix): Collection of possible suffixes of environment
2748 variables.
2749 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2750 initial values.
2751 (struct gomp_default_icv):New struct to hold ICVs for which we need
2752 to store initial values.
2753 (struct gomp_icv_list): Definition of a linked list that is used for
2754 storing ICVs for the devices and also for _DEV, _ALL, and without
2755 suffix.
2756 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2757 a device.
2758 (struct gomp_offload_icv_list): Definition of a linked list that holds
2759 device-specific ICVs that are copied to devices.
2760 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2761 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2762 * libgomp.texi: Updated.
2763 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2764 further ICVs from the offload image.
2765 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2766 * target.c (gomp_get_offload_icv_item): Get a list item of
2767 gomp_offload_icv_list.
2768 (get_gomp_offload_icvs): New. Returns the ICV values
2769 depending on the device num and the variable hierarchy.
2770 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2771 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2772 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2773 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2774 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2775 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2776 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2777
2778 2022-09-08 Jakub Jelinek <jakub@redhat.com>
2779
2780 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2781 fully supported.
2782 * testsuite/libgomp.c/doacross-4.c: New test.
2783 * testsuite/libgomp.c/doacross-5.c: New test.
2784 * testsuite/libgomp.c/doacross-6.c: New test.
2785 * testsuite/libgomp.c/doacross-7.c: New test.
2786
2787 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
2788
2789 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2790
2791 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
2792
2793 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2794 refer to 'requires'.
2795 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2796 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2797 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2798 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2799
2800 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2801
2802 PR middle-end/106548
2803 * testsuite/libgomp.c/linear-2.c: New test.
2804
2805 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2806
2807 * splay-tree.h: Fix splay_* macro unsetting if
2808 splay_tree_prefix is defined.
2809
2810 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
2811
2812 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2813
2814 2022-07-29 Jakub Jelinek <jakub@redhat.com>
2815
2816 PR middle-end/106449
2817 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2818
2819 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
2820
2821 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2822
2823 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
2824
2825 PR middle-end/101551
2826 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2827 'offloading_enabled' diagnostics issue.
2828
2829 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
2830
2831 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2832 '_Pragma' diagnostics verification.
2833
2834 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
2835
2836 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2837 improved warning locations.
2838 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2839
2840 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
2841
2842 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2843 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2844 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2845 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2846 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2847
2848 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2849
2850 * target.c (GOMP_offload_register, GOMP_offload_unregister):
2851 Denote as legacy entry points.
2852 * testsuite/lib/libgomp.exp
2853 (check_effective_target_offload_target_any): New proc.
2854 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2855 'offload_target_any'.
2856 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2857 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2858 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2859
2860 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2861
2862 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2863 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2864
2865 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2866
2867 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2868
2869 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
2870
2871 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2872 'data'.
2873 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
2874
2875 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2876 Jakub Jelinek <jakub@redhat.com>
2877
2878 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2879
2880 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2881 Chung-Lin Tang <cltang@codesourcery.com>
2882 Thomas Schwinge <thomas@codesourcery.com>
2883
2884 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2885 omp_requires_mask arg.
2886 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2887 return -1 when device available but omp_requires_mask != 0.
2888 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2889 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2890 Update call.
2891 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2892 goacc_attach_host_thread_to_device, acc_get_num_devices,
2893 acc_set_device_num, get_property_any): Likewise.
2894 * target.c (omp_requires_mask): New global var.
2895 (gomp_requires_to_name): New.
2896 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2897 (gomp_target_init): Handle omp_requires_mask.
2898 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2899 (OpenMP 5.1): Add a missed item.
2900 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2901 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2902 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2903 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2904 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2905 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2906 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2907 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2908 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2909 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2910 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2911 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2912 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2913 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2914 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2915 * testsuite/libgomp.fortran/requires-1.f90: New test.
2916
2917 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
2918
2919 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2920 with fromto as implemented.
2921
2922 2022-06-28 Martin Liska <mliska@suse.cz>
2923
2924 * acinclude.m4: Fix typo in mold linker detection.
2925 * Makefile.in: Regenerate.
2926 * configure: Regenerate.
2927
2928 2022-06-21 Jakub Jelinek <jakub@redhat.com>
2929 Paul Iannetta <piannetta@kalrayinc.com>
2930
2931 PR libgomp/106045
2932 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2933
2934 2022-06-17 Martin Liska <mliska@suse.cz>
2935
2936 * libgomp.texi: Add table header for new features of
2937 OpenMP 5.2.
2938
2939 2022-06-15 Jakub Jelinek <jakub@redhat.com>
2940
2941 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2942 q to ddress of an automatic variable. Use -5 instead of -1 in
2943 omp_get_mapped_ptr call. Add test with omp_initial_device.
2944 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2945 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
2946 Renumber stop arguments afterwards.
2947
2948 2022-06-13 Jakub Jelinek <jakub@redhat.com>
2949
2950 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2951 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2952 parameters.
2953 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2954 * target.c (resolve_device): Add remapped argument, handle
2955 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2956 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2957 if remapped, otherwise treat omp_initial_device that way. For
2958 omp_invalid_device, always emit gomp_fatal, even when
2959 OMP_TARGET_OFFLOAD isn't mandatory.
2960 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2961 GOMP_target_update, GOMP_target_update_ext,
2962 GOMP_target_enter_exit_data): Pass true as remapped argument to
2963 resolve_device.
2964 (omp_target_alloc, omp_target_free, omp_target_is_present,
2965 omp_target_memcpy_check, omp_target_associate_ptr,
2966 omp_target_disassociate_ptr, omp_get_mapped_ptr,
2967 omp_target_is_accessible): Pass false as remapped argument to
2968 resolve_device. Treat omp_initial_device the same as
2969 gomp_get_num_devices (). Don't bypass resolve_device calls if
2970 device_num is negative.
2971 (omp_pause_resource): Treat omp_initial_device the same as
2972 gomp_get_num_devices (). Call resolve_device.
2973 * icv-device.c (omp_set_default_device): Always set to device_num
2974 even when it is negative.
2975 * libgomp.texi: Document that Conforming device numbers,
2976 omp_initial_device and omp_invalid_device is implemented.
2977 * testsuite/libgomp.c/target-41.c (main): Add test with
2978 omp_initial_device.
2979 * testsuite/libgomp.c/target-45.c: New test.
2980 * testsuite/libgomp.c/target-46.c: New test.
2981 * testsuite/libgomp.c/target-47.c: New test.
2982 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2983 test with omp_initial_device. Use -5 instead of -1 for negative value
2984 test.
2985 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2986 Likewise. Reorder stop numbers.
2987
2988 2022-06-10 Jakub Jelinek <jakub@redhat.com>
2989
2990 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2991 rather than "libmemkind.so".
2992
2993 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
2994
2995 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2996 * plugin/configfrag.ac (--with-cuda-driver)
2997 (--with-cuda-driver-include, --with-cuda-driver-lib)
2998 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2999 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3000 Remove.
3001 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3002 (cuda_driver_lib): Remove.
3003 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3004 * Makefile.in: Regenerate.
3005 * configure: Likewise.
3006 * testsuite/Makefile.in: Likewise.
3007
3008 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3009
3010 * config/linux/allocator.c: Fix up #include directive.
3011
3012 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3013
3014 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3015 (enum gomp_memkind_kind): New type.
3016 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3017 is defined.
3018 (struct gomp_memkind_data): New type.
3019 (memkind_data, memkind_data_once): New variables.
3020 (gomp_init_memkind, gomp_get_memkind): New functions.
3021 (omp_init_allocator): Initialize data.memkind, don't fail for
3022 omp_high_bw_mem_space if libmemkind supports it.
3023 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3024 memkind support of LIBGOMP_USE_MEMKIND is defined.
3025 * config/linux/allocator.c: New file.
3026
3027 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
3028
3029 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3030 * testsuite/libgomp.fortran/scope-2.f90: New test.
3031
3032 2022-06-02 David Malcolm <dmalcolm@redhat.com>
3033
3034 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3035
3036 2022-05-31 Jakub Jelinek <jakub@redhat.com>
3037
3038 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3039 scope construct with allocate clause.
3040 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3041 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3042
3043 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
3044
3045 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3046 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3047 explicit 'to' and 'enter' clause.
3048 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3049
3050 2022-05-28 Jakub Jelinek <jakub@redhat.com>
3051
3052 PR libgomp/105745
3053 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3054 defined(HAVE__ALIGNED_MALLOC) case.
3055 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3056 handling as last option before fallback instead of first.
3057 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3058 _aligned_free.
3059
3060 2022-05-27 Jakub Jelinek <jakub@redhat.com>
3061
3062 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3063 clauses to enter.
3064 * testsuite/libgomp.c/target-41.c: Likewise.
3065
3066 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
3067
3068 * libgomp.texi (Other new OpenMP 5.1 features): Add
3069 'begin declare target'.
3070 (Other new OpenMP 5.2 features): New.
3071
3072 2022-05-25 Jakub Jelinek <jakub@redhat.com>
3073
3074 * task.c (gomp_task_run_post_handle_dependers): If empty_task
3075 is the last task taskwait depend depends on, wake it up.
3076 Similarly if it is the last child of a taskgroup, use atomic
3077 store instead of decrement and awak taskgroup wait if any.
3078 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3079
3080 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
3081
3082 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3083 EF_AMDGPU_MACH_AMDGCN_GFX90a.
3084 (gcn_gfx90a_s): New.
3085 (isa_hsa_name): Support gfx90a.
3086 (isa_code): Likewise.
3087
3088 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
3089
3090 PR c/105378
3091 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3092 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3093
3094 2022-05-24 Jakub Jelinek <jakub@redhat.com>
3095
3096 PR c/105378
3097 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3098 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3099 * task.c (empty_task): New function.
3100 (gomp_task_run_post_handle_depend_hash): Declare earlier.
3101 (gomp_task_run_post_handle_depend): Declare.
3102 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3103 for.
3104 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3105 (GOMP_taskwait_depend_nowait): New function.
3106 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3107
3108 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
3109
3110 PR fortran/104949
3111 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3112 Support attach for GOMP_MAP_FIRSTPRIVATE.
3113 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3114 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3115 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3116
3117 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3118
3119 * libgomp.map: Added omp_target_memcpy_async and
3120 omp_target_memcpy_rect_async.
3121 * libgomp.texi: Both functions are now supported.
3122 * omp.h.in: Added omp_target_memcpy_async and
3123 omp_target_memcpy_rect_async.
3124 * omp_lib.f90.in: Added interfaces for both new functions.
3125 * omp_lib.h.in: Likewise.
3126 * target.c (ialias_redirect): Added for GOMP_task.
3127 (omp_target_memcpy): Restructured into check and copy part.
3128 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3129 omp_target_memcpy_async that checks requirements.
3130 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3131 omp_target_memcpy_async that performs the memcpy.
3132 (omp_target_memcpy_async_helper): New helper function that is used in
3133 omp_target_memcpy_async for the asynchronous task.
3134 (omp_target_memcpy_async): Added.
3135 (omp_target_memcpy_rect): Restructured into check and copy part.
3136 (omp_target_memcpy_rect_check): New helper function for
3137 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3138 requirements.
3139 (omp_target_memcpy_rect_copy): New helper function for
3140 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3141 the memcpy.
3142 (omp_target_memcpy_rect_async_helper): New helper function that is used
3143 in omp_target_memcpy_rect_async for the asynchronous task.
3144 (omp_target_memcpy_rect_async): Added.
3145 * task.c (ialias): Added for GOMP_task.
3146 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3147 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3148 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3149 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3150 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3151 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3152 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3153 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3154
3155 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
3156
3157 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3158 (OpenMP Context Selectors): Add missing comma.
3159 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3160 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3161 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3162 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3163
3164 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3165
3166 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3167 comment for omp_display_env feature.
3168
3169 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3170
3171 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3172 to document OpenMP context selectors.
3173
3174 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3175
3176 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3177 from bool to unsigned char.
3178 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3179 Ignore dependencies where
3180 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3181 rather than just task->depend[i].is_in && ent->is_in. Remember
3182 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3183 conditional.
3184 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3185 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3186 rather than just elem.is_in && ent->is_in.
3187 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3188 inoutset depend-kind.
3189 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3190 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3191 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3192
3193 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3194
3195 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3196
3197 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3198
3199 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3200 * testsuite/libgomp.fortran/depend-5.f90: New test.
3201 * testsuite/libgomp.fortran/depend-6.f90: New test.
3202 * testsuite/libgomp.fortran/depend-7.f90: New test.
3203
3204 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3205
3206 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3207 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3208 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3209
3210 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3211
3212 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3213
3214 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3215
3216 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3217
3218 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3219
3220 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3221 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3222 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3223 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3224 * Makefile.in: Regenerate.
3225
3226 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3227
3228 * Makefile.am (libgomp_la_LIBADD): Initialize.
3229 * plugin/configfrag.ac (DL_LIBS): New.
3230 (PLUGIN_GCN_LIBS): Remove.
3231 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3232 * plugin/Makefrag.am (libgomp_la_LIBADD)
3233 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3234 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3235 * Makefile.in: Regenerate.
3236 * config.h.in: Likewise.
3237 * configure: Likewise.
3238 * testsuite/Makefile.in: Likewise.
3239
3240 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3241
3242 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3243 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3244 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3245 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3246 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3247 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3248 * Makefile.in: Regenerate.
3249 * config.h.in: Likewise.
3250 * configure: Likewise.
3251
3252 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3253
3254 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3255 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3256 * Makefile.in: Regenerate.
3257 * config.h.in: Likewise.
3258 * configure: Likewise.
3259 * testsuite/Makefile.in: Likewise.
3260
3261 2022-05-12 Jakub Jelinek <jakub@redhat.com>
3262
3263 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3264 * task.c (gomp_init_task): Initialize depend_all_memory.
3265 (gomp_task_handle_depend): Handle omp_all_memory.
3266 (gomp_task_run_post_handle_depend_hash): Clear
3267 parent->depend_all_memory if equal to current task.
3268 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3269 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3270 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3271 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3272
3273 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3274
3275 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3276 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3277 * Makefile.in: Regenerate.
3278 * configure: Likewise.
3279 * testsuite/Makefile.in: Likewise.
3280
3281 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3282
3283 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3284 consider 'PLUGIN_GCN_CPPFLAGS'.
3285 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3286 'PLUGIN_GCN_LDFLAGS'.
3287 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3288 Remove.
3289 * Makefile.in: Regenerate.
3290 * configure: Likewise.
3291 * testsuite/Makefile.in: Likewise.
3292
3293 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3294
3295 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3296 (HSA_RUNTIME_LDFLAGS): Remove.
3297 * configure: Regenerate.
3298
3299 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3300
3301 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3302 'append always_ld_library_path ":$hsa_runtime_lib"'.
3303 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3304
3305 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3306
3307 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3308 multi-device testing.
3309
3310 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3311
3312 * libgomp.map: Added omp_target_is_accessible.
3313 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3314 * omp.h.in: Added omp_target_is_accessible.
3315 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3316 * omp_lib.h.in: Likewise.
3317 * target.c (omp_target_is_accessible): Added implementation of
3318 omp_target_is_accessible.
3319 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3320 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3321
3322 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3323
3324 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3325
3326 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3327
3328 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3329
3330 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3331
3332 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3333
3334 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3335
3336 * libgomp.map: Added omp_get_mapped_ptr.
3337 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3338 * omp.h.in: Added omp_get_mapped_ptr.
3339 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3340 * omp_lib.h.in: Likewise.
3341 * target.c (omp_get_mapped_ptr): Added implementation of
3342 omp_get_mapped_ptr.
3343 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3344 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3345 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3346 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3347 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3348 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3349 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3350 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3351
3352 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3353
3354 PR fortran/104717
3355 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3356 privatization scanning. For GCN offloading compilation, raise
3357 '-mgang-private-size'.
3358
3359 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3360
3361 PR libgomp/105358
3362 * work.c (gomp_init_work_share): Don't mask of adjustment for
3363 dynamic long long realignment if struct gomp_work_share has smaller
3364 alignof than long long.
3365 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3366 struct gomp_work_share has smaller alignof than long long or if
3367 sizeof (struct gomp_work_share) is smaller than
3368 INLINE_ORDERED_TEAM_IDS_OFF.
3369 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3370 * sections.c (GOMP_sections2_start): Likewise.
3371
3372 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3373 Thomas Schwinge <thomas@codesourcery.com>
3374
3375 PR fortran/104717
3376 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3377
3378 2022-04-13 Jakub Jelinek <jakub@redhat.com>
3379
3380 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3381
3382 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3383
3384 * plugin/cuda/cuda.h: Remove file.
3385 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3386 "cuda/cuda.h" instead of <cuda.h>.
3387 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3388 'PLUGIN_NVPTX_CPPFLAGS'.
3389 * configure: Regenerate.
3390
3391 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3392
3393 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3394
3395 2022-04-04 Tom de Vries <tdevries@suse.de>
3396
3397 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3398 on_device_arch_nvptx instead of offload_target_nvptx.
3399 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3400
3401 2022-04-01 Tom de Vries <tdevries@suse.de>
3402
3403 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3404 and use REC_DEPTH.
3405 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3406
3407 2022-04-01 Tom de Vries <tdevries@suse.de>
3408
3409 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3410 num_workers check.
3411
3412 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3413 Lulu Cheng <chenglulu@loongson.cn>
3414
3415 * configure.tgt: Add LoongArch triplet.
3416
3417 2022-03-28 Tom de Vries <tdevries@suse.de>
3418
3419 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3420 instead of /libexec/.
3421 * configure: Regenerate.
3422
3423 2022-03-25 Tom de Vries <tdevries@suse.de>
3424
3425 PR libgomp/105042
3426 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3427 execution time.
3428 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3429 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3430
3431 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
3432
3433 PR middle-end/104285
3434 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3435 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3436 * testsuite/libgomp.c++/target-same-name-2.C: New test.
3437 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3438 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3439 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3440
3441 2022-03-22 Tom de Vries <tdevries@suse.de>
3442
3443 PR target/104916
3444 PR target/104783
3445 * testsuite/libgomp.c/pr104783-2.c: New test.
3446
3447 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
3448
3449 PR fortran/103039
3450 * testsuite/libgomp.fortran/associate4.f90: New test.
3451
3452 2022-03-18 Tom de Vries <tdevries@suse.de>
3453
3454 PR target/104952
3455 * testsuite/libgomp.c/pr104952-1.c: New test.
3456 * testsuite/libgomp.c/pr104952-2.c: New test.
3457
3458 2022-03-18 Jakub Jelinek <jakub@redhat.com>
3459
3460 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3461 variable next to pl variable.
3462
3463 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3464
3465 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3466 Enhance.
3467 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3468 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3469
3470 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3471
3472 PR middle-end/90115
3473 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3474 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3475
3476 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
3477
3478 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3479 omp_set_max_active_levels.
3480 * testsuite/libgomp.fortran/icv-8.f90: New test.
3481
3482 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
3483
3484 PR testsuite/102841
3485 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3486
3487 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
3488
3489 * libgomp.texi: Fix typo.
3490
3491 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3492
3493 PR middle-end/100280
3494 PR middle-end/104892
3495 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3496 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3497 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3498 Likewise.
3499 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3500 Likewise.
3501 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3502 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3503 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3504 Likewise.
3505
3506 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3507
3508 PR middle-end/104892
3509 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3510 to PR104892.
3511 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3512 enable '--param=openacc-kernels=decompose' and adjust.
3513 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3514 Likewise.
3515 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3516 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3517 Likewise.
3518
3519 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3520
3521 PR middle-end/90115
3522 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3523 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3524 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3525 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3526
3527 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3528
3529 PR middle-end/100280
3530 PR middle-end/104086
3531 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3532 Merge this...
3533 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3534 ..., and this...
3535 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3536 this, and adjust.
3537 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3538 Extend.
3539
3540 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
3541
3542 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3543 trait. Test last index in w and v array. Remove redundant
3544 assignment to V(1). Move alignment checks at the end of
3545 parallel region.
3546
3547 2022-03-10 Tom de Vries <tdevries@suse.de>
3548
3549 * testsuite/libgomp.c/pr104783.c: New test.
3550
3551 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3552
3553 PR middle-end/90115
3554 PR middle-end/102330
3555 PR middle-end/104774
3556 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3557 Enhance.
3558 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3559 Adjust.
3560 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3561 Likewise.
3562 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3563 Likewise.
3564 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3565 Likewise.
3566 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3567 Likewise.
3568 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3569 Likewise.
3570 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3571 Likewise.
3572 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3573 Likewise.
3574 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3575 Likewise.
3576 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3577 Likewise.
3578 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3579 Likewise.
3580 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3581 Likewise.
3582 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3583 Likewise.
3584 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3585 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3586 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3587
3588 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3589
3590 PR middle-end/90115
3591 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3592 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3593 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3594 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3595
3596 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3597
3598 PR testsuite/104791
3599 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3600 expected diagnostics.
3601
3602 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3603
3604 PR middle-end/104784
3605 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3606 Test with '--param=openacc-kernels=decompose'.
3607 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3608 Likewise.
3609 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3610 Likewise.
3611 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3612 Likewise.
3613 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3614 Likewise.
3615 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3616 Likewise.
3617 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3618 Likewise.
3619 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3620 Likewise.
3621 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3622 Likewise.
3623 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3624 Likewise.
3625 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3626 Likewise.
3627 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3628 Likewise.
3629 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3630 Likewise.
3631 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3632 Likewise.
3633 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3634 Likewise.
3635 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3636 Likewise.
3637 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3638 Likewise.
3639 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3640 Likewise.
3641 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3642 Likewise.
3643 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3644 Likewise.
3645 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3646 Likewise.
3647 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3648 Likewise.
3649 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3650 Likewise.
3651 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3652 Likewise.
3653 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3654 Likewise.
3655 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3656 Likewise.
3657 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3658 Likewise.
3659 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3660 Likewise.
3661 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3662 Likewise.
3663 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3664 Likewise.
3665 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3666 Likewise.
3667 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3668 Likewise.
3669 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3670 Likewise.
3671
3672 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3673
3674 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3675 Test '-fopt-info-omp-all'.
3676 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3677 Likewise.
3678 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3679 Likewise.
3680 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3681 Likewise.
3682 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3683 Likewise.
3684 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3685 Likewise.
3686 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3687 Likewise.
3688 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3689 Likewise.
3690 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3691 Likewise.
3692 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3693 Likewise.
3694 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3695 Likewise.
3696 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3697 Likewise.
3698 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3699 Likewise.
3700 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3701 Likewise.
3702 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3703 Likewise.
3704 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3705 Likewise.
3706 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3707 Likewise.
3708 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3709 Likewise.
3710 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3711 Likewise.
3712 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3713 Likewise.
3714 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3715 Likewise.
3716 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3717 Likewise.
3718 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3719 Likewise.
3720 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3721 Likewise.
3722 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3723 Likewise.
3724 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3725 Likewise.
3726 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3727 Likewise.
3728 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3729 Likewise.
3730 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3731 Likewise.
3732 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3733 Likewise.
3734 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3735 Likewise.
3736 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3737 Likewise.
3738 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3739 Likewise.
3740
3741 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3742
3743 PR middle-end/100280
3744 PR middle-end/104132
3745 PR middle-end/104133
3746 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3747 Extend.
3748
3749 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3750
3751 PR middle-end/100280
3752 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3753 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3754 Likewise.
3755
3756 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3757
3758 PR middle-end/100280
3759 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3760 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3761 Likewise.
3762
3763 2022-02-28 Tom de Vries <tdevries@suse.de>
3764
3765 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3766 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3767 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3768 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3769 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3770 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3771
3772 2022-02-24 Tom de Vries <tdevries@suse.de>
3773
3774 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3775 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3776 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3777 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3778 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3779 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3780 * testsuite/libgomp.c/declare-variant-3.h: New header file.
3781
3782 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
3783
3784 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3785 gang-redundant execution.
3786
3787 2022-02-22 Tom de Vries <tdevries@suse.de>
3788
3789 PR target/99555
3790 * config/nvptx/bar.c (generation_to_barrier): New function, copied
3791 from config/rtems/bar.c.
3792 (futex_wait, futex_wake): New function.
3793 (do_spin, do_wait): New function, copied from config/linux/wait.h.
3794 (gomp_barrier_wait_end, gomp_barrier_wait_last)
3795 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3796 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3797 and replace with include of config/linux/bar.c.
3798 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3799 (gomp_barrier_init): Init new fields.
3800 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3801 workarounds.
3802 * testsuite/libgomp.c/pr99555-1.c: Same.
3803 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3804
3805 2022-02-22 Tom de Vries <tdevries@suse.de>
3806
3807 PR testsuite/104146
3808 * testsuite/libgomp.c++/pr96390.C: Add additional-option
3809 -foffload=-Wa,--verify for nvptx.
3810 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3811
3812 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
3813
3814 * testsuite/libgomp.fortran/depend-4.f90: New test.
3815
3816 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
3817
3818 PR c++/102204
3819 * testsuite/libgomp.c++/target-virtual-1.C: New test.
3820
3821 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
3822
3823 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3824 * target.c (copy_firstprivate_data): Copy only if host address is not
3825 NULL.
3826 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3827 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3828 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3829 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3830 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3831 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3832 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3833 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3834 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3835 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3836
3837 2022-02-08 Jakub Jelinek <jakub@redhat.com>
3838
3839 PR libgomp/104385
3840 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3841 clear task->parent.
3842 * testsuite/libgomp.c/pr104385.c: New test.
3843
3844 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3845
3846 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3847 STOP of previous commit.
3848
3849 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3850
3851 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3852 from is_64bit_aligned_.
3853 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3854 and use it, more implicit none, remove unused argument.
3855
3856 2022-02-03 David Seifert <soap@gentoo.org>
3857 Jakub Jelinek <jakub@redhat.com>
3858
3859 * configure.ac: Support --disable-werror.
3860 * configure: Regenerate.
3861
3862 2022-02-01 Tom de Vries <tdevries@suse.de>
3863
3864 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3865 PR83812 workaround.
3866 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3867 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3868
3869 2022-02-01 Tom de Vries <tdevries@suse.de>
3870
3871 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3872 num_workers for nvidia accelerator to fix libgomp error 'insufficient
3873 resources'.
3874 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3875 Same.
3876 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3877
3878 2022-02-01 Tom de Vries <tdevries@suse.de>
3879
3880 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3881 recursion depth.
3882 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3883
3884 2022-01-31 Martin Liska <mliska@suse.cz>
3885
3886 * acinclude.m4: Detect *_ld_is_mold and use it.
3887 * configure: Regenerate.
3888
3889 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
3890
3891 * libgomp.texi (OpenMP 5.0): Update implementation status.
3892
3893 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
3894
3895 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3896 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3897 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3898 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3899 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3900 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3901 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3902 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3903 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3904 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3905 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3906 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3907 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3908 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3909 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3910
3911 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
3912
3913 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3914 "static") to make the device num available in the offload image.
3915
3916 2022-01-19 Martin Liska <mliska@suse.cz>
3917 Thomas Schwinge <thomas@codesourcery.com>
3918
3919 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3920 patterns.
3921 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3922 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3923 Likewise.
3924 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3925 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3926 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3927 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3928 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3929 Likewise.
3930 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3931 Likewise.
3932 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3933 Likewise.
3934 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3935 Likewise.
3936 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3937 Likewise.
3938 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3939 Likewise.
3940 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3941 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3942 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3943
3944 2022-01-18 Martin Liska <mliska@suse.cz>
3945
3946 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3947 in dg-warning.
3948 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3949 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3950 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3951 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3952 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3953 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3954 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3955 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3956 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3957 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3958 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3959 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3960 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3961 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3962 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3963
3964 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
3965
3966 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3967 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3968 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3969
3970 2022-01-17 Julian Brown <julian@codesourcery.com>
3971 Thomas Schwinge <thomas@codesourcery.com>
3972
3973 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3974 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3975 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3976
3977 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
3978 Andrew Stubbs <ams@codesourcery.com>
3979
3980 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3981 the number of teams and threads if necessary.
3982 (gcn_exec): Automatically set the number of gangs and workers if
3983 necessary.
3984
3985 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
3986
3987 * testsuite/libgomp.fortran/allocate-1.c: New test.
3988 * testsuite/libgomp.fortran/allocate-1.f90: New test.
3989 * libgomp.texi: Remove string that says that allocate clause
3990 support is for C/C++ only.
3991
3992 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3993
3994 * testsuite/libgomp.c-c++-common/on_device_arch.h
3995 (any_device_arch, any_device_arch_intel_mic): New.
3996 * testsuite/lib/libgomp.exp
3997 (check_effective_target_offload_device_any_intel_mic): New.
3998 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3999 * testsuite/libgomp.fortran/target10.f90: Likewise.
4000
4001 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4002
4003 PR tree-optimization/102192
4004 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4005 '-Wuninitialized' diagnostics.
4006
4007 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4008
4009 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4010 current '-Wuninitialized' diagnostics.
4011 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4012 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4013 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4014 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4015 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4016 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4017 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4018 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4019 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4020 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4021 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4022 Likewise.
4023
4024 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4025
4026 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4027 for 'offload_device_intel_mic'.
4028
4029 2022-01-13 Julian Brown <julian@codesourcery.com>
4030 Thomas Schwinge <thomas@codesourcery.com>
4031
4032 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4033 offloading execution XFAIL.
4034
4035 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4036
4037 PR middle-end/100280
4038 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4039 Update.
4040 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4041 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4042 Likewise.
4043
4044 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4045
4046 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4047 Enhance.
4048 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4049 Likewise.
4050 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4051 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4052 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4053 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4054 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4055 Likewise.
4056 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4057 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4058 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4059 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4060
4061 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
4062
4063 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4064 * testsuite/libgomp.fortran/target10.f90: Likewise.
4065
4066 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
4067
4068 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4069 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4070 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4071
4072 2022-01-03 Jakub Jelinek <jakub@redhat.com>
4073
4074 * libgomp.texi: Bump @copying's copyright year.
4075
4076 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
4077
4078 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4079 * testsuite/libgomp.fortran/atomic-19.f90: New test.
4080
4081 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
4082
4083 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4084 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4085 table, not individual symbols.
4086
4087 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
4088
4089 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4090 "target offload_device_nonshared_as"
4091 * testsuite/libgomp.c++/target-this-3.C: Likewise.
4092 * testsuite/libgomp.c++/target-this-4.C: Likewise.
4093
4094 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4095
4096 * target.c (gomp_map_vars_existing): Make sure attached pointer is
4097 not overwritten during cross-host/device copying.
4098 (gomp_update): Likewise.
4099 (gomp_exit_data): Likewise.
4100 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4101 * testsuite/libgomp.c++/target-12.C: Likewise.
4102 * testsuite/libgomp.c++/target-15.C: Likewise.
4103 * testsuite/libgomp.c++/target-16.C: Likewise.
4104 * testsuite/libgomp.c++/target-17.C: Likewise.
4105 * testsuite/libgomp.c++/target-21.C: Likewise.
4106 * testsuite/libgomp.c++/target-23.C: Likewise.
4107 * testsuite/libgomp.c/target-23.c: Likewise.
4108 * testsuite/libgomp.c/target-29.c: Likewise.
4109 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4110
4111 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4112
4113 PR middle-end/92120
4114 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4115 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4116 (goacc_enter_data_internal): Likewise.
4117 * target.c (gomp_map_vars_existing): Update assert condition to
4118 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4119 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4120 parameter, add support for mapping a pointer with NULL target.
4121 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4122 parameter, add support for attaching a pointer with NULL target.
4123 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4124 gomp_attach_pointer, add handling for
4125 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4126 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4127 * testsuite/libgomp.c++/target-23.C: New testcase.
4128 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4129 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4130 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4131 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4132 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4133 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4134 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4135
4136 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4137
4138 * libgomp.texi (OpenMP 5.1): Update status.
4139
4140 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4141
4142 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4143
4144 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4145
4146 PR fortran/90030
4147 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4148 * testsuite/libgomp.fortran/pr90030.f90: New test.
4149
4150 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4151 Thomas Schwinge <thomas@codesourcery.com>
4152
4153 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4154 temporary skip.
4155
4156 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4157 Thomas Schwinge <thomas@codesourcery.com>
4158
4159 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4160 skip.
4161
4162 2021-11-29 Richard Biener <rguenther@suse.de>
4163
4164 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4165 return.
4166
4167 2021-11-24 Jakub Jelinek <jakub@redhat.com>
4168
4169 PR middle-end/103384
4170 * testsuite/libgomp.c/declare-variant-2.c: New test.
4171
4172 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
4173
4174 * alloc.c (gomp_aligned_alloc): Fix typo.
4175
4176 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4177
4178 PR libgomp/102838
4179 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4180 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4181 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4182 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4183 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4184 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4185 gomp_aligned_alloc instead of team_malloc.
4186
4187 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4188
4189 PR libgomp/102838
4190 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4191 memalign over posix_memalign over aligned_alloc over fallback
4192 with malloc instead of aligned_alloc over _aligned_alloc over
4193 posix_memalign over memalign over fallback with malloc. For
4194 aligned_alloc, round up size up to multiple of al.
4195
4196 2021-11-16 Jakub Jelinek <jakub@redhat.com>
4197
4198 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4199 construct as implemented.
4200
4201 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
4202
4203 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4204
4205 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4206
4207 * task.c (gomp_create_target_task): Copy args array as well.
4208 * target.c (gomp_target_fallback): Add args argument.
4209 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4210 (GOMP_target): Adjust gomp_target_fallback caller.
4211 (GOMP_target_ext): Likewise.
4212 (gomp_target_task_fn): Likewise.
4213 * config/nvptx/team.c (gomp_nvptx_main): Set
4214 gomp_global_icv.thread_limit_var.
4215 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4216
4217 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4218
4219 * config/nvptx/team.c (__gomp_team_num): Define as
4220 __attribute__((shared)) var.
4221 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4222 * config/nvptx/target.c (__gomp_team_num): Declare as
4223 extern __attribute__((shared)) var.
4224 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4225 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4226 is bigger than num_blocks, use num_teams_lower teams and arrange for
4227 bumping of __gomp_team_num if !first and returning false once we run
4228 out of teams.
4229 * config/nvptx/teams.c (__gomp_team_num): Declare as
4230 extern __attribute__((shared)) var.
4231 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4232
4233 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4234
4235 * testsuite/libgomp.c/teams-5.c: New test.
4236
4237 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4238
4239 PR target/103201
4240 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4241 to ...
4242 * config/gcn/teams.c: ... here. New file.
4243
4244 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4245
4246 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4247 implicit map handling to allow a "superset" existing map as valid case.
4248 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4249 (get_implicit): New function to extract implicit status.
4250 (gomp_map_fields_existing): Adjust arguments in calls to
4251 gomp_map_vars_existing, and add uses of get_implicit.
4252 (gomp_map_vars_internal): Likewise.
4253 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4254
4255 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4256
4257 * libgomp_g.h (GOMP_teams4): Declare.
4258 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4259 * target.c (GOMP_teams4): New function.
4260 * config/nvptx/target.c (GOMP_teams): Remove.
4261 (GOMP_teams4): New function.
4262 * config/gcn/target.c (GOMP_teams): Remove.
4263 (GOMP_teams4): New function.
4264 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4265 teams instead of <= 2.
4266 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4267
4268 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
4269
4270 * testsuite/libgomp.fortran/teams-1.f90: New test.
4271
4272 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4273
4274 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4275 * team.c (struct gomp_thread_start_data): Likewise.
4276 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4277 (gomp_team_start): Initialize start_data->num_teams and
4278 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4279 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4280 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4281 instead of gomp_num_teams and gomp_team_num.
4282 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4283 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4284 * testsuite/libgomp.c/teams-4.c: New test.
4285
4286 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4287
4288 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4289
4290 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4291
4292 * env.c (parse_gomp_openacc_dim): Restore parsing.
4293
4294 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4295
4296 PR middle-end/102972
4297 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4298 parallel construct.
4299 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4300 * testsuite/libgomp.c/target-3.c: Likewise.
4301 * testsuite/libgomp.c/target-5.c: Likewise.
4302 * testsuite/libgomp.c/target-6.c: Likewise.
4303 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4304 * testsuite/libgomp.c/teams-1.c: Likewise.
4305 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4306 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4307 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4308 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4309 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4310 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4311 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4312
4313 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
4314
4315 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4316 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4317
4318 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4319
4320 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4321 aren't implemented for Fortran yet.
4322
4323 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4324
4325 * testsuite/libgomp.c/loop-26.c: New test.
4326 * testsuite/libgomp.c/loop-27.c: New test.
4327
4328 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4329
4330 PR testsuite/102910
4331 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4332 instead of #include <alloca.h> + alloca.
4333
4334 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4335
4336 * libgomp.texi (Support of strictly structured blocks in Fortran):
4337 Adjust to 'Y'.
4338 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4339
4340 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4341
4342 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4343 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4344
4345 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4346
4347 PR libgomp/102838
4348 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4349 (struct gomp_work_share): Only use aligned(64) attribute if
4350 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4351 add padding before lock to ensure lock is at offset 64 bytes
4352 into the structure.
4353 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4354 New poor man's static assertions.
4355 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4356 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4357
4358 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4359 Richard Biener <rguenther@suse.de>
4360
4361 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4362
4363 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4364
4365 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4366 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4367
4368 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4369
4370 PR fortran/102086
4371 PR fortran/92189
4372 PR fortran/92621
4373 PR fortran/101308
4374 PR fortran/101309
4375 PR fortran/101635
4376 PR fortran/92482
4377 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4378
4379 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4380
4381 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4382 type from char [50] to const char *.
4383 (places_array): Add a testcase for simplified syntax place followed
4384 by length or length and stride.
4385
4386 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4387
4388 * env.c (parse_one_place): Handle non-negative-number the same
4389 as { non-negative-number }. Reject even !number:1 and
4390 !number:1:stride or !place:1 or !place:1:stride instead of just
4391 length other than 1.
4392 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4393 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4394 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4395 as implemented.
4396 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4397 simplified syntax.
4398
4399 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4400
4401 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4402 clearly reject return value 0 as invalid handle the case where end
4403 pointer is the same as first argument as invalid.
4404 (parse_unsigned_long_1): Likewise.
4405 (parse_one_place): Likewise.
4406 (parse_places_var): Likewise.
4407 (parse_stacksize): Likewise.
4408 (parse_spincount): Likewise.
4409 (parse_affinity): Likewise.
4410 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4411 Make code valid C89.
4412 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4413 For strtoul calls which don't clearly reject return value 0 as
4414 invalid handle the case where end pointer is the same as first
4415 argument as invalid.
4416 (gomp_affinity_init_level_1): Likewise.
4417 (gomp_affinity_init_numa_domains): Likewise.
4418 * config/rtems/proc.c (parse_thread_pools): Likewise.
4419
4420 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4421
4422 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4423 after creating count places clean up and return immediately.
4424 * testsuite/libgomp.c/places-6.c: New test.
4425 * testsuite/libgomp.c/places-7.c: New test.
4426 * testsuite/libgomp.c/places-8.c: New test.
4427 * testsuite/libgomp.c/places-9.c: New test.
4428 * testsuite/libgomp.c/places-10.c: New test.
4429
4430 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4431
4432 * env.c (parse_places_var): Handle numa_domains as level 5.
4433 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4434 function.
4435 (gomp_affinity_init_level): Use it instead of
4436 gomp_affinity_init_level_1 for level == 5.
4437 * testsuite/libgomp.c/places-5.c: New test.
4438
4439 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4440
4441 * env.c (parse_places_var): Handle ll_caches as level 4.
4442 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4443 function.
4444 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4445 last level cache.
4446 (gomp_affinity_init_level): Likewise.
4447 * testsuite/libgomp.c/places-1.c: New test.
4448 * testsuite/libgomp.c/places-2.c: New test.
4449 * testsuite/libgomp.c/places-3.c: New test.
4450 * testsuite/libgomp.c/places-4.c: New test.
4451
4452 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4453
4454 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4455 directive.
4456
4457 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4458
4459 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4460
4461 2021-10-12 Julian Brown <julian@codesourcery.com>
4462
4463 * target.c (gomp_copy_host2dev): Release device lock on cbuf
4464 error path.
4465
4466 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
4467
4468 * testsuite/libgomp.fortran/icv-3.f90: New.
4469 * testsuite/libgomp.fortran/icv-4.f90: New.
4470
4471 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4472
4473 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4474 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4475 OMP_TEAMS_THREAD_LIMIT): Document.
4476
4477 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4478
4479 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4480 to avoid makeinfo warnings.
4481
4482 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4483
4484 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4485 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4486
4487 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4488
4489 PR libgomp/102628
4490 PR libgomp/102668
4491 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4492 allocation sizes from 420 to 320 and from 768 to 568.
4493 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4494 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4495 for cr from 16 to 4.
4496
4497 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4498
4499 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4500 * testsuite/libgomp.c/scan-12.c: Likewise.
4501 * testsuite/libgomp.c/scan-13.c: Likewise.
4502 * testsuite/libgomp.c/scan-14.c: Likewise.
4503 * testsuite/libgomp.c/scan-15.c: Likewise.
4504 * testsuite/libgomp.c/scan-16.c: Likewise.
4505 * testsuite/libgomp.c/scan-17.c: Likewise.
4506 * testsuite/libgomp.c/scan-18.c: Likewise.
4507 * testsuite/libgomp.c/scan-19.c: Likewise.
4508 * testsuite/libgomp.c/scan-20.c: Likewise.
4509 * testsuite/libgomp.c/scan-21.c: Likewise.
4510 * testsuite/libgomp.c/scan-22.c: Likewise.
4511 * testsuite/libgomp.c++/scan-9.C: Likewise.
4512 * testsuite/libgomp.c++/scan-10.C: Likewise.
4513 * testsuite/libgomp.c++/scan-11.C: Likewise.
4514 * testsuite/libgomp.c++/scan-12.C: Likewise.
4515 * testsuite/libgomp.c++/scan-13.C: Likewise.
4516 * testsuite/libgomp.c++/scan-14.C: Likewise.
4517 * testsuite/libgomp.c++/scan-15.C: Likewise.
4518 * testsuite/libgomp.c++/scan-16.C: Likewise.
4519
4520 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
4521
4522 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4523
4524 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
4525
4526 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4527 omp_atv_serialized.
4528 * omp.h.in: Add deprecated flag for omp_atv_sequential.
4529 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4530 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4531 * testsuite/libgomp.fortran/alloc-12.f90: New test.
4532
4533 2021-10-11 Jakub Jelinek <jakub@redhat.com>
4534
4535 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4536 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4537 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4538 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4539 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4540 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4541 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4542 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4543 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4544 omp_set_teams_thread_limit{,_,_8_}.
4545 * icv.c (omp_set_num_teams, omp_get_max_teams,
4546 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4547 functions.
4548 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4549 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4550 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4551 vars.
4552 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4553 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
4554 is not specified, use gomp_nteams_var.
4555 * fortran.c (omp_set_num_teams, omp_get_max_teams,
4556 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4557 ialias_redirect.
4558 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4559 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4560 omp_get_teams_thread_limit_): New functions.
4561
4562 2021-10-09 liuhongt <hongtao.liu@intel.com>
4563
4564 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4565 * testsuite/libgomp.c++/scan-11.C: Ditto.
4566 * testsuite/libgomp.c++/scan-12.C: Ditto.
4567 * testsuite/libgomp.c++/scan-13.C: Ditto.
4568 * testsuite/libgomp.c++/scan-14.C: Ditto.
4569 * testsuite/libgomp.c++/scan-15.C: Ditto.
4570 * testsuite/libgomp.c++/scan-16.C: Ditto.
4571 * testsuite/libgomp.c++/scan-9.C: Ditto.
4572 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4573 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4574 * testsuite/libgomp.c/scan-11.c: Ditto.
4575 * testsuite/libgomp.c/scan-12.c: Ditto.
4576 * testsuite/libgomp.c/scan-13.c: Ditto.
4577 * testsuite/libgomp.c/scan-14.c: Ditto.
4578 * testsuite/libgomp.c/scan-15.c: Ditto.
4579 * testsuite/libgomp.c/scan-16.c: Ditto.
4580 * testsuite/libgomp.c/scan-17.c: Ditto.
4581 * testsuite/libgomp.c/scan-18.c: Ditto.
4582 * testsuite/libgomp.c/scan-19.c: Ditto.
4583 * testsuite/libgomp.c/scan-20.c: Ditto.
4584 * testsuite/libgomp.c/scan-21.c: Ditto.
4585 * testsuite/libgomp.c/scan-22.c: Ditto.
4586
4587 2021-10-09 Jakub Jelinek <jakub@redhat.com>
4588
4589 * libgomp.texi (OpenMP 5.1): Mention implemented support for
4590 structured block sequences in C/C++. Mention support for
4591 unconstrained/reproducible modifiers on order clause.
4592 Mention partial (C/C++ only) support of extentensions to atomics
4593 construct. Mention partial (C/C++ on clause only) support of
4594 align/allocator modifiers on allocate clause.
4595
4596 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
4597
4598 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4599 based on libgomp.c-c++-common/order-reproducible-1.c.
4600 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4601 * testsuite/libgomp.fortran/my-usleep.c: New test.
4602
4603 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
4604
4605 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4606 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4607 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4608 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4609 based on libgomp.c-c++-common/alloc-9.c.
4610
4611 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4612
4613 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4614 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4615
4616 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4617
4618 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4619 ialias_redirect.
4620 * env.c (handle_omp_display_env): Use ialias_call.
4621 * icv-device.c: Move ialias right below each function.
4622 (omp_get_device_num): Use ialias_call.
4623 * fortran.c (omp_fulfill_event): Add ialias_redirect.
4624 * icv.c (omp_get_active_level): Add ialias_redirect.
4625
4626 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4627
4628 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4629 __alloc_align__ (1) attribute.
4630 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4631
4632 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4633
4634 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4635 for -fintrinsic-modules-path= warning of the C compiler.
4636 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4637 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4638
4639 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4640
4641 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4642 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4643 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4644 omp_realloc): Add.
4645 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4646 omp_realloc): Add.
4647 * testsuite/libgomp.fortran/alloc-10.f90: New test.
4648 * testsuite/libgomp.fortran/alloc-6.f90: New test.
4649 * testsuite/libgomp.fortran/alloc-7.c: New test.
4650 * testsuite/libgomp.fortran/alloc-7.f90: New test.
4651 * testsuite/libgomp.fortran/alloc-8.f90: New test.
4652 * testsuite/libgomp.fortran/alloc-9.f90: New test.
4653
4654 2021-09-30 Jakub Jelinek <jakub@redhat.com>
4655
4656 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4657 omp_realloc): New prototypes.
4658 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4659 attribute.
4660 * allocator.c: Include string.h.
4661 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
4662 variable and use it instead of alignment so that when retrying the old
4663 alignment is used again. Don't retry if new alignment is the same
4664 as old alignment, unless allocator had pool size.
4665 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4666 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4667 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4668 omp_aligned_calloc and omp_realloc.
4669 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4670 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4671 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4672 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4673 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4674 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4675
4676 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
4677
4678 PR libgomp/96661
4679 * configure.ac: Only check for int-type = 2*size_t support when
4680 building with Fortran support.
4681 * configure: Regenerate.
4682
4683 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
4684
4685 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4686 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4687
4688 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
4689
4690 * team.c: Initialize start_data.
4691 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4692 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4693
4694 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4695
4696 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4697 dg-message back to dg-note.
4698
4699 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4700
4701 PR fortran/94070
4702 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4703 expected dg-note output.
4704
4705 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
4706
4707 PR fortran/55534
4708 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4709 r12-3722 by removing -Wno-missing-include-dirs.
4710 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4711
4712 2021-09-22 Jakub Jelinek <jakub@redhat.com>
4713
4714 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4715 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4716
4717 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
4718
4719 PR fortran/55534
4720 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4721 to ALWAYS_CFLAGS.
4722 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4723
4724 2021-09-18 Jakub Jelinek <jakub@redhat.com>
4725
4726 * testsuite/libgomp.c++/default-1.C: New test.
4727 * testsuite/libgomp.c-c++-common/default-1.c: New test.
4728 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4729 to default clause in C and C++" as implemented.
4730
4731 2021-09-17 Julian Brown <julian@codesourcery.com>
4732
4733 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4734
4735 2021-09-17 Julian Brown <julian@codesourcery.com>
4736
4737 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4738
4739 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4740
4741 * libgomp.texi (OpenMP 5.1): Spelling fix,
4742 declare variante -> declare variant.
4743
4744 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4745
4746 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4747 Use /* */ comments instead of //.
4748 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4749 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4750 * testsuite/libgomp.c++/atomic-16.C: New test.
4751 * testsuite/libgomp.c++/atomic-17.C: New test.
4752
4753 2021-09-10 Jakub Jelinek <jakub@redhat.com>
4754
4755 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4756 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4757 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4758
4759 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4760
4761 * libgomp.texi (OpenMP Implementation Status): Extend
4762 OpenMP 5.0 section.
4763 (OpenACC Profiling Interface): Fix typo.
4764
4765 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4766
4767 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4768 not to 4.5; link to new section.
4769 (OpenMP Implementation Status): New.
4770
4771 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
4772
4773 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4774
4775 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
4776
4777 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4778 dg-output.
4779 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4780
4781 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4782 Jakub Jelinek <jakub@redhat.com>
4783
4784 * testsuite/libgomp.c/address-space-1.c: New file.
4785
4786 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4787
4788 * testsuite/lib/libgomp.exp
4789 (check_effective_target_offload_target_intelmic): Remove 'proc'.
4790 (check_effective_target_offload_device_intel_mic): New 'proc'.
4791 * testsuite/libgomp.c-c++-common/on_device_arch.h
4792 (device_arch_intel_mic, on_device_arch_intel_mic): New.
4793 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4794 'dg-xfail-run-if'.
4795 * testsuite/libgomp.fortran/target10.f90: Likewise.
4796
4797 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
4798
4799 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4800 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4801 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4802 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4803
4804 2021-08-23 Jakub Jelinek <jakub@redhat.com>
4805
4806 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4807 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4808 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4809
4810 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
4811
4812 * config/nvptx/error.c (fwrite, exit): Override, too.
4813 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4814 of offloading testing.
4815 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4816
4817 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
4818
4819 * testsuite/libgomp.fortran/error-1.f90: New test.
4820
4821 2021-08-20 Jakub Jelinek <jakub@redhat.com>
4822
4823 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4824 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4825 * error.c (GOMP_warning, GOMP_error): New functions.
4826 * testsuite/libgomp.c-c++-common/error-1.c: New test.
4827
4828 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
4829
4830 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4831 omp_target_free. omp_target_is_present, omp_target_memcpy,
4832 omp_target_memcpy_rect, omp_target_associate_ptr,
4833 omp_target_disassociate_ptr): Add interface.
4834 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4835 omp_target_free. omp_target_is_present, omp_target_memcpy,
4836 omp_target_memcpy_rect, omp_target_associate_ptr,
4837 omp_target_disassociate_ptr): Add interface.
4838 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4839 interface block for omp_alloc + omp_free.
4840 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4841 * testsuite/libgomp.fortran/refcount-1.f90: New test.
4842 * testsuite/libgomp.fortran/target-12.f90: New test.
4843
4844 2021-08-18 Jakub Jelinek <jakub@redhat.com>
4845
4846 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4847
4848 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
4849
4850 * testsuite/libgomp.fortran/scope-1.f90: New test.
4851 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4852
4853 2021-08-17 Jakub Jelinek <jakub@redhat.com>
4854
4855 * Makefile.am (libgomp_la_SOURCES): Add scope.c
4856 * Makefile.in: Regenerated.
4857 * libgomp_g.h (GOMP_scope_start): Declare.
4858 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4859 * scope.c: New file.
4860 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4861 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4862
4863 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
4864
4865 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4866 '?:' issues.
4867
4868 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
4869
4870 * testsuite/libgomp.fortran/masked-1.f90: New test.
4871
4872 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
4873
4874 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4875
4876 2021-08-12 Jakub Jelinek <jakub@redhat.com>
4877
4878 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4879
4880 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
4881
4882 * env.c (parse_bind_var): Accept 'primary' as alias for
4883 'master'.
4884 (omp_display_env): Add TODO comment to
4885 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4886 * libgomp.texi: Change 'master thread' to 'primary thread'
4887 in line with OpenMP 5.1.
4888 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4889 omp_proc_bind_master is an alias of it.
4890 (OMP_PROC_BIND): Mention 'PRIMARY'.
4891 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4892 (omp_proc_bind_primary): Add.
4893 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4894 * omp_lib.f90.in (omp_proc_bind_primary): Add.
4895 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4896 * omp_lib.h.in (omp_proc_bind_primary): Add.
4897 * testsuite/libgomp.c/affinity-1.c: Check that
4898 'primary' works and is identical to 'master'.
4899
4900 2021-08-09 Julian Brown <julian@codesourcery.com>
4901 Kwok Cheung Yeung <kcy@codesourcery.com>
4902 Thomas Schwinge <thomas@codesourcery.com>
4903
4904 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4905 16.
4906 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4907 [acc_device_radeon]: Update.
4908 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4909 [ACC_DEVICE_TYPE_radeon]: Likewise.
4910 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4911 [acc_device_radeon]: Likewise.
4912 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4913 [ACC_DEVICE_TYPE_radeon]: Likewise.
4914 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4915 'openacc_radeon_accel_selected' and '-O0'.
4916 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4917
4918 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
4919
4920 * icv-device.c (omp_get_device_num): New API function, host side.
4921 * fortran.c (omp_get_device_num_): New interface function.
4922 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4923 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4924 omp_get_device_num_.
4925 * libgomp.texi (omp_get_device_num): Add documentation for new API
4926 function.
4927 * omp.h.in (omp_get_device_num): Add declaration.
4928 * omp_lib.f90.in (omp_get_device_num): Likewise.
4929 * omp_lib.h.in (omp_get_device_num): Likewise.
4930 * target.c (gomp_load_image_to_device): If additional entry for device
4931 number exists at end of returned entries from 'load_image_func' hook,
4932 copy the assigned device number over to the device variable.
4933 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4934 (omp_get_device_num): New API function, device side.
4935 * plugin/plugin-gcn.c ("symcat.h"): Add include.
4936 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4937 at end of returned 'target_table' entries.
4938 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4939 (omp_get_device_num): New API function, device side.
4940 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4941 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4942 at end of returned 'target_table' entries.
4943 * testsuite/lib/libgomp.exp
4944 (check_effective_target_offload_target_intelmic): New function for
4945 testing for intelmic offloading.
4946 * testsuite/libgomp.c-c++-common/target-45.c: New test.
4947 * testsuite/libgomp.fortran/target10.f90: New test.
4948
4949 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
4950 Ulrich Drepper <drepper@redhat.com>
4951
4952 * fortran.c (omp_display_env_, omp_display_env_8_): Only
4953 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4954
4955 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
4956 Julian Brown <julian@codesourcery.com>
4957 Kwok Cheung Yeung <kcy@codesourcery.com>
4958
4959 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4960 's%oaccdevlow%oaccloops%g'.
4961 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4962 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4963 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4964 Likewise.
4965 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4966 Likewise.
4967 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4968 Likewise.
4969 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4970 Likewise.
4971 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4972 Likewise.
4973 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4974 Likewise.
4975 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4976 Likewise.
4977 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4978 Likewise.
4979 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4980
4981 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
4982
4983 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4984 threader.
4985 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4986
4987 2021-07-27 Ulrich Drepper <drepper@gmail.com>
4988
4989 * env.c (wait_policy, stacksize): New static variables,
4990 move out of handle_omp_display_env.
4991 (omp_display_env): New function. The meat of the old
4992 handle_omp_display_env function.
4993 (handle_omp_display_env): Change to not take parameters
4994 and instead use the global variables. Only perform
4995 parsing, defer to omp_display_env for the implementation.
4996 (initialize_env): Remove local variables wait_policy and
4997 stacksize. Don't pass parameters to handle_omp_display_env.
4998 * fortran.c: Add ialias_redirect for omp_display_env.
4999 (omp_display_env_, omp_display_env_8_): New functions.
5000 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
5001 omp_display_env_, and omp_display_env_8_.
5002 * omp.h.in: Declare omp_display_env.
5003 * omp_lib.f90.in: Likewise.
5004 * omp_lib.h.in: Likewise.
5005
5006 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5007 Julian Brown <julian@codesourcery.com>
5008
5009 * target.c (gomp_coalesce_buf_add): Update comment.
5010 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5011 'aq && cbuf'.
5012 (gomp_map_vars_internal): Only 'if (!aq)', do
5013 'gomp_coalesce_buf_add'.
5014 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5015 XFAIL.
5016
5017 2021-07-27 Julian Brown <julian@codesourcery.com>
5018 Thomas Schwinge <thomas@codesourcery.com>
5019
5020 * libgomp.h (gomp_copy_host2dev): Update prototype.
5021 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5022 argument to gomp_copy_host2dev (false).
5023 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5024 (copy_data): Don't free src.
5025 (queue_push_copy): Remove free_src handling.
5026 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5027 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5028 snapshotting.
5029 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5030 queue_push_copy.
5031 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5032 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
5033 data when true, and set up deferred freeing of temporary buffer.
5034 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5035 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5036 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5037 calls to gomp_copy_host2dev with appropriate ephemeral argument.
5038 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5039 XFAIL.
5040
5041 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5042 Tom de Vries <tom@codesourcery.com>
5043
5044 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5045 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5046
5047 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5048
5049 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5050 sequencing of 'async' data copying vs. profiling events.
5051 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5052 Likewise.
5053
5054 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5055 Julian Brown <julian@codesourcery.com>
5056
5057 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5058 'async'/'wait' issue.
5059 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5060 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5061 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5062
5063 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
5064 Joseph Myers <joseph@codesourcery.com>
5065 Cesar Philippidis <cesar@codesourcery.com>
5066
5067 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5068 file.
5069 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5070 Likewise.
5071 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5072 Likewise.
5073 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5074
5075 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
5076
5077 PR target/101484
5078 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5079 '-Wno-error=array-bounds'.
5080 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5081 * libgomp.h [__AMDGCN__]: Likewise.
5082
5083 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
5084
5085 PR target/101484
5086 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5087 * libgomp.h [__AMDGCN__]: Likewise.
5088
5089 2021-07-13 Jakub Jelinek <jakub@redhat.com>
5090 Florian Weimer <fweimer@redhat.com>
5091
5092 * config/linux/sem.h: Don't include limits.h.
5093 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5094 * config/linux/affinity.c: Include limits.h.
5095
5096 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5097
5098 PR middle-end/94366
5099 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5100
5101 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5102
5103 PR other/67300
5104 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5105 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5106 avoid disabling other offload targets.
5107 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5108 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5109 * testsuite/libgomp.c/target-44.c: Likewise.
5110
5111 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5112
5113 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5114 target has shared memory and disable some scalar pointer/allocatable
5115 checks if not as firstprivate does not work.
5116
5117 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5118
5119 PR testsuite/101114
5120 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5121 Add "target offload_device_nonshared_as" condition for enabling test.
5122
5123 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5124
5125 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5126 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5127 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5128 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5129
5130 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5131
5132 PR middle-end/101167
5133 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5134
5135 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5136
5137 * hashtab.h (htab_clear): New function with initialization code
5138 factored out from...
5139 (htab_create): ...here, adjust to use htab_clear function.
5140 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5141 special refcount values, add comments.
5142 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5143 (REFCOUNT_LINK): Likewise.
5144 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5145 element siblings.
5146 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5147 sibling maps.
5148 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5149 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5150 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5151 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5152 (struct splay_tree_key_s): Add structelem_refcount and
5153 structelem_refcount_ptr fields into a union with dynamic_refcount.
5154 Add comments.
5155 (gomp_map_vars): Delete declaration.
5156 (gomp_map_vars_async): Likewise.
5157 (gomp_unmap_vars): Likewise.
5158 (gomp_unmap_vars_async): Likewise.
5159 (goacc_map_vars): New declaration.
5160 (goacc_unmap_vars): Likewise.
5161 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5162 (goacc_enter_datum): Likewise.
5163 (goacc_enter_data_internal): Likewise.
5164 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5165 and goacc_unmap_vars.
5166 (GOACC_data_start): Adjust to use goacc_map_vars.
5167 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5168 * target.c (hash_entry_type): New typedef.
5169 (htab_alloc): New function hook for hashtab.h.
5170 (htab_free): Likewise.
5171 (htab_hash): Likewise.
5172 (htab_eq): Likewise.
5173 (hashtab.h): Add file include.
5174 (gomp_increment_refcount): New function.
5175 (gomp_decrement_refcount): Likewise.
5176 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5177 gomp_increment_refcount.
5178 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5179 to gomp_map_vars_existing.
5180 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5181 variable to guard OpenMP specific paths, adjust calls to
5182 gomp_map_vars_existing, add structure element sibling splay_tree_key
5183 sequence creation code, adjust Fortran map case to avoid increment
5184 under OpenMP.
5185 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5186 local refcount_set if caller passed in NULL, adjust call to
5187 gomp_map_vars_internal.
5188 (gomp_map_vars_async): Adjust and rename into...
5189 (goacc_map_vars): ...this new function, adjust call to
5190 gomp_map_vars_internal.
5191 (gomp_remove_splay_tree_key): New function with code factored out from
5192 gomp_remove_var_internal.
5193 (gomp_remove_var_internal): Add code to handle removing multiple
5194 splay_tree_key sequence for structure elements, adjust code to use
5195 gomp_remove_splay_tree_key for splay-tree key removal.
5196 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5197 gomp_decrement_refcount.
5198 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5199 local refcount_set if caller passed in NULL, adjust call to
5200 gomp_unmap_vars_internal.
5201 (gomp_unmap_vars_async): Adjust and rename into...
5202 (goacc_unmap_vars): ...this new function, adjust call to
5203 gomp_unmap_vars_internal.
5204 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5205 gomp_unmap_vars.
5206 (GOMP_target_ext): Likewise.
5207 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5208 (GOMP_target_data): Likewise.
5209 (GOMP_target_data_ext): Likewise.
5210 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5211 (gomp_exit_data): Add refcount_set parameter, adjust to use
5212 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5213 after main loop.
5214 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5215 gomp_map_vars and gomp_exit_data.
5216 (gomp_target_task_fn): Likewise.
5217 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5218 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5219 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5220 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5221 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5222 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5223
5224 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5225
5226 PR fortran/92568
5227 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5228
5229 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5230 Thomas Schwinge <thomas@codesourcery.com>
5231
5232 * libgomp.map (GOACC_2.0.2): New symbol version.
5233 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5234 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5235
5236 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5237 Andrew Stubbs <ams@codesourcery.com>
5238
5239 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5240 extracted from...
5241 (GOACC_enter_exit_data): ... here.
5242 (GOACC_declare): Use it.
5243
5244 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5245
5246 * oacc-parallel.c (GOACC_declare): Move...
5247 * oacc-mem.c: ... here.
5248 * libgomp_g.h: Adjust.
5249
5250 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5251 Thomas Schwinge <thomas@codesourcery.com>
5252
5253 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5254 handling.
5255
5256 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5257
5258 PR tree-optimization/100981
5259 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5260 dsdotr and dsdoti to 0.
5261
5262 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5263
5264 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5265 if atomic compare-and-swap is supported on 'int'.
5266
5267 2021-06-09 Richard Biener <rguenther@suse.de>
5268
5269 PR tree-optimization/100981
5270 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5271
5272 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5273
5274 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5275 unconditionally.
5276 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5277 Update.
5278 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5279 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5280
5281 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5282
5283 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5284 '-DACC_MEM_SHARED=0'.
5285 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5286 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5287 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5288 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5289 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5290 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5291 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5292 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5293 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5294 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5295 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5296 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5297 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5298 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5299 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5300 'acc_device_radeon' testing.
5301 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5302 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5303 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5304 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5305 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5306 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5307 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5308 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5309 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5310 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5311 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5312 for non-'openacc_nvidia_accel_selected'.
5313 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5314 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5315 all implement this checking".
5316 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5317 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5318 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5319 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5320 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5321
5322 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5323
5324 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5325 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5326
5327 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5328
5329 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5330 for 'acc_device_radeon'.
5331
5332 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5333
5334 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5335 for non-'acc_device_nvidia'.
5336
5337 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5338
5339 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5340 'acc_device_radeon' testing.
5341 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5342 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5343 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5344
5345 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5346
5347 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5348 require 'openacc_nvidia_accel_selected'. Fix up for
5349 'ACC_DEVICE_TYPE_radeon'.
5350
5351 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5352
5353 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5354 'openacc_nvidia_accel_selected'.
5355 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5356
5357 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5358
5359 * testsuite/lib/libgomp.exp
5360 (check_effective_target_openacc_radeon_accel_selected):
5361 Streamline.
5362
5363 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5364
5365 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5366 PR80547 workaround.
5367
5368 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5369
5370 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5371 <acc_device_nvidia>: Update comment.
5372
5373 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5374
5375 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5376
5377 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5378
5379 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5380 check_effective_target_openacc_cublas,
5381 check_effective_target_openacc_cudart): New.
5382 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5383 target openacc_cublas.
5384 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5385 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5386 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5387 target openacc_cuda.
5388 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5389 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5390 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5391 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5392 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5393 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5394 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5395 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5396 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5397 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5398 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5399 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5400 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5401 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5402 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5403 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5404 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5405 targets openacc_cublas and openacc_cudart.
5406 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5407 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5408 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5409 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5410 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5411 Require effective target openacc_cudart.
5412 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5413 for effective target openacc_cuda and add && defined USE_CUDA_H to
5414 preprocessor conditionals. Guard -lcuda also on openacc_cuda
5415 effective target.
5416
5417 2021-05-26 Jakub Jelinek <jakub@redhat.com>
5418
5419 PR libgomp/100573
5420 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5421 GOMP_target_end_data, GOMP_target_update_ext,
5422 GOMP_target_enter_exit_data): New dummy entrypoints.
5423 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5424 GOMP_target_end_data, GOMP_target_update_ext,
5425 GOMP_target_enter_exit_data): Likewise.
5426 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5427 OMPFROM, OMPTO): Define.
5428 (main): Remove #pragma omp target teams around all the tests.
5429 * testsuite/libgomp.c-c++-common/target-41.c: New test.
5430 * testsuite/libgomp.c-c++-common/target-42.c: New test.
5431
5432 2021-05-25 Jakub Jelinek <jakub@redhat.com>
5433
5434 PR middle-end/99928
5435 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5436
5437 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
5438
5439 PR fortran/86470
5440 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5441 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5442 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5443
5444 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
5445
5446 PR testsuite/90115
5447 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5448 uninteresting/varying diagnostics.
5449
5450 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5451
5452 PR middle-end/90115
5453 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5454 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5455
5456 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5457
5458 PR middle-end/90115
5459 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5460 file.
5461 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5462 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5463 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5464 Likewise.
5465 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5466 Likewise.
5467 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5468 Likewise.
5469 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5470 Likewise.
5471 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5472 Likewise.
5473 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5474 Likewise.
5475 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5476 Likewise.
5477 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5478 Likewise.
5479 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5480 Likewise.
5481 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5482 Likewise.
5483 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5484 Likewise.
5485 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5486 Likewise.
5487 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5488 Likewise.
5489 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5490 Likewise.
5491 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5492 Likewise.
5493 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5494 Likewise.
5495 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5496 Likewise.
5497 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5498 Likewise.
5499 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5500 Likewise.
5501 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5502 Likewise.
5503 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5504 Likewise.
5505 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5506 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5507 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5508 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5509 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5510 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5511 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5512 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5513 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5514 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5515 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5516 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5517 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5518 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5519 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5520 Likewise.
5521 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5522 Likewise.
5523 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5524 Likewise.
5525 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5526 Likewise.
5527 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5528 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5529 Likewise.
5530 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5531 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5532 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5533 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5534 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5535 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5536 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5537 Likewise.
5538 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5539 Likewise.
5540 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5541 Likewise.
5542 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5543 Likewise.
5544 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5545 Likewise.
5546 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5547 Likewise.
5548 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5549 Likewise.
5550 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5551 Likewise.
5552 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5553 Likewise.
5554 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5555 Likewise.
5556 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5557 Likewise.
5558 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5559 Likewise.
5560 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5561 Likewise.
5562 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5563 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5564 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5565 Likewise.
5566 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5567 Likewise.
5568 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5569 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5570 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5571
5572 2021-05-21 Julian Brown <julian@codesourcery.com>
5573 Chung-Lin Tang <cltang@codesourcery.com>
5574 Thomas Schwinge <thomas@codesourcery.com>
5575
5576 PR middle-end/90115
5577 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5578 test.
5579 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5580 Likewise.
5581 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5582 Likewise.
5583
5584 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5585
5586 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5587 for nvptx offloading.
5588
5589 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
5590
5591 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5592
5593 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
5594
5595 PR target/83812
5596 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5597
5598 2021-05-19 Julian Brown <julian@codesourcery.com>
5599
5600 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5601
5602 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5603
5604 * testsuite/lib/libgomp.exp
5605 (check_effective_target_offload_target_nvptx): Don't shadow global
5606 'offload_targets' variable.
5607
5608 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5609
5610 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5611 '-latomic' to nvptx offloading compilation.
5612 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5613
5614 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5615
5616 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5617 offloading compilation.
5618
5619 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
5620
5621 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5622 if new tasks generated.
5623 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5624
5625 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
5626
5627 * testsuite/libgomp.fortran/parallel-master.f90: New test.
5628
5629 2021-05-13 Martin Liska <mliska@suse.cz>
5630
5631 PR testsuite/100569
5632 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5633 * testsuite/libgomp.c/pr46032-2.c: Likewise.
5634 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5635 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5636
5637 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
5638
5639 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5640 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5641
5642 2021-05-11 Jakub Jelinek <jakub@redhat.com>
5643
5644 PR middle-end/100471
5645 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5646 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5647 reduction pointer.
5648 * testsuite/libgomp.c/task-reduction-4.c: New test.
5649
5650 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
5651 Tom de Vries <tdevries@suse.de>
5652
5653 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5654 complex/floating-point || + && reduction with 'omp target'.
5655 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5656
5657 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5658
5659 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5660 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5661 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5662 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5663
5664 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5665
5666 PR testsuite/100397
5667 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5668 declaration to scope of non-'depend'-guarded assignment to avoid races.
5669
5670 2021-05-03 Tom de Vries <tdevries@suse.de>
5671
5672 PR target/100321
5673 * testsuite/libgomp.c/target-44.c: New test.
5674
5675 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
5676
5677 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5678
5679 2021-04-29 Tom de Vries <tdevries@suse.de>
5680
5681 * testsuite/libgomp.c/pr81778.c: New test.
5682
5683 2021-04-29 Tom de Vries <tdevries@suse.de>
5684
5685 PR target/100232
5686 * testsuite/libgomp.c/target-43.c: New file.
5687
5688 2021-04-28 Jakub Jelinek <jakub@redhat.com>
5689 Tobias Burnus <tobias@codesourcery.com>
5690
5691 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5692 * target.c (gomp_load_plugin_for_device): If set and if a plugin
5693 can't be dlopened, silently assume it has no devices.
5694 * Makefile.in: Regenerate.
5695 * config.h.in: Regenerate.
5696 * configure: Regenerate.
5697
5698 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5699
5700 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5701 Use [Ww]arning in dg-bogus as FE diagnostic and default
5702 diagnostic differ and the result depends on ENABLE_OFFLOAD.
5703 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5704 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5705 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5706
5707 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5708
5709 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5710 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5711 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5712 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5713 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5714
5715 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5716 Nathan Sidwell <nathan@codesourcery.com>
5717 Tom de Vries <vries@codesourcery.com>
5718 Julian Brown <julian@codesourcery.com>
5719 Kwok Cheung Yeung <kcy@codesourcery.com>
5720
5721 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5722 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5723 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5724 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5725 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5726 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5727 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5728 Likewise.
5729 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5730 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5731 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5732 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5733 Likewise.
5734 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5735 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5736 Likewise.
5737 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5738 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5739 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5740 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5741 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5742 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5743 Likewise.
5744 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5745 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5746 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5747 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5748 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5749 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5750 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5751 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5752 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5753 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5754 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5755
5756 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5757
5758 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5759 compile with '-w'.
5760 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5761 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5762 Likewise.
5763 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5764 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5765 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5766 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5767 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5768 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5769 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5770
5771 2021-04-22 Richard Biener <rguenther@suse.de>
5772
5773 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5774 only on nvptx-none.
5775
5776 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5777
5778 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5779 omp_depend_kind instead of defining it as 16.
5780
5781 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5782
5783 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5784 New, based on check_effective_target_offload_target_nvptx.
5785 (check_effective_target_offload_target_nvptx): Call it.
5786 (check_effective_target_offload_target_amdgcn): New.
5787 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5788 Require target offload_target_nvptx || offload_target_amdgcn.
5789 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5790 * testsuite/libgomp.c/pr86416-1.c: Likewise.
5791 * testsuite/libgomp.c/pr86416-2.c: Likewise.
5792
5793 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5794
5795 * testsuite/libgomp.fortran/depobj-1.f90: New test.
5796
5797 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
5798
5799 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5800 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5801 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5802 Likewise.
5803 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5804 Likewise.
5805 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5806
5807 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
5808
5809 PR target/99555
5810 * testsuite/lib/libgomp.exp
5811 (check_effective_target_offload_device_nvptx): New.
5812 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5813 resolved, make sure that we exit quickly, with error status,
5814 XFAILed.
5815 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5816 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5817
5818 2021-04-14 Jakub Jelinek <jakub@redhat.com>
5819
5820 PR testsuite/100071
5821 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5822 cp = omp_alloc with cp, p arguments instead of cq, q and call
5823 c_f_pointer after last cq = omp_alloc with cq, q.
5824
5825 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
5826
5827 PR middle-end/98088
5828 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5829 for loop with GT/GE condition.
5830 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5831
5832 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
5833
5834 PR middle-end/84991
5835 PR middle-end/84992
5836 PR middle-end/90779
5837 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5838
5839 2021-04-09 Jakub Jelinek <jakub@redhat.com>
5840
5841 PR libgomp/99984
5842 * team.c (gomp_thread_start): Call pthread_setspecific for
5843 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5844 has been initialized to avoid false positive warning.
5845
5846 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
5847
5848 PR target/99555
5849 * testsuite/lib/on_device_arch.c: Move to ...
5850 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5851 * testsuite/libgomp.fortran/on_device_arch.c: New file;
5852 #include on_device_arch.h.
5853 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5854 on_device_arch.h instead of using dg-additional-source.
5855 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5856 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5857 on_device_arch.c without relative paths.
5858
5859 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5860
5861 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5862 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5863 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5864 * config.h.in: Regenerate.
5865 * configure: Likewise.
5866
5867 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5868
5869 PR target/99555
5870 * testsuite/lib/on_device_arch.c: New file.
5871 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5872 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5873 skip for nvptx offloading, with error status.
5874 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5875
5876 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5877
5878 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5879 OpenACC 'serial' construct diagnostic for nvptx offloading.
5880
5881 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
5882
5883 PR c++/99509
5884 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5885
5886 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
5887
5888 PR fortran/98858
5889 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5890
5891 2021-03-04 Jakub Jelinek <jakub@redhat.com>
5892
5893 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5894 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5895 checking of -m32 or -mx32 options on the command line.
5896 * config.h.in: Regenerated.
5897 * configure: Regenerated.
5898
5899 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
5900
5901 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5902 support from the target.
5903
5904 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5905 Jakub Jelinek <jakub@redhat.com>
5906
5907 PR libgomp/98738
5908 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5909 (struct gomp_task): Replace detach and completion_sem fields with
5910 union containing completion_sem and detach_team. Add deferred_p
5911 field.
5912 (struct gomp_team): Remove task_detach_queue.
5913 * task.c: Include assert.h.
5914 (gomp_init_task): Initialize deferred_p and completion_sem fields.
5915 Rearrange initialization order of fields.
5916 (task_fulfilled_p): Delete.
5917 (GOMP_task): Use address of task as the event handle. Remove
5918 initialization of detach field. Initialize deferred_p field.
5919 Use automatic local for completion_sem. Initialize detach_team field
5920 for deferred tasks.
5921 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5922 Set kind of suspended detach task to GOMP_TASK_DETACHED and
5923 decrement task_running_count. Move finish_cancelled block out of
5924 else branch. Relocate call to gomp_team_barrier_done.
5925 (GOMP_taskwait): Handle tasks with completion events that have not
5926 been fulfilled.
5927 (GOMP_taskgroup_end): Likewise.
5928 (omp_fulfill_event): Use address of task as event handle. Post to
5929 completion_sem for undeferred tasks. Clear detach_team if task
5930 has not finished. For finished tasks, handle post-execution tasks,
5931 call gomp_team_barrier_wake if necessary, and free task.
5932 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5933 (free_team): Remove free of task_detach_queue.
5934 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5935 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5936 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5937 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5938 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5939 Change data-sharing of detach events on enclosing parallel to private.
5940 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
5941 taskwait directive.
5942 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5943 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5944 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5945 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5946 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5947 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5948 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5949 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5950 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5951 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5952 Change data-sharing of detach events on enclosing parallel to private.
5953 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
5954 taskwait directive.
5955 * testsuite/libgomp.fortran/task-detach-7.f90: New.
5956 * testsuite/libgomp.fortran/task-detach-8.f90: New.
5957 * testsuite/libgomp.fortran/task-detach-9.f90: New.
5958 * testsuite/libgomp.fortran/task-detach-10.f90: New.
5959 * testsuite/libgomp.fortran/task-detach-11.f90: New.
5960
5961 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
5962
5963 PR fortran/99171
5964 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5965
5966 2021-02-17 Julian Brown <julian@codesourcery.com>
5967
5968 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5969 expected errors.
5970
5971 2021-02-17 Julian Brown <julian@codesourcery.com>
5972
5973 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5974 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5975
5976 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5977
5978 * config/linux/x86/futex.h (__futex_wait):
5979 Revert output type back to long.
5980 (__futex_wake): Ditto.
5981 (futex_wait): Update for revert.
5982 (futex_wake): Ditto.
5983
5984 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5985
5986 * config/linux/x86/futex.h (__futex_wait): New static inline
5987 wrapper function. Correct output type to int and
5988 timeout type to void *.
5989 (__futex_wake): New static inline wrapper function.
5990 Correct output type to int.
5991 (futex_wait): Use __futex_wait.
5992 (futex_wake): Use __futex_wake.
5993
5994 2021-02-10 Julian Brown <julian@codesourcery.com>
5995
5996 PR fortran/98979
5997 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5998 errors.
5999
6000 2021-02-04 Julian Brown <julian@codesourcery.com>
6001
6002 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6003
6004 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
6005
6006 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6007 EF_AMDGPU_MACH_AMDGCN_GFX908.
6008 (gcn_gfx908_s): New constant string.
6009 (isa_hsa_name): Add gfx908.
6010 (isa_code): Add gfx908.
6011
6012 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6013
6014 * libgomp.texi (omp_fulfill_event): New entry.
6015
6016 2021-01-20 Jakub Jelinek <jakub@redhat.com>
6017
6018 * task.c (GOMP_task): Rename priority argument to priority_arg,
6019 add priority automatic variable and modify that variable. Instead of
6020 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6021 check flags for that bit.
6022
6023 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
6024
6025 PR fortran/98476
6026 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6027
6028 2021-01-18 Andreas Schwab <schwab@suse.de>
6029
6030 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6031
6032 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6033
6034 * config/rtems/sem.h (gomp_sem_getcount): New function.
6035
6036 2021-01-18 Jakub Jelinek <jakub@redhat.com>
6037
6038 * config/linux/sem.h (gomp_sem_getcount): New function.
6039 * config/posix/sem.h (gomp_sem_getcount): New function.
6040 * config/posix/sem.c (gomp_sem_getcount): New function.
6041 * config/accel/sem.h (gomp_sem_getcount): New function.
6042 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6043 (omp_fulfill_event): Likewise.
6044
6045 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
6046
6047 * fortran.c (omp_fulfill_event_): New.
6048 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6049 (struct gomp_team): Add task_detach_queue and task_detach_count
6050 fields.
6051 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6052 * libgomp_g.h (GOMP_task): Add extra argument.
6053 * omp.h.in (enum omp_event_handle_t): New.
6054 (omp_fulfill_event): New.
6055 * omp_lib.f90.in (omp_event_handle_kind): New.
6056 (omp_fulfill_event): New.
6057 * omp_lib.h.in (omp_event_handle_kind): New.
6058 (omp_fulfill_event): Declare.
6059 * priority_queue.c (priority_tree_find): New.
6060 (priority_list_find): New.
6061 (priority_queue_find): New.
6062 * priority_queue.h (priority_queue_predicate): New.
6063 (priority_queue_find): New.
6064 * task.c (gomp_init_task): Initialize detach field.
6065 (task_fulfilled_p): New.
6066 (GOMP_task): Add detach argument. Ignore detach argument if
6067 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
6068 field. Copy address of completion_sem into detach argument and
6069 into the start of the data record. Wait for detach event if task
6070 not deferred.
6071 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6072 Remove completed tasks and requeue dependent tasks.
6073 (omp_fulfill_event): New.
6074 * team.c (gomp_new_team): Initialize task_detach_queue and
6075 task_detach_count fields.
6076 (free_team): Free task_detach_queue field.
6077 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6078 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6079 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6080 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6081 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6082 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6083 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6084 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6085 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6086 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6087 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6088 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6089
6090 2021-01-15 Jakub Jelinek <jakub@redhat.com>
6091
6092 PR target/70454
6093 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6094 be added through preprocessor check on
6095 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6096
6097 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
6098
6099 PR libgomp/65099
6100 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6101 configurations.
6102 * configure: Regenerate.
6103 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6104 check.
6105
6106 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6107
6108 * configure: Re-generate.
6109
6110 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6111
6112 * configure: Re-generate.
6113
6114 2021-01-05 Julian Brown <julian@codesourcery.com>
6115
6116 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6117 (struct ptx_device): Add omp_stacks struct.
6118 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6119 (nvptx_close_device): Free cached stacks block and mutex.
6120 (nvptx_stacks_free): New function.
6121 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6122 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6123 (nvptx_stacks_alloc): Rename to...
6124 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6125 size or smaller is required.
6126 (nvptx_stacks_free): Remove.
6127 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6128 during kernel execution.
6129
6130 2021-01-01 Jakub Jelinek <jakub@redhat.com>
6131
6132 * libgomp.texi: Bump @copying's copyright year.
6133
6134 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6135
6136 * libgomp.texi (Top): Avoid bad "up" link.
6137
6138 2020-12-18 Jakub Jelinek <jakub@redhat.com>
6139
6140 * testsuite/libgomp.c/task-6.c: New test.
6141
6142 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
6143
6144 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6145 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6146
6147 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
6148
6149 * testsuite/libgomp.fortran/scan-1.f90: New test.
6150
6151 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6152
6153 PR target/97865
6154 * configure: Regenerate.
6155
6156 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
6157
6158 * configure: Regenerate.
6159
6160 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6161
6162 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6163 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6164
6165 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
6166
6167 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6168 expected results.
6169
6170 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
6171
6172 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6173 (reserved): Delete unused define.
6174
6175 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6176
6177 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6178 Tcl 8.5-specific behavior.
6179 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6180
6181 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6182
6183 * env.c (gomp_global_icv): Remove nest_var field. Add
6184 max_active_levels_var field.
6185 (gomp_max_active_levels_var): Remove.
6186 (parse_boolean): Return true on success.
6187 (handle_omp_display_env): Express OMP_NESTED in terms of
6188 max_active_levels_var. Change format specifier for
6189 max_active_levels_var.
6190 (initialize_env): Set max_active_levels_var from
6191 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6192 OMP_PROC_BIND.
6193 * icv.c (omp_set_nested): Express in terms of
6194 max_active_levels_var.
6195 (omp_get_nested): Likewise.
6196 (omp_set_max_active_levels): Use max_active_levels_var field instead
6197 of gomp_max_active_levels_var.
6198 (omp_get_max_active_levels): Likewise.
6199 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6200 max_active_levels_var field.
6201 (gomp_supported_active_levels): Set to UCHAR_MAX.
6202 (gomp_max_active_levels_var): Delete.
6203 * libgomp.texi (omp_get_nested): Update documentation.
6204 (omp_set_nested): Likewise.
6205 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6206 (OMP_NESTED): Likewise.
6207 (OMP_NUM_THREADS): Likewise.
6208 (OMP_PROC_BIND): Likewise.
6209 * parallel.c (gomp_resolve_num_threads): Replace reference
6210 to nest_var with max_active_levels_var. Use max_active_levels_var
6211 field instead of gomp_max_active_levels_var.
6212
6213 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
6214
6215 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6216 nvptx_usleep; use also for device={arch(gcn)}.
6217
6218 2020-11-14 Jakub Jelinek <jakub@redhat.com>
6219
6220 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6221 (foo): Add tests for non-VLA private and firstprivate clauses on
6222 omp task.
6223 (bar): Likewise. Remove taking of address from private/firstprivate
6224 variables.
6225 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6226 (foo): Add p, q, px and s arguments. Add tests for array reductions
6227 and for non-VLA private and firstprivate clauses on omp task.
6228 (bar): Removed.
6229 (main): Adjust foo caller. Don't call bar.
6230
6231 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6232 Thomas Schwinge <thomas@codesourcery.com>
6233
6234 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6235 New.
6236 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6237 Likewise.
6238 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6239 Likewise.
6240 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6241 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6242
6243 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6244 Thomas Schwinge <thomas@codesourcery.com>
6245
6246 PR fortran/94358
6247 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6248
6249 2020-11-13 Jakub Jelinek <jakub@redhat.com>
6250
6251 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6252 for array reductions.
6253 (main): Adjust foo callers.
6254
6255 2020-11-12 Jakub Jelinek <jakub@redhat.com>
6256
6257 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6258 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6259 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6260 * allocator.c (omp_aligned_alloc): New for now static function,
6261 add alignment argument and handle it.
6262 (omp_alloc): Reimplement using omp_aligned_alloc.
6263 (GOMP_alloc, GOMP_free): New functions.
6264 (omp_free): Add ialias.
6265 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6266 * testsuite/libgomp.c++/allocate-1.C: New test.
6267
6268 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6269
6270 PR fortran/97782
6271 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6272
6273 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6274
6275 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6276 usable.
6277 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6278 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6279 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6280 (goacc_enter_data_internal): Likewise.
6281 * target.c (gomp_map_vars_internal):
6282 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6283 of gomp_attach_pointer for OpenMP cases.
6284 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6285 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6286 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6287
6288 2020-11-05 Ulrich Drepper <drepper@redhat.com>
6289 Kwok Cheung Yeung <kcy@codesourcery.com>
6290
6291 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6292 * Makefile.in: Regenerate.
6293 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6294 pragmas to ignore -Wdeprecated-declarations warnings.
6295 * icv.c: Likewise.
6296 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6297 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6298 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6299 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6300 deprecated.
6301 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6302 to test options.
6303 * testsuite/libgomp.c/affinity-1.c: Likewise.
6304 * testsuite/libgomp.c/affinity-2.c: Likewise.
6305 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6306 * testsuite/libgomp.c/lib-1.c: Likewise.
6307 * testsuite/libgomp.c/nested-1.c: Likewise.
6308 * testsuite/libgomp.c/nested-2.c: Likewise.
6309 * testsuite/libgomp.c/nested-3.c: Likewise.
6310 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6311 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6312 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6313 * testsuite/libgomp.c/pr35549.c: Likewise.
6314 * testsuite/libgomp.c/pr42942.c: Likewise.
6315 * testsuite/libgomp.c/pr61200.c: Likewise.
6316 * testsuite/libgomp.c/sort-1.c: Likewise.
6317 * testsuite/libgomp.c/target-5.c: Likewise.
6318 * testsuite/libgomp.c/target-6.c: Likewise.
6319 * testsuite/libgomp.c/teams-1.c: Likewise.
6320 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6321 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6322 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6323 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6324 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6325 * testsuite/libgomp.fortran/lib2.f: Likewise.
6326 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6327 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6328
6329 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6330
6331 PR target/85486
6332 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6333 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6334 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6335
6336 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6337
6338 PR testsuite/80219
6339 PR testsuite/85303
6340 * testsuite/lib/libgomp.exp (libgomp_init): Set
6341 'gcc_warning_prefix', 'gcc_error_prefix'.
6342
6343 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6344
6345 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6346 even in field_tgt_clear initializer.
6347
6348 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6349
6350 * testsuite/libgomp.c/target-42.c: New test.
6351
6352 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6353 Tom de Vries <tdevries@suse.de>
6354
6355 PR testsuite/81690
6356 * testsuite/libgomp.c/usleep.h: New file.
6357 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6358 (main): Use tgt_usleep instead of usleep.
6359 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6360 (main): Use tgt_usleep instead of usleep.
6361
6362 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6363
6364 PR lto/96680
6365 * testsuite/libgomp.c/declare-variant-1.c: New test.
6366
6367 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6368
6369 * testsuite/libgomp.c/target-41.c: New test.
6370
6371 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6372
6373 * icv.c (omp_get_initial_device): Remove including corresponding
6374 ialias.
6375 * icv-device.c (omp_get_initial_device): New function. Return
6376 gomp_get_num_devices (). Add ialias.
6377 * target.c (resolve_device): Don't fail with
6378 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6379 gomp_get_num_devices ().
6380 (omp_target_alloc, omp_target_free, omp_target_is_present,
6381 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6382 omp_target_disassociate_ptr, omp_pause_resource): Use
6383 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6384 first use in the functions, in uses dominated by the
6385 gomp_get_num_devices call use num_devices_openmp instead.
6386 * libgomp.texi (omp_get_initial_device): Document.
6387 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6388 Add ialias.
6389 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6390 * testsuite/libgomp.c/target-40.c: New test.
6391
6392 2020-10-21 Jakub Jelinek <jakub@redhat.com>
6393
6394 * env.c (parse_target_offload): Change new_offload var type to int,
6395 preinitialize to -1, remove found var and test new_offload != -1
6396 instead of found.
6397
6398 2020-10-20 Jakub Jelinek <jakub@redhat.com>
6399
6400 * target.c (gomp_target_init): Inside of the function, use automatic
6401 variables corresponding to num_devices, num_devices_openmp and devices
6402 global variables and update the globals only at the end of the
6403 function.
6404
6405 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6406
6407 * env.c (gomp_target_offload_var): New.
6408 (parse_target_offload): New.
6409 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6410 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6411 * libgomp.h (gomp_target_offload_t): New.
6412 (gomp_target_offload_var): New.
6413 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6414 * target.c (resolve_device): Generate error if device not found and
6415 offloading is mandatory.
6416 (gomp_target_fallback): Generate error if offloading is mandatory.
6417 (GOMP_target): Add argument in call to gomp_target_fallback.
6418 (GOMP_target_ext): Likewise.
6419 (gomp_target_data_fallback): Generate error if offloading is mandatory.
6420 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6421 (GOMP_target_data_ext): Likewise.
6422 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6423 (gomp_target_init): Return early if offloading is disabled.
6424
6425 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
6426
6427 * libgomp.texi (omp_get_max_active_levels): Modify description.
6428 (omp_get_supported_active_levels): Make descriptions consistent.
6429
6430 2020-10-14 Jakub Jelinek <jakub@redhat.com>
6431
6432 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6433
6434 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6435
6436 * env.c (gomp_max_active_levels_var): Initialize to
6437 gomp_supported_active_levels.
6438 (initialize_env): Limit gomp_max_active_levels_var to be at most
6439 equal to gomp_supported_active_levels.
6440 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6441 (omp_get_supported_active_levels_): New.
6442 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6443 to at most equal to gomp_supported_active_levels.
6444 (omp_get_supported_active_levels): New.
6445 * libgomp.h (gomp_supported_active_levels): New.
6446 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6447 omp_get_supported_active_levels_.
6448 * libgomp.texi (omp_get_supported_active_levels): New.
6449 (omp_set_max_active_levels): Update. Add reference to
6450 omp_get_supported_active_levels.
6451 * omp.h.in (omp_get_supported_active_levels): New.
6452 * omp_lib.f90.in (omp_get_supported_active_levels): New.
6453 * omp_lib.h.in (omp_get_supported_active_levels): New.
6454 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6455 against omp_get_supported_active_levels.
6456 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6457
6458 2020-10-11 Clement Chigot <clement.chigot@atos.net>
6459
6460 * config/t-aix: Delete and recreate libgomp before creating
6461 FAT library.
6462
6463 2020-10-08 Tom de Vries <tdevries@suse.de>
6464
6465 PR libgomp/81802
6466 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6467 dimensions.
6468
6469 2020-10-06 Tom de Vries <tdevries@suse.de>
6470
6471 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6472
6473 2020-10-06 Tom de Vries <tdevries@suse.de>
6474
6475 PR middle-end/90861
6476 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6477
6478 2020-10-05 Tom de Vries <tdevries@suse.de>
6479
6480 PR fortran/95654
6481 * testsuite/libgomp.fortran/pr95654.f90: New test.
6482
6483 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
6484
6485 * Makefile.in: Regenerate with automake 1.15.1.
6486 * aclocal.m4: Likewise.
6487 * configure: Likewise.
6488 * testsuite/Makefile.in: Likewise.
6489
6490 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
6491
6492 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6493 and amdgcn targets.
6494
6495 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6496
6497 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6498
6499 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
6500
6501 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6502 total number of threads is one.
6503 (gomp_team_barrier_wake): Likewise.
6504 (gomp_team_barrier_wait_end): Likewise.
6505 (gomp_team_barrier_wait_cancel_end): Likewise.
6506 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6507 (gomp_team_barrier_wake): Likewise.
6508 (gomp_team_barrier_wait_end): Likewise.
6509 (gomp_team_barrier_wait_cancel_end): Likewise.
6510 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6511
6512 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6513
6514 PR middle-end/96390
6515 * testsuite/libgomp.c++/pr96390.C: New test.
6516 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6517
6518 2020-09-27 Clement Chigot <clement.chigot@atos.net>
6519
6520 * config/t-aix: Use $(AR) without -X32_64.
6521
6522 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6523
6524 * testsuite/libgomp.c/loop-25.c: New test.
6525
6526 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
6527
6528 PR fortran/95654
6529 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6530
6531 2020-09-22 Tom de Vries <tdevries@suse.de>
6532
6533 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6534 fails.
6535
6536 2020-09-16 Nathan Sidwell <nathan@acm.org>
6537
6538 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6539
6540 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6541
6542 PR fortran/96668
6543 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6544
6545 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6546
6547 PR fortran/96668
6548 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6549 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6550 (gomp_map_vars_existing): Update call to it.
6551 (gomp_map_fields_existing): Likewise
6552 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6553 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6554 remapped.
6555 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6556 GOMP_MAP_POINTER.
6557 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6558 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6559
6560 2020-09-14 Tom de Vries <tdevries@suse.de>
6561
6562 * config/nvptx/atomic.c: New file. Add
6563 __sync_val_compare_and_swap_16.
6564 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6565 target offload_target_nvptx.
6566
6567 2020-09-08 Julian Brown <julian@codesourcery.com>
6568
6569 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6570 iteration-ordering assumptions.
6571
6572 2020-09-08 Julian Brown <julian@codesourcery.com>
6573
6574 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6575 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6576
6577 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
6578
6579 * plugin/plugin-nvptx.c (nvptx_free):
6580 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6581 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6582 comments.
6583
6584 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
6585
6586 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6587
6588 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6589
6590 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6591
6592 2020-08-13 Jakub Jelinek <jakub@redhat.com>
6593
6594 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6595 * testsuite/libgomp.c/loop-23.c (main): Likewise.
6596 * testsuite/libgomp.c/loop-24.c: New test.
6597
6598 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6599 Tobias Burnus <tobias@codesourcery.com>
6600
6601 PR fortran/93553
6602 * testsuite/libgomp.fortran/pr93553.f90: New test.
6603
6604 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6605
6606 * testsuite/libgomp.c/loop-22.c: New test.
6607 * testsuite/libgomp.c/loop-23.c: New test.
6608
6609 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6610
6611 PR middle-end/96459
6612 * testsuite/libgomp.c/teams-3.c: New test.
6613 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6614 if not defined yet.
6615 (N(test)): Use it before all N(f*) calls.
6616 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6617 (main): Don't call all test_* functions from within
6618 #pragma omp teams reduction(|:err), call them directly.
6619
6620 2020-08-04 Tom de Vries <tdevries@suse.de>
6621
6622 PR target/96428
6623 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6624 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6625
6626 2020-08-03 Julian Brown <julian@codesourcery.com>
6627 Thomas Schwinge <thomas@codesourcery.com>
6628
6629 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6630 shared-memory devices. Extend with further checking.
6631
6632 2020-08-03 Martin Jambor <mjambor@suse.cz>
6633
6634 * plugin/Makefrag.am: Remove configuration of HSA plugin.
6635 * aclocal.m4: Regenerated.
6636 * Makefile.in: Regenerated.
6637 * config.h.in: Regenerated.
6638 * configure: Regenerated.
6639 * plugin/configfrag.ac: Likewise.
6640 * plugin/hsa_ext_finalize.h: Removed.
6641 * plugin/plugin-hsa.c: Likewise.
6642 * testsuite/Makefile.in: Regenerated.
6643 * testsuite/lib/libgomp.exp
6644 (offload_target_to_openacc_device_type): Remove hsa case.
6645 (check_effective_target_hsa_offloading_selected_nocache): Removed
6646 (check_effective_target_hsa_offloading_selected): Likewise.
6647 (libgomp_init): Do not add -Wno-hsa to additional_flags.
6648 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6649 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6650 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6651 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6652 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6653 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6654 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6655 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6656 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6657 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6658 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6659 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6660 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6661 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6662 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6663 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6664 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6665 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6666 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6667 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6668 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6669 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6670 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6671 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6672
6673 2020-07-27 Julian Brown <julian@codesourcery.com>
6674 Thomas Schwinge <thomas@codesourcery.com>
6675
6676 * libgomp.h (struct target_var_desc): Rename do_detach field to
6677 is_attach.
6678 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
6679 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6680 (goacc_enter_data_internal): Don't affect reference counts
6681 for attach mappings.
6682 (goacc_exit_data_internal): Don't affect reference counts for detach
6683 mappings.
6684 * target.c (gomp_map_vars_existing): Don't affect reference counts for
6685 attach mappings.
6686 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6687 mark attach mappings.
6688 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6689 reference count for attach mappings.
6690 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6691 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6692 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6693 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6694 test as shouldfail.
6695 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6696 gracefully in no-finalize mode.
6697 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6698
6699 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
6700
6701 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6702 use.
6703 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6704 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6705
6706 2020-07-23 Julian Brown <julian@codesourcery.com>
6707 Thomas Schwinge <thomas@codesourcery.com>
6708
6709 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6710 finalization for detach operation.
6711 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6712 New test.
6713
6714 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
6715
6716 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6717 * libgomp_f.h.in (omp_check_defines): Check whether
6718 sizeof of determined Fortran kind and C typedef match.
6719 * omp_lib.f90.in: Add omp_depened_kind.
6720 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6721 * configure: Regenerate.
6722 * Makefile.in: Regenerate.
6723 * testsuite/Makefile.in: Regenerate.
6724
6725 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6726
6727 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6728 gcc/testsuite/c-c++-common/gomp/.
6729 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6730 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6731 from gcc/testsuite/gfortran.dg/gomp/.
6732 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6733
6734 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6735
6736 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6737 * omp_lib.h.in: Likewise.
6738
6739 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
6740
6741 PR target/95620
6742 * testsuite/libgomp.c/pr95620.c: New test.
6743
6744 2020-07-16 Julian Brown <julian@codesourcery.com>
6745 Thomas Schwinge <thomas@codesourcery.com>
6746
6747 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6748 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6749
6750 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6751
6752 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6753 avoid conversion on 32bit systems from 32bit to 64bit due
6754 to -fdefault-integer-8.
6755
6756 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6757
6758 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6759 variables; add character(kind=4) tests; update TODO comment.
6760
6761 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6762
6763 * allocator.c: Add ialias for omp_init_allocator and
6764 omp_destroy_allocator.
6765 * configure.ac: Set INTPTR_T_KIND.
6766 * configure: Regenerate.
6767 * Makefile.in: Regenerate.
6768 * testsuite/Makefile.in: Regenerate.
6769 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6770 omp_set_default_allocator_, omp_get_default_allocator_): New
6771 functions and ialias_redirect.
6772 * icv.c: Add ialias for omp_set_default_allocator and
6773 omp_get_default_allocator.
6774 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6775 omp_destroy_allocator_, omp_set_default_allocator_ and
6776 omp_get_default_allocator_.
6777 * omp_lib.f90.in: Add allocator traits parameters, declare
6778 allocator routines and add related kind parameters.
6779 * omp_lib.h.in: Likewise.
6780 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6781 * testsuite/libgomp.fortran/alloc-1.F90: New test.
6782 * testsuite/libgomp.fortran/alloc-2.F90: New test.
6783 * testsuite/libgomp.fortran/alloc-3.F: New test.
6784 * testsuite/libgomp.fortran/alloc-4.f90: New test.
6785 * testsuite/libgomp.fortran/alloc-5.f90: New test.
6786
6787 2020-07-14 Tom de Vries <tom@codesourcery.com>
6788 Cesar Philippidis <cesar@codesourcery.com>
6789 Thomas Schwinge <thomas@codesourcery.com>
6790 Kwok Cheung Yeung <kcy@codesourcery.com>
6791
6792 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6793 New variable.
6794 (acc_init_1): Set acc_init_thread to pthread_self (). Set
6795 acc_init_state to initializing at the start, and to initialized at the
6796 end.
6797 (self_initializing_p): New function.
6798 (acc_get_device_type): Return acc_device_none if called by thread that
6799 is currently executing acc_init_1.
6800 * libgomp.texi (acc_get_device_type): Update documentation.
6801 (Implementation Status and Implementation-Defined Behavior): Likewise.
6802 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6803
6804 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
6805
6806 * config/t-aix: Set BITS from compiler cpp macro.
6807
6808 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6809
6810 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6811
6812 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6813
6814 PR fortran/67311
6815 * testsuite/libgomp.fortran/target-map-1.f90: New test.
6816
6817 2020-07-14 Jakub Jelinek <jakub@redhat.com>
6818
6819 * testsuite/libgomp.c/loop-21.c: New test.
6820
6821 2020-07-13 Julian Brown <julian@codesourcery.com>
6822 Thomas Schwinge <thomas@codesourcery.com>
6823
6824 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6825
6826 2020-07-10 Julian Brown <julian@codesourcery.com>
6827 Thomas Schwinge <thomas@codesourcery.com>
6828
6829 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6830 dynamic_refcount.
6831 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6832 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6833 dynamic_refcount.
6834 (acc_unmap_data): Update comment.
6835 (goacc_map_var_existing, goacc_enter_datum): Adjust for
6836 dynamic_refcount semantics.
6837 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6838 Adjust for dynamic_refcount semantics.
6839 (goacc_enter_data_internal): Implement "present" case of dynamic
6840 memory-map handling here. Update "non-present" case for
6841 dynamic_refcount semantics.
6842 (goacc_exit_data_internal): Use goacc_exit_datum_1.
6843 * target.c (gomp_map_vars_internal): Remove
6844 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
6845 handling.
6846 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6847 (gomp_load_image_to_device): Substitute dynamic_refcount for
6848 virtual_refcount.
6849 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6850 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6851 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6852 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6853 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6854 trace output.
6855 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6856 trace output.
6857 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6858 test.
6859 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6860 Remove stale comment.
6861 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6862 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6863 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6864 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6865 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6866 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6867
6868 2020-07-10 Julian Brown <julian@codesourcery.com>
6869 Thomas Schwinge <thomas@codesourcery.com>
6870
6871 * oacc-mem.c (goacc_map_var_existing): New function.
6872 (goacc_enter_datum): Use above function.
6873 (goacc_exit_datum_1): New function.
6874 (goacc_exit_datum): Use above function.
6875
6876 2020-07-09 Julian Brown <julian@codesourcery.com>
6877 Thomas Schwinge <thomas@codesourcery.com>
6878
6879 PR middle-end/95270
6880 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6881 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6882
6883 2020-07-09 Julian Brown <julian@codesourcery.com>
6884
6885 * oacc-mem.c (find_group_last): Group data-movement clauses
6886 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6887 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
6888
6889 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6890
6891 * testsuite/libgomp.c/loop-19.c: New test.
6892 * testsuite/libgomp.c/loop-20.c: New test.
6893
6894 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6895
6896 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6897 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
6898 it. Remove __omp_alloctrait_value_max__.
6899 * allocator.c (omp_init_allocator): Handle omp_atv_default for
6900 omp_atk_alignment and omp_atk_pool_size.
6901
6902 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6903
6904 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6905 behavior for 'GOMP_MAP_FORCE_FROM'.
6906 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6907
6908 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6909
6910 * oacc-mem.c (goacc_exit_data_internal): Remove
6911 'GOMP_MAP_ALWAYS_FROM' handling.
6912
6913 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6914
6915 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6916 'scan-assembler' with 'scan-offload-rtl'.
6917 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6918 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6919 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6920 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6921
6922 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6923
6924 * target.c (gomp_map_vars_existing): Assert 'kind !=
6925 GOMP_MAP_ATTACH'.
6926 (gomp_map_vars_internal): Clean up.
6927
6928 2020-06-27 Jakub Jelinek <jakub@redhat.com>
6929
6930 * testsuite/libgomp.c/loop-17.c: New test.
6931 * testsuite/libgomp.c/loop-18.c: New test.
6932
6933 2020-06-26 Marek Polacek <polacek@redhat.com>
6934
6935 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6936
6937 2020-06-23 Alexandre Oliva <oliva@adacore.com>
6938
6939 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6940 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6941
6942 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
6943
6944 * Makefile.am: Use -include.
6945 * Makefile.in: Regenerate.
6946
6947 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
6948
6949 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6950 * Makefile.in: Regenerate
6951 * configure.ac (tmake_file): Substitute.
6952 * configure: Regenerate.
6953 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6954 * config/t-aix: New file.
6955
6956 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
6957
6958 PR lto/94848
6959 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6960 'dg-do run'.
6961
6962 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
6963
6964 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6965 variant for HSA_RUNTIME_LIB name.
6966 (find_executable_symbol_1): Delete.
6967 (find_executable_symbol): Delete.
6968 (init_kernel_properties): Add ".kd" suffix to symbol names.
6969 (find_load_offset): Delete.
6970 (create_and_finalize_hsa_program): Remove relocation handling.
6971
6972 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
6973
6974 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6975
6976 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
6977
6978 PR lto/94848
6979 PR middle-end/95551
6980 * testsuite/libgomp.fortran/target-var.f90: New test.
6981
6982 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6983 Julian Brown <julian@codesourcery.com>
6984
6985 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6986 special handling.
6987
6988 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6989 Julian Brown <julian@codesourcery.com>
6990
6991 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6992 Simplify.
6993
6994 2020-06-05 Julian Brown <julian@codesourcery.com>
6995
6996 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6997 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6998
6999 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7000
7001 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7002 Evaluate 'copyfrom' individually for each entry.
7003 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7004
7005 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7006
7007 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7008 Evaluate 'finalize' individually for each entry.
7009 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7010 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7011 file.
7012
7013 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7014
7015 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7016 usage.
7017 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7018
7019 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7020 Julian Brown <julian@codesourcery.com>
7021
7022 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7023 checking.
7024 (acc_unmap_data, goacc_exit_data_internal): Restore
7025 'is_tgt_unmapped' checking.
7026 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7027 file.
7028 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7029 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7030 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7031 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7032 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7033 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7034
7035 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7036 Julian Brown <julian@codesourcery.com>
7037
7038 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7039
7040 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7041
7042 PR libgomp/92854
7043 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7044
7045 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7046
7047 PR libgomp/92854
7048 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7049 more.
7050
7051 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7052 Julian Brown <julian@codesourcery.com>
7053
7054 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7055 'gomp_map_vars'.
7056 (acc_map_data): Clean up accordingly.
7057
7058 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7059
7060 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7061 of over-eager 'finalize' clause.
7062 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7063 file.
7064 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7065 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7066 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7067 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7068 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7069 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7070 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7071 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7072
7073 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7074
7075 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7076
7077 2020-06-04 Julian Brown <julian@codesourcery.com>
7078
7079 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7080 error path.
7081 (goacc_detach_internal): Likewise.
7082
7083 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7084
7085 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7086 the checkpoint.
7087 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7088 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7089 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7090 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7091 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7092
7093 2020-06-02 Jakub Jelinek <jakub@redhat.com>
7094
7095 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7096 defined.
7097
7098 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7099
7100 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7101
7102 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7103
7104 * allocator.c (omp_alloc): For size == 0, return NULL early.
7105
7106 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
7107
7108 PR bootstrap/95413
7109 * configure: Regenerated.
7110
7111 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7112
7113 PR libfortran/95191
7114 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7115
7116 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7117
7118 * omp.h.in (omp_uintptr_t): New typedef.
7119 (__GOMP_UINTPTR_T_ENUM): Define.
7120 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7121 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7122 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7123 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7124 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7125 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7126 (gomp_def_allocator): Declare.
7127 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7128 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7129 omp_alloc and omp_free.
7130 * team.c (gomp_team_start): Copy over ts.def_allocator.
7131 * env.c (gomp_def_allocator): New variable.
7132 (parse_wait_policy): Adjust function comment.
7133 (parse_allocator): New function.
7134 (handle_omp_display_env): Print OMP_ALLOCATOR.
7135 (initialize_env): Call parse_allocator.
7136 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7137 * allocator.c: New file.
7138 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7139 functions.
7140 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7141 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7142 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7143 * Makefile.in: Regenerated.
7144
7145 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7146
7147 PR bootstrap/95147
7148 * configure: Regenerated.
7149
7150 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7151
7152 PR libfortran/95119
7153 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7154
7155 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7156
7157 * configure: Regenerated.
7158
7159 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7160
7161 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7162
7163 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
7164
7165 PR fortran/94690
7166 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7167 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7168 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7169 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7170 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7171 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7172 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7173
7174 2020-05-12 Jakub Jelinek <jakub@redhat.com>
7175
7176 * testsuite/libgomp.c/target-39.c: New test.
7177
7178 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7179
7180 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7181 * openacc.f90 (acc_device_current): Likewise.
7182 * openacc.h (acc_device_current): Likewise.
7183 * openacc_lib.h (acc_device_current): Likewise.
7184
7185 PR target/94282
7186 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7187 'dg-allow-blank-lines-in-output'.
7188
7189 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7190 * testsuite/lib/libgomp.exp
7191 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7192 'radeon'. Adjust all users.
7193 (check_effective_target_openacc_amdgcn_accel_present): Rename
7194 to...
7195 (check_effective_target_openacc_radeon_accel_present): ... this.
7196 Adjust all users.
7197 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7198 (check_effective_target_openacc_radeon_accel_selected): ... this.
7199 Adjust all users.
7200
7201 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7202 'dg-do run'.
7203
7204 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
7205
7206 PR other/94629
7207
7208 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7209 hsa_iterate_agents.
7210 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7211 hsa_agent_iterate_regions.
7212
7213 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7214
7215 PR middle-end/94635
7216 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7217 run'.
7218
7219 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
7220
7221 PR middle-end/94120
7222 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7223 test case.
7224
7225 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
7226
7227 PR middle-end/94635
7228 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7229
7230 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7231
7232 PR libgomp/92843
7233 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7234 Rename to...
7235 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7236 ... this.
7237 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7238 Rename to...
7239 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7240 ... this.
7241 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7242 Rename to...
7243 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7244 ... this.
7245 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7246 Rename to...
7247 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7248 ... this.
7249 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7250 Rename to...
7251 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7252 ... this.
7253 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7254 Rename to...
7255 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7256 ... this.
7257 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7258 Rename to...
7259 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7260 ... this.
7261 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7262 Rename to...
7263 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7264 ... this.
7265 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7266 Rename to...
7267 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7268 ... this.
7269 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7270 Rename to...
7271 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7272 ... this.
7273 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7274 Rename to...
7275 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7276 ... this.
7277 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7278 Rename to...
7279 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7280 ... this.
7281 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7282 Rename to...
7283 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7284 ... this.
7285 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7286 Rename to...
7287 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7288 ... this.
7289 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7290 Rename to...
7291 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7292 ... this.
7293 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7294 Rename to...
7295 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7296 ... this.
7297
7298 2020-04-10 Julian Brown <julian@codesourcery.com>
7299 Thomas Schwinge <thomas@codesourcery.com>
7300
7301 PR libgomp/92843
7302 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7303 New file.
7304 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7305 Likewise.
7306 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7307 Likewise.
7308 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7309 Likewise.
7310 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7311 Likewise.
7312 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7313 Likewise.
7314 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7315 Likewise.
7316 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7317 Likewise.
7318 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7319 Likewise.
7320 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7321 Likewise.
7322 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7323 Likewise.
7324 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7325 Likewise.
7326 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7327 Likewise.
7328 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7329 Likewise.
7330 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7331 Likewise.
7332 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7333 Likewise.
7334
7335 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7336
7337 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7338 run'.
7339
7340 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7341
7342 PR middle-end/94120
7343 * libgomp.oacc-c++/declare-pr94120.C: New.
7344
7345 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7346
7347 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7348 files.
7349 * configure: Regenerate.
7350 * testsuite/libgomp-site-extra.exp.in: New file.
7351 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7352 variable.
7353 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7354 variable.
7355 * testsuite/Makefile.in: Regenerate.
7356
7357 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7358
7359 PR tree-optimization/89713
7360 PR c/94392
7361 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7362 'bar.sync'.
7363 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7364
7365 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7366
7367 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7368 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7369
7370 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7371
7372 PR libgomp/81689
7373 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7374
7375 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7376
7377 PR libgomp/94251
7378 * target.c (gomp_load_image_to_device): Fix link
7379 variable handling.
7380
7381 2020-03-19 Jakub Jelinek <jakub@redhat.com>
7382
7383 PR c++/93931
7384 * testsuite/libgomp.c++/pr93931.C: New test.
7385
7386 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
7387
7388 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7389 dg-allow-blank-lines-in-output.
7390
7391 2020-03-18 Julian Brown <julian@codesourcery.com>
7392 Tobias Burnus <tobias@codesourcery.com>
7393
7394 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7395 it work concurrently.
7396
7397 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
7398
7399 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7400 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7401 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7402
7403 2020-03-14 Jakub Jelinek <jakub@redhat.com>
7404
7405 PR middle-end/93566
7406 * testsuite/libgomp.c/pr93566.c: New test.
7407
7408 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
7409
7410 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7411 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7412 integer(acc_device_property) for the type of the return value of
7413 acc_get_property.
7414
7415 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
7416
7417 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7418 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7419 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7420 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7421 (acc_set_device_num): Fix Fortran argument name, use same name for C.
7422 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7423 corrections; add note about the previous interface and named constant.
7424 (OpenACC library and environment variables): Fix two typos.
7425 * openacc.f90: Use for all procedures the argument names from the spec
7426 as for …_h they are user visible.
7427 (openacc_kinds): Rename acc_device_property to
7428 acc_device_property_kinds and change value to int32 ; and update users.
7429 Re-add acc_device_property for for backward compatibility.
7430 (acc_get_property_string_h): Clean up as acc_device_property_kind
7431 changed.
7432 (acc_get_property_h): Likewise and return c_size_t instead of
7433 acc_device_property.
7434 (openacc): Also export acc_device_property_kinds.
7435 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7436 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7437 handling; check against /= 0 instead of == 1 to match C.
7438 * openacc_lib.h: Use for all procedures the argument names from the spec
7439 as for …_h they are user visible. Place !GCC$ into the first column to
7440 be active also for fixed-form souce form.
7441 (acc_device_current, acc_device_property_kind, acc_device_property,
7442 acc_property_memory, acc_property_free_memory, acc_property_name,
7443 acc_property_vendor, acc_property_driver): New named constants.
7444 (acc_get_property, acc_get_property_string): New generic interface.
7445
7446 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
7447
7448 PR libgomp/93481
7449 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7450 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7451 optional.
7452 (gomp_target_task_fn): Assert "devicep->async_run_func".
7453 (clear_unsupported_flags): New function to remove unsupported flags
7454 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7455 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7456 * testsuite/libgomp.c/target-33.c:
7457 Remove xfail for offload_target_nvptx.
7458 * testsuite/libgomp.c/target-34.c: Likewise.
7459
7460 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
7461
7462 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7463 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7464 * testsuite/libgomp.c/target-34.c: Likewise.
7465 * testsuite/libgomp.c/target-link-1.c: Add xfail for
7466 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7467
7468 2020-02-09 Jakub Jelinek <jakub@redhat.com>
7469
7470 * testsuite/libgomp.c/target-38.c: New test.
7471
7472 2020-02-06 Jakub Jelinek <jakub@redhat.com>
7473
7474 PR libgomp/93515
7475 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7476
7477 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
7478
7479 * testsuite/lib/libgomp.exp
7480 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7481 and not as 'source' argument to libgomp_target_compile.
7482
7483 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
7484
7485 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7486 (gcn_gfx801_s): Remove.
7487 (isa_hsa_name): Remove gfx801.
7488 (isa_gcc_name): Remove gfx801/carizzo.
7489 (isa_code): Remove gfx801.
7490
7491 2020-02-03 Julian Brown <julian@codesourcery.com>
7492 Tobias Burnus <tobias@codesourcery.com>
7493
7494 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7495 and *_finalize variants; document acc_attach and acc_detach; update
7496 references from OpenACC 2.0 to 2.6.
7497 * openacc.f90 (openacc_version): Update to 201711.
7498 * openacc_lib.h (openacc_version): Update to 201711.
7499 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7500 openacc_version to 201711.
7501 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7502
7503 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
7504
7505 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7506 and vgpr_count fields.
7507 (struct kernel_info): Add a field for a hsa_kernel_description.
7508 (run_kernel): Reduce the number of threads/workers if the requested
7509 number would require too many VGPRs.
7510 (init_basic_kernel_info): Initialize description field with
7511 the hsa_kernel_description entry for the kernel.
7512
7513 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
7514
7515 PR bootstrap/93409
7516 * plugin/configfrag.ac (enable_offload_targets): Skip
7517 HSA and GCN plugin besides -m32 also for -mx32.
7518 * configure: Regenerate.
7519
7520 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7521
7522 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7523
7524 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7525
7526 * plugin-gcn.c (struct agent_info): Add fields "name" and
7527 "vendor_name" ...
7528 (GOMP_OFFLOAD_init_device): ... and init from here.
7529 (struct hsa_context_info): Add field "driver_version_s" ...
7530 (init_hsa_contest): ... and init from here.
7531 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7532 implementation.
7533 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7534 Enable test execution for amdgcn and host offloading targets.
7535 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7536 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7537 (expect_device_properties): Split function into ...
7538 (expect_device_string_properties): ... this new function ...
7539 (expect_device_memory): ... and this new function.
7540 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7541 Add test.
7542
7543 2020-01-28 Julian Brown <julian@codesourcery.com>
7544
7545 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7546 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7547 component/non-component variable refs in a single directive.
7548 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7549
7550 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
7551
7552 * configure.ac: Handle `--with-toolexeclibdir='.
7553 * Makefile.in: Regenerate.
7554 * aclocal.m4: Regenerate.
7555 * configure: Regenerate.
7556 * testsuite/Makefile.in: Regenerate.
7557
7558 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
7559
7560 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7561 (expect_device_properties): Remove "expected_free_mem" argument,
7562 change "expected_total_mem" argument type to size_t;
7563 change types of acc_get_property results to size_t,
7564 adapt format strings.
7565 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7566 Use %zu instead of %zd to print size_t values.
7567 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7568 rename to ...
7569 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7570 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7571 rename to ...
7572 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7573
7574 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
7575
7576 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7577 the device id.
7578
7579 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
7580
7581 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7582 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7583 Adjust test dimensions for amdgcn.
7584 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7585 gang/worker/vector expectations dynamically.
7586 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7587 (main): Likewise.
7588 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7589 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7590 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7591 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7592 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7593 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7594 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7595 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7596 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7597 (acc_gang): Recognise acc_device_radeon.
7598 (acc_worker): Likewise.
7599 (acc_vector): Likewise.
7600 (main): Set expectations for amdgcn.
7601 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7602 (main): Adjust gang/worker/vector expectations dynamically.
7603 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7604 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7605 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7606 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7607 for amdgcn.
7608
7609 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
7610
7611 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7612 acc_device_radeon.
7613 (openacc): Likewise.
7614 * openacc.f90 (openacc_kinds): Likewise.
7615 (openacc): Likewise.
7616 * openacc.h (acc_device_t): Likewise.
7617 * openacc_lib.h: Likewise.
7618 * testsuite/lib/libgomp.exp
7619 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7620 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7621 (cb_compute_construct_end): Likewise.
7622 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7623 (cb_enqueue_launch_start): Likewise.
7624 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7625 (cb_enter_data_end): Likewise.
7626 (cb_exit_data_start): Likewise.
7627 (cb_exit_data_end): Likewise.
7628 (cb_compute_construct_end): Likewise.
7629 (cb_enqueue_launch_start): Likewise.
7630 (cb_enqueue_launch_end): Likewise.
7631 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7632 (main): Likewise.
7633
7634 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
7635
7636 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
7637 to use this instead of 'enum gomp_device_property'.
7638 (GOMP_OFFLOAD_get_property): Rename to...
7639 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
7640 * libgomp.h (struct gomp_device_descr): Move
7641 'GOMP_OFFLOAD_openacc_get_property'...
7642 (struct acc_dispatch_t): ... here. Adjust all users.
7643 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7644
7645 * target.c (gomp_map_vars_internal)
7646 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7647 paths.
7648
7649 2020-01-10 Jakub Jelinek <jakub@redhat.com>
7650
7651 PR libgomp/93219
7652 * libgomp.h (gomp_print_string): Change return type from void to int.
7653 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
7654 not all characters have been written.
7655
7656 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
7657
7658 * libgomp.texi: Fix typos, use https.
7659
7660 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
7661
7662 * testsuite/libgomp.fortran/optional-map.f90: Add test for
7663 unallocated/disassociated actual arguments to nonallocatable/nonpointer
7664 dummy arguments; those are/shall be regarded as absent arguments.
7665 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7666 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7667
7668 2020-01-01 Jakub Jelinek <jakub@redhat.com>
7669
7670 Update copyright years.
7671
7672 * libgomp.texi: Bump @copying's copyright year.
7673
7674 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
7675
7676 PR libgomp/93065
7677 * oacc-init.c (goacc_runtime_deinitialize): New function.
7678
7679 2019-12-28 Jakub Jelinek <jakub@redhat.com>
7680
7681 PR bootstrap/93074
7682 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7683 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
7684
7685 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
7686 Frederik Harwath <frederik@codesourcery.com>
7687 Thomas Schwinge <tschwinge@codesourcery.com>
7688
7689 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7690 * libgomp-plugin.h (gomp_device_property_value): New union.
7691 (gomp_device_property_value): New prototype.
7692 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7693 constant.
7694 (acc_device_property_t): New enum.
7695 (acc_get_property, acc_get_property_string): New prototypes.
7696 * oacc-init.c (acc_get_device_type): Also assert that result
7697 is not `acc_device_current'.
7698 (get_property_any, acc_get_property, acc_get_property_string):
7699 New functions.
7700 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7701 `acc_property_memory', `acc_property_free_memory',
7702 `acc_property_name', `acc_property_vendor' and
7703 `acc_property_driver' constants. Add `acc_device_property' data
7704 type.
7705 (openacc_internal): Add `acc_get_property' and
7706 `acc_get_property_string' interfaces. Add `acc_get_property_h',
7707 `acc_get_property_string_h', `acc_get_property_l' and
7708 `acc_get_property_string_l'.
7709 * oacc-host.c (host_get_property): New function.
7710 (host_dispatch): Wire it.
7711 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7712 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7713 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7714 * libgomp.texi (OpenACC Runtime Library Routines): Add
7715 `acc_get_property'.
7716 (acc_get_property): New node.
7717 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7718 function (stub).
7719 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7720 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7721 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7722 calls.
7723 (GOMP_OFFLOAD_get_property): New function.
7724 (struct ptx_device): Add new field "name".
7725 (cuda_driver_version_s): Add new static variable ...
7726 (nvptx_init): ... and init from here.
7727
7728 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7729 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7730 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7731 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7732 with test helper functions.
7733
7734 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7735
7736 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
7737
7738 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7739 variable.
7740
7741 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
7742
7743 * target.c (gomp_map_vars_internal): Restore 'omp declare target
7744 link' handling.
7745
7746 2019-12-19 Julian Brown <julian@codesourcery.com>
7747
7748 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7749 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7750 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7751
7752 2019-12-19 Julian Brown <julian@codesourcery.com>
7753 Cesar Philippidis <cesar@codesourcery.com>
7754
7755 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7756 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7757 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7758 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7759 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7760 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7761 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7762 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7763 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7764 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7765 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7766 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7767 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7768
7769 2019-12-19 Julian Brown <julian@codesourcery.com>
7770
7771 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7772 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7773 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7774 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7775 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7776 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7777 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7778 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7779 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7780 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7781 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7782 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7783
7784 2019-12-19 Julian Brown <julian@codesourcery.com>
7785
7786 * libgomp.h (struct target_var_desc): Add do_detach flag.
7787 * oacc-init.c (acc_shutdown_1): Free aux block if present.
7788 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7789 struct components. Tidy up and add some new checks.
7790 (goacc_enter_data_internal): Update call to find_group_last.
7791 (goacc_exit_data_internal): Support detach operations and
7792 GOMP_MAP_STRUCT.
7793 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7794 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
7795 attach/detach in enter/exit data detection code.
7796 * target.c (gomp_map_vars_existing): Initialise do_detach field of
7797 tgt_var_desc.
7798 (gomp_map_vars_internal): Support attach.
7799 (gomp_unmap_vars_internal): Support detach.
7800
7801 2019-12-19 Julian Brown <julian@codesourcery.com>
7802 Thomas Schwinge <thomas@codesourcery.com>
7803
7804 * libgomp.h (struct splay_tree_aux): Add attach_count field.
7805 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7806 * libgomp.map (OACC_2.6): New section. Add acc_attach,
7807 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7808 acc_detach_finalize_async.
7809 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7810 acc_detach, acc_detach_async, acc_detach_finalize,
7811 acc_detach_finalize_async): New functions.
7812 * openacc.h (acc_attach, acc_attach_async, acc_detach,
7813 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7814 prototypes.
7815 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7816 (gomp_remove_var_internal): Free attachment counts if present.
7817 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7818 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7819
7820 2019-12-19 Julian Brown <julian@codesourcery.com>
7821 Cesar Philippidis <cesar@codesourcery.com>
7822
7823 * libgomp.h (gomp_map_val): Add prototype.
7824 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7825 open-coding device-address calculation.
7826 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7827 non-present case.
7828
7829 2019-12-19 Julian Brown <julian@codesourcery.com>
7830
7831 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7832 field for virtual_refcount.
7833 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7834 (gomp_free_memmap): Remove prototype.
7835 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7836 instead of calling gomp_free_memmap.
7837 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7838 dynamic_refcount.
7839 (acc_unmap_data): Open code instead of forcing target_mem_desc's
7840 to_free field to NULL then calling gomp_unmap_vars. Handle
7841 REFCOUNT_INFINITY on target blocks.
7842 (goacc_enter_data): Rename to...
7843 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
7844 handling for mapping groups. Use virtual_refcount instead of
7845 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7846 map_map_vars_async call. Re-do lookup for target pointer return value.
7847 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7848 renamed goacc_enter_datum function.
7849 (goacc_exit_data): Rename to...
7850 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
7851 (acc_delete, acc_delete_async, acc_delete_finalize,
7852 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7853 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7854 goacc_exit_datum function.
7855 (gomp_acc_remove_pointer, find_pointer): Remove functions.
7856 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7857 New functions.
7858 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7859 goacc_exit_data_internal helper functions.
7860 * target.c (gomp_map_vars_internal): Handle
7861 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
7862 semantics.
7863 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7864 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7865 virtual_refcount field instead of dynamic_refcount.
7866 (gomp_free_memmap): Remove function.
7867 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7868 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7869 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7870
7871 2019-12-19 Julian Brown <julian@codesourcery.com>
7872 Thomas Schwinge <thomas@codesourcery.com>
7873
7874 * libgomp.h (struct splay_tree_aux): New.
7875 (struct splay_tree_key_s): Replace link_key field with aux pointer.
7876 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7877 to aux struct.
7878 (gomp_remove_var_internal): Free aux block if present.
7879 (gomp_load_image_to_device): Zero-initialise aux field instead of
7880 link_key field.
7881 (omp_target_associate_pointer): Zero-initialise aux field.
7882
7883 2019-12-18 Jakub Jelinek <jakub@redhat.com>
7884
7885 PR middle-end/86416
7886 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7887 q or none.
7888 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7889 L or none.
7890
7891 2019-12-19 Julian Brown <julian@codesourcery.com>
7892 Maciej W. Rozycki <macro@codesourcery.com>
7893 Tobias Burnus <tobias@codesourcery.com>
7894 Thomas Schwinge <thomas@codesourcery.com>
7895
7896 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7897 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7898 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7899 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7900 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7901 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7902 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7903 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7904 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7905
7906 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
7907
7908 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7909 called...
7910 (goacc_insert_pointer): ... from here, "present" case.
7911 (goacc_insert_pointer): Inline function into...
7912 (GOACC_enter_exit_data): ... here, and simplify.
7913
7914 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7915 called...
7916 (goacc_insert_pointer): ... from here, "not present" case.
7917
7918 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
7919 all users.
7920
7921 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7922 'goacc_enter_data', 'goacc_exit_data'.
7923
7924 * oacc-mem.c (delete_copyout): Refactor into...
7925 (goacc_exit_data): ... this. Adjust all users.
7926
7927 * oacc-mem.c (present_create_copy): Refactor into...
7928 (goacc_enter_data): ... this. Adjust all users.
7929
7930 * target.c (gomp_unmap_vars_internal): Add a safeguard to
7931 'gomp_remove_var'.
7932
7933 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7934 like 'GOMP_MAP_FROM'.
7935
7936 PR libgomp/92726
7937 PR libgomp/92970
7938 PR libgomp/92984
7939 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7940 fails.
7941 (GOACC_enter_exit_data): Simplify accordingly.
7942 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7943 subsuming...
7944 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7945 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7946 file.
7947 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7948 subsuming...
7949 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7950 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7951 file.
7952 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7953 subsuming...
7954 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7955
7956 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7957 'finalize' handling.
7958
7959 PR libgomp/92848
7960 * oacc-mem.c (acc_map_data, present_create_copy)
7961 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7962 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7963 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7964 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7965 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7966 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7967 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7968 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7969 Remove "XFAIL"s.
7970
7971 * target.c (gomp_unmap_tgt): Make it 'static'.
7972 * libgomp.h (gomp_unmap_tgt): Remove.
7973
7974 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
7975
7976 PR middle-end/86416
7977 * testsuite/libgomp.c/pr86416-1.c: New.
7978 * testsuite/libgomp.c/pr86416-2.c: New.
7979
7980 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
7981
7982 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7983 all symbols as public except for the 'use …, only' imported symbol,
7984 which is private.
7985 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7986 all symbols from module openacc_kinds as PUBLIC
7987 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7988 fix comment typo.
7989 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7990
7991 2019-12-13 Julian Brown <julian@codesourcery.com>
7992
7993 PR libgomp/92881
7994
7995 * libgomp.h (gomp_remove_var_async): Add prototype.
7996 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7997 gomp_remove_var.
7998 * target.c (gomp_unref_tgt): Change return type to bool, indicating
7999 whether target_mem_desc was unmapped.
8000 (gomp_unref_tgt_void): New.
8001 (gomp_remove_var): Reimplement in terms of...
8002 (gomp_remove_var_internal): ...this new helper function.
8003 (gomp_remove_var_async): New, implemented using above helper function.
8004 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8005 gomp_unref_tgt.
8006
8007 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
8008
8009 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8010 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8011 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8012 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8013 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8014 Likewise.
8015 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8016 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8017
8018 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
8019
8020 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8021 as public except for the 'use …, only' imported symbol, which is
8022 private.
8023 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8024 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8025 attributes for acc_copyout_finalize and acc_delete_finalize.
8026
8027 2019-12-11 Jakub Jelinek <jakub@redhat.com>
8028
8029 PR fortran/92899
8030 * testsuite/libgomp.fortran/atomic1.f90: New test.
8031
8032 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8033
8034 PR libgomp/92843
8035 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8036 reference counting for structured 'REFCOUNT_INFINITY'. Add some
8037 assertions.
8038 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8039 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8040 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8041 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8042 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8043
8044 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8045 * oacc-mem.c: ... here.
8046 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8047 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8048 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8049 Remove.
8050 * libgomp_g.h: Update.
8051
8052 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8053 * oacc-async.c: ... here.
8054 * oacc-int.h (goacc_wait): Declare.
8055 * libgomp_g.h: Update
8056
8057 PR libgomp/92854
8058 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8059 New file.
8060 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8061 Likewise.
8062 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8063 Likewise.
8064 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8065 Likewise.
8066 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8067 Likewise.
8068 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8069 Likewise.
8070
8071 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8072 Julian Brown <julian@codesourcery.com>
8073
8074 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8075 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8076
8077 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8078
8079 * omp_lib.h.in: Fix spelling of function declaration
8080 omp_get_cancell(l)ation.
8081 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8082 Fix typos.
8083 * env.c: Fix comment typos.
8084 * oacc-host.c: Likewise.
8085 * ordered.c: Likewise.
8086 * task.c: Likewise.
8087 * team.c: Likewise.
8088 * config/gcn/task.c: Likewise.
8089 * config/gcn/team.c: Likewise.
8090 * config/nvptx/task.c: Likewise.
8091 * config/nvptx/team.c: Likewise.
8092 * plugin/plugin-gcn.c: Likewise.
8093 * testsuite/libgomp.fortran/jacobi.f: Likewise.
8094 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8095 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8096
8097 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8098
8099 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8100 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8101 unnecessary 'dg-additional-options "-w"'.
8102
8103 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8104 Julian Brown <julian@codesourcery.com>
8105
8106 PR libgomp/92116
8107 PR libgomp/92877
8108
8109 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8110 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8111 Adjust all users.
8112 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8113 Remove XFAIL.
8114 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8115 Likewise.
8116 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8117
8118 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8119
8120 PR libgomp/92503
8121 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8122 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8123 file.
8124 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8125 Likewise.
8126 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8127 Likewise.
8128 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8129 Likewise.
8130 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8131 Likewise.
8132 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8133 Likewise.
8134 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8135 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8136 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8137 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8138 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8139 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8140 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8141 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8142 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8143 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8144
8145 PR libgomp/92840
8146 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8147 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8148 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8149 New file.
8150 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8151 Likewise.
8152 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8153 Likewise.
8154 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8155 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8156
8157 PR libgomp/92511
8158 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8159 this file...
8160 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8161 this file...
8162 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8163 file...
8164 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8165 file...
8166 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8167 ... with their content moved into, and extended in this new file.
8168 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8169 New file.
8170 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8171 Likewise.
8172 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8173 Likewise.
8174 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8175 Likewise.
8176
8177 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8178
8179 PR libgomp/92854
8180 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8181
8182 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8183
8184 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8185
8186 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
8187
8188 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8189 unique.
8190 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8191 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8192 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8193 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8194 Ditto.
8195 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8196 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8197
8198 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8199
8200 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8201
8202 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
8203 Kwok Cheung Yeung <kcy@codesourcery.com>
8204
8205 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8206 if input it a NULL pointer.
8207 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8208 diagnostic of NULL pointer.
8209 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8210 * testsuite/libgomp.fortran/optional-map.f90: New.
8211 * testsuite/libgomp.fortran/use_device_addr-1.f90
8212 (test_dummy_opt_callee_1_absent): New.
8213 (test_dummy_opt_call_1): Call it.
8214 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8215 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8216 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8217 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8218 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8219 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8220 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8221 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8222 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8223 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8224 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8225 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8226 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8227 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8228 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8229 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8230
8231 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
8232
8233 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8234 expect dg-output of 'Error termination.' for GCN.
8235 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8236 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8237
8238 2019-12-04 Jakub Jelinek <jakub@redhat.com>
8239
8240 PR fortran/92756
8241 * testsuite/libgomp.fortran/teams1.f90: New test.
8242 * testsuite/libgomp.fortran/teams2.f90: New test.
8243
8244 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
8245
8246 * oacc-init.c (acc_known_device_type): Add function.
8247 (unknown_device_type_error): Add function.
8248 (name_of_acc_device_t): Change to call unknown_device_type_error
8249 on unknown type.
8250 (resolve_device): Use acc_known_device_type.
8251 (acc_init): Fail if acc_device_t argument is not valid.
8252 (acc_shutdown): Likewise.
8253 (acc_get_num_devices): Likewise.
8254 (acc_set_device_type): Likewise.
8255 (acc_get_device_num): Likewise.
8256 (acc_set_device_num): Likewise.
8257 (acc_on_device): Add comment that argument validity is not checked.
8258
8259 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
8260
8261 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8262 Recognize amdgcn.
8263 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8264 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8265 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8266 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8267 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8268
8269 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8270
8271 PR libgomp/91938
8272 * configure.tgt: Avoid IE tls on *-*-musl*.
8273
8274 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
8275
8276 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8277 adding a common-block test case.
8278
8279 2019-11-29 Jakub Jelinek <jakub@redhat.com>
8280
8281 PR c++/60228
8282 * testsuite/libgomp.c++/udr-20.C: New test.
8283 * testsuite/libgomp.c++/udr-21.C: New test.
8284
8285 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8286
8287 * testsuite/lib/libgomp.exp
8288 (check_effective_target_offload_target_nvptx): New proc.
8289 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8290 'dg-skip-if'.
8291 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8292 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8293 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8294
8295 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8296
8297 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8298 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8299 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8300 * testsuite/libgomp.c/private-1.c: Likewise.
8301 * testsuite/libgomp.c/task-1.c: Likewise.
8302 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8303
8304 2019-11-20 Julian Brown <julian@codesourcery.com>
8305
8306 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8307 aq->mutex here.
8308 (queue_push_launch): Lock aq->mutex before calling
8309 wait_for_queue_nonfull.
8310 (queue_push_callback): Likewise.
8311 (queue_push_asyncwait): Likewise.
8312 (queue_push_placeholder): Likewise.
8313
8314 2019-11-20 Julian Brown <julian@codesourcery.com>
8315
8316 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8317 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8318 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8319 return code.
8320
8321 2019-11-20 Julian Brown <julian@codesourcery.com>
8322
8323 PR libgomp/92511
8324
8325 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8326 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8327 in non-present/create case.
8328 (delete_copyout): Change error condition to fail only on copies outside
8329 of mapped block. Adjust error message accordingly.
8330 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8331 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8332 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8333 message.
8334 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8335 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8336 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8337
8338 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8339
8340 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8341 libatomic in build-tree testing.
8342
8343 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8344
8345 * testsuite/Makefile.in: Regenerate.
8346
8347 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8348
8349 * testsuite/libgomp.c/target-print-1.c: New file.
8350 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8351 * testsuite/libgomp.oacc-c/print-1.c: New file.
8352 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8353
8354 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8355 Kwok Cheung Yeung <kcy@codesourcery.com>
8356 Julian Brown <julian@codesourcery.com>
8357 Tom de Vries <tom@codesourcery.com>
8358
8359 * plugin/Makefrag.am: Add amdgcn plugin support.
8360 * plugin/configfrag.ac: Likewise.
8361 * plugin/plugin-gcn.c: New file.
8362 * configure: Regenerate.
8363 * Makefile.in: Regenerate.
8364 * testsuite/Makefile.in: Regenerate.
8365
8366 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8367
8368 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8369 and use team_malloc variants.
8370 (gomp_gcn_exit_kernel): Use team_free.
8371 * libgomp.h (TEAM_ARENA_SIZE): Define.
8372 (TEAM_ARENA_START): Define.
8373 (TEAM_ARENA_FREE): Define.
8374 (TEAM_ARENA_END): Define.
8375 (team_malloc): New function.
8376 (team_malloc_cleared): New function.
8377 (team_free): New function.
8378 * team.c (gomp_new_team): Initialize and use team_malloc.
8379 (free_team): Use team_free.
8380 (gomp_free_thread): Use team_free.
8381 (gomp_pause_host): Use team_free.
8382 * work.c (gomp_init_work_share): Use team_malloc.
8383 (gomp_fini_work_share): Use team_free.
8384
8385 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8386 Kwok Cheung Yeung <kcy@codesourcery.com>
8387 Julian Brown <julian@codesourcery.com>
8388 Tom de Vries <tom@codesourcery.com>
8389
8390 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8391 * Makefile.in: Regenerate.
8392 * config.h.in (PLUGIN_GCN): Add new undef.
8393 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8394 * config/gcn/affinity-fmt.c: New file.
8395 * config/gcn/bar.c: New file.
8396 * config/gcn/bar.h: New file.
8397 * config/gcn/doacross.h: New file.
8398 * config/gcn/icv-device.c: New file.
8399 * config/gcn/oacc-target.c: New file.
8400 * config/gcn/simple-bar.h: New file.
8401 * config/gcn/target.c: New file.
8402 * config/gcn/task.c: New file.
8403 * config/gcn/team.c: New file.
8404 * config/gcn/time.c: New file.
8405 * configure.ac: Add amdgcn*-*-*.
8406 * configure: Regenerate.
8407 * configure.tgt: Add amdgcn*-*-*.
8408 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8409 * libgomp.h (gcn_thrs): Add amdgcn variant.
8410 (set_gcn_thrs): Likewise.
8411 (gomp_thread): Likewise.
8412 * oacc-int.h (goacc_thread): Likewise.
8413 * oacc-target.c: New file.
8414 * openacc.f90 (acc_device_gcn): New parameter.
8415 * openacc.h (acc_device_t): Add acc_device_gcn.
8416 * team.c (gomp_free_pool_helper): Add amdgcn support.
8417
8418 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8419 Julian Brown <julian@codesourcery.com>
8420
8421 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8422 parameter.
8423 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8424 queue constructor.
8425 * oacc-host.c (host_openacc_async_construct): Add device parameter.
8426 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8427 device parameter.
8428
8429 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8430
8431 * configure.tgt (nvptx*-*-*): Add "accel" directory.
8432 * config/nvptx/libgomp-plugin.c: Move ...
8433 * config/accel/libgomp-plugin.c: ... to here.
8434 * config/nvptx/lock.c: Move ...
8435 * config/accel/lock.c: ... to here.
8436 * config/nvptx/mutex.c: Move ...
8437 * config/accel/mutex.c: ... to here.
8438 * config/nvptx/mutex.h: Move ...
8439 * config/accel/mutex.h: ... to here.
8440 * config/nvptx/oacc-async.c: Move ...
8441 * config/accel/oacc-async.c: ... to here.
8442 * config/nvptx/oacc-cuda.c: Move ...
8443 * config/accel/oacc-cuda.c: ... to here.
8444 * config/nvptx/oacc-host.c: Move ...
8445 * config/accel/oacc-host.c: ... to here.
8446 * config/nvptx/oacc-init.c: Move ...
8447 * config/accel/oacc-init.c: ... to here.
8448 * config/nvptx/oacc-mem.c: Move ...
8449 * config/accel/oacc-mem.c: ... to here.
8450 * config/nvptx/oacc-plugin.c: Move ...
8451 * config/accel/oacc-plugin.c: ... to here.
8452 * config/nvptx/omp-lock.h: Move ...
8453 * config/accel/omp-lock.h: ... to here.
8454 * config/nvptx/openacc.f90: Move ...
8455 * config/accel/openacc.f90: ... to here.
8456 * config/nvptx/pool.h: Move ...
8457 * config/accel/pool.h: ... to here.
8458 * config/nvptx/proc.c: Move ...
8459 * config/accel/proc.c: ... to here.
8460 * config/nvptx/ptrlock.c: Move ...
8461 * config/accel/ptrlock.c: ... to here.
8462 * config/nvptx/ptrlock.h: Move ...
8463 * config/accel/ptrlock.h: ... to here.
8464 * config/nvptx/sem.c: Move ...
8465 * config/accel/sem.c: ... to here.
8466 * config/nvptx/sem.h: Move ...
8467 * config/accel/sem.h: ... to here.
8468 * config/nvptx/thread-stacksize.h: Move ...
8469 * config/accel/thread-stacksize.h: ... to here.
8470
8471 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
8472 Tobias Burnus <tobias@codesourcery.com>
8473 Frederik Harwath <frederik@codesourcery.com>
8474 Thomas Schwinge <thomas@codesourcery.com>
8475
8476 libgomp/
8477 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8478 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8479 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8480
8481 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
8482 Kwok Cheung Yeung <kcy@codesourcery.com>
8483
8484 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8485 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8486
8487 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
8488
8489 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8490
8491 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8492 run'.
8493 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8494 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8495
8496 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
8497
8498 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8499 Add expected warnings about missing reduction clauses.
8500 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8501 Likewise.
8502 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8503 Likewise.
8504 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8505 Likewise.
8506
8507 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8508
8509 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8510 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8511 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8512 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8513 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8514 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8515
8516 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8517
8518 PR fortran/92305
8519 * testsuite/libgomp.fortran/allocatable2.f90: Use
8520 unique numbers with 'stop'.
8521 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8522 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8523 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8524 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8525 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8526
8527 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
8528
8529 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8530 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8531 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8532 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8533 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8534 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8535
8536 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8537
8538 * testsuite/libgomp.fortran/target9.f90: New.
8539
8540 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8541
8542 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8543 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8544 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8545 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8546 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8547 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8548 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8549 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8550 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8551 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8552 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8553 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8554 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8555 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8556 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8557 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8558 * testsuite/libgomp.fortran/associate1.f90: Ditto.
8559 * testsuite/libgomp.fortran/associate2.f90: Ditto.
8560 * testsuite/libgomp.fortran/associate3.f90: Ditto.
8561 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8562 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8563 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8564 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8565 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8566 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8567 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8568 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8569 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8570 * testsuite/libgomp.fortran/character1.f90: Ditto.
8571 * testsuite/libgomp.fortran/character2.f90: Ditto.
8572 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8573 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8574 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8575 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8576 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8577 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8578 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8579 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8580 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8581 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8582 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8583 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8584 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8585 * testsuite/libgomp.fortran/do1.f90: Ditto.
8586 * testsuite/libgomp.fortran/do2.f90: Ditto.
8587 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8588 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8589 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8590 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8591 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8592 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8593 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8594 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8595 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8596 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8597 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8598 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8599 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8600 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8601 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8602 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8603 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8604 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8605 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8606 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8607 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8608 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8609 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8610 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8611 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8612 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8613 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8614 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8615 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8616 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8617 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8618 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8619 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8620 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8621 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8622 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8623 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8624 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8625 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8626 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8627 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8628 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8629 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8630 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8631 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8632 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8633 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8634 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8635 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8636 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8637 * testsuite/libgomp.fortran/lib1.f90: Ditto.
8638 * testsuite/libgomp.fortran/lib4.f90: Ditto.
8639 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8640 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8641 * testsuite/libgomp.fortran/nested1.f90: Ditto.
8642 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8643 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8644 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8645 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8646 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8647 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8648 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8649 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8650 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8651 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8652 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8653 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8654 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8655 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8656 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8657 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8658 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8659 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8660 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8661 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8662 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8663 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8664 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8665 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8666 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8667 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8668 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8669 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8670 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8671 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8672 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8673 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8674 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8675 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8676 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8677 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8678 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8679 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8680 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8681 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8682 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8683 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8684 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8685 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8686 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8687 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8688 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8689 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8690 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8691 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8692 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8693 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8694 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8695 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8696 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8697 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8698 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8699 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8700 * testsuite/libgomp.fortran/reference1.f90: Ditto.
8701 * testsuite/libgomp.fortran/reference2.f90: Ditto.
8702 * testsuite/libgomp.fortran/retval1.f90: Ditto.
8703 * testsuite/libgomp.fortran/retval2.f90: Ditto.
8704 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8705 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8706 * testsuite/libgomp.fortran/simd1.f90: Ditto.
8707 * testsuite/libgomp.fortran/simd2.f90: Ditto.
8708 * testsuite/libgomp.fortran/simd3.f90: Ditto.
8709 * testsuite/libgomp.fortran/simd4.f90: Ditto.
8710 * testsuite/libgomp.fortran/simd5.f90: Ditto.
8711 * testsuite/libgomp.fortran/simd6.f90: Ditto.
8712 * testsuite/libgomp.fortran/simd7.f90: Ditto.
8713 * testsuite/libgomp.fortran/stack.f90: Ditto.
8714 * testsuite/libgomp.fortran/strassen.f90: Ditto.
8715 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8716 * testsuite/libgomp.fortran/tabs2.f: Ditto.
8717 * testsuite/libgomp.fortran/target1.f90: Ditto.
8718 * testsuite/libgomp.fortran/target2.f90: Ditto.
8719 * testsuite/libgomp.fortran/target3.f90: Ditto.
8720 * testsuite/libgomp.fortran/target4.f90: Ditto.
8721 * testsuite/libgomp.fortran/target5.f90: Ditto.
8722 * testsuite/libgomp.fortran/target6.f90: Ditto.
8723 * testsuite/libgomp.fortran/target7.f90: Ditto.
8724 * testsuite/libgomp.fortran/target8.f90: Ditto.
8725 * testsuite/libgomp.fortran/task1.f90: Ditto.
8726 * testsuite/libgomp.fortran/task2.f90: Ditto.
8727 * testsuite/libgomp.fortran/task3.f90: Ditto.
8728 * testsuite/libgomp.fortran/task4.f90: Ditto.
8729 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8730 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8731 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8732 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8733 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8734 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8735 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8736 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8737 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8738 * testsuite/libgomp.fortran/udr1.f90: Ditto.
8739 * testsuite/libgomp.fortran/udr10.f90: Ditto.
8740 * testsuite/libgomp.fortran/udr11.f90: Ditto.
8741 * testsuite/libgomp.fortran/udr12.f90: Ditto.
8742 * testsuite/libgomp.fortran/udr13.f90: Ditto.
8743 * testsuite/libgomp.fortran/udr14.f90: Ditto.
8744 * testsuite/libgomp.fortran/udr15.f90: Ditto.
8745 * testsuite/libgomp.fortran/udr2.f90: Ditto.
8746 * testsuite/libgomp.fortran/udr3.f90: Ditto.
8747 * testsuite/libgomp.fortran/udr4.f90: Ditto.
8748 * testsuite/libgomp.fortran/udr5.f90: Ditto.
8749 * testsuite/libgomp.fortran/udr6.f90: Ditto.
8750 * testsuite/libgomp.fortran/udr7.f90: Ditto.
8751 * testsuite/libgomp.fortran/udr8.f90: Ditto.
8752 * testsuite/libgomp.fortran/udr9.f90: Ditto.
8753 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8754 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8755 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8756 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8757 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8758 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8759 * testsuite/libgomp.fortran/vla7.f90: Ditto.
8760 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8761 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8762 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8763
8764 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8765
8766 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8767 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8768 Ditto; add 'dg-do run' for torture testing.
8769 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
8770 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8771 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8772 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8773 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8774 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8775 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8776 * testsuite/libgomp.fortran/task2.f90: Ditto.
8777 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8778 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8779 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8780 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8781 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8782 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8783
8784 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
8785
8786 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8787 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8788 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8789 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8790 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8791 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8792 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8793 Use 'stop' not abort().
8794 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8795 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8796 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8797 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8798 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8799 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8800 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8801 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8802 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8803 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8804 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8805 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8806 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8807 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8808 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8809 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8810 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8811 Ditto.
8812 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8813 Ditto.
8814 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8815 Ditto.
8816 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8817 Ditto.
8818 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8819 Ditto.
8820 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8821 Ditto.
8822 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8823 Ditto.
8824 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8825 Ditto.
8826 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8827 Ditto.
8828 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8829 Ditto.
8830 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8831 Ditto.
8832 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8833 Ditto.
8834 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8835 Ditto.
8836 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8837 Ditto.
8838 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8839 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8840 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8841 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8842 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8843 Likewise and also add 'dg-do run'.
8844 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8845 Ditto.
8846
8847 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
8848 Tobias Burnus <tobias@codesourcery.com>
8849
8850 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8851 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8852 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8853
8854 2019-10-14 Jakub Jelinek <jakub@redhat.com>
8855
8856 PR libgomp/92081
8857 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8858 than 0.
8859
8860 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8861
8862 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8863 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8864
8865 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
8866
8867 PR middle-end/92036
8868 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8869 file.
8870
8871 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
8872
8873 PR testsuite/91884
8874 * testsuite/libgomp.fortran/fortran.exp: Conditionally
8875 add -lquadmath.
8876 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8877
8878 2019-10-09 Jakub Jelinek <jakub@redhat.com>
8879
8880 PR libgomp/92028
8881 * target.c (gomp_map_vars_internal): Readd the previous
8882 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8883 though do that just in the !not_found_cnt case.
8884
8885 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
8886
8887 * gfortran.dg/gomp/target-simd.f90: New.
8888
8889 2019-10-02 Julian Brown <julian@codesourcery.com>
8890 Cesar Philippidis <cesar@codesourcery.com>
8891
8892 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8893 * target.c (FIELD_TGT_EMPTY): Define.
8894 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
8895 as switch instead of list of ifs.
8896 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8897
8898 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
8899
8900 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8901 include. Replace alloca () with __builtin_alloca ().
8902 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8903
8904 2019-10-01 Jakub Jelinek <jakub@redhat.com>
8905
8906 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8907 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8908 * oacc-parallel.c: Don't include "libgomp_g.h".
8909 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8910 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8911 * aclocal.m4: Regenerated.
8912 * config.h.in: Regenerated.
8913 * configure: Regenerated.
8914 * Makefile.in: Regenerated.
8915
8916 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
8917
8918 * libgomp_g.h: Include stdint.h instead of gstdint.h.
8919
8920 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8921
8922 * configure: Regenerate.
8923
8924 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
8925
8926 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8927 string is initialized.
8928
8929 2019-09-06 Florian Weimer <fweimer@redhat.com>
8930
8931 * configure: Regenerate.
8932
8933 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
8934
8935 PR other/79543
8936 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8937 scanning to conform to the GNU Coding Standards.
8938 * configure: Regenerate.
8939
8940 2019-08-28 Jakub Jelinek <jakub@redhat.com>
8941
8942 PR libgomp/91530
8943 * testsuite/libgomp.c/scan-21.c: New test.
8944 * testsuite/libgomp.c/scan-22.c: New test.
8945
8946 2019-08-27 Jakub Jelinek <jakub@redhat.com>
8947
8948 PR libgomp/91530
8949 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8950 targets.
8951 * testsuite/libgomp.c/scan-12.c: Likewise.
8952 * testsuite/libgomp.c/scan-13.c: Likewise.
8953 * testsuite/libgomp.c/scan-14.c: Likewise.
8954 * testsuite/libgomp.c/scan-15.c: Likewise.
8955 * testsuite/libgomp.c/scan-16.c: Likewise.
8956 * testsuite/libgomp.c/scan-17.c: Likewise.
8957 * testsuite/libgomp.c/scan-18.c: Likewise.
8958 * testsuite/libgomp.c/scan-19.c: Likewise.
8959 * testsuite/libgomp.c/scan-20.c: Likewise.
8960 * testsuite/libgomp.c++/scan-9.C: Likewise.
8961 * testsuite/libgomp.c++/scan-10.C: Likewise.
8962 * testsuite/libgomp.c++/scan-11.C: Likewise.
8963 * testsuite/libgomp.c++/scan-12.C: Likewise.
8964 * testsuite/libgomp.c++/scan-14.C: Likewise.
8965 * testsuite/libgomp.c++/scan-15.C: Likewise.
8966 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
8967 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8968 * testsuite/libgomp.c++/scan-16.C: Likewise.
8969
8970 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
8971
8972 PR fortran/91473
8973 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8974 -std=legacy so invalid code in the test case is accepted.
8975
8976 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8977
8978 PR fortran/91422
8979 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8980 dimension.
8981
8982 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8983
8984 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8985 perform the lookup in the first loop only if !not_found_cnt, otherwise
8986 perform lookups for it in the second loop guarded with
8987 if (not_found_cnt || has_firstprivate).
8988 * testsuite/libgomp.c/target-37.c: New test.
8989 * testsuite/libgomp.c++/target-22.C: New test.
8990
8991 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8992
8993 * testsuite/libgomp.c/target-18.c (struct S): New type.
8994 (foo): Use use_device_addr clause instead of use_device_ptr clause
8995 where required by OpenMP 5.0, add further tests for both use_device_ptr
8996 and use_device_addr clauses.
8997 * testsuite/libgomp.c++/target-9.C (struct S): New type.
8998 (foo): Use use_device_addr clause instead of use_device_ptr clause
8999 where required by OpenMP 5.0, add further tests for both use_device_ptr
9000 and use_device_addr clauses. Add t and u arguments.
9001 (main): Adjust caller.
9002
9003 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9004
9005 * testsuite/libgomp.c++/loop-13.C: New test.
9006 * testsuite/libgomp.c++/loop-14.C: New test.
9007 * testsuite/libgomp.c++/loop-15.C: New test.
9008
9009 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9010
9011 PR middle-end/91301
9012 * testsuite/libgomp.c++/for-27.C: New test.
9013
9014 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
9015
9016 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9017 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9018
9019 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9020
9021 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9022
9023 2019-07-08 Jakub Jelinek <jakub@redhat.com>
9024
9025 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9026 * testsuite/libgomp.c++/scan-16.C: Likewise.
9027
9028 2019-07-06 Jakub Jelinek <jakub@redhat.com>
9029
9030 * testsuite/libgomp.c/scan-19.c: New test.
9031 * testsuite/libgomp.c/scan-20.c: New test.
9032
9033 * testsuite/libgomp.c/scan-11.c: New test.
9034 * testsuite/libgomp.c/scan-12.c: New test.
9035 * testsuite/libgomp.c/scan-13.c: New test.
9036 * testsuite/libgomp.c/scan-14.c: New test.
9037 * testsuite/libgomp.c/scan-15.c: New test.
9038 * testsuite/libgomp.c/scan-16.c: New test.
9039 * testsuite/libgomp.c/scan-17.c: New test.
9040 * testsuite/libgomp.c/scan-18.c: New test.
9041 * testsuite/libgomp.c++/scan-9.C: New test.
9042 * testsuite/libgomp.c++/scan-10.C: New test.
9043 * testsuite/libgomp.c++/scan-11.C: New test.
9044 * testsuite/libgomp.c++/scan-12.C: New test.
9045 * testsuite/libgomp.c++/scan-13.C: New test.
9046 * testsuite/libgomp.c++/scan-14.C: New test.
9047 * testsuite/libgomp.c++/scan-15.C: New test.
9048 * testsuite/libgomp.c++/scan-16.C: New test.
9049
9050 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9051
9052 * testsuite/libgomp.c/scan-9.c: New test.
9053 * testsuite/libgomp.c/scan-10.c: New test.
9054
9055 2019-07-03 Jakub Jelinek <jakub@redhat.com>
9056
9057 * testsuite/libgomp.c++/scan-1.C: New test.
9058 * testsuite/libgomp.c++/scan-2.C: New test.
9059 * testsuite/libgomp.c++/scan-3.C: New test.
9060 * testsuite/libgomp.c++/scan-4.C: New test.
9061 * testsuite/libgomp.c++/scan-5.C: New test.
9062 * testsuite/libgomp.c++/scan-6.C: New test.
9063 * testsuite/libgomp.c++/scan-7.C: New test.
9064 * testsuite/libgomp.c++/scan-8.C: New test.
9065 * testsuite/libgomp.c/scan-1.c: New test.
9066 * testsuite/libgomp.c/scan-2.c: New test.
9067 * testsuite/libgomp.c/scan-3.c: New test.
9068 * testsuite/libgomp.c/scan-4.c: New test.
9069 * testsuite/libgomp.c/scan-5.c: New test.
9070 * testsuite/libgomp.c/scan-6.c: New test.
9071 * testsuite/libgomp.c/scan-7.c: New test.
9072 * testsuite/libgomp.c/scan-8.c: New test.
9073
9074 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9075
9076 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9077 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9078 Likewise.
9079
9080 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9081 check.
9082
9083 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
9084
9085 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9086 file.
9087
9088 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9089
9090 PR fortran/90743
9091 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9092 case.
9093 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9094 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9095 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9096 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9097
9098 PR testsuite/90861
9099 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9100
9101 PR middle-end/90862
9102 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9103
9104 2019-06-16 Tom de Vries <tdevries@suse.de>
9105
9106 PR tree-optimization/89376
9107 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9108
9109 2019-06-15 Tom de Vries <tdevries@suse.de>
9110
9111 PR tree-optimization/89713
9112 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9113 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9114
9115 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9116
9117 PR middle-end/90779
9118 * testsuite/libgomp.c/pr90779.c: New test.
9119 * testsuite/libgomp.fortran/pr90779.f90: New test.
9120
9121 2019-06-15 Tom de Vries <tdevries@suse.de>
9122
9123 PR tree-optimization/90009
9124 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9125
9126 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9127
9128 PR tree-optimization/89713
9129 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9130
9131 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9132
9133 PR target/90811
9134 * testsuite/libgomp.c/pr90811.c: New test.
9135
9136 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9137
9138 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9139 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9140
9141 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9142
9143 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9144 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9145 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9146 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9147
9148 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9149
9150 * configure.ac: Call AX_COUNT_CPUS.
9151 Substitute CPU_COUNT.
9152 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9153 count fallback.
9154 * aclocal.m4: Regenerate.
9155 * configure: Regenerate.
9156 * Makefile.in, testsuite/Makefile.in: Regenerate.
9157
9158 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9159
9160 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9161 to ...
9162 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9163 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9164 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9165
9166 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9167
9168 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9169
9170 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9171
9172 PR libgomp/90641
9173 * work.c (gomp_init_work_share): Instead of aligning final ordered
9174 value to multiples of long long alignment, align to that the
9175 first part (ordered team ids) and if inline_ordered_team_ids
9176 is not on a long long alignment boundary within the structure,
9177 use __alignof__ (long long) - 1 pad size always.
9178 * loop.c (GOMP_loop_start): Fix *mem computation if
9179 inline_ordered_team_ids is not aligned on long long alignment boundary
9180 within the structure.
9181 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9182 * sections.c (GOMP_sections2_start): Likewise.
9183
9184 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9185
9186 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9187 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9188
9189 PR libgomp/90585
9190 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9191 HAVE_INTTYPES_H is defined.
9192 (print_uint64_t): New typedef.
9193 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9194 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9195 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9196 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9197 before casting to void *.
9198 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9199 * oacc-mem.c: Don't include config.h nor stdint.h.
9200 * target.c: Don't include config.h.
9201 * oacc-cuda.c: Likewise.
9202 * oacc-host.c: Don't include stdint.h.
9203
9204 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9205
9206 PR libgomp/90527
9207 * alloc.c (_GNU_SOURCE): Define.
9208
9209 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9210
9211 * acc_prof.h: New file.
9212 * oacc-profiling.c: Likewise.
9213 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9214 Add these, respectively.
9215 * Makefile.in: Regenerate.
9216 * env.c (initialize_env): Call goacc_profiling_initialize.
9217 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9218 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9219 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9220 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9221 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9222 acc_prof_register, acc_prof_unregister, and acc_register_library.
9223 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9224 GOMP_PLUGIN_goacc_thread.
9225 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9226 prof_callbacks_enabled members.
9227 (goacc_prof_enabled, goacc_profiling_initialize)
9228 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9229 (goacc_profiling_dispatch): Declare.
9230 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9231 (GOACC_PROFILING_SETUP_P): Define.
9232 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9233 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9234 OpenACC Profiling Interface.
9235 * oacc-cuda.c (acc_get_current_cuda_device)
9236 (acc_get_current_cuda_context, acc_get_cuda_stream)
9237 (acc_set_cuda_stream): Likewise.
9238 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9239 (acc_init, acc_set_device_type, acc_get_device_type)
9240 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9241 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9242 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9243 (acc_unmap_data, present_create_copy, delete_copyout)
9244 (update_dev_host): Likewise.
9245 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9246 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9247 Likewise.
9248 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9249 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9250 Likewise.
9251 * libgomp.texi: Update.
9252 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9253 file.
9254 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9255 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9256 Likewise.
9257 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9258 Likewise.
9259 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9260 Likewise.
9261 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9262 Likewise.
9263
9264 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9265
9266 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9267 (struct goacc_asyncqueue_list): Likewise.
9268 (goacc_aq): Likewise.
9269 (goacc_aq_list): Likewise.
9270 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9271 (GOMP_OFFLOAD_openacc_async_test): Remove.
9272 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9273 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9274 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9275 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9276 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9277 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9278 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9279 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9280 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9281 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9282 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9283 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9284 (GOMP_OFFLOAD_openacc_async_test): Declare.
9285 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9286 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9287 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9288 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9289 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9290
9291 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9292 (gomp_acc_insert_pointer): Adjust declaration.
9293 (gomp_copy_host2dev): New declaration.
9294 (gomp_copy_dev2host): Likewise.
9295 (gomp_map_vars_async): Likewise.
9296 (gomp_unmap_tgt): Likewise.
9297 (gomp_unmap_vars_async): Likewise.
9298 (gomp_fini_device): Likewise.
9299
9300 * oacc-async.c (get_goacc_thread): New function.
9301 (get_goacc_thread_device): New function.
9302 (lookup_goacc_asyncqueue): New function.
9303 (get_goacc_asyncqueue): New function.
9304 (acc_async_test): Adjust code to use new async design.
9305 (acc_async_test_all): Likewise.
9306 (acc_wait): Likewise.
9307 (acc_wait_async): Likewise.
9308 (acc_wait_all): Likewise.
9309 (acc_wait_all_async): Likewise.
9310 (goacc_async_free): New function.
9311 (goacc_init_asyncqueues): Likewise.
9312 (goacc_fini_asyncqueues): Likewise.
9313 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9314 design.
9315 (acc_set_cuda_stream): Likewise.
9316 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9317 (host_openacc_register_async_cleanup): Remove.
9318 (host_openacc_async_exec): New function.
9319 (host_openacc_async_test): Adjust parameters.
9320 (host_openacc_async_test_all): Remove.
9321 (host_openacc_async_wait): Remove.
9322 (host_openacc_async_wait_async): Remove.
9323 (host_openacc_async_wait_all): Remove.
9324 (host_openacc_async_wait_all_async): Remove.
9325 (host_openacc_async_set_async): Remove.
9326 (host_openacc_async_synchronize): New function.
9327 (host_openacc_async_serialize): New function.
9328 (host_openacc_async_host2dev): New function.
9329 (host_openacc_async_dev2host): New function.
9330 (host_openacc_async_queue_callback): New function.
9331 (host_openacc_async_construct): New function.
9332 (host_openacc_async_destruct): New function.
9333 (struct gomp_device_descr host_dispatch): Remove initialization of old
9334 interface, add initialization of new async sub-struct.
9335 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9336 (goacc_attach_host_thread_to_device): Remove old async code usage.
9337 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9338 (goacc_fini_asyncqueues): Likewise.
9339 (goacc_async_copyout_unmap_vars): Likewise.
9340 (goacc_async_free): Likewise.
9341 (get_goacc_asyncqueue): Likewise.
9342 (lookup_goacc_asyncqueue): Likewise.
9343 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9344 design.
9345 (present_create_copy): Adjust code to use new async design.
9346 (delete_copyout): Likewise.
9347 (update_dev_host): Likewise.
9348 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9349 async design.
9350 (gomp_acc_remove_pointer): Adjust code to use new async design.
9351 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9352 design.
9353 (GOACC_enter_exit_data): Likewise.
9354 (goacc_wait): Likewise.
9355 (GOACC_update): Likewise.
9356 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9357 when called, warn as obsolete in comment.
9358 * target.c (goacc_device_copy_async): New function.
9359 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9360 add goacc_device_copy_async case.
9361 (gomp_copy_dev2host): Likewise.
9362 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9363 (gomp_map_pointer): Likewise.
9364 (gomp_map_fields_existing): Likewise.
9365 (gomp_map_vars_internal): New always_inline function, renamed from
9366 gomp_map_vars.
9367 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9368 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9369 passing goacc_asyncqueue argument.
9370 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9371 (gomp_unref_tgt): New function.
9372 (gomp_unmap_vars_internal): New always_inline function, renamed from
9373 gomp_unmap_vars.
9374 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9375 (gomp_unmap_vars_async): Implement by calling
9376 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9377 (gomp_fini_device): New function.
9378 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9379 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9380 new async interface.
9381 (gomp_target_fini): Adjust code to call gomp_fini_device.
9382
9383 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9384 (struct ptx_stream): Remove.
9385 (struct nvptx_thread): Remove current_stream field.
9386 (cuda_map_create): Remove.
9387 (cuda_map_destroy): Remove.
9388 (map_init): Remove.
9389 (map_fini): Remove.
9390 (map_pop): Remove.
9391 (map_push): Remove.
9392 (struct goacc_asyncqueue): Define.
9393 (struct nvptx_callback): Define.
9394 (struct ptx_free_block): Define.
9395 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9396 stream_lock, and next fields.
9397 (enum ptx_event_type): Remove.
9398 (struct ptx_event): Remove.
9399 (ptx_event_lock): Remove.
9400 (ptx_events): Remove.
9401 (init_streams_for_device): Remove.
9402 (fini_streams_for_device): Remove.
9403 (select_stream_for_async): Remove.
9404 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9405 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9406 case.
9407 (nvptx_open_device): Add free_blocks initialization, remove
9408 init_streams_for_device call.
9409 (nvptx_close_device): Remove fini_streams_for_device call, add
9410 free_blocks destruct code.
9411 (event_gc): Remove.
9412 (event_add): Remove.
9413 (nvptx_exec): Adjust parameters and code.
9414 (nvptx_free): Likewise.
9415 (nvptx_host2dev): Remove.
9416 (nvptx_dev2host): Remove.
9417 (nvptx_set_async): Remove.
9418 (nvptx_async_test): Remove.
9419 (nvptx_async_test_all): Remove.
9420 (nvptx_wait): Remove.
9421 (nvptx_wait_async): Remove.
9422 (nvptx_wait_all): Remove.
9423 (nvptx_wait_all_async): Remove.
9424 (nvptx_get_cuda_stream): Remove.
9425 (nvptx_set_cuda_stream): Remove.
9426 (GOMP_OFFLOAD_alloc): Adjust code.
9427 (GOMP_OFFLOAD_free): Likewise.
9428 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9429 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9430 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9431 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9432 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9433 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9434 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9435 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9436 (cuda_free_argmem): New function.
9437 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9438 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9439 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9440 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9441 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9442 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9443 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9444 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9445 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9446 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9447 (cuda_callback_wrapper): New function.
9448 (cuda_memcpy_sanity_check): New function.
9449 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9450 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9451 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9452 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9453
9454 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
9455
9456 PR target/87835
9457 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9458
9459 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
9460
9461 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9462
9463 2019-03-27 Kevin Buettner <kevinb@redhat.com>
9464
9465 * team.c (gomp_team_start): Initialize pool->threads[0].
9466
9467 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9468
9469 * testsuite/libgomp.oacc-c++/c++.exp: Specify
9470 "-foffload=$offload_target".
9471 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9472 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9473 * testsuite/lib/libgomp.exp
9474 (check_effective_target_openacc_nvidia_accel_configured): Remove,
9475 as (conceptually) merged into
9476 check_effective_target_openacc_nvidia_accel_selected. Adjust all
9477 users.
9478
9479 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9480 * testsuite/libgomp-test-support.exp.in: Adjust.
9481 * testsuite/lib/libgomp.exp: Likewise. Don't populate
9482 openacc_device_types_s.
9483 (offload_target_to_openacc_device_type): New proc.
9484 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9485 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9486 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9487 * Makefile.in: Regenerate.
9488 * configure: Likewise.
9489 * testsuite/Makefile.in: Likewise.
9490
9491 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9492 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9493 instead of OFFLOAD_TARGETS.
9494 * target.c (gomp_target_init): Adjust.
9495 * testsuite/libgomp-test-support.exp.in: Likewise.
9496 * testsuite/lib/libgomp.exp: Likewise. Populate
9497 openacc_device_types_s instead of offload_targets_s_openacc.
9498 (check_effective_target_openacc_nvidia_accel_selected)
9499 (check_effective_target_openacc_host_selected): Adjust.
9500 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9501 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9502 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9503 * Makefile.in: Regenerate.
9504 * config.h.in: Likewise.
9505 * configure: Likewise.
9506 * testsuite/Makefile.in: Likewise.
9507
9508 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9509 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
9510 "offloading: supported, but hardware not accessible".
9511 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9512 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9513
9514 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
9515
9516 PR c/87924
9517 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9518 goacc_wait().
9519 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9520 and related adjustment.
9521
9522 2019-01-30 Jakub Jelinek <jakub@redhat.com>
9523
9524 PR c++/88988
9525 * testsuite/libgomp.c++/pr88988.C: New test.
9526
9527 2019-01-28 Jakub Jelinek <jakub@redhat.com>
9528
9529 PR middle-end/89002
9530 * testsuite/libgomp.c/pr89002.c: New test.
9531
9532 2019-01-28 Richard Biener <rguenther@suse.de>
9533
9534 PR testsuite/89064
9535 PR tree-optimization/86865
9536 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9537
9538 2019-01-24 Tom de Vries <tdevries@suse.de>
9539
9540 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9541 once instantiated_devices drops to 0.
9542
9543 2019-01-23 Tom de Vries <tdevries@suse.de>
9544
9545 PR target/PR88946
9546 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9547 cuMemFree.
9548 (nvptx_exec): Don't call map_push if mapnum == 0.
9549 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9550
9551 2019-01-23 Tom de Vries <tdevries@suse.de>
9552
9553 PR target/88941
9554 PR target/88939
9555 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9556 (map_fini): Remove "assert (!s->map->active)".
9557 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9558
9559 2019-01-23 Tom de Vries <tdevries@suse.de>
9560
9561 PR target/87835
9562 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9563 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9564
9565 2019-01-15 Tom de Vries <tdevries@suse.de>
9566
9567 PR target/80547
9568 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9569 New test.
9570
9571 2019-01-12 Tom de Vries <tdevries@suse.de>
9572
9573 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9574 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9575 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9576 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9577
9578 2019-01-12 Tom de Vries <tdevries@suse.de>
9579
9580 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9581
9582 2019-01-12 Tom de Vries <tdevries@suse.de>
9583
9584 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9585 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9586 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9587
9588 2019-01-12 Tom de Vries <tdevries@suse.de>
9589
9590 PR target/85486
9591 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9592 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9593
9594 2019-01-12 Tom de Vries <tdevries@suse.de>
9595
9596 PR target/85381
9597 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9598 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9599
9600 2019-01-12 Tom de Vries <tdevries@suse.de>
9601
9602 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9603 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9604 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9605
9606 2019-01-12 Tom de Vries <tdevries@suse.de>
9607
9608 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9609 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9610 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9611
9612 2019-01-12 Tom de Vries <tdevries@suse.de>
9613
9614 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9615 resources diagnostic.
9616
9617 2019-01-12 Tom de Vries <tdevries@suse.de>
9618
9619 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9620 vector length to be 128.
9621 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9622 length 2097152 to be reduced to 1024 instead of 32.
9623
9624 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
9625 James Norris <jnorris@codesourcery.com>
9626
9627 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9628 Library Routines", and "Environment Variables".
9629
9630 2019-01-11 Tom de Vries <tdevries@suse.de>
9631
9632 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9633 num_workers 16.
9634
9635 2019-01-11 Tom de Vries <tdevries@suse.de>
9636
9637 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9638 -foffload=-w.
9639 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9640 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9641 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9642 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9643
9644 2019-01-11 Tom de Vries <tdevries@suse.de>
9645
9646 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9647 test.
9648
9649 2019-01-10 Nathan Sidwell <nathan@acm.org>
9650 Julian Brown <julian@codesourcery.com>
9651
9652 PR lto/71959
9653 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9654 * testsuite/libgomp.oacc-c++/pr71959.C: New.
9655
9656 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9657
9658 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9659 and paste code.
9660
9661 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9662
9663 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
9664 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9665 write.
9666
9667 2019-01-09 Tom de Vries <tdevries@suse.de>
9668
9669 PR target/88756
9670 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9671 #define instead of "const int".
9672 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9673 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9674 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9675 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9676
9677 2019-01-09 Tom de Vries <tdevries@suse.de>
9678
9679 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9680 one worker.
9681
9682 2019-01-07 Tom de Vries <tdevries@suse.de>
9683
9684 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9685 GOMP_OPENACC_DIM argument.
9686
9687 2019-01-03 Tom de Vries <tdevries@suse.de>
9688
9689 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9690 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9691
9692 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9693
9694 Update copyright years.
9695
9696 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9697
9698 * libgomp.texi: Bump @copying's copyright year.
9699
9700 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9701
9702 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9703 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9704 (GOACC_declare): Redefine the "device" argument to "flags".
9705
9706 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9707 Cesar Philippidis <cesar@codesourcery.com>
9708
9709 * target.c (struct gomp_coalesce_chunk): New structure.
9710 (struct gomp_coalesce_buf): Update the chunks member to use that
9711 type. Adjust all users.
9712
9713 2018-12-19 Tom de Vries <tdevries@suse.de>
9714
9715 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9716 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9717 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9718
9719 2018-12-19 Tom de Vries <tdevries@suse.de>
9720
9721 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9722 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9723 gcc/testsuite/gcc.dg/goacc.
9724 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9725
9726 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9727 Chung-Lin Tang <cltang@codesourcery.com>
9728
9729 * oacc-mem.c (acc_present_or_create): Remove definition and change
9730 to alias of acc_create.
9731 (acc_present_or_copyin): Remove definition and change to alias of
9732 acc_copyin.
9733 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9734 of acc_present_or_create.
9735 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9736 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9737 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9738 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9739 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9740 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9741 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9742 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9743 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9744 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9745 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9746 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9747 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9748 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9749 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9750 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9751
9752 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9753
9754 PR libgomp/88495
9755 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9756 "identical parameters".
9757 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9758 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9759
9760 PR libgomp/88484
9761 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9762 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9763
9764 PR libgomp/88407
9765 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9766 (nvptx_wait_async): Unseen async-argument is a no-op.
9767 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9768 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9769 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9770 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9771 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9772 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9773 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
9774 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9775 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
9776
9777 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9778 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9779
9780 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
9781
9782 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9783 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9784 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9785
9786 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9787
9788 PR libgomp/88370
9789 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9790 (acc_set_cuda_stream): Clarify.
9791 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9792 "async_valid_p".
9793 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9794 acc_async_sync".
9795 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9796 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9797 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9798 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9799
9800 2018-12-14 Tom de Vries <tdevries@suse.de>
9801
9802 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9803 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9804 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9805 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9806 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9807
9808 2018-12-13 Tom de Vries <tdevries@suse.de>
9809
9810 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9811 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9812 * fortran.c (omp_display_affinity_): ... here.
9813 * libgomp.h (gomp_print_string): Declare.
9814 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
9815 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9816 write.
9817
9818 2018-12-13 Jakub Jelinek <jakub@redhat.com>
9819
9820 PR libgomp/88460
9821 * testsuite/libgomp.c++/for-24.C (results): Include it in
9822 omp declare target region.
9823 (main): Use map (always, tofrom: results) instead of
9824 map (tofrom: results).
9825
9826 2018-12-12 Jakub Jelinek <jakub@redhat.com>
9827
9828 PR fortran/88463
9829 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9830 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9831
9832 * testsuite/libgomp.c-c++-common/for-16.c: New test.
9833
9834 2018-12-12 Andreas Schwab <schwab@suse.de>
9835
9836 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9837 clobbered.
9838
9839 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
9840
9841 PR fortran/88411
9842 * testsuite/libgomp.fortran/async_io_8.f90: New test.
9843
9844 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
9845 Jakub Jelinek <jakub@redhat.com>
9846
9847 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9848 devicep->host2dev_func.
9849
9850 2018-12-08 Jakub Jelinek <jakub@redhat.com>
9851
9852 PR libgomp/87995
9853 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9854 tls_runtime effective target.
9855 (t): New threadprivate variable.
9856 (main): Set t in threads which execute iterations of the worksharing
9857 loop. Propagate that to the task after the loop and don't abort
9858 if the current taskgroup hasn't been cancelled.
9859
9860 2018-12-02 Jakub Jelinek <jakub@redhat.com>
9861
9862 * testsuite/libgomp.c/task-reduction-3.c: New test.
9863
9864 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9865
9866 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
9867
9868 PR libgomp/88288
9869 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9870 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9871
9872 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
9873
9874 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9875
9876 2018-10-19 Richard Biener <rguenther@suse.de>
9877
9878 PR tree-optimization/88182
9879 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9880
9881 2018-11-26 Jakub Jelinek <jakub@redhat.com>
9882
9883 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9884 (RUNTEST): Don't define.
9885 (RUNTESTDEFAULTFLAGS): Add.
9886 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9887 (distclean-am): Depend on distclean-DEJAGNU.
9888 (check-am): If -j% option is present in MFLAGS and if
9889 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9890 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9891 * testsuite/Makefile.in: Regenerated.
9892
9893 2018-11-26 Richard Biener <rguenther@suse.de>
9894
9895 PR tree-optimization/88182
9896 * testsuite/libgomp.c++/pr88182.C: New testcase.
9897
9898 2018-11-20 Jakub Jelinek <jakub@redhat.com>
9899
9900 PR bootstrap/88106
9901 * config/mingw32/affinity-fmt.c: New file.
9902
9903 2018-11-09 Jakub Jelinek <jakub@redhat.com>
9904
9905 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9906 (gomp_display_affinity): Use __builtin_choose_expr to handle
9907 properly handle argument having integral, or pointer or some other
9908 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
9909 with uint64_t type instead of %llx and unsigned long long.
9910
9911 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9912 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9913
9914 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9915
9916 * affinity.c: Include <string.h>, <stdio.h>.
9917 (gomp_display_affinity_place): Remove cpusetp.
9918 * teams.c: Include <limits.h>.
9919
9920 2018-11-08 Jakub Jelinek <jakub@redhat.com>
9921
9922 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9923 in_reduction clause for s[0].
9924
9925 * affinity.c (gomp_display_affinity_place): New function.
9926 * affinity-fmt.c: New file.
9927 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9928 * config/linux/affinity.c (gomp_display_affinity_place): New function.
9929 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9930 Move these functions to ...
9931 * config/nvptx/teams.c: ... here. New file.
9932 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9933 New functions.
9934 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9935 functions.
9936 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9937 and _aligned_malloc.
9938 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9939 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9940 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9941 gomp_affinity_format_len): New variables.
9942 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9943 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
9944 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9945 modifiers. Display (non-default) chunk sizes. Print
9946 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9947 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
9948 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9949 * fortran.c: Include stdio.h and string.h.
9950 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9951 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9952 (omp_set_affinity_format_, omp_get_affinity_format_,
9953 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9954 omp_pause_resource_all_): New functions.
9955 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9956 switch.
9957 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9958 functions to ...
9959 * teams.c: ... here. New file.
9960 * libgomp_g.h: Include gstdint.h.
9961 (GOMP_loop_nonmonotonic_runtime_start,
9962 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9963 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9964 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9965 GOMP_parallel_loop_nonmonotonic_runtime,
9966 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9967 GOMP_loop_ull_nonmonotonic_runtime_start,
9968 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9969 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9970 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9971 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9972 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9973 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9974 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9975 GOMP_teams_reg): Declare.
9976 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9977 gomp_aligned_alloc uses fallback implementation.
9978 (gomp_aligned_alloc, gomp_aligned_free): Declare.
9979 (enum gomp_schedule_type): Add GFS_MONOTONIC.
9980 (struct gomp_doacross_work_share): Add extra field.
9981 (struct gomp_work_share): Add task_reductions field.
9982 (struct gomp_taskgroup): Add workshare and reductions fields.
9983 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9984 (gomp_thread_handle): New typedef.
9985 (gomp_display_affinity_place, gomp_set_affinity_format,
9986 gomp_display_string, gomp_display_affinity,
9987 gomp_display_affinity_thread): Declare.
9988 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9989 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9990 gomp_workshare_task_reduction_register): Declare.
9991 (gomp_team_start): Add taskgroup argument.
9992 (gomp_pause_host): Declare.
9993 (gomp_init_work_share, gomp_work_share_start): Change bool argument
9994 to size_t.
9995 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9996 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9997 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9998 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9999 GOMP_loop_ull_doacross_start,
10000 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10001 GOMP_loop_maybe_nonmonotonic_runtime_next,
10002 GOMP_loop_maybe_nonmonotonic_runtime_start,
10003 GOMP_loop_nonmonotonic_runtime_next,
10004 GOMP_loop_nonmonotonic_runtime_start,
10005 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10006 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10007 GOMP_loop_ull_nonmonotonic_runtime_next,
10008 GOMP_loop_ull_nonmonotonic_runtime_start,
10009 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10010 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10011 GOMP_taskgroup_reduction_register,
10012 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10013 GOMP_teams_reg and GOMP_taskwait_depend.
10014 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10015 omp_{capture,display}_affinity{,_}, and
10016 omp_[gs]et_affinity_format{,_}.
10017 * loop.c: Include string.h.
10018 (GOMP_loop_runtime_next): Add ialias.
10019 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10020 (gomp_loop_static_start, gomp_loop_dynamic_start,
10021 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10022 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10023 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10024 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10025 or gomp_doacross_init callers.
10026 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10027 GOMP_loop_doacross_start): New functions.
10028 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10029 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10030 Mask off GFS_MONOTONIC bit.
10031 (GOMP_loop_maybe_nonmonotonic_runtime_next,
10032 GOMP_loop_maybe_nonmonotonic_runtime_start,
10033 GOMP_loop_nonmonotonic_runtime_next,
10034 GOMP_loop_nonmonotonic_runtime_start,
10035 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10036 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10037 functions.
10038 (gomp_parallel_loop_start): Pass NULL as taskgroup to
10039 gomp_team_start.
10040 * loop_ull.c: Include string.h.
10041 (GOMP_loop_ull_runtime_next): Add ialias.
10042 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10043 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10044 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10045 gomp_loop_ull_ordered_dynamic_start,
10046 gomp_loop_ull_ordered_guided_start,
10047 gomp_loop_ull_doacross_static_start,
10048 gomp_loop_ull_doacross_dynamic_start,
10049 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10050 and gomp_doacross_ull_init callers.
10051 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10052 GOMP_loop_ull_doacross_start): New functions.
10053 (GOMP_loop_ull_runtime_start,
10054 GOMP_loop_ull_ordered_runtime_start,
10055 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10056 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10057 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10058 GOMP_loop_ull_nonmonotonic_runtime_next,
10059 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10060 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10061 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10062 (omp_pause_resource_t, omp_depend_t): New typedefs.
10063 (enum omp_lock_hint_t): Renamed to ...
10064 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
10065 enumerators using numbers and omp_lock_hint_* as their aliases.
10066 (omp_lock_hint_t): New typedef. Rename to ...
10067 (omp_sync_hint_t): ... this.
10068 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10069 omp_sync_hint_t instead of omp_lock_hint_t.
10070 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10071 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10072 Declare.
10073 (omp_target_is_present, omp_target_disassociate_ptr):
10074 Change first argument from void * to const void *.
10075 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10076 from void * to const void *.
10077 (omp_target_associate_ptr): Change first and second arguments from
10078 void * to const void *.
10079 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10080 omp_pause_hard): New parameters.
10081 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10082 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10083 New interfaces.
10084 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10085 omp_pause_hard): New parameters.
10086 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10087 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10088 New externals.
10089 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10090 EXTRA argument. If not needed to prepare array, if extra is 0,
10091 clear ws->doacross, otherwise allocate just doacross structure and
10092 extra payload. If array is needed, allocate also extra payload.
10093 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10094 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10095 doacross == NULL.
10096 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10097 gomp_team_start.
10098 (GOMP_parallel): Likewise. Formatting fix.
10099 (GOMP_parallel_reductions): New function.
10100 (GOMP_cancellation_point): If taskgroup has workshare
10101 flag set, check cancelled of prev taskgroup if any.
10102 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10103 on prev taskgroup if any.
10104 * sections.c: Include string.h.
10105 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10106 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10107 (GOMP_sections2_start): New function.
10108 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10109 Pass NULL as taskgroup to gomp_team_start.
10110 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10111 gomp_work_share_start callers.
10112 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10113 If taskgroup has workshare flag set, check cancelled on prev
10114 taskgroup if any. Guard all cancellation tests with
10115 gomp_cancel_var test.
10116 (omp_target_is_present, omp_target_disassociate_ptr):
10117 Change ptr argument from void * to const void *.
10118 (omp_target_memcpy): Change src argument from void * to const void *.
10119 (omp_target_memcpy_rect): Likewise.
10120 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10121 instead of char * where needed.
10122 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10123 from void * to const void *.
10124 (omp_pause_resource, omp_pause_resource_all): New functions.
10125 * task.c (gomp_task_handle_depend): Handle new depend array format
10126 in addition to the old. Handle mutexinoutset kinds the same as
10127 inout for now, handle unspecified kinds.
10128 (gomp_create_target_task): If taskgroup has workshare flag set, check
10129 cancelled on prev taskgroup if any. Guard all cancellation tests with
10130 gomp_cancel_var test. Handle new depend array format count in
10131 addition to the old.
10132 (GOMP_task): Likewise. Adjust function comment.
10133 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10134 cancelled on prev taskgroup if any. Guard all cancellation tests with
10135 gomp_cancel_var test.
10136 (GOMP_taskwait_depend): New function.
10137 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10138 format in addition to the old. Handle mutexinoutset kinds the same as
10139 inout for now, handle unspecified kinds. Fix a function comment typo.
10140 (gomp_taskgroup_init): New function.
10141 (GOMP_taskgroup_start): Use it.
10142 (gomp_reduction_register, gomp_create_artificial_team,
10143 GOMP_taskgroup_reduction_register,
10144 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10145 gomp_parallel_reduction_register,
10146 gomp_workshare_task_reduction_register,
10147 gomp_workshare_taskgroup_start,
10148 GOMP_workshare_task_reduction_unregister): New functions.
10149 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10150 check cancelled on prev taskgroup if any. Guard all cancellation
10151 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10152 by calling GOMP_taskgroup_reduction_register.
10153 * team.c (gomp_thread_attr): Remove comment.
10154 (struct gomp_thread_start_data): Add handle field.
10155 (gomp_thread_start): Call pthread_detach.
10156 (gomp_new_team): Adjust gomp_init_work_share caller.
10157 (gomp_free_pool_helper): Call pthread_detach.
10158 (gomp_team_start): Add taskgroup argument, initialize implicit
10159 tasks' taskgroup field to that. Don't call
10160 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10161 (gomp_team_end): Determine nesting by thr->ts.level != 0
10162 rather than thr->ts.team != NULL.
10163 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10164 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10165 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10166 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10167 if more than 1 allocate also extra payload at the end of array. Never
10168 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10169 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10170 return true instead of ws.
10171 * Makefile.in: Regenerated.
10172 * configure: Regenerated.
10173 * config.h.in: Regenerated.
10174 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10175 in some cases.
10176 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10177 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10178 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10179 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10180 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10181 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10182 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10183 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10184 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10185 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10186 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10187 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10188 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10189 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10190 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10191 define a different N(test), don't define N(f0) to N(f14), but instead
10192 define N(f20) to N(f34) using != comparisons.
10193 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10194 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10195 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10196 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10197 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10198 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10199 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10200 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10201 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10202 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10203 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10204 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10205 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10206 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10207 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10208 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10209 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10210 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10211 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10212 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10213 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10214 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10215 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10216 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10217 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10218 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10219 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10220 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10221 * testsuite/libgomp.c++/depend-1.C: New test.
10222 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10223 * testsuite/libgomp.c++/depobj-1.C: New test.
10224 * testsuite/libgomp.c++/for-16.C: New test.
10225 * testsuite/libgomp.c++/for-21.C: New test.
10226 * testsuite/libgomp.c++/for-22.C: New test.
10227 * testsuite/libgomp.c++/for-23.C: New test.
10228 * testsuite/libgomp.c++/for-24.C: New test.
10229 * testsuite/libgomp.c++/for-25.C: New test.
10230 * testsuite/libgomp.c++/for-26.C: New test.
10231 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10232 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10233 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10234 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10235 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10236 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10237 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10238 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10239 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10240 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10241 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10242 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10243 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10244 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10245 * testsuite/libgomp.c/task-reduction-1.c: New test.
10246 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10247 * testsuite/libgomp.c/task-reduction-2.c: New test.
10248 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10249 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10250 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10251 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10252 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10253 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10254 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10255 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10256 * testsuite/libgomp.c/teams-1.c: New test.
10257 * testsuite/libgomp.c/teams-2.c: New test.
10258 * testsuite/libgomp.c/thread-limit-4.c: New test.
10259 * testsuite/libgomp.c/thread-limit-5.c: New test.
10260 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10261
10262 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10263
10264 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10265 acc_memcpy_to/from_device functions, now with async parameter.
10266 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10267 (acc_memcpy_from_device): Likewise.
10268 (acc_memcpy_to_device_async): New API function.
10269 (acc_memcpy_from_device_async): Likewise.
10270 (present_create_copy): Add async parameter and async setting/unsetting.
10271 (acc_create): Adjust present_create_copy call.
10272 (acc_copyin): Likewise.
10273 (acc_present_or_create): Likewise.
10274 (acc_present_or_copyin): Likewise.
10275 (acc_create_async): New API function.
10276 (acc_copyin_async): New API function.
10277 (delete_copyout): Add async parameter and async setting/unsetting.
10278 (acc_delete): Adjust delete_copyout call.
10279 (acc_copyout): Likewise.
10280 (acc_delete_async): New API function.
10281 (acc_copyout_async): Likewise.
10282 (update_dev_host): Add async parameter and async setting/unsetting.
10283 (acc_update_device): Adjust update_dev_host call.
10284 (acc_update_self): Likewise.
10285 (acc_update_device_async): New API function.
10286 (acc_update_self_async): Likewise.
10287 * openacc.h (acc_copyin_async): Declare new API function.
10288 (acc_create_async): Likewise.
10289 (acc_copyout_async): Likewise.
10290 (acc_delete_async): Likewise.
10291 (acc_update_device_async): Likewise.
10292 (acc_update_self_async): Likewise.
10293 (acc_memcpy_to_device_async): Likewise.
10294 (acc_memcpy_from_device_async): Likewise.
10295 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10296 (acc_copyin_async_64_h): New subroutine.
10297 (acc_copyin_async_array_h): New subroutine.
10298 (acc_create_async_32_h): New subroutine.
10299 (acc_create_async_64_h): New subroutine.
10300 (acc_create_async_array_h): New subroutine.
10301 (acc_copyout_async_32_h): New subroutine.
10302 (acc_copyout_async_64_h): New subroutine.
10303 (acc_copyout_async_array_h): New subroutine.
10304 (acc_delete_async_32_h): New subroutine.
10305 (acc_delete_async_64_h): New subroutine.
10306 (acc_delete_async_array_h): New subroutine.
10307 (acc_update_device_async_32_h): New subroutine.
10308 (acc_update_device_async_64_h): New subroutine.
10309 (acc_update_device_async_array_h): New subroutine.
10310 (acc_update_self_async_32_h): New subroutine.
10311 (acc_update_self_async_64_h): New subroutine.
10312 (acc_update_self_async_array_h): New subroutine.
10313 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10314 (acc_copyin_async_64_h): New subroutine.
10315 (acc_copyin_async_array_h): New subroutine.
10316 (acc_create_async_32_h): New subroutine.
10317 (acc_create_async_64_h): New subroutine.
10318 (acc_create_async_array_h): New subroutine.
10319 (acc_copyout_async_32_h): New subroutine.
10320 (acc_copyout_async_64_h): New subroutine.
10321 (acc_copyout_async_array_h): New subroutine.
10322 (acc_delete_async_32_h): New subroutine.
10323 (acc_delete_async_64_h): New subroutine.
10324 (acc_delete_async_array_h): New subroutine.
10325 (acc_update_device_async_32_h): New subroutine.
10326 (acc_update_device_async_64_h): New subroutine.
10327 (acc_update_device_async_array_h): New subroutine.
10328 (acc_update_self_async_32_h): New subroutine.
10329 (acc_update_self_async_64_h): New subroutine.
10330 (acc_update_self_async_array_h): New subroutine.
10331 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10332 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10333 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10334 acc_memcpy_to_device_async*, acc_update_device_async*, and
10335 acc_update_self_async* entries.
10336 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10337 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10338 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10339
10340 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10341
10342 PR bootstrap/82856
10343 * Makefile.am: Include multilib.am
10344 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10345 (CLEANFILES): Remove libgomp.info.
10346 * configure.ac: Remove AC_PREREQ.
10347 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10348 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10349 Regenerate.
10350
10351 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10352 Julian Brown <julian@codesourcery.com>
10353
10354 * testsuite/libgomp.oacc-c++/this.C: New.
10355
10356 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10357
10358 * plugin/plugin-nvptx.c (struct cuda_map): New.
10359 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10360 h_tail with (cuda_map *) map.
10361 (cuda_map_create): New function.
10362 (cuda_map_destroy): New function.
10363 (map_init): Update to use a linked list of cuda_map objects.
10364 (map_fini): Likewise.
10365 (map_pop): Likewise.
10366 (map_push): Likewise. Return CUdeviceptr instead of void.
10367 (init_streams_for_device): Remove stales references to ptx_stream
10368 members.
10369 (select_stream_for_async): Likewise.
10370 (nvptx_exec): Update call to map_init.
10371
10372 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10373 Julian Brown <julian@codesourcery.com>
10374
10375 PR middle-end/86336
10376 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10377
10378 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10379 Thomas Koenig <tkoenig@gcc.gnu.org>
10380
10381 PR fortran/25829
10382 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10383 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10384 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10385 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10386 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10387 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10388 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10389
10390 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10391 Tom de Vries <tdevries@suse.de>
10392
10393 PR target/85590
10394 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10395 (cuOccupancyMaxPotentialBlockSize): Declare.
10396 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10397 CUDA_ONE_CALL_MAYBE_NULL.
10398 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10399 CUoccupancyB2DSize and declare
10400 cuOccupancyMaxPotentialBlockSize.
10401 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10402 default num_gangs and num_workers when the driver supports it.
10403
10404 2018-08-08 Tom de Vries <tdevries@suse.de>
10405
10406 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10407 CUDA_ONE_CALL_MAYBE_NULL.
10408 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10409 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10410 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10411 are not found.
10412
10413 2018-08-08 Tom de Vries <tdevries@suse.de>
10414
10415 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10416 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10417 present.
10418
10419 2018-08-08 Tom de Vries <tdevries@suse.de>
10420
10421 * plugin/plugin-nvptx.c
10422 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10423 (nvptx_open_device): Use
10424 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10425
10426 2018-08-08 Tom de Vries <tdevries@suse.de>
10427
10428 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10429 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
10430
10431 2018-08-07 Tom de Vries <tdevries@suse.de>
10432
10433 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10434 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10435 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
10436 corresponding call in CUDA_ONE_CALL. Add def/undef of
10437 CUDA_ONE_CALL_MAYBE_NULL.
10438 (CUDA_CALL_EXISTS): Define.
10439
10440 2018-08-07 Tom de Vries <tdevries@suse.de>
10441
10442 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10443 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10444 corresponding undefs right after.
10445
10446 2018-08-04 Tom de Vries <tdevries@suse.de>
10447
10448 * plugin/configfrag.ac: For --without-cuda-driver, set
10449 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
10450 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10451 * configure: Regenerate.
10452
10453 2018-08-02 Tom de Vries <tdevries@suse.de>
10454
10455 PR target/86660
10456 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10457 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10458 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10459 Same.
10460 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10461 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10462 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10463
10464 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10465 Thomas Schwinge <thomas@codesourcery.com>
10466
10467 * config/nvptx/oacc-parallel.c: Truncate.
10468
10469 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10470 James Norris <jnorris@codesourcery.com>
10471
10472 * plugin/plugin-nvptx.c (struct map): Removed.
10473 (map_init, map_pop): Remove use of struct map.
10474 (map_push): Likewise and change argument list.
10475 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10476
10477 2018-08-01 Tom de Vries <tdevries@suse.de>
10478
10479 * plugin/cuda-lib.def: New file. Factor out of ...
10480 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10481 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10482 using CUDA_CALLS.
10483
10484 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
10485
10486 Revert 'AsyncI/O patch committed'.
10487 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10488 Thomas Koenig <tkoenig@gcc.gnu.org>
10489
10490 PR fortran/25829
10491 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10492 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10493 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10494 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10495 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10496 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10497 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10498
10499 2018-07-30 Tom de Vries <tdevries@suse.de>
10500
10501 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10502 (nvptx_exec): Ensure worker and vector default dims don't exceed
10503 targ_fn->max_threads_per_block.
10504
10505 2018-07-30 Tom de Vries <tdevries@suse.de>
10506
10507 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10508 (nvptx_open_device): Init default_dims for device.
10509 (nvptx_exec): Use default_dims from device.
10510
10511 2018-07-26 Jakub Jelinek <jakub@redhat.com>
10512
10513 PR testsuite/86660
10514 * testsuite/libgomp.c++/for-15.C (results): Include it in
10515 omp declare target region.
10516 (main): Use map (always, tofrom: results) instead of
10517 map (tofrom: results).
10518
10519 PR middle-end/86660
10520 * testsuite/libgomp.c/pr86660.c: New test.
10521
10522 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10523 Tom de Vries <tdevries@suse.de>
10524
10525 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10526 sufficient resources to launch a kernel, and give a hint on how to fix
10527 it.
10528
10529 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10530 Tom de Vries <tdevries@suse.de>
10531
10532 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10533 max_threads_per_block and max_threads_per_multiprocessor fields.
10534 (nvptx_open_device): Initialize new fields.
10535 (nvptx_exec): Use num_sms, and new fields.
10536
10537 2018-07-26 Tom de Vries <tdevries@suse.de>
10538
10539 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10540 to correct locations. Remove xfail.
10541
10542 2018-07-26 Tom de Vries <tdevries@suse.de>
10543
10544 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10545 acc_wait. Move acc_async_test calls to correct locations. Remove
10546 xfail.
10547
10548 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10549 Thomas Koenig <tkoenig@gcc.gnu.org>
10550
10551 PR fortran/25829
10552 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10553 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10554 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10555 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10556 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10557 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10558 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10559
10560 2018-07-17 Jakub Jelinek <jakub@redhat.com>
10561
10562 PR middle-end/86542
10563 * testsuite/libgomp.c++/pr86542.C: New test.
10564
10565 PR middle-end/86539
10566 * testsuite/libgomp.c++/pr86539.C: New test.
10567
10568 2018-07-11 Jakub Jelinek <jakub@redhat.com>
10569
10570 PR c++/86443
10571 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10572 (results): Make sure the variable is not inside declare target region.
10573 (qux): Remove unused function.
10574
10575 2018-07-10 Jakub Jelinek <jakub@redhat.com>
10576
10577 PR c++/86443
10578 * testsuite/libgomp.c++/for-15.C: New test.
10579
10580 2018-06-26 Jakub Jelinek <jakub@redhat.com>
10581
10582 PR c++/86291
10583 * testsuite/libgomp.c++/pr86291.C: New test.
10584
10585 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
10586
10587 * libgomp.texi (Top): Move www.openmp.org to https.
10588 (Enabling OpenMP): Ditto.
10589 (omp_get_active_level): Ditto.
10590 (omp_get_ancestor_thread_num): Ditto.
10591 (omp_get_cancellation): Ditto.
10592 (omp_get_default_device): Ditto.
10593 (omp_get_dynamic): Ditto.
10594 (omp_get_level): Ditto.
10595 (omp_get_max_active_levels): Ditto.
10596 (omp_get_max_task_priority): Ditto.
10597 (omp_get_max_threads): Ditto.
10598 (omp_get_nested): Ditto.
10599 (omp_get_num_devices): Ditto.
10600 (omp_get_num_procs): Ditto.
10601 (omp_get_num_teams): Ditto.
10602 (omp_get_num_threads): Ditto.
10603 (omp_get_proc_bind): Ditto.
10604 (omp_get_schedule): Ditto.
10605 (omp_get_team_num): Ditto.
10606 (omp_get_team_size): Ditto.
10607 (omp_get_thread_limit): Ditto.
10608 (omp_get_thread_num): Ditto.
10609 (omp_in_parallel): Ditto.
10610 (omp_in_final): Ditto.
10611 (omp_is_initial_device): Ditto.
10612 (omp_set_default_device): Ditto.
10613 (omp_set_dynamic): Ditto.
10614 (omp_set_max_active_levels): Ditto.
10615 (omp_set_nested): Ditto.
10616 (omp_set_num_threads): Ditto.
10617 (omp_set_schedule): Ditto.
10618 (omp_init_lock): Ditto.
10619 (omp_set_lock): Ditto.
10620 (omp_test_lock): Ditto.
10621 (omp_unset_lock): Ditto.
10622 (omp_destroy_lock): Ditto.
10623 (omp_init_nest_lock): Ditto.
10624 (omp_set_nest_lock): Ditto.
10625 (omp_test_nest_lock): Ditto.
10626 (omp_unset_nest_lock): Ditto.
10627 (omp_destroy_nest_lock): Ditto.
10628 (omp_get_wtick): Ditto.
10629 (omp_get_wtime): Ditto.
10630 (OMP_CANCELLATION): Ditto.
10631 (OMP_DISPLAY_ENV): Ditto.
10632 (OMP_DEFAULT_DEVICE): Ditto.
10633 (OMP_DYNAMIC): Ditto.
10634 (OMP_MAX_ACTIVE_LEVELS): Ditto.
10635 (OMP_MAX_TASK_PRIORITY): Ditto.
10636 (OMP_NESTED): Ditto.
10637 (OMP_NUM_THREADS): Ditto.
10638 (OMP_PROC_BIND): Ditto.
10639 (OMP_PLACES): Ditto.
10640 (OMP_STACKSIZE): Ditto.
10641 (OMP_SCHEDULE): Ditto.
10642 (OMP_THREAD_LIMIT): Ditto.
10643 (OMP_WAIT_POLICY): Ditto.
10644
10645 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
10646 James Norris <jnorris@codesourcery.com>
10647 Julian Brown <julian@codesourcery.com>
10648 Thomas Schwinge <thomas@codesourcery.com>
10649 Tom de Vries <tom@codesourcery.com>
10650
10651 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10652 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10653 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10654 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10655 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10656 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10657 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10658 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10659 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10660 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10661 Likewise.
10662 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10663 Likewise.
10664 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10665 Likewise.
10666 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10667 Likewise.
10668 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10669 Likewise.
10670 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10671 Likewise.
10672 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10673 Likewise.
10674 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10675 Likewise.
10676 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10677 Likewise.
10678 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10679 Likewise.
10680 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10681 Likewise.
10682 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10683 Likewise.
10684 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10685 Likewise.
10686 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10687 Likewise.
10688 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10689 Likewise.
10690 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10691 Likewise.
10692 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10693 Likewise.
10694 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10695 Likewise.
10696 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10697 Likewise.
10698 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10699 Likewise.
10700 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10701 Likewise.
10702 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10703 Likewise.
10704 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10705 Likewise.
10706 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10707 Likewise.
10708 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10709 Likewise.
10710 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10711 Likewise.
10712 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10713 Likewise.
10714 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10715 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10716 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10717 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10718 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10719 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10720 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10721 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10722 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10723 Likewise.
10724 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10725 Likewise.
10726 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10727 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10728 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10729 Likewise.
10730 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10731 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10732 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10733 Likewise.
10734 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10735 Likewise.
10736 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10737 Likewise.
10738 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10739 Likewise.
10740 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10741 Likewise.
10742 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10743 Likewise.
10744 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10745 Likewise.
10746 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10747 Likewise.
10748 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10749 Likewise.
10750 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10751 Likewise.
10752 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10753 Likewise.
10754 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10755 Likewise.
10756 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10757 Likewise.
10758 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10759 Likewise.
10760 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10761 Likewise.
10762 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10763 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10764 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10765 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10766 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10767 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10768 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10769
10770 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
10771 Thomas Schwinge <thomas@codesourcery.com>
10772 Cesar Philippidis <cesar@codesourcery.com>
10773
10774 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10775 (gomp_acc_remove_pointer): Update declaration.
10776 (gomp_acc_declare_allocate): Declare.
10777 (gomp_remove_var): Declare.
10778 * libgomp.map (OACC_2.5): Define.
10779 * oacc-mem.c (acc_map_data): Update refcount.
10780 (acc_unmap_data): Likewise.
10781 (present_create_copy): Likewise.
10782 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10783 (acc_copyin): Likewise.
10784 (FLAG_FINALIZE): Define.
10785 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10786 (acc_delete_finalize): New function.
10787 (acc_delete_finalize_async): New function.
10788 (acc_copyout_finalize): New function.
10789 (acc_copyout_finalize_async): New function.
10790 (gomp_acc_insert_pointer): Update refcounts.
10791 (gomp_acc_remove_pointer): Return if data is not present on the
10792 accelerator.
10793 * oacc-parallel.c (find_pset): Rename to find_pointer.
10794 (find_pointer): Add support for GOMP_MAP_POINTER.
10795 (handle_ftn_pointers): New function.
10796 (GOACC_parallel_keyed): Update refcounts of variables.
10797 (GOACC_enter_exit_data): Add support for finalized data mappings.
10798 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10799 of fortran arrays.
10800 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10801 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10802 for GOMP_MAP_FORCE_FROM.
10803 * openacc.f90 (module openacc_internal): Add
10804 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10805 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10806 acc_copyout_finalize and acc_delete_finalize.
10807 (acc_copyout_finalize_32_h): New subroutine.
10808 (acc_copyout_finalize_64_h): New subroutine.
10809 (acc_copyout_finalize_array_h): New subroutine.
10810 (acc_delete_finalize_32_h): New subroutine.
10811 (acc_delete_finalize_64_h): New subroutine.
10812 (acc_delete_finalize_array_h): New subroutine.
10813 * openacc.h (acc_copyout_finalize): Declare.
10814 (acc_copyout_finalize_async): Declare.
10815 (acc_delete_finalize): Declare.
10816 (acc_delete_finalize_async): Declare.
10817 * openacc_lib.h (acc_copyout_finalize): New interface.
10818 (acc_delete_finalize): New interface.
10819 * target.c (gomp_map_vars): Update dynamic_refcount.
10820 (gomp_remove_var): New function.
10821 (gomp_unmap_vars): Use it.
10822 (gomp_unload_image_from_device): Likewise.
10823 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10824 case to utilize OpenACC 2.5 data clause semantics.
10825 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10826 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10827 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10828 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10829 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10830 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10831 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10832 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10833 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10834 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10835 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10836 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10837 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10838 utilize OpenACC 2.5 data clause semantics.
10839 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10840 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10841 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10842 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10843 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10844 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10845 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10846 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10847 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10848
10849 2018-05-21 Janus Weil <janus@gcc.gnu.org>
10850
10851 PR fortran/85841
10852 PR testsuite/85865
10853 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10854 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10855 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10856 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10857 * testsuite/libgomp.fortran/task2.f90: Ditto.
10858 * testsuite/libgomp.fortran/vla1.f90: Ditto.
10859 * testsuite/libgomp.fortran/vla2.f90: Ditto.
10860 * testsuite/libgomp.fortran/vla3.f90: Ditto.
10861 * testsuite/libgomp.fortran/vla4.f90: Ditto.
10862 * testsuite/libgomp.fortran/vla5.f90: Ditto.
10863 * testsuite/libgomp.fortran/vla6.f90: Ditto.
10864 * testsuite/libgomp.fortran/vla8.f90: Ditto.
10865 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10866 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10867
10868 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
10869
10870 PR c++/85782
10871 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10872
10873 2018-05-09 Tom de Vries <tom@codesourcery.com>
10874
10875 PR libgomp/82901
10876 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10877 to GOACC_enter_exit_data.
10878
10879 2018-05-09 Tom de Vries <tom@codesourcery.com>
10880
10881 PR libgomp/83792
10882 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10883 (async_synchronous_p): New function.
10884 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10885 async_valid_p.
10886 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10887 async_valid_stream_id_p.
10888 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10889 * oacc-parallel.c (GOACC_parallel_keyed): Same.
10890
10891 2018-05-07 Tom de Vries <tom@codesourcery.com>
10892
10893 PR testsuite/85677
10894 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10895 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10896
10897 2018-05-03 Tom de Vries <tom@codesourcery.com>
10898
10899 PR testsuite/85106
10900 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10901 extra_tool_flags if it contains an -foffload=-fdump-* flag.
10902 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10903 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10904
10905 2018-05-02 Tom de Vries <tom@codesourcery.com>
10906
10907 PR libgomp/85411
10908 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10909 GOMP_OPENACC_DIM ...
10910 * env.c (parse_gomp_openacc_dim): ... here. New function.
10911 (initialize_env): Call parse_gomp_openacc_dim.
10912 (goacc_default_dims): Define.
10913 * libgomp.h (goacc_default_dims): Declare.
10914 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10915 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10916 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10917 GOMP_PLUGIN_acc_default_dim.
10918 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10919 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10920
10921 2018-05-02 Tom de Vries <tom@codesourcery.com>
10922
10923 PR testsuite/83791
10924 * testsuite/libgomp.c++/udr-9.C: Update.
10925 * testsuite/libgomp.c++/atomic-16.C: Remove.
10926 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10927 * testsuite/libgomp.c++/loop-13.C: Remove.
10928 * testsuite/libgomp.c++/loop-14.C: Remove.
10929 * testsuite/libgomp.c++/loop-15.C: Remove.
10930 * testsuite/libgomp.c++/monotonic-1.C: Remove.
10931 * testsuite/libgomp.c++/monotonic-2.C: Remove.
10932 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10933 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10934 * testsuite/libgomp.c++/ordered-1.C: Remove.
10935 * testsuite/libgomp.c++/pr45784.C: Remove.
10936 * testsuite/libgomp.c++/pr64824.C: Remove.
10937 * testsuite/libgomp.c++/pr64868.C: Remove.
10938 * testsuite/libgomp.c++/pr66199-1.C: Remove.
10939 * testsuite/libgomp.c++/pr66199-2.C: Remove.
10940 * testsuite/libgomp.c++/pr66199-3.C: Remove.
10941 * testsuite/libgomp.c++/pr66199-4.C: Remove.
10942 * testsuite/libgomp.c++/pr66199-5.C: Remove.
10943 * testsuite/libgomp.c++/pr66199-6.C: Remove.
10944 * testsuite/libgomp.c++/pr66199-7.C: Remove.
10945 * testsuite/libgomp.c++/pr66199-8.C: Remove.
10946 * testsuite/libgomp.c++/pr66199-9.C: Remove.
10947 * testsuite/libgomp.c++/pr69389.C: Remove.
10948 * testsuite/libgomp.c++/simd10.C: Remove.
10949 * testsuite/libgomp.c++/simd11.C: Remove.
10950 * testsuite/libgomp.c++/simd12.C: Remove.
10951 * testsuite/libgomp.c++/simd13.C: Remove.
10952 * testsuite/libgomp.c++/target-1.C: Remove.
10953 * testsuite/libgomp.c++/target-3.C: Remove.
10954 * testsuite/libgomp.c++/target-4.C: Remove.
10955 * testsuite/libgomp.c++/target-5.C: Remove.
10956 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10957 * testsuite/libgomp.c++/taskloop-1.C: Remove.
10958 * testsuite/libgomp.c++/taskloop-2.C: Remove.
10959 * testsuite/libgomp.c++/taskloop-3.C: Remove.
10960 * testsuite/libgomp.c++/taskloop-4.C: Remove.
10961 * testsuite/libgomp.c++/udr-9.C: Remove.
10962 * testsuite/libgomp.c++/for-10.C: Remove.
10963 * testsuite/libgomp.c++/for-11.C: Remove.
10964 * testsuite/libgomp.c++/for-12.C: Remove.
10965 * testsuite/libgomp.c++/for-13.C: Remove.
10966 * testsuite/libgomp.c++/for-14.C: Remove.
10967 * testsuite/libgomp.c++/for-9.C: Remove.
10968 * testsuite/libgomp.c/atomic-18.c: Move ...
10969 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10970 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10971 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10972 * testsuite/libgomp.c/loop-13.c: Move ...
10973 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10974 * testsuite/libgomp.c/loop-14.c: Move ...
10975 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10976 * testsuite/libgomp.c/loop-15.c: Remove.
10977 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10978 * testsuite/libgomp.c/monotonic-1.c: Move ...
10979 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10980 * testsuite/libgomp.c/monotonic-2.c: Move ...
10981 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10982 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10983 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10984 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10985 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10986 * testsuite/libgomp.c/ordered-4.c: Move ...
10987 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10988 * testsuite/libgomp.c/pr45784.c: Move ...
10989 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10990 * testsuite/libgomp.c/pr64824.c: Move ...
10991 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10992 * testsuite/libgomp.c/pr64868.c: Move ...
10993 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10994 * testsuite/libgomp.c/pr66199-1.c: Move ...
10995 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10996 * testsuite/libgomp.c/pr66199-2.c: Move ...
10997 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10998 * testsuite/libgomp.c/pr66199-3.c: Move ...
10999 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11000 * testsuite/libgomp.c/pr66199-4.c: Move ...
11001 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11002 * testsuite/libgomp.c/pr66199-5.c: Move ...
11003 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11004 * testsuite/libgomp.c/pr66199-6.c: Move ...
11005 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11006 * testsuite/libgomp.c/pr66199-7.c: Move ...
11007 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11008 * testsuite/libgomp.c/pr66199-8.c: Move ...
11009 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11010 * testsuite/libgomp.c/pr66199-9.c: Move ...
11011 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11012 * testsuite/libgomp.c/pr69389.c: Move ...
11013 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11014 * testsuite/libgomp.c/simd-14.c: Move ...
11015 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11016 * testsuite/libgomp.c/simd-15.c: Move ...
11017 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11018 * testsuite/libgomp.c/simd-16.c: Move ...
11019 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11020 * testsuite/libgomp.c/simd-17.c: Move ...
11021 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11022 * testsuite/libgomp.c/target-1.c: Move ...
11023 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11024 * testsuite/libgomp.c/target-10.c: Move ...
11025 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11026 * testsuite/libgomp.c/target-13.c: Move ...
11027 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11028 * testsuite/libgomp.c/target-2.c: Move ...
11029 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11030 * testsuite/libgomp.c/taskgroup-1.c: Move ...
11031 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11032 * testsuite/libgomp.c/taskloop-1.c: Move ...
11033 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11034 * testsuite/libgomp.c/taskloop-2.c: Move ...
11035 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11036 * testsuite/libgomp.c/taskloop-3.c: Move ...
11037 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11038 * testsuite/libgomp.c/taskloop-4.c: Move ...
11039 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11040 * testsuite/libgomp.c/udr-1.c: Move ...
11041 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11042 * testsuite/libgomp.c/for-1.c: Move ...
11043 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11044 * testsuite/libgomp.c/for-1.h: Move ...
11045 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11046 * testsuite/libgomp.c/for-2.c: Move ...
11047 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11048 * testsuite/libgomp.c/for-2.h: Move ...
11049 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11050 * testsuite/libgomp.c/for-3.c: Move ...
11051 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11052 * testsuite/libgomp.c/for-4.c: Move ...
11053 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11054 * testsuite/libgomp.c/for-5.c: Move ...
11055 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11056 * testsuite/libgomp.c/for-6.c: Move ...
11057 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11058
11059 2018-05-02 Tom de Vries <tom@codesourcery.com>
11060
11061 PR libgomp/82428
11062 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11063 __builtin_goacc_parlevel_{id,size}.
11064 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11065 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11066 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11067 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11068 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11069 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11070 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11071 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11072 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11073 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11074 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11075 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11076 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11077 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11078 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11079 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11080 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11081 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11082 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11083 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11084 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11085 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11086 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11087
11088 2018-05-02 Tom de Vries <tom@codesourcery.com>
11089
11090 PR testsuite/85106
11091 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11092
11093 2018-05-02 Tom de Vries <tom@codesourcery.com>
11094
11095 PR testsuite/85106
11096 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11097
11098 2018-04-29 Julian Brown <julian@codesourcery.com>
11099 Tom de Vries <tom@codesourcery.com>
11100
11101 PR testsuite/85527
11102 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11103 arbitrary order for iterations of atomic subtract check.
11104
11105 2018-04-28 Tom de Vries <tom@codesourcery.com>
11106
11107 PR testsuite/85527
11108 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11109 atomic capture results obtained in parallel loop to an array, instead of
11110 to a scalar.
11111
11112 2018-04-26 Tom de Vries <tom@codesourcery.com>
11113
11114 PR libgomp/84020
11115 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11116 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11117 (process_GOMP_NVPTX_JIT): New function.
11118 (link_ptx): Use process_GOMP_NVPTX_JIT.
11119
11120 2018-04-26 Richard Biener <rguenther@suse.de>
11121 Tom de Vries <tom@codesourcery.com>
11122
11123 PR lto/85422
11124 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11125
11126 2018-04-26 Tom de Vries <tom@codesourcery.com>
11127
11128 PR target/85519
11129 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11130 recursion depth from 25 to 23.
11131 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11132
11133 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11134
11135 * configure: Regenerated.
11136
11137 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11138 Tom de Vries <tom@codesourcery.com>
11139
11140 PR target/85445
11141 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11142
11143 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11144
11145 PR libgomp/85463
11146 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11147 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11148 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11149 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11150 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11151 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11152
11153 PR libfortran/85166
11154 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11155 abort".
11156 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11157
11158 2018-04-19 Jakub Jelinek <jakub@redhat.com>
11159
11160 * configure: Regenerated.
11161
11162 2018-04-18 David Malcolm <dmalcolm@redhat.com>
11163
11164 PR jit/85384
11165 * configure: Regenerate.
11166
11167 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11168 Tom de Vries <tom@codesourcery.com>
11169
11170 PR middle-end/84955
11171 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11172 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11173
11174 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11175
11176 PR fortran/83064
11177 PR testsuite/85346
11178 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11179 test from gfortran.dg to here.
11180
11181 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11182
11183 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11184 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11185
11186 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11187
11188 PR middle-end/84955
11189 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11190 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11191
11192 2018-04-05 Tom de Vries <tom@codesourcery.com>
11193
11194 PR target/85204
11195 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11196
11197 2018-03-26 Tom de Vries <tom@codesourcery.com>
11198
11199 PR tree-optimization/85063
11200 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11201 * testsuite/libgomp.c/switch-conversion.c: New test.
11202 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11203 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11204
11205 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11206
11207 PR fortran/84381
11208 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11209 call abort by STOP n.
11210 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11211 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11212 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11213 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11214 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11215 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11216 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11217 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11218 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11219 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11220 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11221 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11222 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11223 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11224 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11225 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11226 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11227 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11228 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11229 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11230 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11231 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11232 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11233 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11234 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11235 * testsuite/libgomp.fortran/character1.f90: Likewise.
11236 * testsuite/libgomp.fortran/character2.f90: Likewise.
11237 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11238 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11239 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11240 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11241 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11242 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11243 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11244 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11245 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11246 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11247 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11248 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11249 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11250 * testsuite/libgomp.fortran/do1.f90: Likewise.
11251 * testsuite/libgomp.fortran/do2.f90: Likewise.
11252 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11253 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11254 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11255 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11256 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11257 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11258 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11259 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11260 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11261 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11262 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11263 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11264 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11265 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11266 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11267 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11268 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11269 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11270 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11271 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11272 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11273 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11274 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11275 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11276 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11277 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11278 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11279 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11280 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11281 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11282 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11283 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11284 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11285 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11286 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11287 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11288 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11289 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11290 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11291 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11292 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11293 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11294 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11295 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11296 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11297 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11298 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11299 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11300 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11301 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11302 * testsuite/libgomp.fortran/lib2.f: Likewise.
11303 * testsuite/libgomp.fortran/lib3.f: Likewise.
11304 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11305 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11306 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11307 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11308 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11309 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11310 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11311 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11312 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11313 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11314 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11315 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11316 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11317 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11318 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11319 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11320 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11321 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11322 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11323 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11324 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11325 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11326 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11327 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11328 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11329 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11330 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11331 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11332 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11333 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11334 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11335 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11336 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11337 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11338 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11339 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11340 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11341 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11342 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11343 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11344 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11345 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11346 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11347 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11348 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11349 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11350 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11351 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11352 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11353 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11354 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11355 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11356 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11357 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11358 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11359 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11360 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11361 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11362 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11363 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11364 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11365 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11366 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11367 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11368 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11369 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11370 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11371 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11372 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11373 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11374 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11375 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11376 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11377 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11378 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11379 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11380 * testsuite/libgomp.fortran/stack.f90: Likewise.
11381 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11382 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11383 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11384 * testsuite/libgomp.fortran/target1.f90: Likewise.
11385 * testsuite/libgomp.fortran/target2.f90: Likewise.
11386 * testsuite/libgomp.fortran/target3.f90: Likewise.
11387 * testsuite/libgomp.fortran/target4.f90: Likewise.
11388 * testsuite/libgomp.fortran/target5.f90: Likewise.
11389 * testsuite/libgomp.fortran/target6.f90: Likewise.
11390 * testsuite/libgomp.fortran/target7.f90: Likewise.
11391 * testsuite/libgomp.fortran/target8.f90: Likewise.
11392 * testsuite/libgomp.fortran/task1.f90: Likewise.
11393 * testsuite/libgomp.fortran/task2.f90: Likewise.
11394 * testsuite/libgomp.fortran/task3.f90: Likewise.
11395 * testsuite/libgomp.fortran/task4.f90: Likewise.
11396 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11397 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11398 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11399 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11400 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11401 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11402 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11403 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11404 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11405 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11406 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11407 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11408 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11409 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11410 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11411 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11412 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11413 * testsuite/libgomp.fortran/udr3.f90: Likewise.
11414 * testsuite/libgomp.fortran/udr4.f90: Likewise.
11415 * testsuite/libgomp.fortran/udr5.f90: Likewise.
11416 * testsuite/libgomp.fortran/udr6.f90: Likewise.
11417 * testsuite/libgomp.fortran/udr7.f90: Likewise.
11418 * testsuite/libgomp.fortran/udr8.f90: Likewise.
11419 * testsuite/libgomp.fortran/udr9.f90: Likewise.
11420 * testsuite/libgomp.fortran/vla1.f90: Likewise.
11421 * testsuite/libgomp.fortran/vla2.f90: Likewise.
11422 * testsuite/libgomp.fortran/vla3.f90: Likewise.
11423 * testsuite/libgomp.fortran/vla4.f90: Likewise.
11424 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11425 * testsuite/libgomp.fortran/vla6.f90: Likewise.
11426 * testsuite/libgomp.fortran/vla7.f90: Likewise.
11427 * testsuite/libgomp.fortran/vla8.f90: Likewise.
11428 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11429 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11430 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11431 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11432 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11433 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11434 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11435 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11436 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11437 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11438 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11439 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11440 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11441 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11442 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11443 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11444 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11445 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11446 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11447 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11448 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11449 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11450 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11451 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11452 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11453 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11454 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11455 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11456 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11457 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11458 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11459 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11460 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11461 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11462 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11463 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11464 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11465 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11466 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11467 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11468 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11469 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11470 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11471 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11472 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11473 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11474 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11475 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11476 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11477 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11478 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11479 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11480 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11481 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11482 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11483 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11484 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11485 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11486 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11487 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11488 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11489 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11490 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11491 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11492 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11493 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11494 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11495 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11496 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11497 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11498 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11499 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11500 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11501 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11502 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11503 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11504 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11505 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11506 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11507 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11508 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11509 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11510 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11511 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11512 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11513 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11514 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11515 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11516 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11517 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11518 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11519 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11520 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11521 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11522
11523 2018-03-20 Richard Biener <rguenther@suse.de>
11524
11525 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11526 parallelizable loop.
11527
11528 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11529
11530 PR target/84148
11531 * configure: Regenerate.
11532
11533 2018-02-16 Jakub Jelinek <jakub@redhat.com>
11534
11535 PR fortran/84418
11536 * libgomp.fortran/pr84418-1.f90: New test.
11537 * libgomp.fortran/pr84418-2.f90: New test.
11538
11539 2018-02-14 Jakub Jelinek <jakub@redhat.com>
11540
11541 PR fortran/84313
11542 * testsuite/libgomp.fortran/threadprivate4.f90: Add
11543 -std=f2003 -fall-intrinsics into dg-additional-options.
11544
11545 2018-02-08 Martin Jambor <mjambor@suse.cz>
11546
11547 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11548 clonable.
11549
11550 2018-02-08 Martin Jambor <mjambor@suse.cz>
11551
11552 * testsuite/libgomp.hsa.c/staticvar.c: New test.
11553
11554 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11555
11556 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11557 [__cplusplus]: Declare extern "C".
11558
11559 2018-02-07 Tom de Vries <tom@codesourcery.com>
11560
11561 PR libgomp/84217
11562 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11563
11564 2018-01-29 Christoph Spiel <cspiel@freenet.de>
11565 Jakub Jelinek <jakub@redhat.com>
11566
11567 PR libgomp/84096
11568 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11569 instead of omp_lock_t.
11570
11571 2018-01-25 Tom de Vries <tom@codesourcery.com>
11572
11573 PR target/84028
11574 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11575
11576 2018-01-24 Tom de Vries <tom@codesourcery.com>
11577
11578 PR target/83589
11579 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11580
11581 2018-01-24 Tom de Vries <tom@codesourcery.com>
11582
11583 PR target/81352
11584 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11585
11586 2018-01-19 Tom de Vries <tom@codesourcery.com>
11587 Cesar Philippidis <cesar@codesourcery.com>
11588
11589 PR target/83920
11590 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11591 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11592
11593 2018-01-03 Jakub Jelinek <jakub@redhat.com>
11594
11595 Update copyright years.
11596
11597 * libgomp.texi: Bump @copying's copyright year.
11598
11599 2017-12-30 Tom de Vries <tom@codesourcery.com>
11600
11601 PR libgomp/83046
11602 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11603 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11604
11605 2017-12-27 Tom de Vries <tom@codesourcery.com>
11606
11607 PR c++/83046
11608 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11609 (test_nonstatic): Fix return type to workaround PR83046.
11610
11611 2017-12-05 Jakub Jelinek <jakub@redhat.com>
11612
11613 PR testsuite/83281
11614 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11615 j suffix instead of i.
11616 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11617 Likewise.
11618
11619 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
11620
11621 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11622 call to acc_wait (1).
11623
11624 2017-11-24 Jakub Jelinek <jakub@redhat.com>
11625
11626 PR fortran/81304
11627 * testsuite/libgomp.fortran/pr81304.f90: New test.
11628
11629 2017-11-23 Jakub Jelinek <jakub@redhat.com>
11630
11631 PR fortran/81841
11632 * libgomp.fortran/pr81841.f90: New test.
11633
11634 2017-11-22 Jakub Jelinek <jakub@redhat.com>
11635
11636 PR libgomp/83106
11637 * target.c (gomp_target_init): Compute lengths just once and
11638 use them in both malloc size and subsequent copying.
11639
11640 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11641
11642 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11643 * acinclude.m4: Add cet.m4.
11644 * configure: Regenerate.
11645 * Makefile.in: Likewise.
11646 * testsuite/Makefile.in: Likewise.
11647
11648 2017-11-15 Tom de Vries <tom@codesourcery.com>
11649
11650 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11651 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
11652 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11653 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
11654 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11655 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
11656
11657 2017-11-14 Tom de Vries <tom@codesourcery.com>
11658
11659 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11660 non-nvidia devices.
11661
11662 2017-11-07 Jakub Jelinek <jakub@redhat.com>
11663
11664 PR c++/82835
11665 * testsuite/libgomp.c++/pr82835.C: New test.
11666
11667 2017-11-06 Martin Liska <mliska@suse.cz>
11668
11669 * testsuite/libgomp.c++/loop-2.C: Return a value
11670 for functions with non-void return type, or change type to void,
11671 or add -Wno-return-type for test.
11672 * testsuite/libgomp.c++/loop-4.C: Likewise.
11673 * testsuite/libgomp.c++/parallel-1.C: Likewise.
11674 * testsuite/libgomp.c++/shared-1.C: Likewise.
11675 * testsuite/libgomp.c++/single-1.C: Likewise.
11676 * testsuite/libgomp.c++/single-2.C: Likewise.
11677
11678 2017-10-31 Tom de Vries <tom@codesourcery.com>
11679
11680 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11681 "do {} while (false)".
11682 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11683 after HSA_DEBUG call.
11684
11685 2017-10-28 Jakub Jelinek <jakub@redhat.com>
11686
11687 * target.c (struct gomp_coalesce_buf): New type.
11688 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11689 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11690 (gomp_copy_host2dev): Add CBUF argument, if copying into
11691 the cached ranges, memcpy into buffer instead of copying
11692 into device.
11693 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11694 Add CBUF argument, pass it through to other calls.
11695 (gomp_map_vars): Aggregate copies from host to device if small enough
11696 and with small enough gaps in between into memcpy into a buffer and
11697 fewer host to device copies from the buffer.
11698 (gomp_update): Adjust gomp_copy_host2dev caller.
11699
11700 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
11701
11702 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11703 run" directive.
11704 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11705 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11706 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11707 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11708
11709 2017-10-16 Tom de Vries <tom@codesourcery.com>
11710
11711 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11712 openacc_nvidia_accel_selected.
11713 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11714 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11715 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11716 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11717 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11718 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11719 openacc_nvidia_accel_selected. Skip for shared memory device.
11720 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11721 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11722
11723 2017-10-09 Martin Jambor <mjambor@suse.cz>
11724
11725 PR hsa/82416
11726 * testsuite/libgomp.hsa.c/pr82416.c: New test.
11727
11728 2017-10-07 Tom de Vries <tom@codesourcery.com>
11729
11730 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11731 Remove acc_device_nvidia references.
11732 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11733 Same.
11734
11735 2017-10-05 Tom de Vries <tom@codesourcery.com>
11736
11737 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11738 vector_length(32) clause from acc parallel directive.
11739 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11740
11741 2017-10-04 Tom de Vries <tom@codesourcery.com>
11742
11743 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11744 (main): Reduce sum of arr elements. Assert that hres is exactly
11745 representable in 32-bit floating point.
11746 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11747 (main): Reduce sum of arr elements. Assert that hres and hmres are
11748 exactly representable in 32-bit floating point.
11749 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11750
11751 2017-09-28 Tom de Vries <tom@codesourcery.com>
11752
11753 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11754 setting.
11755 * testsuite/libgomp.c++/pr69393.C: Same.
11756 * testsuite/libgomp.c++/taskloop-1.C: Same.
11757 * testsuite/libgomp.c++/taskloop-3.C: Same.
11758 * testsuite/libgomp.c++/taskloop-4.C: Same.
11759 * testsuite/libgomp.c/for-4.c: Same.
11760 * testsuite/libgomp.c/pr66199-3.c: Same.
11761 * testsuite/libgomp.c/pr66199-4.c: Same.
11762 * testsuite/libgomp.c/pr66199-6.c: Same.
11763 * testsuite/libgomp.c/taskloop-1.c: Same.
11764 * testsuite/libgomp.c/taskloop-3.c: Same.
11765 * testsuite/libgomp.c/taskloop-4.c: Same.
11766 * testsuite/libgomp.fortran/aligned1.f03: Same.
11767 * testsuite/libgomp.fortran/condinc1.f: Same.
11768 * testsuite/libgomp.fortran/condinc3.f90: Same.
11769 * testsuite/libgomp.fortran/crayptr1.f90: Same.
11770 * testsuite/libgomp.fortran/crayptr2.f90: Same.
11771 * testsuite/libgomp.fortran/crayptr3.f90: Same.
11772 * testsuite/libgomp.fortran/omp_cond1.f: Same.
11773 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11774 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11775 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11776 * testsuite/libgomp.fortran/recursion1.f90: Same.
11777 * testsuite/libgomp.fortran/target2.f90: Same.
11778 * testsuite/libgomp.fortran/target5.f90: Same.
11779 * testsuite/libgomp.fortran/task3.f90: Same.
11780
11781 2017-09-28 Tom de Vries <tom@codesourcery.com>
11782
11783 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11784 vector_length(32) clause from acc parallel directive.
11785 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11786
11787 2017-09-27 Tom de Vries <tom@codesourcery.com>
11788
11789 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11790 Remove acc_device_nvidia references.
11791
11792 2017-09-16 Tom de Vries <tom@codesourcery.com>
11793
11794 PR c/81875
11795 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11796
11797 2017-09-14 Tom de Vries <tom@codesourcery.com>
11798
11799 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11800 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11801 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11802 * testsuite/libgomp.c/c.exp: Include test-cases from
11803 libgomp.c-c++-common.
11804 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
11805 files.
11806
11807 2017-09-14 Jakub Jelinek <jakub@redhat.com>
11808
11809 PR c++/81314
11810 * testsuite/libgomp.c++/pr81314.C: New test.
11811
11812 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
11813
11814 * libgomp.texi (Top): www.openacc.org now uses https.
11815 (Enabling OpenACC): Ditto.
11816 (acc_get_num_devices): Ditto.
11817 (acc_set_device_type): Ditto.
11818 (acc_get_device_type): Ditto.
11819 (acc_set_device_num): Ditto.
11820 (acc_get_device_num): Ditto.
11821 (acc_async_test): Ditto.
11822 (acc_async_test_all): Ditto.
11823 (acc_wait): Ditto.
11824 (acc_wait_all): Ditto.
11825 (acc_wait_all_async): Ditto.
11826 (acc_wait_async): Ditto.
11827 (acc_init): Ditto.
11828 (acc_shutdown): Ditto.
11829 (acc_on_device): Ditto.
11830 (acc_malloc): Ditto.
11831 (acc_free): Ditto.
11832 (acc_copyin): Ditto.
11833 (acc_present_or_copyin): Ditto.
11834 (acc_create): Ditto.
11835 (acc_present_or_create): Ditto.
11836 (acc_copyout): Ditto.
11837 (acc_delete): Ditto.
11838 (acc_update_device): Ditto.
11839 (acc_update_self): Ditto.
11840 (acc_map_data): Ditto.
11841 (acc_unmap_data): Ditto.
11842 (acc_deviceptr): Ditto.
11843 (acc_hostptr): Ditto.
11844 (acc_is_present): Ditto.
11845 (acc_memcpy_to_device): Ditto.
11846 (acc_memcpy_from_device): Ditto.
11847 (acc_get_current_cuda_device): Ditto.
11848 (acc_get_current_cuda_context): Ditto.
11849 (acc_get_cuda_stream): Ditto.
11850 (acc_set_cuda_stream): Ditto.
11851 (ACC_DEVICE_TYPE): Ditto.
11852 (ACC_DEVICE_NUM): Ditto.
11853 (OpenACC Library Interoperability): Ditto.
11854
11855 2017-08-09 Jakub Jelinek <jakub@redhat.com>
11856
11857 PR c/81687
11858 * testsuite/libgomp.c/pr81687-1.c: New test.
11859 * testsuite/libgomp.c/pr81687-2.c: New test.
11860
11861 2017-08-07 Jakub Jelinek <jakub@redhat.com>
11862
11863 PR c/69389
11864 * testsuite/libgomp.c/pr69389.c: New test.
11865 * testsuite/libgomp.c++/pr69389.C: New test.
11866
11867 2017-08-07 Tom de Vries <tom@codesourcery.com>
11868
11869 PR middle-end/78266
11870 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11871 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11872
11873 2017-07-27 Jakub Jelinek <jakub@redhat.com>
11874
11875 PR c/45784
11876 * testsuite/libgomp.c/pr45784.c: New test.
11877 * testsuite/libgomp.c++/pr45784.C: New test.
11878
11879 2017-07-19 Tom de Vries <tom@codesourcery.com>
11880
11881 * testsuite/libgomp.oacc-c/vec.c: New test.
11882
11883 2017-07-03 Tom de Vries <tom@codesourcery.com>
11884
11885 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11886
11887 2017-06-27 Tom de Vries <tom@codesourcery.com>
11888
11889 * plugin/plugin-nvptx.c (notify_var): New function.
11890 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11891
11892 2017-06-27 Tom de Vries <tom@codesourcery.com>
11893
11894 * env.c (parse_unsigned_long_1): Factor out of ...
11895 (parse_unsigned_long): ... here.
11896 (parse_int_1): Factor out of ...
11897 (parse_int): ... here.
11898 (parse_int_secure): New function.
11899 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11900 * secure_getenv.h: Factor out of ...
11901 * plugin/plugin-hsa.c: ... here.
11902 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11903
11904 2017-06-21 Jakub Jelinek <jakub@redhat.com>
11905
11906 PR c++/81130
11907 * testsuite/libgomp.c++/pr81130.C: New test.
11908
11909 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11910
11911 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11912 default args.
11913 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11914 dg-xfail-run-if default args.
11915
11916 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11917
11918 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11919 * testsuite/libgomp.c/pr39591-3.c: Likewise.
11920
11921 2017-05-30 Jakub Jelinek <jakub@redhat.com>
11922
11923 PR libgomp/80822
11924 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11925 (gomp_affinity_init_level): Use it. Always analyze the core and thread
11926 sibling lists, depending on level just pick up what CPUs to put
11927 together into a place vs. whether add multiple ordered places.
11928
11929 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
11930
11931 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11932 * libgomp.map (OACC_2.0.1): Add these.
11933 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11934 for "acc_wait", and "acc_wait_all", respectively.
11935 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11936 for "acc_wait", and "acc_wait_all", respectively.
11937 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11938 * libgomp.texi (acc_wait, acc_wait_all): Update.
11939 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11940 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11941 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11942
11943 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11944 acc_present_or_copyin and acc_present_or_create procedures,
11945 respectively.
11946 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11947 generally different variants of OpenACC Runtime Library functions.
11948 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11949
11950 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11951 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11952
11953 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11954 of preprocessor definitions.
11955 * libgomp.h (strong_alias): Guard by "#ifdef
11956 HAVE_ATTRIBUTE_ALIAS".
11957 * oacc-mem.c: Provide "acc_pcreate" as alias for
11958 "acc_present_or_create", and "acc_pcopyin" as alias for
11959 "acc_present_or_copyin".
11960 * libgomp.map: New version "OACC_2.0.1".
11961 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11962 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11963 its content into...
11964 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11965 Extend testing.
11966
11967 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11968 when disabling nvptx offloading.
11969
11970 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
11971
11972 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11973 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11974 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11975
11976 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11977 * testsuite/lib/libgomp.exp
11978 (check_effective_target_openacc_nvidia_accel_configured): New
11979 proc.
11980 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11981 (check_effective_target_c++): New procs.
11982 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11983 (check_effective_target_c++): Likewise.
11984
11985 2017-05-22 Jakub Jelinek <jakub@redhat.com>
11986
11987 PR middle-end/80809
11988 * testsuite/libgomp.c/pr80809-2.c: New test.
11989 * testsuite/libgomp.c/pr80809-3.c: New test.
11990
11991 PR middle-end/80809
11992 * testsuite/libgomp.c/pr80809-1.c: New test.
11993
11994 PR middle-end/80853
11995 * testsuite/libgomp.c/pr80853.c: New test.
11996
11997 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
11998
11999 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12000 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12001 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12002 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12003 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12004
12005 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12006 Debug output for failure.
12007
12008 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12009
12010 * testsuite/lib/libgomp.exp: Load scanlang.exp.
12011
12012 2017-04-27 Jakub Jelinek <jakub@redhat.com>
12013
12014 PR bootstrap/80531
12015 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12016 bootstrap compare failures.
12017
12018 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
12019
12020 * testsuite/libgomp.c/target-36.c: New testcase.
12021
12022 2017-04-13 Jakub Jelinek <jakub@redhat.com>
12023
12024 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12025 instead of char.
12026
12027 2017-04-11 Jakub Jelinek <jakub@redhat.com>
12028
12029 PR libgomp/80394
12030 * testsuite/libgomp.c/pr80394.c: New test.
12031
12032 2017-04-04 Jakub Jelinek <jakub@redhat.com>
12033
12034 PR libgomp/79876
12035 * config/posix/thread-stacksize.h: New file.
12036 * config/darwin/thread-stacksize.h: New file.
12037 * config/nvptx/thread-stacksize.h: New file.
12038 * env.c: Include thread-stacksize.h.
12039 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12040 instead of 0. Call pthread_attr_setstacksize even if
12041 GOMP_DEFAULT_STACKSIZE is non-zero.
12042
12043 2017-03-30 Jakub Jelinek <jakub@redhat.com>
12044
12045 * env.c (initialize_env): Initialize stacksize to 0.
12046
12047 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
12048
12049 PR c++/80029
12050 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12051
12052 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12053
12054 PR c/79940
12055 * testsuite/libgomp.c/pr79940.c: New test.
12056
12057 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12058
12059 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12060 targets.
12061 Add __float128 options.
12062
12063 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
12064
12065 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12066 hppa*-*-* dg-skip-if directive.
12067
12068 2017-02-09 Jakub Jelinek <jakub@redhat.com>
12069
12070 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12071 dg-skip-if directive into a comment.
12072
12073 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12074 Chung-Lin Tang <cltang@codesourcery.com>
12075
12076 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12077 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12078 add additional case.
12079 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12080 "openacc_nvidia_accel_selected".
12081 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12082 Add num_workers(8) clause.
12083
12084 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
12085
12086 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12087 hppa*-*-*.
12088 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12089 include complex.h on hppa*-*-hpux*.
12090 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12091
12092 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
12093
12094 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12095
12096 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12097 GOMP_OFFLOAD_openacc_exec. Adjust all users.
12098 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12099 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
12100 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12101 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
12102 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12103 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
12104 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12105 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
12106
12107 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12108
12109 * libgomp-plugin.h: #include <stdbool.h>.
12110 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12111 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12112 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12113 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12114 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12115 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12116 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12117 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12118 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12119 (GOMP_OFFLOAD_openacc_async_test)
12120 (GOMP_OFFLOAD_openacc_async_test_all)
12121 (GOMP_OFFLOAD_openacc_async_wait)
12122 (GOMP_OFFLOAD_openacc_async_wait_async)
12123 (GOMP_OFFLOAD_openacc_async_wait_all)
12124 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12125 (GOMP_OFFLOAD_openacc_async_set_async)
12126 (GOMP_OFFLOAD_openacc_create_thread_data)
12127 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12128 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12129 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12130 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12131 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12132 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12133 these.
12134 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12135 (GOMP_OFFLOAD_unload_image): Fix argument types.
12136
12137 2017-01-26 Jakub Jelinek <jakub@redhat.com>
12138
12139 * testsuite/lib/libgomp.exp
12140 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12141 check_compile invocation. Fix up removal of executable. Drop
12142 bogus "2>&1" argument.
12143
12144 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12145 directive.
12146
12147 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
12148 Martin Jambor <mjambor@suse.cz>
12149
12150 * plugin/hsa.h: Moved to top level include.
12151 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12152
12153 2017-01-21 Jakub Jelinek <jakub@redhat.com>
12154
12155 PR other/79046
12156 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12157 of cat to get version from BASE-VER file.
12158 * testsuite/Makefile.in: Regenerated.
12159
12160 2017-01-19 Jakub Jelinek <jakub@redhat.com>
12161
12162 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12163 for _WIN64.
12164
12165 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12166
12167 * plugin/hsa.h: Add GCC runtime library exception.
12168 * plugin/hsa_ext_finalize.h: Likewise.
12169
12170 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12171 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12172 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12173 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12174 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12175 library to link ptx plugin against.
12176 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12177 (CUDA_CALLS): Define.
12178 (cuda_lib, cuda_lib_inited): New variables.
12179 (init_cuda_lib): New function.
12180 (CUDA_CALL_PREFIX): Define.
12181 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12182 (CUDA_CALL): Use FN instead of (FN).
12183 (CUDA_CALL_NOCHECK): Define.
12184 (cuda_error, fini_streams_for_device, select_stream_for_async,
12185 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12186 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12187 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12188 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12189 CUDA_CALL_NOCHECK.
12190 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12191 CUDA_CALL_NOCHECK.
12192 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12193 Use CUDA_CALL_NOCHECK.
12194 * plugin/cuda/cuda.h: New file.
12195 * config.h.in: Regenerated.
12196 * configure: Regenerated.
12197
12198 PR other/79046
12199 * configure.ac: Add GCC_BASE_VER.
12200 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12201 get version from BASE-VER file.
12202 * testsuite/Makefile.in: Regenerated.
12203 * configure: Regenerated.
12204 * Makefile.in: Regenerated.
12205
12206 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12207
12208 PR libgomp/60670
12209 * Makefile.am: Make fincludedir multilib-aware.
12210 * Makefile.in: Regenerate.
12211
12212 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12213
12214 Update copyright years.
12215
12216 * libgomp.texi: Bump @copying's copyright year.
12217
12218 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12219
12220 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12221 pthread_spinlock_t instead of gomp_mutex_t lock.
12222 (gomp_get_thread_pool): Likewise.
12223 (gomp_release_thread_pool): Likewise.
12224 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12225 Likewise.
12226
12227 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12228
12229 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12230 thread pool in case nthreads == 1.
12231
12232 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12233
12234 * config/nvptx/env.c: Delete.
12235 * icv.c: Move definitions of ICV variables back ...
12236 * env.c: ...here. Do not compile environment-related functionality if
12237 LIBGOMP_OFFLOADED_ONLY is set.
12238
12239 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12240
12241 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12242 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12243 * configure: Regenerate.
12244 * config.h.in: Likewise.
12245
12246 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12247
12248 * Makefile.in: Regenerate with automake-1.11.6.
12249 * aclocal.m4: Likewise.
12250 * configure: Likewise.
12251 * testsuite/Makefile.in: Likewise.
12252
12253 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
12254
12255 * config/nvptx/critical.c: Delete to use generic implementation.
12256
12257 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12258
12259 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12260 ../../affinity.c as fallback.
12261 * config/nvptx/affinity.c: Delete to use fallback implementation.
12262
12263 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
12264 Jakub Jelinek <jakub@redhat.com>
12265 Dmitry Melnik <dm@ispras.ru>
12266
12267 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12268 * Makefile.in. Regenerate.
12269 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12270 (LIBGOMP_USE_PTHREADS): ...here; new define.
12271 * configure: Regenerate.
12272 * config.h.in: Likewise.
12273 * config/posix/affinity.c: Move to...
12274 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12275 interface by LIBGOMP_USE_PTHREADS.
12276 * critical.c: Split out GOMP_atomic_{start,end} into...
12277 * atomic.c: ...here (new file).
12278 * env.c: Split out ICV definitions into...
12279 * icv.c: ...here (new file) and...
12280 * icv-device.c: ...here. New file.
12281 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12282 (gomp_destroy_lock_30): Ditto.
12283 (gomp_set_lock_30): Ditto.
12284 (gomp_unset_lock_30): Ditto.
12285 (gomp_test_lock_30): Ditto.
12286 (gomp_init_nest_lock_30): Ditto.
12287 (gomp_destroy_nest_lock_30): Ditto.
12288 (gomp_set_nest_lock_30): Ditto.
12289 (gomp_unset_nest_lock_30): Ditto.
12290 (gomp_test_nest_lock_30): Ditto.
12291 * lock.c: New.
12292 * config/nvptx/lock.c: New.
12293 * config/nvptx/bar.c: New.
12294 * config/nvptx/bar.h: New.
12295 * config/nvptx/doacross.h: New.
12296 * config/nvptx/error.c: New.
12297 * config/nvptx/icv-device.c: New.
12298 * config/nvptx/mutex.h: New.
12299 * config/nvptx/pool.h: New.
12300 * config/nvptx/proc.c: New.
12301 * config/nvptx/ptrlock.h: New.
12302 * config/nvptx/sem.h: New.
12303 * config/nvptx/simple-bar.h: New.
12304 * config/nvptx/target.c: New.
12305 * config/nvptx/task.c: New.
12306 * config/nvptx/team.c: New.
12307 * config/nvptx/time.c: New.
12308 * config/posix/simple-bar.h: New.
12309 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12310 (gomp_num_teams_var): Declare.
12311 (struct gomp_thread_pool): Change threads_dock member to
12312 gomp_simple_barrier_t.
12313 [__nvptx__] (gomp_thread): New implementation.
12314 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12315 (gomp_thread_destructor): Ditto.
12316 (gomp_init_thread_affinity): Ditto.
12317 * team.c: Guard uses of Pthreads-specific interfaces by
12318 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12319 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12320 * config/nvptx/alloc.c: Delete.
12321 * config/nvptx/barrier.c: Ditto.
12322 * config/nvptx/fortran.c: Ditto.
12323 * config/nvptx/iter.c: Ditto.
12324 * config/nvptx/iter_ull.c: Ditto.
12325 * config/nvptx/loop.c: Ditto.
12326 * config/nvptx/loop_ull.c: Ditto.
12327 * config/nvptx/ordered.c: Ditto.
12328 * config/nvptx/parallel.c: Ditto.
12329 * config/nvptx/priority_queue.c: Ditto.
12330 * config/nvptx/sections.c: Ditto.
12331 * config/nvptx/single.c: Ditto.
12332 * config/nvptx/splay-tree.c: Ditto.
12333 * config/nvptx/work.c: Ditto.
12334 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12335 -foffload=-lgfortran in addition to -lgfortran.
12336 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12337 * plugin/plugin-nvptx.c: Include <limits.h>.
12338 (struct targ_fn_descriptor): Add new fields.
12339 (struct ptx_device): Ditto. Set them...
12340 (nvptx_open_device): ...here.
12341 (nvptx_adjust_launch_bounds): New.
12342 (nvptx_host2dev): Allow NULL 'nvthd'.
12343 (nvptx_dev2host): Ditto.
12344 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12345 (link_ptx): Adjust log sizes.
12346 (nvptx_host2dev): Allow NULL 'nvthd'.
12347 (nvptx_dev2host): Ditto.
12348 (nvptx_set_clocktick): New. Use it...
12349 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12350 fields.
12351 (GOMP_OFFLOAD_dev2dev): New.
12352 (nvptx_adjust_launch_bounds): New.
12353 (nvptx_stacks_size): New.
12354 (nvptx_stacks_alloc): New.
12355 (nvptx_stacks_free): New.
12356 (GOMP_OFFLOAD_run): New.
12357 (GOMP_OFFLOAD_async_run): New (stub).
12358
12359 2016-11-23 Martin Jambor <mjambor@suse.cz>
12360
12361 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12362 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12363 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12364
12365 2016-11-23 Martin Liska <mliska@suse.cz>
12366 Martin Jambor <mjambor@suse.cz>
12367
12368 * plugin/hsa.h: New file.
12369 * plugin/hsa_ext_finalize.h: New file.
12370 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12371 header file unistd.h, and functions secure_getenv, __secure_getenv,
12372 getuid, geteuid, getgid and getegid.
12373 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12374 -D_GNU_SOURCE.
12375 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12376 Handle various cases of secure_getenv presence, add an implementation
12377 when we can test effective UID and GID.
12378 (struct hsa_runtime_fn_info): New structure.
12379 (hsa_runtime_fn_info hsa_fns): New variable.
12380 (hsa_runtime_lib): Likewise.
12381 (support_cpu_devices): Likewise.
12382 (init_enviroment_variables): Load newly introduced ENV
12383 variables.
12384 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12385 (hsa_fatal): Likewise.
12386 (DLSYM_FN): New macro.
12387 (init_hsa_runtime_functions): New function.
12388 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12389 structure. Depending on environment, also allow CPU devices.
12390 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12391 (get_kernarg_memory_region): Likewise.
12392 (GOMP_OFFLOAD_init_device): Likewise.
12393 (destroy_hsa_program): Likewise.
12394 (init_basic_kernel_info): New function.
12395 (GOMP_OFFLOAD_load_image): Use it.
12396 (create_and_finalize_hsa_program): Call hsa run-time functions via
12397 hsa_fns structure.
12398 (create_single_kernel_dispatch): Likewise.
12399 (release_kernel_dispatch): Likewise.
12400 (init_single_kernel): Likewise.
12401 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12402 (get_group_size): New function.
12403 (run_kernel): Likewise.
12404 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12405 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12406 structure.
12407 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12408 * testsuite/libgomp-test-support.exp.in: Likewise.
12409 * Makefile.in: Regenerated.
12410 * aclocal.m4: Likewise.
12411 * config.h.in: Likewise.
12412 * configure: Likewise.
12413 * testsuite/Makefile.in: Likewise.
12414
12415 2016-11-15 Martin Jambor <mjambor@suse.cz>
12416 Alexander Monakov <amonakov@ispras.ru>
12417
12418 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12419 mapping clauses to target constructs.
12420 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12421
12422 2016-11-15 Matthias Klose <doko@ubuntu.com>
12423
12424 * configure: Regenerate.
12425
12426 2016-11-10 Jakub Jelinek <jakub@redhat.com>
12427
12428 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12429 * omp_lib.h.in (openmp_version): Likewise.
12430 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12431 of 201307.
12432 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12433
12434 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12435 (fib_wrapper): Add map(from: x) clause.
12436 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12437 (e_53_2): Likewise.
12438 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12439 (accum): Add map(tmp) clause.
12440 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12441 (accum): Add map(tofrom: tmp) clause.
12442 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12443 (gramSchmidt): Likewise.
12444 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12445 map(tofrom: sum) clause.
12446 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12447 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
12448 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12449 only allowed on the loop iterator.
12450 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12451 * testsuite/libgomp.fortran/taskloop2.f90: New test.
12452 * testsuite/libgomp.fortran/taskloop4.f90: New test.
12453 * testsuite/libgomp.fortran/doacross1.f90: New test.
12454 * testsuite/libgomp.fortran/doacross3.f90: New test.
12455 * testsuite/libgomp.fortran/taskloop1.f90: New test.
12456 * testsuite/libgomp.fortran/taskloop3.f90: New test.
12457 * testsuite/libgomp.fortran/doacross2.f90: New test.
12458 * testsuite/libgomp.c/doacross-1.c (main): Add missing
12459 #pragma omp atomic read.
12460 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12461 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12462
12463 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
12464 Nathan Sidwell <nathan@acm.org>
12465
12466 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12467 to determine default geometry.
12468 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12469 dimension.
12470
12471 2016-11-01 Jakub Jelinek <jakub@redhat.com>
12472
12473 * hashtab.h: Use standard GPLv3 with runtime exception
12474 boilerplate.
12475
12476 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
12477
12478 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12479 size when allocating new thread.
12480
12481 2016-09-14 Marek Polacek <polacek@redhat.com>
12482
12483 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12484
12485 2016-08-19 Jakub Jelinek <jakub@redhat.com>
12486
12487 PR fortran/71014
12488 * testsuite/libgomp.fortran/pr71014.f90: New test.
12489
12490 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
12491
12492 PR middle-end/70895
12493 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12494 firstprivate clauses.
12495 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12496 copy clauses.
12497 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12498 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12499 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12500 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12501 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12502 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12503 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12504 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12505 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12506 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12507 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12508 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12509
12510 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
12511
12512 PR fortran/70598
12513 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12514
12515 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12516
12517 PR c++/58706
12518 * testsuite/libgomp.c++/pr58706.C: New test.
12519
12520 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
12521
12522 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12523 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12524 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12525 Likewise.
12526 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12527 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12528 Likewise.
12529 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12530
12531 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12532 test, and don't hardcode -O0.
12533
12534 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12535
12536 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12537
12538 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12539
12540 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12541 test.
12542
12543 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
12544
12545 PR middle-end/71734
12546 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12547 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12548
12549 2016-07-01 Jakub Jelinek <jakub@redhat.com>
12550
12551 PR fortran/71717
12552 * testsuite/libgomp.fortran/associate3.f90: New test.
12553
12554 2016-06-17 Jakub Jelinek <jakub@redhat.com>
12555
12556 * testsuite/libgomp.c++/target-21.C: New test.
12557
12558 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12559
12560 * testsuite/libgomp.c++/target-20.C: New test.
12561
12562 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12563 Cesar Philippidis <cesar@codesourcery.com>
12564
12565 PR middle-end/71373
12566 * libgomp.oacc-c/nested-function-1.c: New file.
12567 * libgomp.oacc-c/nested-function-2.c: Likewise.
12568 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12569 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12570 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12571
12572 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12573
12574 PR c/71381
12575 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12576 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12577 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12578
12579 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
12580
12581 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12582 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12583
12584 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
12585
12586 PR c/70688
12587 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12588
12589 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12590
12591 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12592 instead of invalid schedule(static, 0).
12593 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12594
12595 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12596
12597 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12598 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12599 parameter, use to set async stream around call to gomp_unmap_vars,
12600 call gomp_unmap_vars() with 'do_copyfrom' set to true.
12601 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12602 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12603 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12604 (event_add): Add int parameter, initialize 'val' field when
12605 adding new ptx_event struct.
12606 (nvptx_evec): Adjust event_add() call arguments.
12607 (nvptx_host2dev): Likewise.
12608 (nvptx_dev2host): Likewise.
12609 (nvptx_wait_async): Likewise.
12610 (nvptx_wait_all_async): Likewise.
12611 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12612 pass to event_add() call.
12613 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12614 parameter.
12615 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12616 call openacc.register_async_cleanup_func() hook.
12617 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12618 * target.c (gomp_copy_from_async): Delete function.
12619 (gomp_map_vars): Remove async_refcount.
12620 (gomp_unmap_vars): Likewise.
12621 (gomp_load_image_to_device): Likewise.
12622 (omp_target_associate_ptr): Likewise.
12623 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12624 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12625 (gomp_copy_from_async): Remove.
12626
12627 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12628
12629 * target.c (gomp_device_copy): New function.
12630 (gomp_copy_host2dev): Likewise.
12631 (gomp_copy_dev2host): Likewise.
12632 (gomp_free_device_memory): Likewise.
12633 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12634 (gomp_map_pointer): Likewise.
12635 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12636 NULL value from alloc_func plugin hook.
12637 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12638 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12639 (gomp_unmap_vars): Likewise.
12640 (gomp_update): Adjust to call gomp_copy_dev2host and
12641 gomp_copy_host2dev functions.
12642 (gomp_unload_image_from_device): Handle false value from
12643 unload_image_func plugin hook.
12644 (gomp_init_device): Handle false value from init_device_func
12645 plugin hook.
12646 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12647 (omp_target_free): Adjust to call gomp_free_device_memory.
12648 (omp_target_memcpy): Handle return values from host2dev_func,
12649 dev2host_func, and dev2dev_func plugin hooks.
12650 (omp_target_memcpy_rect_worker): Likewise.
12651 (gomp_target_fini): Handle false value from fini_device_func
12652 plugin hook.
12653 * libgomp.h (struct gomp_device_descr): Adjust return type of
12654 init_device_func, fini_device_func, unload_image_func, free_func,
12655 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12656 * oacc-init.c (acc_shutdown_1): Handle false value from
12657 fini_device_func plugin hook.
12658 * oacc-host.c (host_init_device): Change return type to bool.
12659 (host_fini_device): Likewise.
12660 (host_unload_image): Likewise.
12661 (host_free): Likewise.
12662 (host_dev2host): Likewise.
12663 (host_host2dev): Likewise.
12664 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12665 (acc_memcpy_to_device): Likewise.
12666 (acc_memcpy_from_device): Likewise.
12667 (delete_copyout): Add libfnname parameter, handle free_func
12668 hook fatal error case.
12669 (acc_delete): Adjust delete_copyout call.
12670 (acc_copyout): Likewise.
12671 (update_dev_host): Move gomp_mutex_unlock to after
12672 host2dev/dev2host hook calls.
12673
12674 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12675 to 'hsa_error_msg', for clarity.
12676 (hsa_fatal): Likewise.
12677 (hsa_error): New function.
12678 (init_hsa_context): Change return type to bool, adjust to return
12679 false on error.
12680 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12681 return value.
12682 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12683 return false on error.
12684 (get_agent_info): Adjust to return NULL on error.
12685 (destroy_hsa_program): Change return type to bool, adjust to
12686 return false on error.
12687 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12688 (destroy_module): Change return type to bool, adjust to
12689 return false on error.
12690 (GOMP_OFFLOAD_unload_image): Likewise.
12691 (GOMP_OFFLOAD_fini_device): Likewise.
12692 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12693 (GOMP_OFFLOAD_free): Change to return false when called.
12694 (GOMP_OFFLOAD_dev2host): Likewise.
12695 (GOMP_OFFLOAD_host2dev): Likewise.
12696 (GOMP_OFFLOAD_dev2dev): Likewise.
12697
12698 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12699 (CUDA_CALL): Likewise.
12700 (CUDA_CALL_ASSERT): Likewise.
12701 (map_init): Change return type to bool, use CUDA_CALL* macros.
12702 (map_fini): Likewise.
12703 (init_streams_for_device): Change return type to bool, adjust
12704 call to map_init.
12705 (fini_streams_for_device): Change return type to bool, adjust
12706 call to map_fini.
12707 (select_stream_for_async): Release stream_lock before calls to
12708 GOMP_PLUGIN_fatal, adjust call to map_init.
12709 (nvptx_init): Use CUDA_CALL* macros.
12710 (nvptx_attach_host_thread_to_device): Change return type to bool,
12711 use CUDA_CALL* macros.
12712 (nvptx_open_device): Use CUDA_CALL* macros.
12713 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12714 macros.
12715 (nvptx_get_num_devices): Use CUDA_CALL* macros.
12716 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12717 (nvptx_exec): Use CUDA_CALL* macros.
12718 (nvptx_alloc): Use CUDA_CALL* macros.
12719 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12720 (nvptx_host2dev): Likewise.
12721 (nvptx_dev2host): Likewise.
12722 (nvptx_wait): Use CUDA_CALL* macros.
12723 (nvptx_wait_async): Likewise.
12724 (nvptx_wait_all): Likewise.
12725 (nvptx_wait_all_async): Likewise.
12726 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12727 use CUDA_CALL* macros, adjust call to map_fini.
12728 (GOMP_OFFLOAD_init_device): Change return type to bool,
12729 adjust code accordingly.
12730 (GOMP_OFFLOAD_fini_device): Likewise.
12731 (GOMP_OFFLOAD_load_image): Adjust calls to
12732 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12733 use CUDA_CALL* macros.
12734 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12735 return code.
12736 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12737 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12738 handle error return.
12739 (GOMP_OFFLOAD_dev2host): Likewise.
12740 (GOMP_OFFLOAD_host2dev): Likewise.
12741 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12742 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12743
12744 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
12745
12746 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12747 (acc_free): Likewise.
12748 (acc_memcpy_to_device): Likewise.
12749 (acc_memcpy_from_device): Likewise.
12750 (acc_deviceptr): Likewise.
12751 (acc_hostptr): Likewise.
12752 (acc_is_present): Likewise.
12753 (acc_map_data): Likewise.
12754 (acc_unmap_data): Likewise.
12755 (present_create_copy): Likewise.
12756 (delete_copyout): Likewise.
12757 (update_dev_host): Likewise.
12758 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12759 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12760 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12761 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12762 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12763 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12764 it only runs on nvptx targets.
12765 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12766 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12767 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12768 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12769 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12770 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12771 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12772 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12773 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12774 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12775 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12776 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12777 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12778 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12779 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12780 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12781 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12782 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12783 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12784 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12785 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12786 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12787 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12788
12789 2016-05-23 Martin Jambor <mjambor@suse.cz>
12790
12791 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12792
12793 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
12794
12795 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12796 to gomp_init_targets_once.
12797 (acc_set_device_type): Remove !cached_base_dev condition on call to
12798 gomp_init_targets_once, move call to before acc_device_lock acquire,
12799 to avoid deadlock.
12800 (acc_get_device_num): Remove !cached_base_dev condition on call to
12801 gomp_init_targets_once.
12802 (acc_set_device_num): Likewise.
12803
12804 2016-05-16 Martin Jambor <mjambor@suse.cz>
12805
12806 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12807
12808 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
12809
12810 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12811 expected partitioning.
12812
12813 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
12814
12815 PR middle-end/70626
12816 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12817 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12818 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12819
12820 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
12821
12822 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12823 non-fatal.
12824
12825 2016-04-19 Jakub Jelinek <jakub@redhat.com>
12826
12827 PR middle-end/70680
12828 * testsuite/libgomp.c/pr70680-1.c: New test.
12829 * testsuite/libgomp.c/pr70680-2.c: New test.
12830
12831 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12832
12833 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12834 pass parameter variables to subroutines.
12835
12836 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12837
12838 PR middle-end/70643
12839 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12840
12841 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
12842
12843 PR testsuite/68242
12844 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12845 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12846
12847 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
12848
12849 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12850 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12851 GOACC_declare prototype.
12852
12853 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12854 Merge this file, and...
12855 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12856 ... this file, and...
12857 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12858 ... this file, and...
12859 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12860 ... this file, and...
12861 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12862 ... this file, and...
12863 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12864 ... this file, and...
12865 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12866 ... this file, and...
12867 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12868 ... this file, and...
12869 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12870 ... this file, and...
12871 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12872 ... this file, and...
12873 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12874 ... this file, and...
12875 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12876 ... this file, and...
12877 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12878 ... this file into...
12879 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12880 file.
12881
12882 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12883 Make failure observable.
12884
12885 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12886
12887 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12888 field.
12889 * target.c (gomp_target_fallback_firstprivate,
12890 gomp_target_unshare_firstprivate): Removed.
12891 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12892 before waiting for dependencies.
12893 (gomp_target_task_fn): Don't copy firstprivate vars here.
12894 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12895 firstprivate_copies here.
12896 (gomp_create_target_task): Don't initialize firstprivate_copies field.
12897 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12898 explicit/implicit firstprivate.
12899
12900 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12901
12902 PR lto/70289
12903 PR ipa/70348
12904 PR tree-optimization/70373
12905 PR middle-end/70533
12906 PR middle-end/70534
12907 PR middle-end/70535
12908 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12909 test.
12910 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12911 test.
12912 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12913 test.
12914 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12915 test.
12916 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12917 test.
12918 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12919 test.
12920 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12921 test.
12922 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12923 test.
12924 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12925 test.
12926 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12927 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12928 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12929 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12930 test.
12931 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12932 test.
12933 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12934 test.
12935 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12936 test.
12937 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12938 coverage.
12939 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12940 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12941 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12942 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12943 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12944 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12945 coverage.
12946 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12947 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12948 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12949 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12950 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12951 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12952 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12953 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12954 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12955 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12956 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12957 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12958 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12959 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12960 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12961
12962 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
12963 James Norris <jnorris@codesourcery.com>
12964 Nathan Sidwell <nathan@codesourcery.com>
12965 Julian Brown <julian@codesourcery.com>
12966 Cesar Philippidis <cesar@codesourcery.com>
12967 Chung-Lin Tang <cltang@codesourcery.com>
12968 Tom de Vries <tom@codesourcery.com>
12969
12970 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12971 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12972 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12973 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12974 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12975 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12976 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12977 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12978 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12979 XFAIL.
12980 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12981 Incorporate...
12982 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12983 file.
12984 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12985 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12986 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12987 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12988 Likewise.
12989 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12990 Likewise.
12991 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12992 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12993 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12994 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12995 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12996 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12997 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12998 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12999 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13000 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13001 Likewise.
13002 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13003 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13004 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13005 file...
13006 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13007 file into...
13008 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13009 file. Update.
13010 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13011 file.
13012 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13013 Likewise.
13014 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13015 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13016 ... this new file. Update.
13017 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13018 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13019 ... this new file. Update.
13020 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13021 file. Incorporate...
13022 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13023 file, and...
13024 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13025 file, and...
13026 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13027 file.
13028 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13029
13030 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
13031
13032 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13033 set-torture-options.
13034
13035 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
13036
13037 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13038 gcc-dg-runtest.
13039 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13040 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13041 -fno-builtin-acc_on_device instead of -O0.
13042 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13043 -O0.
13044 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13045 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13046 Likewise.
13047 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13048 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13049 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13050 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13051 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13052 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13053 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13054 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13055 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13056 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13057 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13058 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13059 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13060 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13061 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13062 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13063 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13064 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13065 Don't specify -O2.
13066 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13067 Likewise.
13068 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13069 Likewise.
13070
13071 2016-03-24 Martin Liska <mliska@suse.cz>
13072
13073 * plugin/plugin-hsa.c (packet_store_release): New function
13074 that is taken from the HSA runtime manual.
13075 (GOMP_OFFLOAD_run): Use the function.
13076
13077 2016-03-23 Jakub Jelinek <jakub@redhat.com>
13078
13079 PR c++/70376
13080 * testsuite/libgomp.c++/pr70376.C: New test.
13081
13082 2016-03-23 Tom de Vries <tom@codesourcery.com>
13083
13084 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13085 initialization of lresult and lvresult.
13086 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13087
13088 2016-03-23 James Norris <jnorris@codesourcery.com>
13089 Daichi Fukuoka <dc-fukuoka@sgi.com>
13090
13091 PR libgomp/69414
13092 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13093 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13094 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13095 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13096
13097 2016-03-23 Martin Liska <mliska@suse.cz>
13098
13099 PR hsa/70337
13100 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13101 argument just in case a dispatched kernel uses that argument.
13102
13103 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
13104
13105 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13106 -ftree-parallelize-loops/-fopenacc changes.
13107 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13108 Likewise.
13109 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13110 Likewise.
13111 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13112 Likewise.
13113 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13114 Likewise.
13115 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13116 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13117
13118 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13119
13120 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13121 always_ld_library_path the path to libgcc_s.
13122
13123 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13124
13125 PR testsuite/70009
13126 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13127
13128 2016-03-09 Tom de Vries <tom@codesourcery.com>
13129
13130 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13131 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13132 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13133 Same.
13134 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13135 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13136 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13137 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13138
13139 2016-03-07 Martin Jambor <mjambor@suse.cz>
13140
13141 * testsuite/lib/libgomp.exp
13142 (check_effective_target_hsa_offloading_selected_nocache): New.
13143 (check_effective_target_hsa_offloading_selected): Likewise.
13144 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13145 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13146 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13147 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13148 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13149 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13150 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13151 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13152 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13153 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13154 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13155 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13156 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13157 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13158 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13159 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13160 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13161
13162 2016-03-07 Martin Jambor <mjambor@suse.cz>
13163
13164 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13165 non-shared memory accelerators.
13166 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13167 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13168 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13169 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13170 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13171 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13172 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13173 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13174 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13175
13176 2016-03-07 Martin Jambor <mjambor@suse.cz>
13177
13178 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13179 ALWAYS_CFLAGS.
13180
13181 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13182
13183 PR libgomp/69555
13184 * testsuite/libgomp.c++/pr69555-1.C: New test.
13185 * testsuite/libgomp.c++/pr69555-2.C: New test.
13186
13187 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13188 Martin Jambor <mjambor@suse.cz>
13189
13190 * testsuite/lib/libgomp.exp
13191 (check_effective_target_offload_device_shared_as): New proc.
13192 * testsuite/libgomp.c++/declare_target-1.C: New test.
13193
13194 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13195
13196 PR driver/68463
13197 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13198
13199 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13200
13201 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13202 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13203 dims.
13204 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13205 -ftree-parallelize-loops/-fopenacc changes.
13206 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13207 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13208 Likewise.
13209 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13210 Likewise.
13211 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13212 Likewise.
13213 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13214 Likewise.
13215 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13216 Likewise.
13217 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13218 Likewise.
13219 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13220 Likewise.
13221 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13222 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13223 Likewise.
13224 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13225 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13226 Likewise.
13227 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13228 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13229 Likewise.
13230
13231 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13232
13233 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13234
13235 2016-02-19 Jakub Jelinek <jakub@redhat.com>
13236
13237 PR driver/69805
13238 * testsuite/libgomp.c/pr69805.c: New test.
13239
13240 2016-02-16 Tom de Vries <tom@codesourcery.com>
13241
13242 PR lto/67709
13243 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13244
13245 2016-02-09 Tom de Vries <tom@codesourcery.com>
13246
13247 PR tree-optimization/69599
13248 * testsuite/libgomp.c/omp-nested-3.c: New test.
13249 * testsuite/libgomp.c/pr46032-2.c: New test.
13250 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13251 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13252
13253 2016-02-09 Tom de Vries <tom@codesourcery.com>
13254
13255 PR lto/69707
13256 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13257
13258 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13259
13260 * testsuite/libgomp.c/target-31.c: Fix testcase.
13261
13262 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13263
13264 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13265 clause.
13266 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13267 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13268 reduction and map clauses.
13269 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13270
13271 2016-02-02 James Norris <jnorris@codesourcery.com>
13272
13273 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13274
13275 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13276
13277 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13278 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13279
13280 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13281 cases.
13282
13283 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13284 variables.
13285 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13286 (hsa_kmt_lib): Set variables.
13287 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13288 always_ld_library_path.
13289 * Makefile.in: Regenerate.
13290 * configure: Likewise.
13291 * testsuite/Makefile.in: Likewise.
13292
13293 * plugin/configfrag.ac (offload_additional_options)
13294 (offload_additional_lib_paths): Don't amend for hsa offloading.
13295 * configure: Regenerate.
13296
13297 * plugin/configfrag.ac: Don't configure for offloading target if
13298 we don't build the corresponding plugin.
13299 * configure: Regenerate.
13300
13301 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13302
13303 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13304 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13305
13306 2016-01-26 Tom de Vries <tom@codesourcery.com>
13307
13308 PR tree-optimization/69110
13309 * testsuite/libgomp.c/pr69110.c: New test.
13310
13311 2016-01-25 Richard Biener <rguenther@suse.de>
13312
13313 PR lto/69393
13314 * testsuite/libgomp.c++/pr69393.C: New testcase.
13315
13316 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13317
13318 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13319 function wasn't mapped to the device with non-shared memory.
13320
13321 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13322
13323 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13324
13325 2016-01-19 Martin Jambor <mjambor@suse.cz>
13326 Martin Liska <mliska@suse.cz>
13327
13328 * plugin/Makefrag.am: Add HSA plugin requirements.
13329 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13330 (HSA_RUNTIME_LIB): Likewise.
13331 (HSA_RUNTIME_CPPFLAGS): Likewise.
13332 (HSA_RUNTIME_INCLUDE): New substitution.
13333 (HSA_RUNTIME_LIB): Likewise.
13334 (HSA_RUNTIME_LDFLAGS): Likewise.
13335 (hsa-runtime): New configure option.
13336 (hsa-runtime-include): Likewise.
13337 (hsa-runtime-lib): Likewise.
13338 (PLUGIN_HSA): New substitution variable.
13339 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13340 configure options.
13341 (PLUGIN_HSA_CPPFLAGS): Likewise.
13342 (PLUGIN_HSA_LDFLAGS): Likewise.
13343 (PLUGIN_HSA_LIBS): Likewise.
13344 Check that we have access to HSA run-time.
13345 * libgomp-plugin.h (offload_target_type): New element
13346 OFFLOAD_TARGET_TYPE_HSA.
13347 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13348 args.
13349 (bool gomp_create_target_task): Updated.
13350 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13351 new field can_run_func.
13352 * libgomp_g.h (GOMP_target_ext): Update prototype.
13353 * oacc-host.c (host_run): Added a new parameter args.
13354 * target.c (calculate_firstprivate_requirements): New function.
13355 (copy_firstprivate_data): Likewise.
13356 (gomp_target_fallback_firstprivate): Use them.
13357 (gomp_target_unshare_firstprivate): New function.
13358 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13359 devices.
13360 (GOMP_target): Do host fallback for all shared memory devices. Do not
13361 pass any args to plugins.
13362 (GOMP_target_ext): Introduce device-specific argument parameter args.
13363 Allow host fallback if device shares memory. Do not remap data if
13364 device has shared memory.
13365 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13366 like host fallback for mappings.
13367 (GOMP_target_data): Treat shared memory devices like host fallback.
13368 (GOMP_target_data_ext): Likewise.
13369 (GOMP_target_update): Likewise.
13370 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13371 gomp_create_target_task.
13372 (GOMP_target_enter_exit_data): Likewise.
13373 (omp_target_alloc): Treat shared memory devices like host fallback.
13374 (omp_target_free): Likewise.
13375 (omp_target_is_present): Likewise.
13376 (omp_target_memcpy): Likewise.
13377 (omp_target_memcpy_rect): Likewise.
13378 (omp_target_associate_ptr): Likewise.
13379 (gomp_load_plugin_for_device): Also load can_run.
13380 * task.c (GOMP_PLUGIN_target_task_completion): Free
13381 firstprivate_copies.
13382 (gomp_create_target_task): Accept new argument args and store it to
13383 ttask.
13384 * plugin/plugin-hsa.c: New file.
13385
13386 2016-01-18 Tom de Vries <tom@codesourcery.com>
13387
13388 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13389 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13390 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13391 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13392 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13393 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13394 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13395 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13396 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13397 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13398 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13399 Same.
13400 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13401 Same.
13402 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13403 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13404 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13405 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13406 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13407 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13408 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13409 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13410 Same.
13411 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13412
13413 2016-01-15 Jakub Jelinek <jakub@redhat.com>
13414
13415 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13416
13417 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13418
13419 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13420
13421 2016-01-12 James Norris <jnorris@codesourcery.com>
13422
13423 * libgomp.texi: Updates for OpenACC.
13424
13425 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
13426
13427 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13428
13429 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13430
13431 PR fortran/66680
13432 * testsuite/libgomp.fortran/pr66680.f90: New test.
13433
13434 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13435
13436 PR middle-end/68960
13437 * testsuite/libgomp.c/pr68960.c: New test.
13438
13439 2016-01-06 Nathan Sidwell <nathan@acm.org>
13440
13441 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13442 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13443
13444 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13445
13446 Update copyright years.
13447
13448 * libgomp.texi: Bump @copying's copyright year.
13449
13450 2015-12-31 Nathan Sidwell <nathan@acm.org>
13451
13452 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13453 dg-additional-options syntax.
13454 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13455 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13456 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13457 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13458 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13459 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13460 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13461 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13462 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13463 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13464 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13465 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13466 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13467 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13468 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13469 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13470 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13471 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13472
13473 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
13474
13475 * libgomp.h (REFCOUNT_LINK): Define.
13476 (struct splay_tree_key_s): Add link_key.
13477 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13478 Replace target address of the pointer with target address of newly
13479 mapped object in the splay tree. Set link pointer on target to the
13480 device address of the mapped object.
13481 (gomp_unmap_vars): Restore target address of the pointer in the splay
13482 tree for REFCOUNT_LINK objects after unmapping.
13483 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13484 declare target link" objects.
13485 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
13486 "omp declare target link" objects, which were mapped for the image.
13487 (gomp_exit_data): Restore target address of the pointer in the splay
13488 tree for REFCOUNT_LINK objects after unmapping.
13489 * testsuite/libgomp.c/target-link-1.c: New file.
13490
13491 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
13492
13493 * libgomp.h (gomp_device_state): New enum.
13494 (struct gomp_device_descr): Replace is_initialized with state.
13495 (gomp_fini_device): Remove declaration.
13496 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13497 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13498 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
13499 (acc_set_device_type): Use state instead of is_initialized.
13500 (acc_set_device_num): Likewise.
13501 * target.c (resolve_device): Use state instead of is_initialized.
13502 Do not initialize finalized device.
13503 (gomp_map_vars): Do nothing if device is finalized.
13504 (gomp_unmap_vars): Likewise.
13505 (gomp_update): Likewise.
13506 (GOMP_offload_register_ver): Use state instead of is_initialized.
13507 (GOMP_offload_unregister_ver): Likewise.
13508 (gomp_init_device): Likewise.
13509 (gomp_unload_device): Likewise.
13510 (gomp_fini_device): Remove.
13511 (gomp_get_target_fn_addr): Do nothing if device is finalized.
13512 (GOMP_target): Go to host fallback if device is finalized.
13513 (GOMP_target_ext): Likewise.
13514 (gomp_exit_data): Do nothing if device is finalized.
13515 (gomp_target_task_fn): Go to host fallback if device is finalized.
13516 (gomp_target_fini): New static function.
13517 (gomp_target_init): Use state instead of is_initialized.
13518 Call gomp_target_fini at exit.
13519
13520 2015-12-09 Tom de Vries <tom@codesourcery.com>
13521
13522 PR tree-optimization/68716
13523 * testsuite/libgomp.c/omp-nested-2.c: New test.
13524
13525 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
13526
13527 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13528 target openacc_nvidia_accel_selected.
13529 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13530 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13531 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13532 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13533
13534 2015-12-01 Julian Brown <julian@codesourcery.com>
13535 James Norris <James_Norris@mentor.com>
13536
13537 * oacc-parallel.c (GOACC_host_data): New function.
13538 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13539 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13540 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13541 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13542 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13543 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13544 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13545
13546 2015-11-30 James Norris <jnorris@codesourcery.com>
13547 Cesar Philippidis <cesar@codesourcery.com>
13548
13549 libgomp/
13550 * libgomp.oacc-fortran/routine-5.f90: New test.
13551 * libgomp.oacc-fortran/routine-7.f90: New test.
13552 * libgomp.oacc-fortran/routine-9.f90: New test.
13553
13554 2015-11-30 Tom de Vries <tom@codesourcery.com>
13555
13556 PR tree-optimization/46032
13557 * testsuite/libgomp.c/pr46032.c: New test.
13558
13559 2015-11-27 Jakub Jelinek <jakub@redhat.com>
13560
13561 PR libgomp/68579
13562 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13563 (gomp_create_target_task): Call it before freeing
13564 GOMP_TARGET_TASK_DATA tasks.
13565
13566 PR c/63326
13567 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13568 in between case label and OpenMP standalone directives.
13569 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13570
13571 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
13572
13573 * configure: Regenerate.
13574
13575 2015-11-26 Jakub Jelinek <jakub@redhat.com>
13576
13577 * testsuite/libgomp.c/target-35.c: New test.
13578
13579 2015-11-22 James Norris <jnorris@codesourcery.com>
13580 Cesar Philippidis <cesar@codesourcery.com>
13581
13582 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13583 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13584 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13585 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13586 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13587
13588 2015-11-20 Jakub Jelinek <jakub@redhat.com>
13589
13590 PR middle-end/68221
13591 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13592 * testsuite/libgomp.c/reduction-12.c: Likewise.
13593 * testsuite/libgomp.c++/reduction-11.C: Likewise.
13594 * testsuite/libgomp.c++/reduction-12.C: Likewise.
13595
13596 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
13597
13598 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13599 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13600 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13601 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13602 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13603 and fix.
13604 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13605 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13606
13607 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
13608
13609 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13610 worker & gang cases.
13611 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13612
13613 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
13614
13615 * config/nvptx/priority_queue.c: New file.
13616
13617 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13618
13619 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13620 sections.
13621
13622 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13623 Aldy Hernandez <aldyh@redhat.com>
13624 Ilya Verbin <ilya.verbin@intel.com>
13625
13626 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13627 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13628 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13629 iterators or IV by chunk size.
13630 * parallel.c (gomp_resolve_num_threads): Don't assume that
13631 if thr->ts.team is non-NULL, then pool must be non-NULL.
13632 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13633 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13634 GOMP_PLUGIN_target_task_completion.
13635 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13636 * Makefile.in: Regenerate.
13637 * libgomp.h: Shuffle prototypes and forward definitions around so
13638 priority queues can be defined.
13639 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13640 (enum gomp_target_task_state): New enum.
13641 (struct gomp_target_task): Add state, tgt, task and team fields.
13642 (gomp_create_target_task): Change return type to bool, add
13643 state argument.
13644 (gomp_target_task_fn): Change return type to bool.
13645 (struct gomp_device_descr): Add async_run_func.
13646 (struct gomp_task): Remove children, next_child, prev_child,
13647 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13648 Add pnode field.
13649 (struct gomp_taskgroup): Remove children.
13650 Add taskgroup_queue.
13651 (struct gomp_team): Change task_queue type to a priority queue.
13652 (splay_compare): Define inline.
13653 (priority_queue_offset): New.
13654 (priority_node_to_task): New.
13655 (task_to_priority_node): New.
13656 * oacc-mem.c: Do not include splay-tree.h.
13657 * priority_queue.c: New file.
13658 * priority_queue.h: New file.
13659 * splay-tree.c: Do not include splay-tree.h.
13660 (splay_tree_foreach_internal): New.
13661 (splay_tree_foreach): New.
13662 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13663 (splay_tree_callback): Define typedef.
13664 * target.c (splay_compare): Move to libgomp.h.
13665 (GOMP_target): Don't adjust *thr in any way around running offloaded
13666 task.
13667 (GOMP_target_ext): Likewise. Handle target nowait.
13668 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13669 return value from gomp_create_target_task, if false, fallthrough
13670 as if no dependencies exist.
13671 (gomp_target_task_fn): Change return type to bool, return true
13672 if the task should have another part scheduled later. Handle
13673 target nowait.
13674 (gomp_load_plugin_for_device): Initialize async_run.
13675 * task.c (gomp_init_task): Initialize children_queue.
13676 (gomp_clear_parent_in_list): New.
13677 (gomp_clear_parent_in_tree): New.
13678 (gomp_clear_parent): Handle priorities.
13679 (GOMP_task): Likewise.
13680 (priority_queue_move_task_first,
13681 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13682 New functions.
13683 (gomp_create_target_task): Use priority queues. Change return type
13684 to bool, add state argument, return false if for async
13685 {{enter,exit} data,update} constructs no dependencies need to be
13686 waited for, handle target nowait. Set task->fn to NULL instead of
13687 gomp_target_task_fn.
13688 (verify_children_queue): Remove.
13689 (priority_list_upgrade_task): New.
13690 (priority_queue_upgrade_task): New.
13691 (verify_task_queue): Remove.
13692 (priority_list_downgrade_task): New.
13693 (priority_queue_downgrade_task): New.
13694 (gomp_task_run_pre): Use priority queues.
13695 Abstract code out to priority_queue_downgrade_task.
13696 (gomp_task_run_post_handle_dependers): Use priority queues.
13697 (gomp_task_run_post_remove_parent): Likewise.
13698 (gomp_task_run_post_remove_taskgroup): Likewise.
13699 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
13700 tasks specially.
13701 (GOMP_taskwait): Likewise.
13702 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
13703 priority-queue_upgrade_task.
13704 (GOMP_taskgroup_start): Use priority queues.
13705 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
13706 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
13707 barrier.
13708 * taskloop.c (GOMP_taskloop): Handle priorities.
13709 * team.c (gomp_new_team): Call priority_queue_init.
13710 (free_team): Call priority_queue_free.
13711 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13712 team created for target nowait in implicit parallel region.
13713 (gomp_team_start): For nested check, test thr->ts.level instead of
13714 thr->ts.team != NULL.
13715 * testsuite/libgomp.c/doacross-3.c: New test.
13716 * testsuite/libgomp.c/ordered-5.c: New test.
13717 * testsuite/libgomp.c/priority.c: New test.
13718 * testsuite/libgomp.c/target-31.c: New test.
13719 * testsuite/libgomp.c/target-32.c: New test.
13720 * testsuite/libgomp.c/target-33.c: New test.
13721 * testsuite/libgomp.c/target-34.c: New test.
13722
13723 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13724
13725 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13726
13727 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13728 loop is sequential.
13729
13730 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13731
13732 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13733 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13734
13735 2015-11-12 James Norris <jnorris@codesourcery.com>
13736 Joseph Myers <joseph@codesourcery.com>
13737
13738 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13739 * oacc-parallel.c (GOACC_declare): New function.
13740 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13741 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13742 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13743 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13744 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13745
13746 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
13747
13748 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13749
13750 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
13751
13752 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13753 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13754
13755 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13756
13757 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13758 inadvertent commit.
13759
13760 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13761
13762 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13763 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13764 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13765 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13766 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13767
13768 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
13769
13770 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13771 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13772
13773 2015-11-05 Jakub Jelinek <jakub@redhat.com>
13774 Ilya Verbin <ilya.verbin@intel.com>
13775
13776 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13777 GOMP_loop_nonmonotonic_dynamic_start,
13778 GOMP_loop_nonmonotonic_guided_next,
13779 GOMP_loop_nonmonotonic_guided_start,
13780 GOMP_loop_ull_nonmonotonic_dynamic_next,
13781 GOMP_loop_ull_nonmonotonic_dynamic_start,
13782 GOMP_loop_ull_nonmonotonic_guided_next,
13783 GOMP_loop_ull_nonmonotonic_guided_start,
13784 GOMP_parallel_loop_nonmonotonic_dynamic,
13785 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13786 (GOMP_target_41): Renamed to ...
13787 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13788 arguments.
13789 (GOMP_target_data_41): Renamed to ...
13790 (GOMP_target_data_ext): ... this.
13791 (GOMP_target_update_41): Renamed to ...
13792 (GOMP_target_update_ext): ... this.
13793 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13794 GOMP_target_data_ext and GOMP_target_update_ext instead of
13795 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13796 Export GOMP_loop_nonmonotonic_dynamic_next,
13797 GOMP_loop_nonmonotonic_dynamic_start,
13798 GOMP_loop_nonmonotonic_guided_next,
13799 GOMP_loop_nonmonotonic_guided_start,
13800 GOMP_loop_ull_nonmonotonic_dynamic_next,
13801 GOMP_loop_ull_nonmonotonic_dynamic_start,
13802 GOMP_loop_ull_nonmonotonic_guided_next,
13803 GOMP_loop_ull_nonmonotonic_guided_start,
13804 GOMP_parallel_loop_nonmonotonic_dynamic and
13805 GOMP_parallel_loop_nonmonotonic_guided.
13806 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13807 GOMP_parallel_loop_nonmonotonic_guided,
13808 GOMP_loop_nonmonotonic_dynamic_start,
13809 GOMP_loop_nonmonotonic_guided_start,
13810 GOMP_loop_nonmonotonic_dynamic_next,
13811 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13812 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13813 GOMP_loop_ull_nonmonotonic_guided_start,
13814 GOMP_loop_ull_nonmonotonic_dynamic_next,
13815 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13816 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13817 functions.
13818 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
13819 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13820 Use gomp_map_val function.
13821 (gomp_target_fallback_firstprivate): New static function.
13822 (GOMP_target_41): Renamed to ...
13823 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13824 arguments. Move firstprivate fallback handling into a new
13825 function.
13826 (GOMP_target_data_41): Renamed to ...
13827 (GOMP_target_data_ext): ... this.
13828 (GOMP_target_update_41): Renamed to ...
13829 (GOMP_target_update_ext): ... this.
13830 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13831 gomp_map_0len_lookup instead of gomp_map_lookup.
13832 (omp_target_is_present): Use gomp_map_0len_lookup instead of
13833 gomp_map_lookup.
13834 * testsuite/libgomp.c/target-28.c: Likewise.
13835 * testsuite/libgomp.c/monotonic-1.c: New test.
13836 * testsuite/libgomp.c/monotonic-2.c: New test.
13837 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13838 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13839 * testsuite/libgomp.c/pr66199-5.c: New test.
13840 * testsuite/libgomp.c/pr66199-6.c: New test.
13841 * testsuite/libgomp.c/pr66199-7.c: New test.
13842 * testsuite/libgomp.c/pr66199-8.c: New test.
13843 * testsuite/libgomp.c/pr66199-9.c: New test.
13844 * testsuite/libgomp.c/reduction-11.c: New test.
13845 * testsuite/libgomp.c/reduction-12.c: New test.
13846 * testsuite/libgomp.c/reduction-13.c: New test.
13847 * testsuite/libgomp.c/reduction-14.c: New test.
13848 * testsuite/libgomp.c/reduction-15.c: New test.
13849 * testsuite/libgomp.c/target-12.c (main): Adjust for
13850 omp_target_is_present change for one-past-last element.
13851 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13852 the same var is both mapped and privatized.
13853 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13854 handling of zero-length array sections.
13855 * testsuite/libgomp.c/target-28.c: New test.
13856 * testsuite/libgomp.c/target-29.c: New test.
13857 * testsuite/libgomp.c/target-30.c: New test.
13858 * testsuite/libgomp.c/target-teams-1.c: New test.
13859 * testsuite/libgomp.c++/member-6.C: New test.
13860 * testsuite/libgomp.c++/member-7.C: New test.
13861 * testsuite/libgomp.c++/monotonic-1.C: New test.
13862 * testsuite/libgomp.c++/monotonic-2.C: New test.
13863 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13864 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13865 * testsuite/libgomp.c++/pr66199-3.C: New test.
13866 * testsuite/libgomp.c++/pr66199-4.C: New test.
13867 * testsuite/libgomp.c++/pr66199-5.C: New test.
13868 * testsuite/libgomp.c++/pr66199-6.C: New test.
13869 * testsuite/libgomp.c++/pr66199-7.C: New test.
13870 * testsuite/libgomp.c++/pr66199-8.C: New test.
13871 * testsuite/libgomp.c++/pr66199-9.C: New test.
13872 * testsuite/libgomp.c++/reduction-11.C: New test.
13873 * testsuite/libgomp.c++/reduction-12.C: New test.
13874 * testsuite/libgomp.c++/target-13.C: New test.
13875 * testsuite/libgomp.c++/target-14.C: New test.
13876 * testsuite/libgomp.c++/target-15.C: New test.
13877 * testsuite/libgomp.c++/target-16.C: New test.
13878 * testsuite/libgomp.c++/target-17.C: New test.
13879 * testsuite/libgomp.c++/target-18.C: New test.
13880 * testsuite/libgomp.c++/target-19.C: New test.
13881
13882 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13883
13884 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13885 and reduction copy.
13886 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13887 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13888 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13889 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13890 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13891 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13892 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13893 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13894 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13895 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13896 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13897 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13898 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13899 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13900
13901 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13902
13903 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13904 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13905 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13906 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13907 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13908 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13909 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13910 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13911
13912 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
13913
13914 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13915 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13916 (GOMP_OFFLOAD_openacc_parallel): Likewise.
13917 * oacc-host.c (host_openacc_exec): Likewise.
13918 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13919
13920 2015-11-03 Julian Brown <julian@codesourcery.com>
13921 Thomas Schwinge <thomas@codesourcery.com>
13922
13923 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13924 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13925 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13926 Likewise.
13927 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13928 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13929
13930 2015-11-03 James Norris <jnorris@codesourcery.com>
13931
13932 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13933 file.
13934 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13935 Likewise.
13936 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13937 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13938 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13939 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13940 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13941
13942 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
13943
13944 * openacc.h (enum acc_device_t): Reformat. Ensure layout
13945 compatibility.
13946 (enum acc_async_t): Reformat.
13947 (acc_on_device): Declare compatible with builtin and provide C++
13948 wrapper.
13949 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13950
13951 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
13952 Cesar Philippidis <cesar@codesourcery.com>
13953
13954 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13955 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13956 ... this. Add a description of the test at the top of the file.
13957 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13958 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13959 ... this. Add a description of the test at the top of the file.
13960
13961 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
13962
13963 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13964 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13965 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13966 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13967 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13968 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13969
13970 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
13971
13972 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13973 dimensions.
13974
13975 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
13976
13977 PR testsuite/68063
13978 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13979
13980 2015-10-27 James Norris <jnorris@codesourcery.com>
13981
13982 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13983 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13984
13985 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
13986
13987 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13988 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13989
13990 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13991 acc_device_nvidia usage.
13992 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13993 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13994 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13995
13996 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13997 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13998
13999 PR libgomp/66518
14000 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14001
14002 PR libgomp/65437
14003 PR libgomp/66518
14004 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14005 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14006
14007 2015-10-23 Tom de Vries <tom@codesourcery.com>
14008
14009 PR testsuite/68063
14010 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14011
14012 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
14013
14014 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14015 vector_length.
14016 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14017
14018 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
14019 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
14020
14021 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14022 to 0 when mapnum is 0.
14023
14024 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
14025
14026 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14027 Cast to int from int32_t.
14028
14029 2015-10-13 Jakub Jelinek <jakub@redhat.com>
14030 Aldy Hernandez <aldyh@redhat.com>
14031 Ilya Verbin <ilya.verbin@intel.com>
14032
14033 * config/linux/affinity.c (omp_get_place_num_procs,
14034 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14035 * config/linux/doacross.h: New file.
14036 * config/posix/affinity.c (omp_get_place_num_procs,
14037 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14038 * config/posix/doacross.h: New file.
14039 * env.c: Include gomp-constants.h.
14040 (struct gomp_task_icv): Rename run_sched_modifier to
14041 run_sched_chunk_size.
14042 (gomp_max_task_priority_var): New variable.
14043 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14044 (handle_omp_display_env): Change _OPENMP value from 201307 to
14045 201511. Print OMP_MAX_TASK_PRIORITY.
14046 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14047 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14048 chunk_size and run_sched_modifier to run_sched_chunk_size.
14049 (omp_get_max_task_priority, omp_get_initial_device,
14050 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14051 omp_get_partition_place_nums): New functions.
14052 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14053 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14054 to chunk_size.
14055 (omp_get_num_places_, omp_get_place_num_procs_,
14056 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14057 omp_get_place_proc_ids_8_, omp_get_place_num_,
14058 omp_get_partition_num_places_, omp_get_partition_place_nums_,
14059 omp_get_partition_place_nums_8_, omp_get_initial_device_,
14060 omp_get_max_task_priority_): New functions.
14061 * libgomp_g.h (GOMP_loop_doacross_static_start,
14062 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14063 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14064 GOMP_loop_ull_doacross_dynamic_start,
14065 GOMP_loop_ull_doacross_guided_start,
14066 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14067 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14068 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14069 GOMP_target_data_41, GOMP_target_update_41,
14070 GOMP_target_enter_exit_data): New prototypes.
14071 (GOMP_task): Add prototype argument.
14072 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14073 (struct gomp_doacross_work_share): New type.
14074 (struct gomp_work_share): Add doacross field.
14075 (struct gomp_task_icv): Rename run_sched_modifier to
14076 run_sched_chunk_size.
14077 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14078 GOMP_TASK_UNDEFERRED. Add comments.
14079 (struct gomp_task_depend_entry): Add comments.
14080 (struct gomp_task): Likewise.
14081 (struct gomp_taskgroup): Likewise.
14082 (struct gomp_target_task): New type.
14083 (struct gomp_team): Add comment.
14084 (gomp_get_place_proc_ids_8, gomp_doacross_init,
14085 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14086 gomp_create_target_task, gomp_target_task_fn): New prototypes.
14087 (struct target_var_desc): New type.
14088 (struct target_mem_desc): Adjust comment. Use struct
14089 target_var_desc instead of splay_tree_key for list.
14090 (REFCOUNT_INFINITY): Define.
14091 (struct splay_tree_key_s): Remove copy_from field.
14092 (struct gomp_device_descr): Add dev2dev_func field.
14093 (enum gomp_map_vars_kind): New enum.
14094 (gomp_map_vars): Add one argument.
14095 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14096 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14097 omp_get_place_num_procs, omp_get_place_num_procs_,
14098 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14099 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14100 omp_get_place_num_, omp_get_partition_num_places,
14101 omp_get_partition_num_places_, omp_get_partition_place_nums,
14102 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14103 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14104 omp_target_free, omp_target_is_present, omp_target_memcpy,
14105 omp_target_memcpy_rect, omp_target_associate_ptr and
14106 omp_target_disassociate_ptr.
14107 (GOMP_4.0.2): Renamed to ...
14108 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14109 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14110 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14111 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14112 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14113 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14114 GOMP_loop_ull_doacross_guided_start,
14115 GOMP_loop_ull_doacross_runtime_start,
14116 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14117 GOMP_doacross_ull_wait.
14118 * libgomp.texi: Document omp_get_max_task_priority.
14119 Rename modifier argument to chunk_size for omp_set_schedule and
14120 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14121 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14122 to run_sched_chunk_size renaming.
14123 (GOMP_loop_ordered_runtime_start): Likewise.
14124 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14125 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14126 GOMP_parallel_loop_runtime_start): New functions.
14127 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14128 to run_sched_chunk_size renaming.
14129 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14130 GOMP_loop_doacross_guided_start): New functions or aliases.
14131 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14132 run_sched_modifier to run_sched_chunk_size renaming.
14133 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14134 (gomp_loop_ull_doacross_static_start,
14135 gomp_loop_ull_doacross_dynamic_start,
14136 gomp_loop_ull_doacross_guided_start,
14137 GOMP_loop_ull_doacross_runtime_start): New functions.
14138 (GOMP_loop_ull_doacross_static_start,
14139 GOMP_loop_ull_doacross_dynamic_start,
14140 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14141 * oacc-mem.c (acc_map_data, present_create_copy,
14142 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14143 to gomp_map_vars.
14144 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14145 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14146 instead of false to gomp_map_vars.
14147 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14148 * omp.h.in (omp_lock_hint_t): New type.
14149 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14150 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14151 omp_get_place_num, omp_get_partition_num_places,
14152 omp_get_partition_place_nums, omp_get_initial_device,
14153 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14154 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14155 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14156 prototypes.
14157 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14158 (omp_lock_hint_none, omp_lock_hint_uncontended,
14159 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14160 omp_lock_hint_speculative): New parameters.
14161 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14162 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14163 omp_get_place_num, omp_get_partition_num_places,
14164 omp_get_partition_place_nums, omp_get_initial_device,
14165 omp_get_max_task_priority): New interfaces.
14166 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14167 to chunk_size.
14168 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14169 (omp_lock_hint_none, omp_lock_hint_uncontended,
14170 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14171 omp_lock_hint_speculative): New parameters.
14172 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14173 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14174 omp_get_place_num, omp_get_partition_num_places,
14175 omp_get_partition_place_nums, omp_get_initial_device,
14176 omp_get_max_task_priority): New functions and subroutines.
14177 * ordered.c: Include stdarg.h and string.h.
14178 (MAX_COLLAPSED_BITS): Define.
14179 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14180 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14181 GOMP_doacross_ull_wait): New functions.
14182 * target.c: Include errno.h.
14183 (resolve_device): If device is not initialized, call
14184 gomp_init_device on it.
14185 (gomp_map_lookup): New function.
14186 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14187 Don't bump refcount if REFCOUNT_INFINITY. Handle
14188 GOMP_MAP_ALWAYS_TO_P.
14189 (get_kind): Rename is_openacc argument to short_mapkind.
14190 (gomp_map_pointer): Use gomp_map_lookup.
14191 (gomp_map_fields_existing): New function.
14192 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14193 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14194 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14195 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14196 Adjust for tgt->list changed type and copy_from living in there.
14197 (gomp_copy_from_async): Adjust for tgt->list changed type and
14198 copy_from living in there.
14199 (gomp_unmap_vars): Likewise.
14200 (gomp_update): Likewise. Rename is_openacc argument to
14201 short_mapkind. Don't fail if object is not mapped.
14202 (gomp_load_image_to_device): Initialize refcount to
14203 REFCOUNT_INFINITY.
14204 (gomp_target_fallback): New function.
14205 (gomp_get_target_fn_addr): Likewise.
14206 (GOMP_target): Adjust gomp_map_vars caller, use
14207 gomp_get_target_fn_addr and gomp_target_fallback.
14208 (GOMP_target_41): New function.
14209 (gomp_target_data_fallback): New function.
14210 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14211 (GOMP_target_data_41): New function.
14212 (GOMP_target_update): Adjust gomp_update caller.
14213 (GOMP_target_update_41): New function.
14214 (gomp_exit_data, GOMP_target_enter_exit_data,
14215 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14216 omp_target_is_present, omp_target_memcpy,
14217 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14218 omp_target_associate_ptr, omp_target_disassociate_ptr,
14219 gomp_load_plugin_for_device): New functions.
14220 * task.c: Include gomp-constants.h. Include taskloop.c
14221 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14222 (gomp_task_handle_depend): New function.
14223 (GOMP_task): Use it. Add priority argument. Use
14224 gomp-constant.h constants instead of hardcoded numbers.
14225 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14226 (gomp_create_target_task): New function.
14227 (verify_children_queue, verify_taskgroup_queue,
14228 verify_task_queue): New functions.
14229 (gomp_task_run_pre): Call verify_*_queue functions.
14230 If an upcoming tied task is about to leave the sibling or
14231 taskgroup queues in an invalid state, adjust appropriately.
14232 Remove taskgroup argument. Add comments.
14233 (gomp_task_run_post_handle_dependers): Add comments.
14234 (gomp_task_run_post_remove_parent): Likewise.
14235 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14236 (GOMP_taskwait): Likewise. Add comments.
14237 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14238 problem such that the first non parent_depends_on task does not
14239 end up at the end of the children queue.
14240 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14241 GOMP_TASK_UNDEFERRED.
14242 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14243 * taskloop.c: New file.
14244 * testsuite/lib/libgomp.exp
14245 (check_effective_target_offload_device_nonshared_as): New proc.
14246 * testsuite/libgomp.c/affinity-2.c: New test.
14247 * testsuite/libgomp.c/doacross-1.c: New test.
14248 * testsuite/libgomp.c/doacross-2.c: New test.
14249 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14250 Add map clause to target.
14251 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14252 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14253 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14254 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14255 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14256 Likewise.
14257 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14258 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14259 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14260 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14261 not defined. Use those where needed.
14262 * testsuite/libgomp.c/for-4.c: New test.
14263 * testsuite/libgomp.c/for-5.c: New test.
14264 * testsuite/libgomp.c/for-6.c: New test.
14265 * testsuite/libgomp.c/linear-1.c: New test.
14266 * testsuite/libgomp.c/ordered-4.c: New test.
14267 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14268 only allowed on the loop iterator.
14269 * testsuite/libgomp.c/pr66199-3.c: New test.
14270 * testsuite/libgomp.c/pr66199-4.c: New test.
14271 * testsuite/libgomp.c/reduction-7.c: New test.
14272 * testsuite/libgomp.c/reduction-8.c: New test.
14273 * testsuite/libgomp.c/reduction-9.c: New test.
14274 * testsuite/libgomp.c/reduction-10.c: New test.
14275 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14276 map(tofrom:s).
14277 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14278 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14279 * testsuite/libgomp.c/target-11.c: New test.
14280 * testsuite/libgomp.c/target-12.c: New test.
14281 * testsuite/libgomp.c/target-13.c: New test.
14282 * testsuite/libgomp.c/target-14.c: New test.
14283 * testsuite/libgomp.c/target-15.c: New test.
14284 * testsuite/libgomp.c/target-16.c: New test.
14285 * testsuite/libgomp.c/target-17.c: New test.
14286 * testsuite/libgomp.c/target-18.c: New test.
14287 * testsuite/libgomp.c/target-19.c: New test.
14288 * testsuite/libgomp.c/target-20.c: New test.
14289 * testsuite/libgomp.c/target-21.c: New test.
14290 * testsuite/libgomp.c/target-22.c: New test.
14291 * testsuite/libgomp.c/target-23.c: New test.
14292 * testsuite/libgomp.c/target-24.c: New test.
14293 * testsuite/libgomp.c/target-25.c: New test.
14294 * testsuite/libgomp.c/target-26.c: New test.
14295 * testsuite/libgomp.c/target-27.c: New test.
14296 * testsuite/libgomp.c/taskloop-1.c: New test.
14297 * testsuite/libgomp.c/taskloop-2.c: New test.
14298 * testsuite/libgomp.c/taskloop-3.c: New test.
14299 * testsuite/libgomp.c/taskloop-4.c: New test.
14300 * testsuite/libgomp.c++/ctor-13.C: New test.
14301 * testsuite/libgomp.c++/doacross-1.C: New test.
14302 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14303 Replace offload_device with offload_device_nonshared_as.
14304 * testsuite/libgomp.c++/for-12.C: New test.
14305 * testsuite/libgomp.c++/for-13.C: New test.
14306 * testsuite/libgomp.c++/for-14.C: New test.
14307 * testsuite/libgomp.c++/linear-1.C: New test.
14308 * testsuite/libgomp.c++/member-1.C: New test.
14309 * testsuite/libgomp.c++/member-2.C: New test.
14310 * testsuite/libgomp.c++/member-3.C: New test.
14311 * testsuite/libgomp.c++/member-4.C: New test.
14312 * testsuite/libgomp.c++/member-5.C: New test.
14313 * testsuite/libgomp.c++/ordered-1.C: New test.
14314 * testsuite/libgomp.c++/reduction-5.C: New test.
14315 * testsuite/libgomp.c++/reduction-6.C: New test.
14316 * testsuite/libgomp.c++/reduction-7.C: New test.
14317 * testsuite/libgomp.c++/reduction-8.C: New test.
14318 * testsuite/libgomp.c++/reduction-9.C: New test.
14319 * testsuite/libgomp.c++/reduction-10.C: New test.
14320 * testsuite/libgomp.c++/reference-1.C: New test.
14321 * testsuite/libgomp.c++/simd14.C: New test.
14322 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14323 * testsuite/libgomp.c++/target-5.C: New test.
14324 * testsuite/libgomp.c++/target-6.C: New test.
14325 * testsuite/libgomp.c++/target-7.C: New test.
14326 * testsuite/libgomp.c++/target-8.C: New test.
14327 * testsuite/libgomp.c++/target-9.C: New test.
14328 * testsuite/libgomp.c++/target-10.C: New test.
14329 * testsuite/libgomp.c++/target-11.C: New test.
14330 * testsuite/libgomp.c++/target-12.C: New test.
14331 * testsuite/libgomp.c++/taskloop-1.C: New test.
14332 * testsuite/libgomp.c++/taskloop-2.C: New test.
14333 * testsuite/libgomp.c++/taskloop-3.C: New test.
14334 * testsuite/libgomp.c++/taskloop-4.C: New test.
14335 * testsuite/libgomp.c++/taskloop-5.C: New test.
14336 * testsuite/libgomp.c++/taskloop-6.C: New test.
14337 * testsuite/libgomp.c++/taskloop-7.C: New test.
14338 * testsuite/libgomp.c++/taskloop-8.C: New test.
14339 * testsuite/libgomp.c++/taskloop-9.C: New test.
14340 * testsuite/libgomp.fortran/affinity1.f90: New test.
14341 * testsuite/libgomp.fortran/affinity2.f90: New test.
14342
14343 2015-10-13 Tom de Vries <tom@codesourcery.com>
14344
14345 PR tree-optimization/67476
14346 * testsuite/libgomp.c/autopar-3.c: New test.
14347 * testsuite/libgomp.c/autopar-4.c: New test.
14348 * testsuite/libgomp.c/autopar-5.c: New test.
14349 * testsuite/libgomp.c/autopar-6.c: New test.
14350 * testsuite/libgomp.c/autopar-7.c: New test.
14351 * testsuite/libgomp.c/autopar-8.c: New test.
14352
14353 2015-10-12 James Norris <jnorris@codesourcery.com>
14354
14355 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14356 initializer.
14357
14358 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14359
14360 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14361 using load_gcc_lib.
14362
14363 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14364
14365 * oacc-ptx.h: Remove file, moving its content into...
14366 * config/nvptx/fortran.c: ... here...
14367 * config/nvptx/oacc-init.c: ..., here...
14368 * config/nvptx/oacc-parallel.c: ..., and here.
14369 * config/nvptx/openacc.f90: New file.
14370 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14371 (link_ptx): Don't link in predefined bits of PTX code.
14372
14373 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14374 Bernd Schmidt <bernds@codesourcery.com>
14375
14376 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14377 (struct targ_ptx_obj): New.
14378 (nvptx_tdata): Move earlier, change data format.
14379 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14380 objects.
14381 (GOMP_OFFLOAD_load_image): Adjust.
14382
14383 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14384
14385 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14386 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14387 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14388 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14389 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14390 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14391 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14392 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14393 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14394 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14395 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14396 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14397 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14398 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14399 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14400 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14401 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14402 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14403 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14404 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14405 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14406 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14407 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14408 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14409 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14410 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14411 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14412 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14413 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14414 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14415 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14416 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14417 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14418 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14419 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14420 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14421 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14422 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14423 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14424 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14425 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14426 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14427 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14428 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14429 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14430 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14431 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14432 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14433 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14434 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14435 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14436 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14437 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14438 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14439 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14440 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14441 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14442 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14443 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14444 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14445 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14446 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14447 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14448
14449 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14450
14451 * oacc-init.c (acc_on_device): Force optimization level.
14452
14453 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14454
14455 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14456 (cuda_errlist): Delete.
14457 (cuda_error): Reimplement.
14458
14459 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14460
14461 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14462 array.
14463 * libgomp.map (GOACC_parallel_keyed): New.
14464 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
14465 all callers.
14466 (GOACC_parallel_keyed): New interface. Lose geometry arguments
14467 and take keyed varargs list. Adjust call to exec_func.
14468 (GOACC_parallel): Force host fallback.
14469 * libgomp_g.h (GOACC_parallel): Remove.
14470 (GOACC_parallel_keyed): Declare.
14471 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14472 (struct targ_gn_descriptor): Replace name field with launch field.
14473 (nvptx_exec): Lose separate geometry args, take array. Process
14474 dynamic dimensions and adjust.
14475 (struct nvptx_tdata): Replace fn_names field with fn_descs.
14476 (GOMP_OFFLOAD_load_image): Adjust for change in function table
14477 data.
14478 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14479 passing.
14480 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14481 passing.
14482
14483 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14484
14485 PR libgomp/67141
14486 * oacc-int.h (goacc_host_init): Add declaration.
14487 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14488 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14489
14490 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14491 Sebastian Pop <s.pop@samsung.com>
14492
14493 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14494 match o/p.
14495 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14496 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14497 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14498 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14499 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14500
14501 2015-09-03 Jakub Jelinek <jakub@redhat.com>
14502
14503 * configure.tgt: Add missing ;; in between nvptx and rtems
14504 snippets.
14505
14506 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14507
14508 * config/posix/pool.h (gomp_adjust_thread_attr): New.
14509 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14510 (gomp_thread_pool_reservoir): Add priority member.
14511 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14512 priority.
14513 (parse_thread_pools): Likewise.
14514 * team.c (gomp_team_start): Call configuration provided
14515 gomp_adjust_thread_attr(). Destroy thread attributes if
14516 necessary.
14517 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14518
14519 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14520
14521 * config/posix/pool.h: New.
14522 * config/rtems/pool.h: Likewise.
14523 * config/rtems/proc.c: Likewise.
14524 * libgomp.h (gomp_thread_destructor): Declare.
14525 * team.c: Include configuration provided "pool.h".
14526 (gomp_get_thread_pool): Define in configuration.
14527 (gomp_team_end): Call configuration defined
14528 gomp_release_thread_pool().
14529
14530 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14531
14532 * config/rtems/bar.c: New.
14533 * config/rtems/bar.h: Likewise.
14534 * config/rtems/mutex.c: Likewise.
14535 * config/rtems/mutex.h: Likewise.
14536 * config/rtems/sem.c: Likewise.
14537 * config/rtems/sem.h: Likewise.
14538 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14539 <sys/lock.h> header file.
14540 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14541 supported by Newlib.
14542 * configure: Regenerate.
14543
14544 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14545
14546 * team.c (gomp_new_thread_pool): Delete and move content to ...
14547 (gomp_get_thread_pool): ... new function. Allocate and
14548 initialize thread pool on demand.
14549 (get_last_team): Use gomp_get_thread_pool().
14550 (gomp_team_start): Delete thread pool initialization.
14551
14552 2015-09-03 Tom de Vries <tom@codesourcery.com>
14553
14554 PR tree-optimization/65637
14555 * testsuite/libgomp.c/autopar-2.c: New test.
14556
14557 2015-08-29 Tom de Vries <tom@codesourcery.com>
14558
14559 PR tree-optimization/46193
14560 * testsuite/libgomp.c/pr46193.c: New test.
14561
14562 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14563
14564 libgomp/
14565 * libgomp.map: Add 4.0.2 version.
14566 * target.c (offload_image_descr): Add version field.
14567 (gomp_load_image_to_device): Add version argument. Adjust plugin
14568 call. Improve load mismatch diagnostic.
14569 (gomp_unload_image_from_device): Add version argument. Adjust plugin
14570 call.
14571 (GOMP_offload_regster): Make stub function, move bulk to ...
14572 (GOMP_offload_register_ver): ... here. Process version argument.
14573 (GOMP_offload_unregister): Make stub function, move bulk to ...
14574 (GOMP_offload_unregister_ver): ... here. Process version argument.
14575 (gomp_init_device): Process version field.
14576 (gomp_unload_device): Process version field.
14577 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14578 macros. Check plugin version.
14579 * libgomp.h (gomp_device_descr): Add version function field. Adjust
14580 loader and unloader types.
14581 * oacc-host.c: Include gomp-constants.h.
14582 (host_version): New.
14583 (host_load_image, host_unload_image): Adjust.
14584 (host_dispatch): Add host_version.
14585 * plugin/plugin-nvptx.c: Include gomp-constants.h.
14586 (GOMP_OFFLOAD_version): New.
14587 (GOMP_OFFLOAD_load_image): Add version arg and check it.
14588 (GOMP_OFFLOAD_unload_image): Likewise.
14589 * plugin/plugin-host.c: Include gomp-constants.h.
14590 (GOMP_OFFLOAD_version): New.
14591 (GOMP_OFFLOAD_load_image): Add version arg.
14592 (GOMP_OFFLOAD_unload_image): Likewise.
14593
14594 2015-08-24 Tom de Vries <tom@codesourcery.com>
14595
14596 PR tree-optimization/65468
14597 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14598
14599 2015-08-24 Tom de Vries <tom@codesourcery.com>
14600
14601 PR tree-optimization/65468
14602 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14603
14604 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
14605
14606 PR libgomp/66761
14607 PR libgomp/67303
14608 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14609 (gomp_iter_guided_next): Idem.
14610 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14611 (gomp_iter_ull_guided_next): Idem.
14612 * config/linux/wait.h (do_spin): Idem.
14613
14614 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14615
14616 * libgomp-plugin.h (enum offload_target_type): Remove
14617 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14618 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14619 * openacc.h (enum acc_device_t): Likewise.
14620 * openacc_lib.h: Likewise.
14621 * oacc-init.c (name_of_acc_device_t): Don't handle it.
14622 (acc_on_device): Just use __builtin_acc_on_device.
14623 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14624 of acc_on_device builtin.
14625 * plugin/plugin-host.h: Remove file.
14626 * plugin/plugin-host.c: Likewise, but salvage some content into...
14627 * oacc-host.c: ... this file.
14628 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14629 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14630 * Makefile.in: Regenerate.
14631 * configure: Likewise.
14632 * testsuite/lib/libgomp.exp
14633 (check_effective_target_openacc_host_nonshm_selected): Remove.
14634 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14635 ACC_DEVICE_TYPE=host_nonshm.
14636 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14637 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14638 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14639 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14640 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14641 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14642
14643 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14644 Jakub Jelinek <jakub@redhat.com>
14645
14646 * config/nvptx/affinity.c: New file.
14647 * config/nvptx/alloc.c: Likewise.
14648 * config/nvptx/bar.c: Likewise.
14649 * config/nvptx/barrier.c: Likewise.
14650 * config/nvptx/critical.c: Likewise.
14651 * config/nvptx/env.c: Likewise.
14652 * config/nvptx/error.c: Likewise.
14653 * config/nvptx/fortran.c: Likewise.
14654 * config/nvptx/iter.c: Likewise.
14655 * config/nvptx/iter_ull.c: Likewise.
14656 * config/nvptx/libgomp-plugin.c: Likewise.
14657 * config/nvptx/lock.c: Likewise.
14658 * config/nvptx/loop.c: Likewise.
14659 * config/nvptx/loop_ull.c: Likewise.
14660 * config/nvptx/mutex.c: Likewise.
14661 * config/nvptx/oacc-async.c: Likewise.
14662 * config/nvptx/oacc-cuda.c: Likewise.
14663 * config/nvptx/oacc-host.c: Likewise.
14664 * config/nvptx/oacc-init.c: Likewise.
14665 * config/nvptx/oacc-mem.c: Likewise.
14666 * config/nvptx/oacc-parallel.c: Likewise.
14667 * config/nvptx/oacc-plugin.c: Likewise.
14668 * config/nvptx/omp-lock.h: Likewise.
14669 * config/nvptx/ordered.c: Likewise.
14670 * config/nvptx/parallel.c: Likewise.
14671 * config/nvptx/proc.c: Likewise.
14672 * config/nvptx/ptrlock.c: Likewise.
14673 * config/nvptx/sections.c: Likewise.
14674 * config/nvptx/sem.c: Likewise.
14675 * config/nvptx/single.c: Likewise.
14676 * config/nvptx/splay-tree.c: Likewise.
14677 * config/nvptx/target.c: Likewise.
14678 * config/nvptx/task.c: Likewise.
14679 * config/nvptx/team.c: Likewise.
14680 * config/nvptx/time.c: Likewise.
14681 * config/nvptx/work.c: Likewise.
14682 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14683 * configure: Regenerate.
14684 * configure.tgt (config_path): Set to "nvptx" for target
14685 nvptx*-*-*.
14686
14687 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14688
14689 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14690
14691 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
14692
14693 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14694 (cuda_errlist): Constify.
14695 (errmsg): Move into ...
14696 (cuda_error): ... here. Make smaller.
14697 (_XSTR, _STR): Delete.
14698 (cuda_synames): Delete.
14699 (verify_device_library): Delete.
14700 (nvptx_init): Don't call it.
14701
14702 2015-07-28 Tom de Vries <tom@codesourcery.com>
14703
14704 * testsuite/libgomp.c/uns-outer-4.c: New test.
14705
14706 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14707
14708 * testsuite/libgomp.c/pr66714.c: New test.
14709
14710 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
14711
14712 PR libgomp/66950
14713 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14714 (fib_ref): New function.
14715 (fib): Correct corner cases in the recursion.
14716 (main): Replace the non-simd loop with fib_ref call.
14717 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14718 subroutine.
14719 (fibonacci): Lower the parameter N to 30. Correct accordingly check
14720 for the last array element value. Replace the non-simd loop with
14721 fib_ref call. Remove redundant b_ref array. Remove the comparison
14722 of the last array element with according Fibonacci sequence element.
14723 (fib): Correct corner cases in the recursion.
14724
14725 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
14726
14727 * target.c (gomp_offload_image_to_device): Rename to ...
14728 (gomp_load_image_to_device): ... here.
14729 (GOMP_offload_register): Adjust call.
14730 (gomp_init_device): Likewise.
14731 (gomp_unload_image_from_device): New. Broken out of ...
14732 (GOMP_offload_unregister): ... here. Call it.
14733 (gomp_unload_device): New.
14734 * libgomp.h (gomp_unload_device): Declare.
14735 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14736 mem maps.
14737
14738 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
14739
14740 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14741 wait=-specific if.
14742 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14743 !=0 condition.
14744 (goacc_waits): Move !num_waits handling to ...
14745 (GOACC_wait): ... here, the only caller that might have zero waits.
14746
14747 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14748 (struct ptx_image_data): Move earlier, add fns field.
14749 (struct ptx_device): Add images and image_lock fields.
14750 (ptx_images, ptx_image_lock): Delete.
14751 (nvptx_open_device): Initialize images and image_lock fields.
14752 (nvptx_close_device): Destroy image_lock.
14753 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14754 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14755 fields.
14756
14757 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14758
14759 * target.c (GOMP_offload_register): Use int for device type arg.
14760 (GOMP_offload_unregister): Likewise.
14761
14762 * target.c (struct_offload_image_descr): Constify host_table.
14763 (gomp_offload_image_to_device): Likewise.
14764 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14765
14766 * libgomp.h (gomp_device_descr): Constify target data arguments.
14767 * target.c (struct offload_image_descr): Constify target_data.
14768 (gomp_offload_image_to_device): Likewise.
14769 (GOMP_offload_register): Likewise.
14770 (GOMP_offload_unregister): Likewise.
14771 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14772 GOMP_OFFLOAD_unload_image): Constify target data.
14773 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14774 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14775
14776 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
14777
14778 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14779 Workaround driver library const error.
14780 (struct nvptx_tdata, nvptx_tdata_t): New.
14781 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14782 type.
14783
14784 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
14785
14786 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14787 of EPS parameter from integer to real.
14788 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14789 type of EPS parameter from integer to real.
14790
14791 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
14792
14793 * team.c (get_last_team): New.
14794 (gomp_new_team): Recycle last non-nested team if possible.
14795 (gomp_team_end): Move team work share list free lock destruction
14796 to ...
14797 (free_team): ... here.
14798
14799 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
14800
14801 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14802 and ref from int to double. Replaced their comparison with
14803 an inequality of their difference and EPS.
14804 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14805 comparison of pri and a reference number with an inequality of their
14806 difference and EPS.
14807 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14808 the comparison of sum and sum_ref with an inequality of their
14809 difference and EPS.
14810 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14811 the comparison of pri and a reference number with an inequality of
14812 their difference and EPS.
14813
14814 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
14815
14816 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14817 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14818 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14819 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14820 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14821 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14822 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14823 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14824 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14825 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14826 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14827 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14828 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14829 variables.
14830 (vec_mult): Likewise. Add #pragma omp taskwait.
14831 (main): Adjust caller.
14832 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14833 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14834 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14835 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14836 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14837 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14838 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14839 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14840 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14841 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14842 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14843 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14844 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14845 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14846 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14847 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14848 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14849 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14850 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14851 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14852 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14853 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14854 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14855 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14856 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14857 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14858 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14859 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14860 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14861 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14862 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14863 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14864 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14865 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14866 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14867 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14868 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14869 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14870 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14871 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14872 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14873 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14874 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14875 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14876 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14877 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14878 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14879 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14880 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14881 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14882 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14883 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14884 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14885 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14886 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14887 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14888 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14889 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14890 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14891 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14892 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14893 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14894 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14895 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14896 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14897 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14898 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14899 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14900 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14901 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14902 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14903 (vec_mult): Add !$omp taskwait.
14904 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14905 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14906 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14907 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14908 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14909 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14910 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14911 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14912 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14913 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14914 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14915 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14916 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14917 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14918 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14919 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14920 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14921 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14922 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14923 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14924 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14925 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14926 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14927 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14928 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14929 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14930 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14931 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14932 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14933 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14934 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14935 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14936 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14937 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14938 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14939 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14940 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14941 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14942 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14943 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14944 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14945 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14946 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14947 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14948 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14949 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14950 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14951 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14952 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14953 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14954 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14955 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14956 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14957 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14958 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14959 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14960 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14961 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14962 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14963 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14964 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14965 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14966 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14967 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14968 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14969 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14970 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14971
14972 2015-07-10 Tom de Vries <tom@codesourcery.com>
14973
14974 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14975 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14976
14977 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
14978
14979 PR libgomp/65099
14980 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14981 in a 64-bit configuration.
14982 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14983 offloading testing if no such device is available.
14984 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14985 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14986
14987 2015-07-08 Tom de Vries <tom@codesourcery.com>
14988
14989 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14990 second call to f.
14991 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14992
14993 2015-07-07 Tom de Vries <tom@codesourcery.com>
14994
14995 PR tree-optimization/66642
14996 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14997 iteration count case.
14998 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14999 function, factor out of ...
15000 (main): ... here. Test low iteration count case.
15001
15002 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
15003
15004 * libgomp.h (gomp_thread_pool): Comment last_team field.
15005
15006 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
15007
15008 * testsuite/libgomp.c++/pr66702-1.C: Require
15009 vect_simd_clones effective target.
15010 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15011
15012 2015-06-30 Tom de Vries <tom@codesourcery.com>
15013
15014 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15015 already set. Use DEFAULT_CFLAGS in dg-runtest.
15016 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15017 "-O2".
15018
15019 2015-06-30 Tom de Vries <tom@codesourcery.com>
15020
15021 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15022 already set. Use DEFAULT_CFLAGS in dg-runtest.
15023 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15024 * testsuite/libgomp.c++/pr64824.C: Same.
15025 * testsuite/libgomp.c++/pr64868.C: Same.
15026 * testsuite/libgomp.c++/pr66199-1.C: Same.
15027 * testsuite/libgomp.c++/pr66199-2.C: Same.
15028 * testsuite/libgomp.c++/target-2.C: Same.
15029 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15030 -std=<standard> option.
15031 * testsuite/libgomp.c++/udr-11.C: Same.
15032 * testsuite/libgomp.c++/udr-12.C: Same.
15033 * testsuite/libgomp.c++/udr-13.C: Same.
15034 * testsuite/libgomp.c++/udr-14.C: Same.
15035 * testsuite/libgomp.c++/udr-15.C: Same.
15036 * testsuite/libgomp.c++/udr-16.C: Same.
15037 * testsuite/libgomp.c++/udr-17.C: Same.
15038 * testsuite/libgomp.c++/udr-18.C: Same.
15039 * testsuite/libgomp.c++/udr-19.C: Same.
15040 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15041 * testsuite/libgomp.c++/simd-1.C: Same.
15042 * testsuite/libgomp.c++/simd-2.C: Same.
15043 * testsuite/libgomp.c++/simd-3.C: Same.
15044 * testsuite/libgomp.c++/simd-4.C: Same.
15045 * testsuite/libgomp.c++/simd-5.C: Same.
15046 * testsuite/libgomp.c++/simd-6.C: Same.
15047 * testsuite/libgomp.c++/simd-7.C: Same.
15048 * testsuite/libgomp.c++/simd-8.C: Same.
15049 * testsuite/libgomp.c++/simd-9.C: Same.
15050 * testsuite/libgomp.c++/simd10.C: Same.
15051 * testsuite/libgomp.c++/simd11.C: Same.
15052 * testsuite/libgomp.c++/simd12.C: Same.
15053 * testsuite/libgomp.c++/simd13.C: Same.
15054
15055 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15056
15057 PR middle-end/66702
15058 * testsuite/libgomp.c++/pr66702-1.C: New test.
15059 * testsuite/libgomp.c++/pr66702-2.C: New test.
15060
15061 2015-06-30 Tom de Vries <tom@codesourcery.com>
15062
15063 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15064 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15065 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15066 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15067
15068 2015-06-30 Tom de Vries <tom@codesourcery.com>
15069
15070 PR tree-optimization/66652
15071 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15072 using restrict pointers.
15073 (main): Add arguments to calls to f.
15074 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15075
15076 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
15077
15078 * configure.ac: Fix check for header <sys/sysctl.h>.
15079 * configure: Regenerate.
15080 * config.h.in: Likewise.
15081
15082 2015-06-23 Tom de Vries <tom@codesourcery.com>
15083
15084 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15085 abort.
15086 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15087
15088 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
15089
15090 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15091 acc_device_nvidia.
15092
15093 PR libgomp/66518
15094 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15095 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15096
15097 2015-06-15 Tom de Vries <tom@codesourcery.com>
15098
15099 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
15100 dg-additional-options for any remaining options.
15101 * testsuite/libgomp.c/atomic-2.c: Same.
15102 * testsuite/libgomp.c/atomic-4.c: Same.
15103 * testsuite/libgomp.c/atomic-5.c: Same.
15104 * testsuite/libgomp.c/atomic-6.c: Same.
15105 * testsuite/libgomp.c/autopar-1.c: Same.
15106 * testsuite/libgomp.c/copyin-1.c: Same.
15107 * testsuite/libgomp.c/copyin-2.c: Same.
15108 * testsuite/libgomp.c/copyin-3.c: Same.
15109 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15110 * testsuite/libgomp.c/nestedfn-5.c: Same.
15111 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15112 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15113 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15114 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15115 * testsuite/libgomp.c/pr32362-1.c: Same.
15116 * testsuite/libgomp.c/pr32362-2.c: Same.
15117 * testsuite/libgomp.c/pr32362-3.c: Same.
15118 * testsuite/libgomp.c/pr39591-1.c: Same.
15119 * testsuite/libgomp.c/pr39591-2.c: Same.
15120 * testsuite/libgomp.c/pr39591-3.c: Same.
15121 * testsuite/libgomp.c/pr58392.c: Same.
15122 * testsuite/libgomp.c/pr58756.c: Same.
15123 * testsuite/libgomp.c/simd-1.c: Same.
15124 * testsuite/libgomp.c/simd-10.c: Same.
15125 * testsuite/libgomp.c/simd-11.c: Same.
15126 * testsuite/libgomp.c/simd-12.c: Same.
15127 * testsuite/libgomp.c/simd-13.c: Same.
15128 * testsuite/libgomp.c/simd-14.c: Same.
15129 * testsuite/libgomp.c/simd-15.c: Same.
15130 * testsuite/libgomp.c/simd-2.c: Same.
15131 * testsuite/libgomp.c/simd-3.c: Same.
15132 * testsuite/libgomp.c/simd-4.c: Same.
15133 * testsuite/libgomp.c/simd-5.c: Same.
15134 * testsuite/libgomp.c/simd-6.c: Same.
15135 * testsuite/libgomp.c/simd-7.c: Same.
15136 * testsuite/libgomp.c/simd-8.c: Same.
15137 * testsuite/libgomp.c/simd-9.c: Same.
15138
15139 2015-06-15 Tom de Vries <tom@codesourcery.com>
15140
15141 * testsuite/libgomp.c/pr35625.c: Fix typo.
15142
15143 2015-06-15 Tom de Vries <tom@codesourcery.com>
15144
15145 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15146 in dg-options.
15147 * testsuite/libgomp.c/atomic-3.c: Same.
15148 * testsuite/libgomp.c/debug-1.c: Same.
15149 * testsuite/libgomp.c/nqueens-1.c: Same.
15150 * testsuite/libgomp.c/pr26171.c: Same.
15151 * testsuite/libgomp.c/pr48591.c: Same.
15152 * testsuite/libgomp.c/pr64824.c: Same.
15153 * testsuite/libgomp.c/pr64868.c: Same.
15154 * testsuite/libgomp.c/pr66133.c: Same.
15155 * testsuite/libgomp.c/pr66199-1.c: Same.
15156 * testsuite/libgomp.c/pr66199-2.c: Same.
15157 * testsuite/libgomp.c/target-8.c: Same.
15158
15159 2015-06-15 Tom de Vries <tom@codesourcery.com>
15160
15161 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15162 -std={gnu99,c99}.
15163 * testsuite/libgomp.c/for-1.c: Same.
15164 * testsuite/libgomp.c/for-2.c: Same.
15165 * testsuite/libgomp.c/for-3.c: Same.
15166 * testsuite/libgomp.c/pr35625.c: Same.
15167 * testsuite/libgomp.c/pr39154.c: Same.
15168 * testsuite/libgomp.c/simd-16.c: Same.
15169 * testsuite/libgomp.c/simd-17.c: Same.
15170
15171 2015-06-13 Tom de Vries <tom@codesourcery.com>
15172
15173 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15174
15175 2015-06-13 Tom de Vries <tom@codesourcery.com>
15176
15177 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15178 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15179 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15180 (N): Define.
15181 (main): Use N instead of hardcoded constants.
15182
15183 2015-06-05 Tom de Vries <tom@codesourcery.com>
15184
15185 merge from gomp4 branch:
15186 2015-05-28 Tom de Vries <tom@codesourcery.com>
15187
15188 PR tree-optimization/65443
15189 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15190 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15191 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15192
15193 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15194
15195 * testsuite/libgomp.graphite/bounds.c: Adjust for
15196 cleanup-tree-dump removal.
15197 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15198 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15199 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15200 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15201 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15202 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15203 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15204 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15205 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15206 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15207
15208 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
15209
15210 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15211 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15212 (futex_wake) [!__x86_64__]: Ditto.
15213
15214 2015-05-28 Julian Brown <julian@codesourcery.com>
15215
15216 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15217 function comment. Only call gomp_fatal if new argument is true.
15218 (acc_dev_num_out_of_range): New function.
15219 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15220 acc_dev_num_out_of_range as appropriate.
15221 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15222 (acc_get_device_num, acc_set_device_num): Update calls to
15223 resolve_device.
15224 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15225 output.
15226
15227 2015-05-28 Julian Brown <julian@codesourcery.com>
15228
15229 PR libgomp/65742
15230 * oacc-init.c (plugin/plugin-host.h): Include.
15231 (acc_on_device): Check whether we're in an offloaded region for
15232 host_nonshm
15233 plugin. Don't use __builtin_acc_on_device.
15234 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15235 nonshm_exec flag in thread-local data.
15236 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15237 data for host_nonshm plugin.
15238 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15239 for host_nonshm plugin.
15240 * plugin/plugin-host.h: New.
15241
15242 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15243
15244 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15245
15246 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15247
15248 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15249 Declare as int.
15250 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15251 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15252 Declare as int.
15253
15254 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15255
15256 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15257
15258 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15259
15260 * target.c (gomp_map_pointer): New function abstracting out
15261 GOMP_MAP_POINTER handling.
15262 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15263 gomp_map_pointer().
15264
15265 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15266
15267 PR middle-end/66199
15268 * testsuite/libgomp.c/pr66199-1.c: New test.
15269 * testsuite/libgomp.c/pr66199-2.c: New test.
15270 * testsuite/libgomp.c++/pr66199-1.C: New test.
15271 * testsuite/libgomp.c++/pr66199-2.C: New test.
15272 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15273 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15274
15275 2015-05-19 Julian Brown <julian@codesourcery.com>
15276
15277 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15278 on cuInit failure.
15279
15280 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15281
15282 PR middle-end/66133
15283 * testsuite/libgomp.c/pr66133.c: New test.
15284
15285 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15286
15287 * Makefile.in: Regenerated with automake-1.11.6.
15288 * aclocal.m4: Likewise.
15289 * config.h.in: Likewise.
15290 * configure: Likewise.
15291 * testsuite/Makefile.in: Likewise.
15292
15293 2015-05-08 Jason Merrill <jason@redhat.com>
15294
15295 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15296 _Complex.
15297
15298 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15299
15300 2015-05-06 Julian Brown <julian@codesourcery.com>
15301
15302 * oacc-init.c (acc_device_lock): Add explanatory comment.
15303 (resolve_device): Add comment about locking requirement.
15304 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15305 gomp_init_device and gomp_fini_device calls.
15306 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15307 (acc_get_device_num, acc_set_device_num): Add locking around
15308 resolve_device and gomp_init_device calls.
15309
15310 2015-05-06 Julian Brown <julian@codesourcery.com>
15311
15312 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15313 goacc_thread_lock on error paths.
15314 * oacc-mem.c (lookup_host): Remove locking from function. Note
15315 locking requirement for caller in function comment.
15316 (lookup_dev): Likewise.
15317 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15318 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15319 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15320 Add locking.
15321
15322 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15323
15324 PR testsuite/65205
15325 PR libgomp/65993
15326 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15327 don't expect "0x" prefix for "%p" format specifier, don't expect
15328 "(nil)" for NULL pointer.
15329 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15330 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15331 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15332 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15333 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15334 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15335 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15336 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15337 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15338 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15339 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15340 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15341 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15342 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15343 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15344 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15345 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15346 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15347 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15348 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15349 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15350 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15351 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15352 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15353 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15354 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15355 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15356 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15357 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15358 accurately specify what we're looking for.
15359 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15360 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15361 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15362 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15363 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15364
15365 2015-04-30 James Norris <jnorris@codesourcery.com>
15366
15367 PR testsuite/65205
15368 * testsuite/lib/libgomp.exp
15369 (check_effective_target_openacc_host_selected)
15370 (check_effective_target_openacc_host_nonshm_selected): New
15371 procedures.
15372 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15373 dg-shouldfail.
15374 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15375 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15376 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15377 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15378 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15379 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15380 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15381 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15382 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15383 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15384 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15385 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15386 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15387 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15388 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15389 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15390 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15391 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15392 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15393 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15394 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15395 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15396 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15397 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15398 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15399 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15400 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15401 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15402 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15403 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15404 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15405 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15406 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15407 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15408 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15409 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15410 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15411 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15412 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15413 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15414 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15415 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15416 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15417
15418 2015-04-08 Julian Brown <julian@codesourcery.com>
15419
15420 * libgomp.h (target_mem_desc: Remove mem_map field.
15421 (acc_dispatch_t): Remove open_device_func, close_device_func,
15422 get_device_num_func, set_device_num_func, target_data members.
15423 Change create_thread_data_func argument to device number instead of
15424 generic pointer.
15425 * oacc-async.c (assert.h): Include.
15426 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15427 (acc_wait_all, acc_wait_all_async): Use current host thread's
15428 active device, not base_dev.
15429 * oacc-cuda.c (acc_get_current_cuda_device)
15430 (acc_get_current_cuda_context, acc_get_cuda_stream)
15431 (acc_set_cuda_stream): Likewise.
15432 * oacc-host.c (host_dispatch): Don't set open_device_func,
15433 close_device_func, get_device_num_func or set_device_num_func.
15434 * oacc-init.c (base_dev, init_key): Remove.
15435 (cached_base_dev): New.
15436 (name_of_acc_device_t): New.
15437 (acc_init_1): Initialise default-numbered device, not zeroth.
15438 (acc_shutdown_1): Close all devices of a given type.
15439 (goacc_destroy_thread): Don't use base_dev.
15440 (lazy_open, lazy_init, lazy_init_and_open): Remove.
15441 (goacc_attach_host_thread_to_device): New.
15442 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15443 (acc_get_num_devices): Don't use base_dev.
15444 (acc_set_device_type): Reimplement.
15445 (acc_get_device_type): Don't use base_dev.
15446 (acc_get_device_num): Tweak logic.
15447 (acc_set_device_num): Likewise.
15448 (acc_on_device): Use acc_get_device_type.
15449 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15450 (goacc_lazy_initialize): Reimplement with acc_init and
15451 goacc_attach_host_thread_to_device.
15452 * oacc-int.h (goacc_thread): Add base_dev field.
15453 (base_dev): Remove extern declaration.
15454 (goacc_attach_host_thread_to_device): Add prototype.
15455 * oacc-mem.c (acc_malloc): Use current thread's device instead of
15456 base_dev.
15457 (acc_free): Likewise.
15458 (acc_memcpy_to_device): Likewise.
15459 (acc_memcpy_from_device): Likewise.
15460 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15461 goacc_lazy_initialize (throughout).
15462 (GOACC_parallel): Use tgt_offset to locate target functions.
15463 * target.c (gomp_map_vars): Don't set tgt->mem_map.
15464 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15465 (gomp_load_plugin_for_device): Remove open_device, close_device,
15466 get_device_num, set_device_num openacc hook initialisation. Don't set
15467 openacc.target_data.
15468 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15469 (GOMP_OFFLOAD_openacc_close_device)
15470 (GOMP_OFFLOAD_openacc_get_device_num)
15471 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15472 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15473 to int.
15474 * plugin/plugin-nvptx.c (ptx_inited): Remove.
15475 (instantiated_devices, ptx_dev_lock): New.
15476 (struct ptx_image_data): New.
15477 (ptx_devices, ptx_images, ptx_image_lock): New.
15478 (fini_streams_for_device): Reorder cuStreamDestroy call.
15479 (nvptx_get_num_devices): Remove forward declaration.
15480 (nvptx_init): Change return type to bool.
15481 (nvptx_fini): Remove.
15482 (nvptx_attach_host_thread_to_device): New.
15483 (nvptx_open_device): Return struct ptx_device* instead of void*.
15484 (nvptx_close_device): Change argument type to struct ptx_device*,
15485 return type to void.
15486 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15487 (kernel_target_data, kernel_host_table): Remove static globals.
15488 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15489 (GOMP_OFFLOAD_init_device): Reimplement.
15490 (GOMP_OFFLOAD_fini_device): Likewise.
15491 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15492 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15493 (GOMP_OFFLOAD_host2dev): Use ORD argument.
15494 (GOMP_OFFLOAD_openacc_open_device)
15495 (GOMP_OFFLOAD_openacc_close_device)
15496 (GOMP_OFFLOAD_openacc_set_device_num)
15497 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15498 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15499 (device number).
15500
15501 testsuite/
15502 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15503
15504 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15505
15506 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15507 * libgomp.h (struct gomp_memory_mapping): Remove.
15508 (struct target_mem_desc): Change type of mem_map from
15509 gomp_memory_mapping * to splay_tree_s *.
15510 (struct gomp_device_descr): Remove register_image_func, get_table_func.
15511 Add load_image_func, unload_image_func.
15512 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15513 Remove offload_regions_registered.
15514 (gomp_init_tables): Remove.
15515 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15516 to splay_tree_s *.
15517 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15518 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15519 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15520 offload_regions_registered.
15521 Initialize load_image_func, unload_image_func, mem_map.root.
15522 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15523 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15524 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15525 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15526 gomp_memory_mapping *. Use dev's lock and splay_tree.
15527 (lookup_dev): Use dev's lock.
15528 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15529 (acc_is_present): Likewise.
15530 (acc_map_data): Likewise.
15531 (acc_unmap_data): Likewise. Use dev's lock.
15532 (present_create_copy): Likewise.
15533 (delete_copyout): Pass dev to lookup_host instead of mem_map.
15534 (update_dev_host): Likewise.
15535 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
15536 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15537 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15538 (GOMP_OFFLOAD_get_table): Remove
15539 (GOMP_OFFLOAD_load_image): New function.
15540 (GOMP_OFFLOAD_unload_image): New function.
15541 * target.c (register_lock): New mutex for offload image registration.
15542 (num_devices): Do not guard with PLUGIN_SUPPORT.
15543 (gomp_realloc_unlock): New static function.
15544 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
15545 before gomp_fatal.
15546 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15547 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
15548 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15549 mem_map's.
15550 (gomp_unmap_vars): Likewise.
15551 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
15552 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
15553 (gomp_offload_image_to_device): New static function.
15554 (GOMP_offload_register): Add mutex lock.
15555 Call gomp_offload_image_to_device for all initialized devices.
15556 Replace gomp_realloc with gomp_realloc_unlock.
15557 (GOMP_offload_unregister): New function.
15558 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
15559 get_table_func from the plugin with calls to init_device_func and
15560 gomp_offload_image_to_device.
15561 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15562 to splay_tree_s *.
15563 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
15564 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
15565 (GOMP_target_data): Do not call gomp_init_tables.
15566 (GOMP_target_update): Likewise. Remove argument from gomp_update.
15567 (gomp_load_plugin_for_device): Replace register_image and get_table
15568 with load_image and unload_image in DLSYM ().
15569 (gomp_register_images_for_device): Remove function.
15570 (gomp_target_init): Do not initialize current_device.mem_map.*,
15571 current_device.offload_regions_registered.
15572 Remove call to gomp_register_images_for_device.
15573 Do not free offload_images and num_offload_images.
15574
15575 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15576
15577 PR fortran/65597
15578 * testsuite/libgomp.fortran/pr65597.f90: New test.
15579
15580 2015-03-27 Tom de Vries <tom@codesourcery.com>
15581
15582 PR testsuite/65594
15583 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15584 (init, check): New function.
15585 (foo): Change return type to void.
15586 (main): Call init and check.
15587
15588 2015-03-27 Tom de Vries <tom@codesourcery.com>
15589
15590 PR testsuite/65594
15591 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15592 (foo): Use M for non-inner loops to scale down test-case.
15593
15594 2015-03-25 Kai Tietz <ktietz@redhat.com>
15595
15596 PR libgomp/64972
15597 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15598 (GOACC_data_start): Likewise.
15599 * target.c (gomp_map_vars): Likewise.
15600
15601 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
15602
15603 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15604 hppa*-*-hpux*.
15605
15606 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15607
15608 * testsuite/libgomp.c/target-10.c: New test.
15609 * testsuite/libgomp.c++/target-4.C: New test.
15610
15611 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
15612
15613 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15614 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15615
15616 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
15617
15618 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15619 * configure.ac (*-*-rtems*): Assume Pthread is supported.
15620 (pthread.h): Check for this header file.
15621 * configure: Regenerate.
15622
15623 2015-02-25 Tom de Vries <tom@codesourcery.com>
15624
15625 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15626 (check_reduction_op, check_reduction_macro, max, min):
15627 Declare.
15628 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15629 function.
15630 (main): Use new functions.
15631
15632 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
15633
15634 * target.c (gomp_load_plugin_for_device): Use const char * instead of
15635 char * for variables holding dlerror return values.
15636 (DLSYM_OPT): Ditto.
15637
15638 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15639
15640 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15641
15642 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15643 Cesar Philippidis <cesar@codesourcery.com>
15644
15645 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15646 GOACC_ctaid, and GOACC_nctaid routines.
15647
15648 2015-02-11 Jakub Jelinek <jakub@redhat.com>
15649
15650 PR c/64824
15651 * testsuite/libgomp.c/atomic-18.c: New test.
15652 * testsuite/libgomp.c++/atomic-16.C: New test.
15653
15654 2015-02-04 Jakub Jelinek <jakub@redhat.com>
15655
15656 PR c/64824
15657 PR c/64868
15658 * testsuite/libgomp.c/pr64824.c: New test.
15659 * testsuite/libgomp.c/pr64868.c: New test.
15660 * testsuite/libgomp.c++/pr64824.C: New test.
15661 * testsuite/libgomp.c++/pr64868.C: New test.
15662
15663 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
15664
15665 PR libgomp/64635
15666 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15667 Link with -lpthread.
15668 * config/aix/plugin-suffix.h: Delete.
15669
15670 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
15671
15672 PR libgomp/64635
15673 * configure.tgt (*-*-aix*): Use config_path "aix posix".
15674 (*-*-darwin*): Use config_path "bsd darwin posix".
15675 (*-*-hpux*): Use config_path "hpux posix".
15676 * target.c: Add include of plugin-suffix.h and use
15677 SONAME_SUFFIX macro.
15678 * config/aix/plugin-suffix.h: New file.
15679 * config/darwin/plugin-suffix.h: New file.
15680 * config/hpux/plugin-suffix.h: New file.
15681 * config/posix/plugin-suffix.h: New file.
15682
15683 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15684
15685 PR middle-end/64734
15686 * libgomp.c/pr64734.c: New test.
15687
15688 2015-01-23 Tom de Vries <tom@codesourcery.com>
15689
15690 PR libgomp/64672
15691 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15692
15693 2015-01-23 Tom de Vries <tom@codesourcery.com>
15694
15695 PR libgomp/64707
15696 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15697 dg-options.
15698
15699 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
15700
15701 PR libgomp/64625
15702 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15703 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15704 formal parameter. Update all users.
15705 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15706 Document unused formal parameter.
15707
15708 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
15709
15710 * oacc-parallel.c: Don't include <alloca.h>.
15711 (GOACC_parallel): Use gomp_alloca instead of alloca.
15712
15713 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
15714
15715 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15716
15717 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
15718 James Norris <jnorris@codesourcery.com>
15719 Tom de Vries <tom@codesourcery.com>
15720 Julian Brown <julian@codesourcery.com>
15721 Cesar Philippidis <cesar@codesourcery.com>
15722 Nathan Sidwell <nathan@codesourcery.com>
15723 Tobias Burnus <burnus@net-b.de>
15724
15725 * Makefile.am (search_path): Add $(top_srcdir)/../include.
15726 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15727 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15728 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15729 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15730 Include $(top_srcdir)/plugin/Makefrag.am.
15731 (nodist_libsubinclude_HEADERS): Add openacc.h.
15732 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15733 openacc.f90, openacc.mod, openacc_kinds.mod.
15734 (omp_lib.mod): Generalize into...
15735 (%.mod): ... this new rule.
15736 (openacc_kinds.mod, openacc.mod): New rules.
15737 * plugin/configfrag.ac: New file.
15738 * configure.ac: Move plugin/offloading support into it. Include
15739 it. Instantiate testsuite/libgomp-test-support.pt.exp.
15740 * plugin/Makefrag.am: New file.
15741 * testsuite/Makefile.am (OFFLOAD_TARGETS)
15742 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15743 export.
15744 (libgomp-test-support.exp): New rule.
15745 (all-local): Depend on it.
15746 * Makefile.in: Regenerate.
15747 * testsuite/Makefile.in: Regenerate.
15748 * config.h.in: Likewise.
15749 * configure: Likewise.
15750 * configure.tgt: Harden shell syntax.
15751 * env.c: Include "oacc-int.h".
15752 (parse_acc_device_type): New function.
15753 (gomp_debug_var, goacc_device_type, goacc_device_num): New
15754 variables.
15755 (initialize_env): Initialize those. Call
15756 goacc_runtime_initialize.
15757 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15758 (gomp_fatal): Call gomp_vfatal.
15759 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15760 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15761 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15762 (splay_tree_node, splay_tree, splay_tree_key)
15763 (struct target_mem_desc, struct splay_tree_key_s)
15764 (struct gomp_memory_mapping, struct acc_dispatch_t)
15765 (struct gomp_device_descr, gomp_acc_insert_pointer)
15766 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15767 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15768 (gomp_free_memmap, gomp_fini_device): New declarations.
15769 (gomp_vdebug, gomp_debug): New macros.
15770 Include "splay-tree.h".
15771 * libgomp.map (OACC_2.0): New symbol version. Use for
15772 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15773 acc_set_device_type_h_, acc_get_device_type,
15774 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15775 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15776 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15777 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15778 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15779 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15780 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15781 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15782 acc_copyin_array_h_, acc_present_or_copyin,
15783 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15784 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15785 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15786 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15787 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15788 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15789 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15790 acc_update_device, acc_update_device_32_h_,
15791 acc_update_device_64_h_, acc_update_device_array_h_,
15792 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15793 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15794 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15795 acc_is_present_64_h_, acc_is_present_array_h_,
15796 acc_memcpy_to_device, acc_memcpy_from_device,
15797 acc_get_current_cuda_device, acc_get_current_cuda_context,
15798 acc_get_cuda_stream, acc_set_cuda_stream.
15799 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
15800 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15801 GOACC_update, GOACC_wait, GOACC_get_thread_num,
15802 GOACC_get_num_threads.
15803 (GOMP_PLUGIN_1.0): New symbol version. Use for
15804 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15805 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15806 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15807 GOMP_PLUGIN_acc_thread.
15808 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15809 environment variable.
15810 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15811 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15812 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15813 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15814 (splay_tree_remove): New declarations.
15815 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15816 (splay_tree_remove, splay_tree_lookup): Move into...
15817 * splay-tree.c: ... this new file.
15818 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15819 (splay_tree_node, splay_tree, splay_tree_key)
15820 (struct target_mem_desc, struct splay_tree_key_s)
15821 (struct gomp_device_descr): Don't declare.
15822 (num_devices_openmp): New variable.
15823 (gomp_get_num_devices ): Use it.
15824 (gomp_init_targets_once): New function.
15825 (gomp_get_num_devices ): Use it.
15826 (get_kind, gomp_copy_from_async, gomp_free_memmap)
15827 (gomp_fini_device, gomp_register_image_for_device): New functions.
15828 (gomp_map_vars): Add devaddrs parameter.
15829 (gomp_update): Add mm parameter.
15830 (gomp_init_device): Move most of it into...
15831 (gomp_init_tables): ... this new function.
15832 (gomp_register_images_for_device): Remove function.
15833 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15834 Make them hidden instead of static.
15835 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15836 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15837 (GOMP_target_end_data, GOMP_target_update)
15838 (gomp_load_plugin_for_device, gomp_target_init): Update for
15839 OpenACC changes.
15840 * oacc-async.c: New file.
15841 * oacc-cuda.c: Likewise.
15842 * oacc-host.c: Likewise.
15843 * oacc-init.c: Likewise.
15844 * oacc-int.h: Likewise.
15845 * oacc-mem.c: Likewise.
15846 * oacc-parallel.c: Likewise.
15847 * oacc-plugin.c: Likewise.
15848 * oacc-plugin.h: Likewise.
15849 * oacc-ptx.h: Likewise.
15850 * openacc.f90: Likewise.
15851 * openacc.h: Likewise.
15852 * openacc_lib.h: Likewise.
15853 * plugin/plugin-host.c: Likewise.
15854 * plugin/plugin-nvptx.c: Likewise.
15855 * libgomp-plugin.c: Likewise.
15856 * libgomp-plugin.h: Likewise.
15857 * libgomp_target.h: Remove file after merging content into the
15858 former file. Update all users.
15859 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15860 (offload_targets_s, offload_targets_s_openacc): New variables.
15861 (check_effective_target_openacc_nvidia_accel_present)
15862 (check_effective_target_openacc_nvidia_accel_selected): New
15863 procedures.
15864 (libgomp_init): Update for OpenACC changes.
15865 * testsuite/libgomp-test-support.exp.in: New file.
15866 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15867 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15868 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15869 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15870 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15871 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15872 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15873 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15874 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15875 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15876 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15877 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15878 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15879 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15880 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15881 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15882 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15883 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15884 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15885 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15886 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15887 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15888 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15889 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15890 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15891 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15892 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15893 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15894 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15895 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15896 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15897 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15898 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15899 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15900 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15901 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15902 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15903 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15904 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15905 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15906 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15907 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15908 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15909 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15910 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15911 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15912 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15913 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15914 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15915 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15916 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15917 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15918 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15919 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15920 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15921 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15922 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15923 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15924 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15925 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15926 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15927 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15928 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15929 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15930 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15931 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15932 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15933 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15934 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15935 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15936 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15937 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15938 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15939 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15940 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15941 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15942 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15943 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15944 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15945 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15946 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15947 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15948 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15949 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15950 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15951 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15952 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15953 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15954 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15955 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15956 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15957 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15958 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15959 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15960 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15961 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15962 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15963 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15964 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15965 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15966 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15967 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15968 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15969 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15970 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15971 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15972 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15973 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15974 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15975 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15976 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15977 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15978 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15979 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15980 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15981 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15982 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15983 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15984 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15985 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15986 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15987 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15988 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15989 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15990 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15991 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15992 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15993 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15994 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15995 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15996 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15997 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15998 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15999 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16000 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16001 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16002 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16003 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16004 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16005 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16006 Likewise.
16007 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16008 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16009 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16010 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16011 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16012 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16013 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16014 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16015 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16016 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16017 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16018 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16019 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16020 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16021 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16022 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16023 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16024 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16025 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16026 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16027 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16028 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16029 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16030 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16031 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16032 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16033 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16034 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16035 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16036 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16037 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16038 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16039 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16040 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16041 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16042 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16043 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16044 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16045 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16046 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16047 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16048 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16049 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16050 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16051 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16052 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16053 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16054 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16055 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16056 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16057 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16058 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16059 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16060 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16061 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16062 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16063 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16064 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16065 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16066 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16067
16068 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
16069 Julian Brown <julian@codesourcery.com>
16070 David Malcolm <dmalcolm@redhat.com>
16071
16072 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16073 to "GNU Offloading and Multi Processing Runtime Library". Change
16074 all users.
16075 * configure: Regenerate.
16076 * libgomp.texi: Update.
16077
16078 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
16079
16080 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16081 "$tgt_dir/lib32".
16082 * configure: Regenerate.
16083
16084 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16085 "intelmic" in $offload_targets.
16086
16087 2015-01-05 Jakub Jelinek <jakub@redhat.com>
16088
16089 Update copyright years.
16090
16091 * libgomp.texi: Bump @copying's copyright year.
16092
16093 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16094
16095 * testsuite/lib/libgomp.exp: Load target-utils.exp.
16096 Move load of target-supports.exp earlier.
16097
16098 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
16099
16100 * testsuite/libgomp.c/target-9.c: New test.
16101
16102 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
16103
16104 * config.h.in: Regenerate.
16105 * configure: Regenerate.
16106 * configure.ac: Add GCC_CHECK_EMUTLS.
16107 * libgomp.h: Add check for USE_EMUTLS: this case
16108 is equal to HAVE_TLS.
16109 * team.c: Likewise.
16110
16111 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
16112
16113 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16114
16115 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16116 Ilya Verbin <ilya.verbin@intel.com>
16117
16118 * testsuite/libgomp.c/target-critical-1.c: New test.
16119
16120 2014-11-26 Jakub Jelinek <jakub@redhat.com>
16121
16122 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16123 to dg-options unless expensive testing is on.
16124 (TESTITERS): Define to N if not defined.
16125 (main): Use TESTITERS instead of N.
16126 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16127 dg-additional-options depending on whether expensive testing is on.
16128 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16129 Decrease N to 100000 and CHUNKSZ to 10000.
16130
16131 2014-11-24 Jakub Jelinek <jakub@redhat.com>
16132
16133 PR fortran/63938
16134 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16135 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16136
16137 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
16138
16139 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16140
16141 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16142
16143 PR bootstrap/63784
16144 * configure: Regenerated.
16145
16146 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
16147
16148 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16149 vect_simd_clones effective target.
16150 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16151
16152 2014-11-14 Jakub Jelinek <jakub@redhat.com>
16153
16154 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16155 of 32 as block_size.
16156 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16157 instead of 32 as block_size.
16158
16159 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16160 Ilya Verbin <ilya.verbin@intel.com>
16161
16162 * Makefile.in: Regenerate.
16163 * configure: Regenerate.
16164 * configure.ac: Set up offload_additional_options,
16165 offload_additional_lib_paths and offload_targets.
16166 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16167 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16168 * testsuite/Makefile.in: Regenerate.
16169 * testsuite/lib/libgomp.exp (libgomp_init): Append
16170 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16171 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16172 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16173
16174 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16175 Ilya Verbin <ilya.verbin@intel.com>
16176 Kirill Yukhin <kirill.yukhin@intel.com>
16177 Ilya Tocar <ilya.tocar@intel.com>
16178
16179 * testsuite/lib/libgomp.exp
16180 (check_effective_target_offload_device): New.
16181 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16182 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16183 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16184 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16185 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16186 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16187 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16188 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16189 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16190 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16191 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16192 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16193 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16194 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16195 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16196 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16197 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16198 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16199 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16200 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16201 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16202 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16203 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16204 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16205 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16206 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16207 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16208 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16209 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16210 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16211 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16212 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16213 * testsuite/libgomp.c/target-7.c: Fix test.
16214 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16215 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16216 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16217 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16218 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16219 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16220 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16221 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16222 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16223 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16224 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16225 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16226 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16227 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16228 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16229 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16230 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16231 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16232 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16233 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16234 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16235 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16236 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16237 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16238 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16239 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16240 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16241 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16242 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16243 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16244 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16245
16246 2014-11-13 Jakub Jelinek <jakub@redhat.com>
16247 Ilya Verbin <ilya.verbin@intel.com>
16248 Thomas Schwinge <thomas@codesourcery.com>
16249 Andrey Turetskiy <andrey.turetskiy@intel.com>
16250
16251 * libgomp.map (GOMP_4.0.1): New symbol version.
16252 Add GOMP_offload_register.
16253 * libgomp_target.h: New file.
16254 * splay-tree.h: New file.
16255 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16256 (gomp_target_init): New forward declaration.
16257 (gomp_is_initialized): New static variable.
16258 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16259 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16260 New structures.
16261 (offload_images, num_offload_images, devices, num_devices): New static
16262 variables.
16263 (splay_compare): New static function.
16264 (struct gomp_device_descr): New structure.
16265 (gomp_get_num_devices): Call gomp_target_init.
16266 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16267 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16268 (GOMP_offload_register): New function.
16269 (GOMP_target): Arrange for host callback to be performed in a separate
16270 initial thread and contention group, inheriting ICVs from
16271 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16272 Add device initialization and lookup for target function in splay tree.
16273 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16274 (GOMP_target_end_data): Call gomp_unmap_vars.
16275 (GOMP_target_update): Add device initialization and call gomp_update.
16276 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16277 (gomp_target_init): New static functions.
16278
16279 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16280 Thomas Schwinge <thomas@codesourcery.com>
16281 Ilya Verbin <ilya.verbin@intel.com>
16282 Andrey Turetskiy <andrey.turetskiy@intel.com>
16283
16284 * config.h.in: Regenerate.
16285 * configure: Regenerate.
16286 * configure.ac: Check for libdl, required for plugin support.
16287 (PLUGIN_SUPPORT): Define if plugins are supported.
16288 (enable_offload_targets): Support Intel MIC targets.
16289 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16290
16291 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16292
16293 PR target/63610
16294 * configure: Regenerate.
16295
16296 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16297
16298 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16299
16300 2014-10-06 Marek Polacek <polacek@redhat.com>
16301
16302 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16303 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16304 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16305 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16306
16307 2014-10-06 Marek Polacek <polacek@redhat.com>
16308
16309 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16310 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16311 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16312 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16313 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16314 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16315 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16316 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16317 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16318 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16319 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16320 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16321 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16322 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16323 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16324 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16325 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16326 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16327 declarations.
16328
16329 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16330
16331 PR libgomp/61200
16332 * testsuite/libgomp.c/pr61200.c: New test.
16333
16334 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16335
16336 PR c++/63248
16337 * testsuite/libgomp.c++/pr63248.C: New test.
16338
16339 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16340
16341 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16342 is not zero, but taskgroup->children is NULL and there are
16343 any task->children, schedule those instead of waiting.
16344 * testsuite/libgomp.c/depend-6.c: New test.
16345 * testsuite/libgomp.c/depend-7.c: New test.
16346 * testsuite/libgomp.c/depend-8.c: New test.
16347 * testsuite/libgomp.c/depend-9.c: New test.
16348 * testsuite/libgomp.c/depend-10.c: New test.
16349
16350 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16351
16352 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16353 (struct gomp_taskwait): New type.
16354 (struct gomp_task): Add taskwait and parent_depends_on, remove
16355 in_taskwait and taskwait_sem fields.
16356 (gomp_finish_task): Don't destroy taskwait_sem.
16357 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16358 taskwait and parent_depends_on.
16359 (GOMP_task): For if (0) tasks with depend clause that depend on
16360 earlier tasks don't defer them, instead call
16361 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16362 Initialize redundant_out field, for redundant out entries just
16363 move them at the end of linked list instead of removing them
16364 completely, and set redundant_out flag instead of redundant.
16365 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16366 that task.
16367 (gomp_task_run_post_handle_dependers): If parent is in
16368 gomp_task_maybe_wait_for_dependencies and newly runnable task
16369 is not parent_depends_on, queue it in parent->children linked
16370 list after all runnable tasks with parent_depends_on set.
16371 Adjust for addition of taskwait indirection.
16372 (gomp_task_run_post_remove_parent): If parent is in
16373 gomp_task_maybe_wait_for_dependencies and task to be removed
16374 is parent_depends_on, decrement n_depend and if needed awake
16375 parent. Adjust for addition of taskwait indirection.
16376 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16377 (gomp_task_maybe_wait_for_dependencies): New function.
16378 * testsuite/libgomp.c/depend-5.c: New test.
16379
16380 2014-07-13 Tobias Burnus <burnus@net-b.de>
16381
16382 * testsuite/libgomp.fortran/pr34020.f90: Make compile
16383 with TS 18508/Fortran 2015.
16384
16385 2014-07-06 Marek Polacek <polacek@redhat.com>
16386
16387 PR c/6940
16388 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16389
16390 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16391
16392 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16393 matches regex $lang_source_re, add $lang_include_flags to options.
16394 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16395 * testsuite/libgomp.c++/c++.exp: Likewise.
16396 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16397 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16398 ALWAYS_CFLAGS.
16399 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16400
16401 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16402
16403 * testsuite/libgomp.fortran/fortran.exp: Explain
16404 gfortran-dg-runtest usage.
16405
16406 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16407
16408 * testsuite/libgomp.fortran/simd5.f90: New test.
16409 * testsuite/libgomp.fortran/simd6.f90: New test.
16410 * testsuite/libgomp.fortran/simd7.f90: New test.
16411
16412 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16413
16414 * testsuite/libgomp.c/for-2.c: Define SC to static for
16415 #pragma omp for simd testing.
16416 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16417 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16418 SC macro.
16419 * testsuite/libgomp.c/simd-14.c: New test.
16420 * testsuite/libgomp.c/simd-15.c: New test.
16421 * testsuite/libgomp.c/simd-16.c: New test.
16422 * testsuite/libgomp.c/simd-17.c: New test.
16423 * testsuite/libgomp.c++/for-10.C: Define SC to static for
16424 #pragma omp for simd testing.
16425 * testsuite/libgomp.c++/simd10.C: New test.
16426 * testsuite/libgomp.c++/simd11.C: New test.
16427 * testsuite/libgomp.c++/simd12.C: New test.
16428 * testsuite/libgomp.c++/simd13.C: New test.
16429
16430 * testsuite/libgomp.fortran/aligned1.f03: New test.
16431 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16432 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16433 tasks with !$omp parallel !$omp single.
16434 * testsuite/libgomp.fortran/target8.f90: New test.
16435 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16436 not to use trim in the combiner, instead call elemental function.
16437 (fn): New elemental function.
16438 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16439 Make elemental.
16440 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16441 omp_in): Likewise.
16442 * testsuite/libgomp.fortran/udr12.f90: New test.
16443 * testsuite/libgomp.fortran/udr13.f90: New test.
16444 * testsuite/libgomp.fortran/udr14.f90: New test.
16445 * testsuite/libgomp.fortran/udr15.f90: New test.
16446
16447 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16448
16449 * omp_lib.f90.in (openmp_version): Set to 201307.
16450 * omp_lib.h.in (openmp_version): Likewise.
16451 * testsuite/libgomp.c/target-8.c: New test.
16452 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16453 and inbranch clauses.
16454 * testsuite/libgomp.fortran/depend-3.f90: New test.
16455 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16456 openmp_version.
16457 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16458 * testsuite/libgomp.fortran/target1.f90: New test.
16459 * testsuite/libgomp.fortran/target2.f90: New test.
16460 * testsuite/libgomp.fortran/target3.f90: New test.
16461 * testsuite/libgomp.fortran/target4.f90: New test.
16462 * testsuite/libgomp.fortran/target5.f90: New test.
16463 * testsuite/libgomp.fortran/target6.f90: New test.
16464 * testsuite/libgomp.fortran/target7.f90: New test.
16465
16466 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16467
16468 PR fortran/60928
16469 * testsuite/libgomp.fortran/allocatable9.f90: New test.
16470 * testsuite/libgomp.fortran/allocatable10.f90: New test.
16471 * testsuite/libgomp.fortran/allocatable11.f90: New test.
16472 * testsuite/libgomp.fortran/allocatable12.f90: New test.
16473 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16474 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16475 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16476 * testsuite/libgomp.fortran/associate1.f90: New test.
16477 * testsuite/libgomp.fortran/associate2.f90: New test.
16478 * testsuite/libgomp.fortran/procptr1.f90: New test.
16479
16480 2014-06-06 Jakub Jelinek <jakub@redhat.com>
16481
16482 * testsuite/libgomp.fortran/simd1.f90: New test.
16483 * testsuite/libgomp.fortran/udr1.f90: New test.
16484 * testsuite/libgomp.fortran/udr2.f90: New test.
16485 * testsuite/libgomp.fortran/udr3.f90: New test.
16486 * testsuite/libgomp.fortran/udr4.f90: New test.
16487 * testsuite/libgomp.fortran/udr5.f90: New test.
16488 * testsuite/libgomp.fortran/udr6.f90: New test.
16489 * testsuite/libgomp.fortran/udr7.f90: New test.
16490 * testsuite/libgomp.fortran/udr8.f90: New test.
16491 * testsuite/libgomp.fortran/udr9.f90: New test.
16492 * testsuite/libgomp.fortran/udr10.f90: New test.
16493 * testsuite/libgomp.fortran/udr11.f90: New test.
16494
16495 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
16496
16497 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16498 vect_simd_clones effective target.
16499 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16500
16501 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16502
16503 PR middle-end/61252
16504 * testsuite/libgomp.c++/simd-9.C: New test.
16505
16506 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
16507
16508 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16509 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16510 texts according to their @menu entry positions.
16511
16512 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16513
16514 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16515 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16516 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16517 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16518 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16519 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16520 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16521 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16522 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16523 * testsuite/libgomp.fortran/depend-1.f90: New test.
16524 * testsuite/libgomp.fortran/depend-2.f90: New test.
16525 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16526 * testsuite/libgomp.fortran/simd1.f90: New test.
16527 * testsuite/libgomp.fortran/simd2.f90: New test.
16528 * testsuite/libgomp.fortran/simd3.f90: New test.
16529 * testsuite/libgomp.fortran/simd4.f90: New test.
16530 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16531
16532 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16533
16534 * testsuite/libgomp.c/simd-10.c: New test.
16535 * testsuite/libgomp.c/simd-11.c: New test.
16536 * testsuite/libgomp.c/simd-12.c: New test.
16537 * testsuite/libgomp.c/simd-13.c: New test.
16538
16539 2014-04-24 Jakub Jelinek <jakub@redhat.com>
16540
16541 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16542 atomic type clauses in any order and optional comma in between.
16543 * testsuite/libgomp.c++/atomic-15.C: Likewise.
16544 * testsuite/libgomp.c/atomic-17.c: Likewise.
16545
16546 * testsuite/libgomp.c/simd-7.c: New test.
16547 * testsuite/libgomp.c/simd-8.c: New test.
16548 * testsuite/libgomp.c/simd-9.c: New test.
16549 * testsuite/libgomp.c/loop-16.c: New test.
16550
16551 2014-04-02 Richard Henderson <rth@redhat.com>
16552
16553 * config/linux/futex.h (futex_wait): Get error value from errno.
16554 (futex_wake): Likewise.
16555
16556 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16557
16558 PR c++/60331
16559 * testsuite/libgomp.c++/udr-11.C: New test.
16560 * testsuite/libgomp.c++/udr-12.C: New test.
16561 * testsuite/libgomp.c++/udr-13.C: New test.
16562 * testsuite/libgomp.c++/udr-14.C: New test.
16563 * testsuite/libgomp.c++/udr-15.C: New test.
16564 * testsuite/libgomp.c++/udr-16.C: New test.
16565 * testsuite/libgomp.c++/udr-17.C: New test.
16566 * testsuite/libgomp.c++/udr-18.C: New test.
16567 * testsuite/libgomp.c++/udr-19.C: New test.
16568
16569 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16570
16571 Update copyright years
16572
16573 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16574
16575 * hashtab.h: Use the standard form for the copyright notice.
16576
16577 2014-01-02 Tobias Burnus <burnus@net-b.de>
16578
16579 * libgomp.texi: Bump @copying's copyright year.
16580
16581 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
16582
16583 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16584 alloca () with __builtin_alloca ().
16585 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16586 * testsuite/libgomp.c/lock-3.c: Likewise.
16587 * testsuite/libgomp.c/pr48591.c: Likewise.
16588
16589 2013-12-17 Jakub Jelinek <jakub@redhat.com>
16590
16591 PR testsuite/59534
16592 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16593 comparisons.
16594
16595 2013-12-16 Jakub Jelinek <jakub@redhat.com>
16596
16597 PR libgomp/58756
16598 * testsuite/libgomp.c/pr58756.c: New test.
16599
16600 2013-12-12 Jakub Jelinek <jakub@redhat.com>
16601
16602 PR libgomp/59467
16603 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16604 !$omp parallel.
16605
16606 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
16607
16608 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16609 ALWAYS_CFLAGS.
16610 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16611 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16612 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16613 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16614 Likewise.
16615
16616 * libgomp_g.h: Include <stddef.h> for size_t.
16617
16618 * libgomp.spec.in: Update comment about libgomp's dependencies.
16619 * configure.ac: Likewise.
16620 * configure: Regenerate.
16621
16622 2013-10-16 Tobias Burnus <burnus@net-b.de>
16623
16624 * libgomp.texi: (Runtime Library Routines): Update references for
16625 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16626 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16627 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16628 (Environment Variables): Update references for OpenMP 4.0. Add
16629 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16630 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16631 order.
16632
16633 2013-10-14 Jakub Jelinek <jakub@redhat.com>
16634
16635 * env.c (parse_bind_var): Initialize value to avoid
16636 (false positive) warning.
16637
16638 2013-10-12 Jakub Jelinek <jakub@redhat.com>
16639
16640 PR libgomp/58691
16641 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16642 to check variable.
16643 (gomp_init_num_threads): Move i variable declaration into
16644 #ifdef CPU_ALLOC_SIZE block.
16645 * config/linux/affinity.c (gomp_affinity_init_level): Test
16646 gomp_places_list_len == 0 rather than gomp_places_list == 0
16647 when checking for topology reading error.
16648 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16649 * env.c (parse_affinity): Add ignore argument, if true, don't populate
16650 gomp_places_list, only parse env var and always return false.
16651 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
16652 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16653 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16654 and either of these variables were parsed correctly into a places
16655 list.
16656
16657 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16658 Jakub Jelinek <jakub@redhat.com>
16659
16660 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16661 of 5 loopfn matches.
16662 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16663 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16664 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16665 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16666 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16667 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16668 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16669 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16670
16671 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16672
16673 * Makefile.am (omp_lib.mod): Streamline rule.
16674 * Makefile.in: Regenerate.
16675
16676 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16677 exceptions.
16678
16679 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16680 * testsuite/libgomp.fortran/lib1.f90: Likewise.
16681 * testsuite/libgomp.fortran/lib2.f: Likewise.
16682 * testsuite/libgomp.fortran/lib3.f: Likewise.
16683
16684 * configure.ac: Typo fix.
16685 * configure: Regenerate.
16686
16687 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16688 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16689
16690 * omp.h.in: Don't touch the user's namespace.
16691
16692 2013-10-11 Jakub Jelinek <jakub@redhat.com>
16693 Tobias Burnus <burnus@net-b.de>
16694 Richard Henderson <rth@redhat.com>
16695
16696 * target.c: New file.
16697 * Makefile.am (libgomp_la_SOURCES): Add target.c.
16698 * Makefile.in: Regenerated.
16699 * libgomp_g.h (GOMP_task): Add depend argument.
16700 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16701 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16702 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16703 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16704 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16705 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16706 GOMP_taskgroup_start, GOMP_taskgroup_end,
16707 GOMP_parallel_sections): New prototypes.
16708 * fortran.c (omp_is_initial_device): Add ialias_redirect.
16709 (omp_is_initial_device_): New function.
16710 (ULP, STR1, STR2, ialias_redirect): Removed.
16711 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16712 omp_set_default_device_8_, omp_get_default_device_,
16713 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16714 functions.
16715 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16716 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16717 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16718 @@GOMP_4.0.
16719 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16720 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16721 omp_set_default_device, omp_set_default_device_,
16722 omp_set_default_device_8_, omp_get_default_device,
16723 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16724 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16725 omp_get_team_num_): Export @@OMP_4.0.
16726 * team.c (struct gomp_thread_start_data): Add place field.
16727 (gomp_thread_start): Clear thr->thread_pool and
16728 thr->task before returning. Use gomp_team_barrier_wait_final
16729 instead of gomp_team_barrier_wait. Initialize thr->place.
16730 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16731 team_cancelled and task_queued_count fields.
16732 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16733 before calling pthread_exit.
16734 (gomp_free_thread): No longer static. Use
16735 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16736 (gomp_team_start): Add flags argument. Set
16737 thr->thread_pool->threads_busy to nthreads immediately after creating
16738 new pool. Use gomp_managed_threads_lock instead of
16739 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
16740 (gomp_team_end): Use gomp_managed_threads_lock instead of
16741 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
16742 of gomp_team_barrier_wait. If team->team_cancelled, call
16743 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16744 rather than thr->ts.work_share.
16745 (initialize_team): Don't call gomp_sem_init here.
16746 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16747 caller.
16748 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16749 * env.c (gomp_global_icv): Add default_device_var, target_data and
16750 bind_var initializers.
16751 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16752 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16753 gomp_places_list_len): New variables.
16754 (parse_bind_var, parse_one_place, parse_places_var): New functions.
16755 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16756 sized places.
16757 (gomp_cancel_var): New global variable.
16758 (parse_int): New function.
16759 (handle_omp_display_env): New function.
16760 (initialize_env): Use it. Initialize default_device_var.
16761 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
16762 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
16763 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
16764 been successfully parsed (and call gomp_init_affinity in that case).
16765 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16766 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16767 omp_get_team_num, omp_is_initial_device): New functions.
16768 * libgomp.h: Include stdlib.h.
16769 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16770 Define.
16771 (struct target_mem_desc): Forward declare.
16772 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16773 and thread_limit_var fields.
16774 (gomp_get_num_devices): New prototype.
16775 (gomp_cancel_var): New extern decl.
16776 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16777 team_cancelled and task_queued_count fields. Add comments about
16778 task_{,queued_,running_}count.
16779 (gomp_cancel_kind): New enum.
16780 (gomp_work_share_end_cancel): New prototype.
16781 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16782 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16783 and depend fields.
16784 (struct gomp_taskgroup): New type.
16785 (struct gomp_task_depend_entry,
16786 struct gomp_dependers_vec): New types.
16787 (gomp_finish_task): Free depend_hash if non-NULL.
16788 (struct gomp_team_state): Add place_partition_off
16789 and place_partition_len fields.
16790 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16791 gomp_places_list_len): New extern decls.
16792 (struct gomp_thread): Add place field.
16793 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16794 (gomp_init_thread_affinity): Add place argument.
16795 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16796 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16797 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16798 gomp_affinity_init_level, gomp_affinity_print_place): New
16799 prototypes.
16800 (gomp_team_start): Add flags argument.
16801 (gomp_thread_limit_var, gomp_remaining_threads_count,
16802 gomp_remaining_threads_lock): Remove.
16803 (gomp_managed_threads_lock): New variable.
16804 (struct gomp_thread_pool): Add threads_busy field.
16805 (gomp_free_thread): New prototype.
16806 * task.c: Include hashtab.h.
16807 (hash_entry_type): New typedef.
16808 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16809 (gomp_init_task): Clear dependers, depend_hash, depend_count,
16810 copy_ctors_done and taskgroup fields.
16811 (GOMP_task): Add depend argument, handle depend clauses. If
16812 gomp_team_barrier_cancelled or if it's taskgroup has been
16813 cancelled, don't queue or start new tasks. Set copy_ctors_done
16814 field if needed. Initialize taskgroup field. If copy_ctors_done
16815 and already cancelled, don't discard the task. If taskgroup is
16816 non-NULL, enqueue the task into taskgroup queue. Increment
16817 num_children field in taskgroup. Increment task_queued_count.
16818 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16819 gomp_task_run_post_remove_taskgroup): New inline functions.
16820 (gomp_task_run_post_handle_depend_hash,
16821 gomp_task_run_post_handle_dependers,
16822 gomp_task_run_post_handle_depend): New functions.
16823 (GOMP_taskwait): Use them. If more than one new tasks
16824 have been queued, wake other threads if needed.
16825 (gomp_barrier_handle_tasks): Likewise. If
16826 gomp_team_barrier_cancelled, don't start any new tasks, just free
16827 all tasks.
16828 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16829 * omp_lib.f90.in
16830 (omp_proc_bind_kind, omp_proc_bind_false,
16831 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16832 omp_proc_bind_spread): New params.
16833 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16834 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16835 omp_get_team_num, omp_is_initial_device): New interfaces.
16836 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16837 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16838 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16839 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16840 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16841 useless use omp_lib_kinds.
16842 * omp.h.in (omp_proc_bind_t): New typedef.
16843 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16844 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16845 omp_get_team_num, omp_is_initial_device): New prototypes.
16846 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16847 through to gomp_team_start.
16848 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16849 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16850 Adjust gomp_parallel_loop_start callers.
16851 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16852 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16853 GOMP_loop_end_cancel): New functions.
16854 (GOMP_parallel_end): Add ialias_redirect.
16855 * hashtab.h: New file.
16856 * libgomp.texi (Environment Variables): Minor cleanup,
16857 update section refs to OpenMP 4.0rc2.
16858 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16859 environment variables.
16860 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16861 team->work_shares_to_free to thr->ts.work_share before calling
16862 free_work_share.
16863 (gomp_work_share_end_cancel): New function.
16864 * config/linux/proc.c: Include errno.h.
16865 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16866 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16867 sizeof (cpu_set_t) to determine number of iterations. Fix up check
16868 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
16869 gomp_cpuset_size is sizeof (cpu_set_t).
16870 (gomp_init_num_threads): Initialize gomp_cpuset_size,
16871 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16872 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16873 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
16874 contain any logical CPUs.
16875 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16876 is NULL. Use gomp_cpusetp instead of &cpuset and pass
16877 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16878 pthread_getaffinity_np. Check gomp_places_list instead of
16879 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
16880 * config/linux/bar.c (gomp_barrier_wait_end,
16881 gomp_barrier_wait_last): Use BAR_* defines.
16882 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
16883 from state where needed. Set work_share_cancelled to 0 on last
16884 thread.
16885 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16886 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16887 functions.
16888 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16889 Add cpusetsize argument.
16890 (gomp_cpuset_size, gomp_cpusetp): Declare.
16891 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16892 (affinity_counter): Remove.
16893 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16894 if CPU_ALLOC_SIZE isn't defined.
16895 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16896 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16897 bind current thread to the first place.
16898 (gomp_init_thread_affinity): Rewritten. Add place argument, just
16899 pthread_setaffinity_np to gomp_places_list[place].
16900 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16901 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16902 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16903 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16904 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16905 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16906 (gomp_barrier_t): Add awaited_final field.
16907 (gomp_barrier_init): Initialize awaited_final field.
16908 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16909 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16910 prototypes.
16911 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
16912 defines.
16913 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16914 gomp_team_barrier_cancelled): New inline functions.
16915 (gomp_barrier_last_thread,
16916 gomp_team_barrier_set_task_pending,
16917 gomp_team_barrier_clear_task_pending,
16918 gomp_team_barrier_set_waiting_for_tasks,
16919 gomp_team_barrier_waiting_for_tasks,
16920 gomp_team_barrier_done): Use BAR_* defines.
16921 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16922 (gomp_barrier_wait_end): Use BAR_* defines.
16923 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16924 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16925 Use BAR_* defines.
16926 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16927 gomp_team_barrier_cancel): New functions.
16928 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16929 argument.
16930 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16931 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16932 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16933 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16934 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16935 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16936 (gomp_barrier_t): Add cancellable field.
16937 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16938 gomp_team_barrier_cancel): New prototypes.
16939 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16940 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16941 gomp_team_barrier_cancelled): New inline functions.
16942 (gomp_barrier_wait_start, gomp_barrier_last_thread,
16943 gomp_team_barrier_set_task_pending,
16944 gomp_team_barrier_clear_task_pending,
16945 gomp_team_barrier_set_waiting_for_tasks,
16946 gomp_team_barrier_waiting_for_tasks,
16947 gomp_team_barrier_done): Use BAR_* defines.
16948 * barrier.c (GOMP_barrier_cancel): New function.
16949 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16950 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16951 omp_proc_bind_spread): New params.
16952 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16953 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16954 omp_get_team_num, omp_is_initial_device): New externals.
16955 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16956 New functions.
16957 (gomp_resolve_num_threads): Adjust for thread_limit now being in
16958 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16959 infinity. If not nested, just return minimum of max_num_threads
16960 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16961 to the returned value. Otherwise, don't update atomically
16962 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16963 (GOMP_parallel_end): Adjust for thread_limit now being in
16964 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16965 infinity. Adjust threads_busy in the pool rather than
16966 gomp_remaining_threads_count. Remember team->nthreads and call
16967 gomp_team_end before adjusting threads_busy, if not nested
16968 afterwards, just set it to 1 non-atomically. Add ialias.
16969 (GOMP_parallel_start): Adjust gomp_team_start caller.
16970 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16971 * testsuite/libgomp.c/affinity-1.c: New test.
16972 * testsuite/libgomp.c/atomic-15.c: New test.
16973 * testsuite/libgomp.c/atomic-16.c: New test.
16974 * testsuite/libgomp.c/atomic-17.c: New test.
16975 * testsuite/libgomp.c/cancel-for-1.c: New test.
16976 * testsuite/libgomp.c/cancel-for-2.c: New test.
16977 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16978 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16979 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16980 * testsuite/libgomp.c/cancel-sections-1.c: New test.
16981 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16982 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16983 * testsuite/libgomp.c/depend-1.c: New test.
16984 * testsuite/libgomp.c/depend-2.c: New test.
16985 * testsuite/libgomp.c/depend-3.c: New test.
16986 * testsuite/libgomp.c/depend-4.c: New test.
16987 * testsuite/libgomp.c/for-1.c: New test.
16988 * testsuite/libgomp.c/for-1.h: New file.
16989 * testsuite/libgomp.c/for-2.c: New test.
16990 * testsuite/libgomp.c/for-2.h: New file.
16991 * testsuite/libgomp.c/for-3.c: New test.
16992 * testsuite/libgomp.c/pr58392.c: New test.
16993 * testsuite/libgomp.c/simd-1.c: New test.
16994 * testsuite/libgomp.c/simd-2.c: New test.
16995 * testsuite/libgomp.c/simd-3.c: New test.
16996 * testsuite/libgomp.c/simd-4.c: New test.
16997 * testsuite/libgomp.c/simd-5.c: New test.
16998 * testsuite/libgomp.c/simd-6.c: New test.
16999 * testsuite/libgomp.c/target-1.c: New test.
17000 * testsuite/libgomp.c/target-2.c: New test.
17001 * testsuite/libgomp.c/target-3.c: New test.
17002 * testsuite/libgomp.c/target-4.c: New test.
17003 * testsuite/libgomp.c/target-5.c: New test.
17004 * testsuite/libgomp.c/target-6.c: New test.
17005 * testsuite/libgomp.c/target-7.c: New test.
17006 * testsuite/libgomp.c/taskgroup-1.c: New test.
17007 * testsuite/libgomp.c/thread-limit-1.c: New test.
17008 * testsuite/libgomp.c/thread-limit-2.c: New test.
17009 * testsuite/libgomp.c/thread-limit-3.c: New test.
17010 * testsuite/libgomp.c/udr-1.c: New test.
17011 * testsuite/libgomp.c/udr-2.c: New test.
17012 * testsuite/libgomp.c/udr-3.c: New test.
17013 * testsuite/libgomp.c++/affinity-1.C: New test.
17014 * testsuite/libgomp.c++/atomic-10.C: New test.
17015 * testsuite/libgomp.c++/atomic-11.C: New test.
17016 * testsuite/libgomp.c++/atomic-12.C: New test.
17017 * testsuite/libgomp.c++/atomic-13.C: New test.
17018 * testsuite/libgomp.c++/atomic-14.C: New test.
17019 * testsuite/libgomp.c++/atomic-15.C: New test.
17020 * testsuite/libgomp.c++/cancel-for-1.C: New test.
17021 * testsuite/libgomp.c++/cancel-for-2.C: New test.
17022 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17023 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17024 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17025 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17026 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17027 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17028 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17029 * testsuite/libgomp.c++/cancel-test.h: New file.
17030 * testsuite/libgomp.c++/for-9.C: New test.
17031 * testsuite/libgomp.c++/for-10.C: New test.
17032 * testsuite/libgomp.c++/for-11.C: New test.
17033 * testsuite/libgomp.c++/simd-1.C: New test.
17034 * testsuite/libgomp.c++/simd-2.C: New test.
17035 * testsuite/libgomp.c++/simd-3.C: New test.
17036 * testsuite/libgomp.c++/simd-4.C: New test.
17037 * testsuite/libgomp.c++/simd-5.C: New test.
17038 * testsuite/libgomp.c++/simd-6.C: New test.
17039 * testsuite/libgomp.c++/simd-7.C: New test.
17040 * testsuite/libgomp.c++/simd-8.C: New test.
17041 * testsuite/libgomp.c++/target-1.C: New test.
17042 * testsuite/libgomp.c++/target-2.C: New test.
17043 * testsuite/libgomp.c++/target-2-aux.cc: New file.
17044 * testsuite/libgomp.c++/target-3.C: New test.
17045 * testsuite/libgomp.c++/taskgroup-1.C: New test.
17046 * testsuite/libgomp.c++/udr-1.C: New test.
17047 * testsuite/libgomp.c++/udr-2.C: New test.
17048 * testsuite/libgomp.c++/udr-3.C: New test.
17049 * testsuite/libgomp.c++/udr-4.C: New test.
17050 * testsuite/libgomp.c++/udr-5.C: New test.
17051 * testsuite/libgomp.c++/udr-6.C: New test.
17052 * testsuite/libgomp.c++/udr-7.C: New test.
17053 * testsuite/libgomp.c++/udr-8.C: New test.
17054 * testsuite/libgomp.c++/udr-9.C: New test.
17055
17056 2013-09-20 Jakub Jelinek <jakub@redhat.com>
17057
17058 PR testsuite/57605
17059 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17060 ALWAYS_CFLAGS.
17061
17062 2013-09-20 Alan Modra <amodra@gmail.com>
17063
17064 * configure: Regenerate.
17065
17066 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17067
17068 * testsuite/libgomp.c/sections-2.c: New test.
17069
17070 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
17071
17072 * testsuite/libgomp.fortran/strassen.f90:
17073 Add dg-skip-if aarch64_tiny.
17074
17075 2013-06-20 Iain Sandoe <iain@codesourcery.com>
17076 Cesar Philippidis <cesar@codesourcery.com>
17077
17078 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17079 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17080 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17081 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17082 * testsuite/libgomp.graphite/graphite.exp: Likewise.
17083 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17084 Use dg-runtest rather than gfortran-dg-runtest.
17085
17086 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
17087
17088 * testsuite/libgomp.c/icv-2.c: Extend current handling of
17089 Linux-based x86 systems to cover all GNU systems.
17090 * testsuite/libgomp.c/lock-3.c: Likewise.
17091 * testsuite/libgomp.c/pr48591.c: Likewise.
17092
17093 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
17094
17095 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17096 GNU/Hurd, as done for Linux-based systems.
17097
17098 * config/posix/ptrlock.h: Fix comment.
17099
17100 2013-05-27 Tobias Burnus <burnus@net-b.de>
17101
17102 PR fortran/57423
17103 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17104 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17105 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17106 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17107 omp_destroy_nest_lock): Correct arguments to match the one in
17108 the OpenMP spec.
17109 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17110 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17111 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17112 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17113
17114 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17115
17116 * testsuite/libgomp.c/loop-13.c: New test.
17117 * testsuite/libgomp.c/loop-14.c: New test.
17118 * testsuite/libgomp.c/loop-15.c: New test.
17119 * testsuite/libgomp.c++/loop-13.C: New test.
17120 * testsuite/libgomp.c++/loop-14.C: New test.
17121 * testsuite/libgomp.c++/loop-15.C: New test.
17122
17123 2013-02-06 Jakub Jelinek <jakub@redhat.com>
17124
17125 PR middle-end/56217
17126 * testsuite/libgomp.c++/pr56217.C: New test.
17127
17128 2013-02-01 Alan Modra <amodra@gmail.com>
17129
17130 * task.c (GOMP_task, GOMP_taskwait): Comment.
17131
17132 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17133 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17134
17135 PR libgomp/55561
17136 * config/linux/wait.h (do_spin): Use atomic load for addr.
17137 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17138 for intptr and ptrlock.
17139 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17140 for ptrlock.
17141
17142 2013-01-22 Alan Modra <amodra@gmail.com>
17143
17144 PR libgomp/51376
17145 PR libgomp/56073
17146 * task.c (GOMP_task): Revert 2011-12-09 change.
17147 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17148 barrier to read task->children..
17149 (gomp_barrier_handle_tasks): ..and matching atomic store with
17150 release barrier here when setting parent->children to NULL.
17151
17152 2013-01-16 Jakub Jelinek <jakub@redhat.com>
17153 Tobias Burnus <burnus@net-b.de>
17154
17155 PR driver/55884
17156 * testsuite/libgomp.fortran/fortran.exp: Use
17157 -fintrinsic-modules-path= instead of
17158 -fintrinsic-modules-path.
17159
17160 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17161
17162 Update copyright years.
17163
17164 2012-12-19 Tobias Burnus <burnus@net-b.de>
17165
17166 * testsuite/libgomp.fortran/fortran.exp: Set
17167 -fintrinsic-modules-path.
17168
17169 2012-12-19 Tobias Burnus <burnus@net-b.de>
17170
17171 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17172 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17173
17174 2012-11-21 Jakub Jelinek <jakub@redhat.com>
17175
17176 PR libgomp/55411
17177 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17178 if pool had any threads_used.
17179
17180 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17181
17182 * testsuite/libgomp.c++/pr24455.C: Use
17183 -Wl,-undefined,dynamic_lookup on darwin.
17184
17185 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
17186
17187 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17188
17189 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17190
17191 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17192
17193 2012-10-23 Ian Bolton <ian.bolton@arm.com>
17194 Jim MacArthur <jim.macarthur@arm.com>
17195 Marcus Shawcroft <marcus.shawcroft@arm.com>
17196 Nigel Stephens <nigel.stephens@arm.com>
17197 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17198 Richard Earnshaw <rearnsha@arm.com>
17199 Sofiane Naci <sofiane.naci@arm.com>
17200 Stephen Thomas <stephen.thomas@arm.com>
17201 Tejas Belagod <tejas.belagod@arm.com>
17202 Yufeng Zhang <yufeng.zhang@arm.com>
17203
17204 * configure.tgt: Add AArch64.
17205
17206 2012-10-04 Jason Merrill <jason@redhat.com>
17207
17208 * testsuite/libgomp.c++/tls-init1.C: New.
17209
17210 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
17211
17212 * configure: Regenerated.
17213
17214 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17215
17216 * config/linux/mips/futex.h (sys_futex0): Change to static
17217 function with noinline, nomips16 attributes under MIPS16. Adjust
17218 asm statement to place 'li v0,SYS_futex' immediately before
17219 syscall insn.
17220
17221 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17222
17223 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17224 conflict with index.html on case-insensitive file systems.
17225
17226 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17227
17228 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17229 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17230
17231 2012-07-02 Richard Guenther <rguenther@suse.de>
17232 Michael Matz <matz@suse.de>
17233 Tobias Grosser <tobias@grosser.es>
17234 Sebastian Pop <sebpop@gmail.com>
17235
17236 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17237 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17238 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17239 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17240
17241 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17242
17243 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17244
17245 2012-06-22 Richard Guenther <rguenther@suse.de>
17246
17247 Merge from graphite branch
17248 2012-01-13 Tobias Grosser <tobias@grosser.es>
17249
17250 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17251 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17252
17253 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17254
17255 PR middle-end/53580
17256 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17257 use GOMP_barrier () call instead.
17258 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17259 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17260 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17261 call GOMP_barrier instead.
17262 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17263
17264 2012-06-06 Jakub Jelinek <jakub@redhat.com>
17265
17266 PR libgomp/52993
17267 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17268 argument to memset call.
17269
17270 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17271
17272 * configure: Regenerated.
17273
17274 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17275
17276 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17277
17278 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17279
17280 PR bootstrap/52812
17281 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17282
17283 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17284
17285 PR middle-end/52547
17286 * testsuite/libgomp.c/pr52547.c: New test.
17287
17288 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17289
17290 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17291
17292 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17293
17294 * configure.tgt (mips-sgi-irix6*): Remove.
17295
17296 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17297
17298 * configure.tgt (alpha*-dec-osf*): Remove.
17299
17300 * config/osf/sem.h: Remove.
17301 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17302
17303 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17304
17305 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17306
17307 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17308
17309 PR libstdc++/52188
17310 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17311 Remove ENABLE_SYMVERS_SOL2.
17312 * configure: Regenerate.
17313 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17314 (PREPROCESS): New variable.
17315 (libgomp.ver): New target.
17316 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17317 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17318 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17319 Use libgomp.ver.
17320 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17321 * Makefile.in: Regenerate.
17322
17323 2012-02-14 Walter Lee <walt@tilera.com>
17324
17325 * configure.tgt: Handle tilegx and tilepro.
17326 * config/linux/tile/futex.h: New file.
17327
17328 2012-02-08 Richard Guenther <rguenther@suse.de>
17329
17330 PR tree-optimization/46886
17331 * testsuite/libgomp.c/pr46886.c: New testcase.
17332
17333 2012-01-25 Matthias Klose <doko@ubuntu.com>
17334
17335 * config/linux/arm: Remove empty directory.
17336 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17337
17338 2011-12-09 Alan Modra <amodra@gmail.com>
17339
17340 PR libgomp/51376
17341 * task.c (GOMP_taskwait): Don't access task->children outside of
17342 task_lock mutex region.
17343 (GOMP_task): Likewise.
17344
17345 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17346
17347 PR libgomp/51132
17348 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17349 to file scope.
17350 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17351 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17352 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17353 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17354 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17355
17356 2011-12-02 Alan Modra <amodra@gmail.com>
17357
17358 * config/linux/affinity.c: Use atomic rather than sync builtin.
17359 * config/linux/lock.c: Likewise.
17360 * config/linux/ptrlock.h: Likewise.
17361 * config/linux/ptrlock.c: Likewise.
17362 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17363 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17364 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17365 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17366 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17367 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17368 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17369 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17370 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17371 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17372
17373 2011-11-30 Alan Modra <amodra@gmail.com>
17374
17375 PR libgomp/51298
17376 * config/linux/bar.h: Use atomic rather than sync builtins.
17377 * config/linux/bar.c: Likewise. Add missing acquire
17378 synchronisation on generation field.
17379 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17380 double unlock.
17381
17382 2011-11-30 Alan Modra <amodra@gmail.com>
17383
17384 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17385 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17386 * config/linux/mutex.h: Use atomic rather than sync builtins.
17387 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17388 * config/linux/omp-lock.h: Comment fix.
17389 * config/linux/arm/mutex.h: Delete.
17390 * config/linux/powerpc/mutex.h: Delete.
17391 * config/linux/ia64/mutex.h: Delete.
17392 * config/linux/mips/mutex.h: Delete.
17393
17394 2011-11-30 Alan Modra <amodra@gmail.com>
17395
17396 PR libgomp/51249
17397 * config/linux/sem.h: Rewrite.
17398 * config/linux/sem.c: Rewrite.
17399
17400 2011-11-28 Richard Henderson <rth@redhat.com>
17401
17402 * libgomp.h (enum memmodel): New.
17403
17404 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
17405
17406 * configure: Regenerate.
17407
17408 2011-10-10 Matthias Klose <doko@ubuntu.com>
17409
17410 * config/posix95: Remove empty directory.
17411
17412 2011-08-26 Jakub Jelinek <jakub@redhat.com>
17413
17414 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17415
17416 2011-08-19 Jakub Jelinek <jakub@redhat.com>
17417
17418 PR fortran/49792
17419 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17420 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17421
17422 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17423
17424 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17425
17426 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17427
17428 PR libgomp/49965
17429 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17430
17431 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
17432
17433 * config/linux/proc.h: New.
17434 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
17435 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
17436 (gomp_init_num_threads): Update call to cpuset_popcount.
17437 (get_num_procs): Ditto.
17438 * config/linux/affinity.c (gomp_init_affinity): Call
17439 gomp_cpuset_popcount.
17440
17441 2011-08-02 Jakub Jelinek <jakub@redhat.com>
17442
17443 PR fortran/42041
17444 PR fortran/46752
17445 * omp.h.in (omp_in_final): New prototype.
17446 * omp_lib.f90.in (omp_in_final): New interface.
17447 (omp_integer_kind, omp_logical_kind): Remove
17448 and replace all its uses in the module with 4.
17449 (openmp_version): Change to 201107.
17450 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17451 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17452 kind for the parameters.
17453 (omp_in_final): New external.
17454 (openmp_version): Change to 201107.
17455 * task.c (omp_in_final): New function.
17456 (gomp_init_task): Initialize final_task.
17457 (GOMP_task): Remove unused attribute from flags. Handle final
17458 tasks.
17459 (GOMP_taskyield): New function.
17460 (omp_in_final): Return true if if (false) or final (true) task
17461 or descendant of final (true).
17462 * fortran.c (omp_in_final_): New function.
17463 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17464 (GOMP_3.0): Export GOMP_taskyield.
17465 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17466 variables.
17467 (parse_unsigned_long_list): New function.
17468 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
17469 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
17470 even if parse_affinity returned false.
17471 * config/linux/affinity.c (gomp_init_affinity): Handle
17472 gomp_cpu_affinity_len == 0.
17473 * libgomp_g.h (GOMP_taskyield): New prototype.
17474 * libgomp.h (struct gomp_task): Add final_task field.
17475 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17476 * team.c (gomp_team_start): Override new task's nthreads_var icv
17477 if list form OMP_NUM_THREADS has been used and it has value for
17478 the new nesting level.
17479
17480 * testsuite/libgomp.c/atomic-11.c: New test.
17481 * testsuite/libgomp.c/atomic-12.c: New test.
17482 * testsuite/libgomp.c/atomic-13.c: New test.
17483 * testsuite/libgomp.c/atomic-14.c: New test.
17484 * testsuite/libgomp.c/reduction-6.c: New test.
17485 * testsuite/libgomp.c/task-5.c: New test.
17486 * testsuite/libgomp.c++/atomic-2.C: New test.
17487 * testsuite/libgomp.c++/atomic-3.C: New test.
17488 * testsuite/libgomp.c++/atomic-4.C: New test.
17489 * testsuite/libgomp.c++/atomic-5.C: New test.
17490 * testsuite/libgomp.c++/atomic-6.C: New test.
17491 * testsuite/libgomp.c++/atomic-7.C: New test.
17492 * testsuite/libgomp.c++/atomic-8.C: New test.
17493 * testsuite/libgomp.c++/atomic-9.C: New test.
17494 * testsuite/libgomp.c++/task-8.C: New test.
17495 * testsuite/libgomp.c++/reduction-4.C: New test.
17496 * testsuite/libgomp.fortran/allocatable7.f90: New test.
17497 * testsuite/libgomp.fortran/allocatable8.f90: New test.
17498 * testsuite/libgomp.fortran/crayptr3.f90: New test.
17499 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17500 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17501 * testsuite/libgomp.fortran/pointer1.f90: New test.
17502 * testsuite/libgomp.fortran/pointer2.f90: New test.
17503 * testsuite/libgomp.fortran/task4.f90: New test.
17504
17505 2011-08-02 Tobias Burnus <burnus@net-b.de>
17506
17507 * libgomp.texi: Update OpenMP spec references to 3.1.
17508 (omp_in_final,OMP_PROC_BIND): New sections.
17509 (OMP_NUM_THREADS): Document that the value can be now a list.
17510 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17511
17512 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
17513
17514 * config/linux/x86/futex.h: Check __x86_64__ instead of
17515 __LP64__.
17516
17517 2011-07-29 Jakub Jelinek <jakub@redhat.com>
17518
17519 PR middle-end/49897
17520 PR middle-end/49898
17521 * testsuite/libgomp.c/pr49897-1.c: New test.
17522 * testsuite/libgomp.c/pr49897-2.c: New test.
17523 * testsuite/libgomp.c/pr49898-1.c: New test.
17524 * testsuite/libgomp.c/pr49898-2.c: New test.
17525
17526 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
17527
17528 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17529 for ia32 instead of ilp32.
17530
17531 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17532 * testsuite/libgomp.c/atomic-6.c: Likewise.
17533
17534 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
17535
17536 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17537 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17538
17539 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17540
17541 PR libgomp/45351
17542 * config/osf/sem.h: New file.
17543 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17544
17545 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17546
17547 PR target/49541
17548 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17549 ldflags.
17550
17551 2011-07-15 Jakub Jelinek <jakub@redhat.com>
17552
17553 * config/linux/wait.h (do_spin): New inline, largely copied
17554 from do_wait, just don't do futex_wait here, instead return true if
17555 it should be done.
17556 (do_wait): Implement using do_spin.
17557 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17558 to prototype.
17559 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17560 __sync_bool_compare_and_swap, pass the oldval to
17561 gomp_mutex_lock_slow.
17562 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17563 If all mutex contenders are just spinning and not sleeping, don't
17564 change state to 2 unnecessarily. Optimize the loop when state has
17565 already become 2 to use just one atomic operation per loop instead
17566 of two.
17567 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17568 to prototype.
17569 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17570 __sync_bool_compare_and_swap, pass the oldval to
17571 gomp_mutex_lock_slow.
17572
17573 2011-06-22 Jakub Jelinek <jakub@redhat.com>
17574
17575 PR libgomp/49490
17576 * iter.c (gomp_iter_static_next): For chunk size 0
17577 only use n ceil/ nthreads size for the first
17578 n % nthreads threads in the team instead of
17579 all threads except for the last few ones which
17580 get less work or none at all.
17581 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17582 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17583 chunk argument, set run_sched_modifier to 0 for static
17584 resp. 1 for other kinds. If chunk argument is 0
17585 and not static, set value to 1.
17586
17587 2011-05-19 Jakub Jelinek <jakub@redhat.com>
17588
17589 PR c++/49043
17590 * testsuite/libgomp.c++/pr49043.C: New test.
17591
17592 PR c++/48869
17593 * testsuite/libgomp.c++/pr48869.C: New test.
17594
17595 2011-05-06 Jakub Jelinek <jakub@redhat.com>
17596
17597 PR fortran/48894
17598 * fortran.c: Include limits.h.
17599 (TO_INT): Define.
17600 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17601 *set.
17602 (omp_set_num_threads_8_, omp_set_schedule_8_,
17603 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17604 omp_get_team_size_8_): Use TO_INT macro.
17605 * testsuite/libgomp.fortran/pr48894.f90: New test.
17606
17607 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17608
17609 PR middle-end/48591
17610 * testsuite/libgomp.c/pr48591.c: New test.
17611
17612 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17613
17614 PR bootstrap/48135
17615 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17616 * configure: Regenerate.
17617
17618 2011-02-27 Jakub Jelinek <jakub@redhat.com>
17619
17620 PR fortran/47886
17621 * testsuite/libgomp.fortran/task3.f90: New test.
17622
17623 2011-02-24 Tobias Burnus <burnus@net-b.de>
17624
17625 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17626
17627 2011-02-23 Jakub Jelinek <jakub@redhat.com>
17628
17629 PR libgomp/47854
17630 * libgomp.texi (omp_get_wtime): Don't say time in the past
17631 must be Unix Epoch.
17632
17633 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17634
17635 PR libgomp/47804
17636 * testsuite/libgomp.fortran/fortran.exp: Check for both
17637 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
17638 but $blddir != "", still append ${blddir}/${lang_library_path}
17639 to ld_library_path.
17640
17641 2011-02-16 Tobias Burnus <burnus@net-b.de>
17642
17643 PR libgomp/47758
17644 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17645 of libquadmath.a before adding its libpath to ldflags.
17646
17647 2011-02-14 Jakub Jelinek <jakub@redhat.com>
17648
17649 PR libgomp/47731
17650 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17651 to FUTEX_WAIT futex syscall.
17652 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17653
17654 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17655
17656 * configure: Regenerate.
17657
17658 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
17659
17660 PR libstdc++/36104
17661 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17662
17663 2011-01-16 Gerald Pfeifer
17664
17665 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17666
17667 2010-12-14 Jakub Jelinek <jakub@redhat.com>
17668
17669 PR fortran/46874
17670 * libgomp.fortran/allocatable6.f90: New test.
17671
17672 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17673
17674 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17675 * configure: Regenerate.
17676
17677 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
17678
17679 PR target/40125
17680 PR lto/46695
17681 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17682 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17683 * aclocal.m4: Regenerate.
17684 * configure: Regenerate.
17685 * Makefile.in: Regenerate.
17686 * testsuite/Makefile.in: Regenerate.
17687
17688 2010-12-02 Jakub Jelinek <jakub@redhat.com>
17689
17690 PR fortran/46753
17691 * libgomp.fortran/pr46753.f90: New test.
17692
17693 PR libgomp/43706
17694 * env.c (initialize_env): Default to spin count 300000
17695 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17696 is specified.
17697
17698 PR libgomp/45240
17699 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17700 at the end if sync builtins aren't supported.
17701
17702 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17703
17704 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17705
17706 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17707
17708 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17709
17710 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
17711
17712 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17713
17714 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17715 Tobias Burnus <burnus@net-b.de>
17716
17717 PR fortran/32049
17718 * configure.ac:
17719 * configure: Regenerate.
17720
17721 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
17722
17723 * config/linux/futex.h: New.
17724 * config/linux/arm/mutex.h: New.
17725 * configure.tgt (arm*-*-linux*): Add config path.
17726
17727 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
17728
17729 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17730
17731 2010-09-23 Tobias Burnus <burnus@net-b.de>
17732
17733 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17734 Change Fortran datatype to LOGICAL.
17735 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17736 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17737
17738 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17739
17740 * configure: Regenerate.
17741
17742 2010-07-26 Jakub Jelinek <jakub@redhat.com>
17743
17744 * libgomp.texi: Add function keyword to a couple of Fortran
17745 interfaces, use integer instead of int for Fortran.
17746
17747 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
17748
17749 * libgomp.texi: Fix spelling and pasto problems throughout.
17750 Adjust prototypes to match code.
17751
17752 2010-07-24 Tobias Burnus <burnus@net-b.de>
17753
17754 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17755 silence -fwhole-file warning.
17756
17757 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17758
17759 * configure.tgt (*-*-solaris2.[56]*): Removed.
17760
17761 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17762
17763 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17764 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17765 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17766 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17767 targetting solaris2*.
17768 * configure: Regenerate.
17769 * config.h.in: Regenerate.
17770
17771 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17772 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17773 Add libgomp_version_dep.
17774 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17775 versioning.
17776 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17777 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17778 * Makefile.in: Regenerate.
17779
17780 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17781 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17782 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17783 to common block, protected by
17784 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17785
17786 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
17787
17788 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
17789
17790 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
17791
17792 PR bootstrap/43170
17793 * configure: Regenerate.
17794
17795 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17796
17797 PR other/43620
17798 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17799 * configure: Regenerate.
17800 * Makefile.in: Regenerate.
17801 * testsuite/Makefile.in: Regenerate.
17802
17803 2010-04-26 Jakub Jelinek <jakub@redhat.com>
17804
17805 PR c/43893
17806 * testsuite/libgomp.c/pr43893.c: New test.
17807 * testsuite/libgomp.c++/pr43893.C: New test.
17808
17809 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17810
17811 PR middle-end/43570
17812 * testsuite/libgomp.fortran/vla8.f90: New test.
17813
17814 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17815
17816 PR libgomp/43706
17817 * config/linux/affinity.c (gomp_init_affinity): Decrease
17818 gomp_available_cpus if affinity mask confines the process to fewer
17819 CPUs.
17820 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17821 non-NULL, just return gomp_available_cpus.
17822
17823 PR libgomp/43569
17824 * sections.c (gomp_sections_init): Initialize ws->mode.
17825
17826 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17827
17828 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17829 not unused bar variable.
17830 * configure: Regenerate.
17831
17832 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17833
17834 * Makefile.in: Regenerate.
17835 * aclocal.m4: Regenerate.
17836 * testsuite/Makefile.in: Regenerate.
17837
17838 2010-03-22 Jakub Jelinek <jakub@redhat.com>
17839
17840 PR libgomp/42942
17841 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17842 (initialize_env): Adjust callers.
17843 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17844 when the argument is 0.
17845
17846 * testsuite/libgomp.c/pr42942.c: New test.
17847
17848 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17849
17850 PR middle-end/42644
17851 PR middle-end/42130
17852 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17853 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17854
17855 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17856
17857 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17858 * testsuite/libgomp.c++/task-6.C: Likewise.
17859
17860 2010-01-28 Steve Ellcey <sje@cup.hp.com>
17861
17862 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17863
17864 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
17865
17866 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17867 * configure: Regenerate.
17868
17869 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17870
17871 PR fortran/42866
17872 * testsuite/libgomp.fortran/allocatable5.f90: New test.
17873
17874 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
17875
17876 * configure.ac: Test for executability of GFORTRAN.
17877 * configure: Regenerate.
17878
17879 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17880
17881 * configure: Regenerate.
17882
17883 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
17884
17885 PR libgomp/42602
17886 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17887
17888 2010-01-03 Richard Guenther <rguenther@suse.de>
17889
17890 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17891
17892 2009-12-23 Sebastian Pop <sebpop@gmail.com>
17893
17894 * testsuite/libgomp.graphite/pr4118.c: New.
17895
17896 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17897
17898 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17899 for darwin, protect the test with require-effective-target tls_runtime.
17900 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17901
17902 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17903
17904 PR target/41605
17905 * testsuite/lib/libgomp.exp: Provide -B options to allow for
17906 link spec %s substitutions for static libraries.
17907
17908 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
17909
17910 PR testsuite/42135
17911 * libgomp.graphite/force-parallel-2.c: Reduce array size.
17912
17913 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17914
17915 * Makefile.in: Regenerate.
17916 * configure: Regenerate.
17917 * testsuite/Makefile.in: Regenerate.
17918
17919 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
17920
17921 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17922 settings for LC_ALL and LANG.
17923
17924 2009-11-25 Jakub Jelinek <jakub@redhat.com>
17925
17926 PR fortran/42162
17927 * testsuite/libgomp.fortran/pr42162.f90: New test.
17928
17929 2009-11-13 Jakub Jelinek <jakub@redhat.com>
17930
17931 PR middle-end/42029
17932 * testsuite/libgomp.c/pr42029.c: New test.
17933
17934 2009-10-26 Jakub Jelinek <jakub@redhat.com>
17935
17936 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17937 *s. Accept ld version without text in ()s.
17938 * configure: Regenerated.
17939
17940 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
17941
17942 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17943
17944 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17945
17946 PR libgomp/41418
17947 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17948 or a hyphen (happens with fortran language disabled).
17949 * configure: Regenerate.
17950
17951 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17952
17953 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17954 use sed script portable to Solaris /bin/sed for extracting ld
17955 version.
17956 * configure: Regenerate.
17957
17958 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
17959
17960 * testsuite/libgomp.graphite/bounds.c: New test.
17961
17962 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17963
17964 * Makefile.am (libgomp_la_LINK): New.
17965 * Makefile.in: Regenerate.
17966
17967 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17968
17969 * configure.ac (AC_PREREQ): Bump to 2.64.
17970
17971 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17972
17973 * Makefile.am (install-html, install-pdf): Remove.
17974 * Makefile.in: Regenerate.
17975
17976 * Makefile.in: Regenerate.
17977 * aclocal.m4: Regenerate.
17978 * config.h.in: Regenerate.
17979 * configure: Regenerate.
17980 * testsuite/Makefile.in: Regenerate.
17981
17982 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17983
17984 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17985 * Makefile.in: Regenerate.
17986
17987 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
17988
17989 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17990 * Makefile.in: Regenerate.
17991
17992 2009-08-19 Tobias Burnus <burnus@net-b.de>
17993
17994 PR fortran/41102
17995 omp_lib.h.in: Fix -std=f95 errors.
17996
17997 2009-08-14 David Edelsohn <edelsohn@gnu.org>
17998
17999 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18000 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18001 * testsuite/libgomp.graphite/graphite.exp: New.
18002
18003 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
18004
18005 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18006 only build.
18007
18008 2009-08-04 David Daney <ddaney@caviumnetworks.com>
18009
18010 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18011 needed memory barrier semantics.
18012 * config/linux/mips/mutex.h: New file.
18013
18014 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18015
18016 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18017
18018 2009-07-16 Joseph Myers <joseph@codesourcery.com>
18019
18020 * configure: Regenerate.
18021
18022 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
18023
18024 PR testsuite/40699
18025 PR testsuite/40707
18026 PR testsuite/40709
18027 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18028 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18029 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18030
18031 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18032
18033 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18034 options when choosing a multilib.
18035
18036 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
18037
18038 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18039 ld_library_path. Use add_path. Add just find_libgcc_s to
18040 ld_library_path, not every libgcc multilib directory.
18041 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18042 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18043 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18044 Use add_path.
18045 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18046
18047 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
18048
18049 * Makefile.am (LTLDFLAGS): Define.
18050 (LINK): Define.
18051 * Makefile.in: Regenerate.
18052
18053 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
18054
18055 PR fortran/39718
18056 * testsuite/libgomp.fortran/fortran.exp: Don't link with
18057 libgfortranbegin, check existence of libgfortran.a instead of
18058 libgfortranbegin.a.
18059
18060 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18061
18062 PR libgomp/40174
18063 * team.c (gomp_thread_start): Destroy thr->release semaphore.
18064 (gomp_free_pool_helper): Likewise.
18065
18066 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
18067 Jakub Jelinek <jakub@redhat.com>
18068
18069 PR fortran/35423
18070 * testsuite/libgomp.fortran/workshare2.f90: New test.
18071
18072 2009-04-09 Nick Clifton <nickc@redhat.com>
18073
18074 * iter.c: Change copyright header to refer to version 3 of the
18075 GNU General Public License with version 3.1 of the GCC Runtime
18076 Library Exception and to point readers at the COPYING3 and
18077 COPYING3.RUNTIME files and the FSF's license web page.
18078 * alloc.c: Likewise.
18079 * barrier.c: Likewise.
18080 * config/bsd/proc.c: Likewise.
18081 * config/linux/affinity.c: Likewise.
18082 * config/linux/alpha/futex.h: Likewise.
18083 * config/linux/bar.c: Likewise.
18084 * config/linux/bar.h: Likewise.
18085 * config/linux/ia64/futex.h: Likewise.
18086 * config/linux/ia64/mutex.h: Likewise.
18087 * config/linux/lock.c: Likewise.
18088 * config/linux/mips/futex.h: Likewise.
18089 * config/linux/mutex.c: Likewise.
18090 * config/linux/mutex.h: Likewise.
18091 * config/linux/powerpc/futex.h: Likewise.
18092 * config/linux/proc.c: Likewise.
18093 * config/linux/ptrlock.c: Likewise.
18094 * config/linux/ptrlock.h: Likewise.
18095 * config/linux/s390/futex.h: Likewise.
18096 * config/linux/sem.c: Likewise.
18097 * config/linux/sem.h: Likewise.
18098 * config/linux/sparc/futex.h: Likewise.
18099 * config/linux/wait.h: Likewise.
18100 * config/linux/x86/futex.h: Likewise.
18101 * config/mingw32/proc.c: Likewise.
18102 * config/mingw32/time.c: Likewise.
18103 * config/posix/affinity.c: Likewise.
18104 * config/posix/bar.c: Likewise.
18105 * config/posix/bar.h: Likewise.
18106 * config/posix/lock.c: Likewise.
18107 * config/posix/mutex.h: Likewise.
18108 * config/posix/proc.c: Likewise.
18109 * config/posix/ptrlock.h: Likewise.
18110 * config/posix/sem.c: Likewise.
18111 * config/posix/sem.h: Likewise.
18112 * config/posix/time.c: Likewise.
18113 * config/posix95/lock.c: Likewise.
18114 * critical.c: Likewise.
18115 * env.c: Likewise.
18116 * error.c: Likewise.
18117 * fortran.c: Likewise.
18118 * iter_ull.c: Likewise.
18119 * libgomp.h: Likewise.
18120 * libgomp_f.h.in: Likewise.
18121 * libgomp_g.h: Likewise.
18122 * loop.c: Likewise.
18123 * loop_ull.c: Likewise.
18124 * omp.h.in: Likewise.
18125 * omp_lib.f90.in: Likewise.
18126 * omp_lib.h.in: Likewise.
18127 * ordered.c: Likewise.
18128 * parallel.c: Likewise.
18129 * sections.c: Likewise.
18130 * single.c: Likewise.
18131 * task.c: Likewise.
18132 * team.c: Likewise.
18133 * work.c: Likewise.
18134
18135 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18136
18137 * testsuite/config/default.exp: Change copyright header to refer to
18138 version 3 of the GNU General Public License and to point readers
18139 at the COPYING3 file and the FSF's license web page.
18140
18141 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18142
18143 PR middle-end/39573
18144 * libgomp.c++/pr39573.C: New test.
18145
18146 2009-04-01 Jakub Jelinek <jakub@redhat.com>
18147
18148 PR other/39591
18149 * testsuite/libgomp.c/pr39591-1.c: New test.
18150 * testsuite/libgomp.c/pr39591-2.c: New test.
18151 * testsuite/libgomp.c/pr39591-3.c: New test.
18152
18153 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
18154
18155 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18156 * testsuite/libgomp.c/atomic-6.c: Ditto.
18157
18158 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18159
18160 PR c/39495
18161 * testsuite/libgomp.c/loop-12.c: New test.
18162 * testsuite/libgomp.c/loop-11.c: New test.
18163 * testsuite/libgomp.c++/loop-11.C: New test.
18164 * testsuite/libgomp.c++/loop-12.C: New test.
18165 * testsuite/libgomp.c++/for-8.C: New test.
18166
18167 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18168
18169 * configure: Regenerate.
18170
18171 2009-02-11 Jakub Jelinek <jakub@redhat.com>
18172
18173 PR middle-end/39154
18174 * testsuite/libgomp.c/pr39154.c: New test.
18175
18176 2009-01-30 Ian Lance Taylor <iant@google.com>
18177
18178 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18179 libgomp_ld_is_gold. Get gold version number.
18180 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18181 * configure: Rebuild.
18182
18183 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18184
18185 * testsuite/lib/libgomp.exp: Add -B option for targets that
18186 use libgfortran.a%s in their specs.
18187
18188 2009-01-07 Jakub Jelinek <jakub@redhat.com>
18189
18190 PR libgomp/38086
18191 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18192 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18193 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18194 * configure: Regenerated.
18195 * config.h.in: Likewise.
18196
18197 2008-12-28 Jakub Jelinek <jakub@redhat.com>
18198
18199 PR c++/38650
18200 * testsuite/libgomp.c/pr38650.c: New test.
18201 * testsuite/libgomp.c++/pr38650.C: New test.
18202
18203 2008-12-27 Jakub Jelinek <jakub@redhat.com>
18204
18205 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18206
18207 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
18208
18209 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18210
18211 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18212
18213 * configure: Regenerate.
18214
18215 2008-12-08 Jakub Jelinek <jakub@redhat.com>
18216
18217 PR middle-end/36802
18218 * testsuite/libgomp.c/pr36802-1.c: New test.
18219 * testsuite/libgomp.c/pr36802-2.c: New test.
18220 * testsuite/libgomp.c/pr36802-3.c: New test.
18221
18222 2008-12-01 Janis Johnson <janis187@us.ibm.com>
18223
18224 PR libgomp/38270
18225 * config/linux/powerpc/mutex.h: New.
18226
18227 2008-12-01 Jakub Jelinek <jakub@redhat.com>
18228
18229 PR c++/38257
18230 * testsuite/libgomp.c++/for-7.C: New test.
18231
18232 PR c++/38348
18233 * testsuite/libgomp.c++/for-6.C: New test.
18234
18235 2008-11-26 Janis Johnson <janis187@us.ibm.com>
18236
18237 PR testsuite/28870
18238 * testsuite/lib/libgomp.exp: Include new timeout library files.
18239 (libgomp_target_compile): Set timeout value from new proc.
18240
18241 2008-11-13 Steve Ellcey <sje@cup.hp.com>
18242
18243 PR libgomp/37938
18244 * config/linux/ia64/mutex.h: New.
18245
18246 2008-11-04 Tobias Burnus <burnus@net-b.de>
18247
18248 PR libgomp/37935
18249 * libgomp.texi (Runtime library routines, environment variables):
18250 Update for OpenMP version 3.0.
18251
18252 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18253 Steve Ellcey <sje@cup.hp.com>
18254
18255 * configure: Regenerate for new libtool.
18256 * Makefile.in: Ditto.
18257 * testsuite/Makefile.in: Ditto.
18258
18259 2008-09-19 Jakub Jelinek <jakub@redhat.com>
18260 Andreas Tobler <a.tobler@schweiz.org>
18261
18262 * config/bsd/proc.c: New file.
18263 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18264 * configure.ac: Check for header <sys/sysctl.h>
18265 * configure: Regenerate.
18266 * config.h.in: Likewise.
18267
18268 2008-09-05 Janis Johnson <janis187@us.ibm.com>
18269
18270 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18271
18272 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18273
18274 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18275 * Makefile.in: Regenerated.
18276 * testsuite/Makefile.in: Regenerated.
18277
18278 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
18279
18280 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18281 depend on blddir if blddir exists.
18282 (libgomp_target_compile): Likewise.
18283 * testsuite/libgomp.c++/c++.exp: Likewise.
18284 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18285
18286 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18287
18288 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18289 Do not list GPL as Invariant Section.
18290
18291 2008-07-28 Ilie Garbacea <ilie@mips.com>
18292 Chao-ying Fu <fu@mips.com>
18293
18294 * configure.tgt: Enable futex for MIPS.
18295 * config/linux/mips/futex.h: New file.
18296
18297 2008-07-16 Jakub Jelinek <jakub@redhat.com>
18298
18299 * team.c (gomp_team_end): Free team immediately if it has
18300 just one thread.
18301
18302 2008-07-08 David Edelsohn <edelsohn@gnu.org>
18303
18304 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18305 * testsuite/libgomp.fortran/fortran.exp: Same.
18306 * testsuite/libgomp.c/c.exp: Same.
18307 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18308 directory to library path first.
18309
18310 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18311
18312 * env.c (parse_stacksize): Add cast to avoid warning.
18313 (parse_spincount): Likewise.
18314
18315 2008-06-27 Jakub Jelinek <jakub@redhat.com>
18316
18317 * testsuite/libgomp.c/loop-10.c: New test.
18318 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18319 * libgomp.c++/loop-6.C (main): Likewise.
18320
18321 PR debug/36617
18322 * testsuite/libgomp.c/debug-1.c: New test.
18323
18324 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18325
18326 * testsuite/libgomp.c/nqueens-1.c: New test.
18327
18328 PR c++/36523
18329 * testsuite/libgomp.c++/task-7.C: New function.
18330
18331 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18332
18333 * configure: Regenerate.
18334
18335 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18336
18337 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18338 mutex when HAVE_SYNC_BUILTINS isn't defined.
18339
18340 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18341
18342 * libgomp.texi (omp_test_lock): Fix typo.
18343
18344 2008-06-12 Tobias Burnus <burnus@net-b.de>
18345
18346 * omp_lib.f90.in: Add "implicit none".
18347
18348 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18349
18350 PR middle-end/36506
18351 * testsuite/libgomp.c/reduction-5.c: New test.
18352
18353 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18354
18355 * libgomp.h (struct gomp_task): Add in_tied_task field.
18356 * task.c (gomp_init_task): Initialize it.
18357 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18358 unconditionally. Don't call gomp_team_barrier_wake if
18359 current task is implicit or if(0) from implicit and number of
18360 running tasks is equal to nthreads - 1.
18361
18362 PR libgomp/36471
18363 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18364 omp_get_team_size_8): Fix pastos.
18365
18366 PR libgomp/36469
18367 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18368 * configure: Regenerated.
18369 * config.h.in: Regenerated.
18370 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18371 defined.
18372
18373 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18374
18375 PR bootstrap/36452
18376 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18377 (GOMP_loop_ull_dynamic_start): Likewise.
18378 (GOMP_loop_ull_guided_start): Likewise.
18379 (GOMP_loop_ull_ordered_static_start): Likewise.
18380 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18381 (GOMP_loop_ull_ordered_guided_start): Likewise.
18382
18383 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18384 Richard Henderson <rth@redhat.com>
18385 Ulrich Drepper <drepper@redhat.com>
18386 Jakob Blomer <jakob.blomer@ira.uka.de>
18387
18388 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18389 Substitute also OMP_*LOCK_25*.
18390 * configure: Regenerated.
18391 * config.h.in: Regenerated.
18392 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18393 ptrlock.c and task.c.
18394 * Makefile.in: Regenerated.
18395 * testsuite/Makefile.in: Regenerated.
18396 * task.c: New file.
18397 * loop_ull.c: New file.
18398 * iter_ull.c: New file.
18399 * libgomp.h: Include ptrlock.h.
18400 (enum gomp_task_kind): New type.
18401 (struct gomp_team): Add task_lock, task_queue, task_count,
18402 task_running_count, single_count fields. Add
18403 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18404 Remove work_share_lock, generation_mask,
18405 oldest_live_gen, num_live_gen and init_work_shares fields, add
18406 work work_share_list_alloc, work_share_list_free and work_share_chunk
18407 fields. Change work_shares from pointer to pointers into an array.
18408 Change ordered_release field into gomp_sem_t ** from flexible array
18409 member. Add implicit_task and initial_work_shares fields.
18410 Move close to the end of the struct.
18411 (struct gomp_team_state): Add single_count, last_work_share,
18412 active_level and level fields, remove work_share_generation.
18413 (gomp_barrier_handle_tasks): New prototype.
18414 (gomp_finish_task): New inline function.
18415 (struct gomp_work_share): Move chunk_size, end, incr into
18416 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18417 next_ll fields. Reshuffle fields. Add next_alloc,
18418 next_ws, next_free and inline_ordered_team_ids fields, change
18419 ordered_team_ids into pointer from flexible array member.
18420 Add mode field. Put lock and next into a different cache line
18421 from most of the write-once fields.
18422 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18423 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18424 gomp_iter_ull_guided_next): New prototypes.
18425 (gomp_new_icv): New prototype.
18426 (struct gomp_thread): Add thread_pool and task fields.
18427 (struct gomp_thread_pool): New type.
18428 (gomp_new_team): New prototype.
18429 (gomp_team_start): Change type of last argument.
18430 (gomp_new_work_share): Removed.
18431 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18432 (gomp_work_share_init_done): New static inline.
18433 (gomp_throttled_spin_count_var, gomp_available_cpus,
18434 gomp_managed_threads): New extern decls.
18435 (gomp_init_task): New prototype.
18436 (gomp_spin_count_var): New extern var decl.
18437 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18438 or no alias support, or if not PIC.
18439 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18440 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18441 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18442 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18443 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18444 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18445 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18446 gomp_test_nest_lock_25): New prototypes.
18447 (omp_lock_symver, strong_alias): Define.
18448 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18449 decls.
18450 (gomp_end_task): New.
18451 (struct gomp_task_icv, gomp_global_icv): New.
18452 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18453 (struct gomp_task): New.
18454 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18455 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18456 (gomp_icv): New.
18457 (gomp_schedule_type): Reorder enum to match
18458 omp_sched_t.
18459 * team.c (struct gomp_thread_start_data): Add thread_pool and task
18460 fields.
18461 (gomp_thread_start): Add gomp_team_barrier_wait call.
18462 For non-nested case remove clearing of docked thread thr fields.
18463 Use pool fields instead of global gomp_* variables. Use
18464 gomp_barrier_wait_last when needed. Initialize ts.active_level.
18465 Create tasks for each member thread.
18466 (free_team): Only destroy team barrier, task_lock here and free it.
18467 (gomp_free_thread): Free last_team if non-NULL.
18468 (gomp_team_end): Call gomp_team_barrier_wait instead of
18469 gomp_barrier_wait. For nested case call one extra
18470 gomp_barrier_wait. Move here some destruction from free_team.
18471 Call free_team on pool->last_team if any, rather than freeing
18472 current team. Destroy work_share_list_free_lock ifndef
18473 HAVE_SYNC_BUILTINS.
18474 (gomp_new_icv): New function.
18475 (gomp_threads, gomp_threads_size, gomp_threads_used,
18476 gomp_threads_dock): Removed.
18477 (gomp_thread_destructor): New variable.
18478 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18479 functions.
18480 (gomp_team_start): Create new pool if current thread doesn't have
18481 one. Use pool fields instead of global gomp_* variables.
18482 Initialize thread_pool field for new threads. Clear single_count.
18483 Change last argument from ws to team, don't create
18484 new team, set ts.work_share to &team->work_shares[0] and clear
18485 ts.last_work_share. Don't clear ts.work_share_generation.
18486 If number of threads changed, adjust atomically gomp_managed_threads.
18487 Use gomp_init_task instead of gomp_new_task,
18488 set thr->task to the corresponding implicit_task array entry.
18489 Create tasks for each member thread. Initialize ts.level.
18490 (initialize_team): Call pthread_key_create on
18491 gomp_thread_destructor.
18492 (team_destructor): New function.
18493 (new_team): Removed.
18494 (gomp_new_team): New function.
18495 (free_team): Free gomp_work_share blocks chained through next_alloc,
18496 instead of freeing work_shares and destroying work_share_lock.
18497 (gomp_team_end): Call gomp_fini_work_share. If number of threads
18498 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
18499 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18500 of gomp_barrier_wait.
18501 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18502 instead of gomp_barrier_wait. Call gomp_work_share_init_done
18503 if gomp_work_share_start returned true. Don't unlock ws->lock.
18504 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18505 of gomp_barrier_wait.
18506 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
18507 gomp_work_share_init_done if gomp_work_share_start returned true.
18508 Don't unlock ws->lock.
18509 * work.c: Include stddef.h.
18510 (free_work_share): Use work_share_list_free_lock instead
18511 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
18512 Call gomp_fini_work_share and then either free ws if orphaned, or
18513 put it into work_share_list_free list of the current team.
18514 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18515 functions.
18516 (gomp_work_share_start, gomp_work_share_end,
18517 gomp_work_share_end_nowait): Rewritten.
18518 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18519 (openmp_version): Set to 200805.
18520 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18521 omp_sched_guided, omp_sched_auto): New parameters.
18522 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18523 omp_set_max_active_levels, omp_get_max_active_levels,
18524 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18525 omp_get_active_level): New interfaces.
18526 * omp_lib.h.in (openmp_version): Set to 200805.
18527 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18528 omp_sched_guided, omp_sched_auto): New parameters.
18529 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18530 omp_set_max_active_levels, omp_get_max_active_levels,
18531 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18532 omp_get_active_level): New externals.
18533 * loop.c: Include limits.h.
18534 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18535 GFS_AUTO.
18536 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18537 Likewise. Use gomp_icv.
18538 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18539 ts.static_trip here.
18540 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18541 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
18542 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18543 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
18544 don't unlock ws->lock, otherwise lock it.
18545 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18546 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
18547 (gomp_parallel_loop_start): Call gomp_new_team instead of
18548 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
18549 Adjust gomp_team_start caller. Pass 0 as second argument to
18550 gomp_resolve_num_threads.
18551 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18552 If adding ws->chunk_size nthreads + 1 times after end won't
18553 overflow, set ws->mode to 1.
18554 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18555 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18556 GOMP_loop_ull_ordered_static_start,
18557 GOMP_loop_ull_ordered_dynamic_start,
18558 GOMP_loop_ull_ordered_guided_start,
18559 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18560 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18561 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18562 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18563 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18564 prototypes.
18565 * libgomp.map: Export lock routines also @@OMP_2.0.
18566 (GOMP_loop_ordered_dynamic_first,
18567 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18568 GOMP_loop_ordered_static_first): Remove.
18569 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18570 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18571 GOMP_loop_ull_ordered_dynamic_next,
18572 GOMP_loop_ull_ordered_dynamic_start,
18573 GOMP_loop_ull_ordered_guided_next,
18574 GOMP_loop_ull_ordered_guided_start,
18575 GOMP_loop_ull_ordered_runtime_next,
18576 GOMP_loop_ull_ordered_runtime_start,
18577 GOMP_loop_ull_ordered_static_next,
18578 GOMP_loop_ull_ordered_static_start,
18579 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18580 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18581 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18582 (omp_set_schedule, omp_get_schedule,
18583 omp_get_thread_limit, omp_set_max_active_levels,
18584 omp_get_max_active_levels, omp_get_level,
18585 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18586 omp_set_schedule_, omp_set_schedule_8_,
18587 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18588 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18589 omp_get_max_active_levels_, omp_get_level_,
18590 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18591 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18592 New exports @@OMP_3.0.
18593 * omp.h.in (omp_sched_t): New type.
18594 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18595 omp_set_max_active_levels, omp_get_max_active_levels,
18596 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18597 omp_get_active_level): New prototypes.
18598 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18599 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18600 gomp_thread_limit_var, gomp_remaining_threads_count,
18601 gomp_remaining_threads_lock): New variables.
18602 (parse_spincount): New function.
18603 (initialize_env): Call gomp_init_num_threads unconditionally.
18604 Initialize gomp_available_cpus. Call parse_spincount,
18605 initialize gomp_{,throttled_}spin_count_var
18606 depending on presence and value of OMP_WAIT_POLICY and
18607 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
18608 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18609 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
18610 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
18611 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
18612 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18613 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18614 (gomp_global_icv): New.
18615 (parse_schedule): Use it. Parse "auto".
18616 (omp_set_num_threads): Use gomp_icv.
18617 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18618 Likewise.
18619 (omp_get_max_threads): Move from parallel.c.
18620 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18621 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18622 add ialias.
18623 (parse_stacksize, parse_wait_policy): New functions.
18624 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18625 both wrappers for compatibility and new locks.
18626 (omp_set_schedule, omp_get_schedule,
18627 omp_get_thread_limit, omp_set_max_active_levels,
18628 omp_get_max_active_levels, omp_get_level,
18629 omp_get_ancestor_thread_num, omp_get_team_size,
18630 omp_get_active_level): New ialias_redirect.
18631 (omp_set_schedule_, omp_set_schedule_8_,
18632 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18633 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18634 omp_get_max_active_levels_, omp_get_level_,
18635 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18636 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18637 New functions.
18638 * parallel.c: Include limits.h.
18639 (gomp_resolve_num_threads): Add count argument. Rewritten.
18640 (GOMP_parallel_start): Call gomp_new_team and pass that as last
18641 argument to gomp_team_start. Pass 0 as second argument to
18642 gomp_resolve_num_threads.
18643 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18644 if gomp_thread_limit_var != ULONG_MAX.
18645 (omp_in_parallel): Implement using ts.active_level.
18646 (omp_get_max_threads): Move to env.c.
18647 (omp_get_level, omp_get_ancestor_thread_num,
18648 omp_get_team_size, omp_get_active_level): New functions,
18649 add ialias.
18650 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18651 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
18652 gomp_iter_dynamic_next instead of the _locked variant and don't take
18653 lock around it, otherwise acquire it before calling
18654 gomp_iter_dynamic_next_locked.
18655 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18656 gomp_iter_dynamic_next instead of the _locked variant and don't take
18657 lock around it.
18658 (GOMP_parallel_sections_start): Call gomp_new_team instead of
18659 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
18660 Adjust gomp_team_start caller. Pass count as second argument to
18661 gomp_resolve_num_threads, don't adjust num_threads after the call.
18662 Use gomp_icv.
18663 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18664 ws->chunk_size by incr.
18665 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
18666 code.
18667 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18668 types.
18669 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18670 (omp_check_defines): Check even the compat defines.
18671 * config/linux/ptrlock.c: New file.
18672 * config/linux/ptrlock.h: New file.
18673 * config/linux/wait.h: New file.
18674 * config/posix/ptrlock.c: New file.
18675 * config/posix/ptrlock.h: New file.
18676 * config/linux/bar.h (gomp_team_barrier_wait,
18677 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18678 (gomp_team_barrier_set_task_pending,
18679 gomp_team_barrier_clear_task_pending,
18680 gomp_team_barrier_set_waiting_for_tasks,
18681 gomp_team_barrier_waiting_for_tasks,
18682 gomp_team_barrier_done): New inlines.
18683 (gomp_barrier_t): Rewritten.
18684 (gomp_barrier_state_t): New typedef.
18685 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18686 gomp_barrier_wait_start): Rewritten.
18687 (gomp_barrier_wait_end): Change second argument to
18688 gomp_barrier_state_t.
18689 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18690 inlines.
18691 * config/linux/bar.c: Include wait.h instead of libgomp.h and
18692 futex.h.
18693 (gomp_barrier_wait_end): Rewritten.
18694 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18695 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18696 * config/posix/bar.h (gomp_barrier_t): Add generation field.
18697 (gomp_barrier_state_t): New typedef.
18698 (gomp_team_barrier_wait,
18699 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18700 (gomp_barrier_wait_start): Or all but low 2 bits from generation
18701 into the return value. Return gomp_barrier_state_t.
18702 (gomp_team_barrier_set_task_pending,
18703 gomp_team_barrier_clear_task_pending,
18704 gomp_team_barrier_set_waiting_for_tasks,
18705 gomp_team_barrier_waiting_for_tasks,
18706 gomp_team_barrier_done): New inlines.
18707 (gomp_barrier_wait_end): Change second argument to
18708 gomp_barrier_state_t.
18709 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18710 inlines.
18711 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18712 (gomp_barrier_wait_end): Change second argument to
18713 gomp_barrier_state_t.
18714 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18715 gomp_team_barrier_wake): New functions.
18716 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18717 futex.h.
18718 (gomp_futex_wake, gomp_futex_wait): New variables.
18719 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18720 * config/linux/lock.c: Rewrite to make locks task owned,
18721 for backwards compatibility provide the old entrypoints
18722 if symbol versioning. Include wait.h instead of libgomp.h and
18723 futex.h.
18724 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18725 * config/posix95/lock.c: Rewrite to make locks task owned,
18726 for backwards compatibility provide the old entrypoints
18727 if symbol versioning.
18728 * config/posix/lock.c: Rewrite to make locks task owned,
18729 for backwards compatibility provide the old entrypoints
18730 if symbol versioning.
18731 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18732 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18733 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18734 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18735 (sys_futex0): Return error code.
18736 (futex_wake, futex_wait): If ENOSYS was returned, clear
18737 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18738 (cpu_relax, atomic_write_barrier): New static inlines.
18739 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18740 (futex_wake, futex_wait): If ENOSYS was returned, clear
18741 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18742 (cpu_relax, atomic_write_barrier): New static inlines.
18743 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18744 (sys_futex0): Return error code.
18745 (futex_wake, futex_wait): If ENOSYS was returned, clear
18746 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18747 (cpu_relax, atomic_write_barrier): New static inlines.
18748 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18749 (sys_futex0): Return error code.
18750 (futex_wake, futex_wait): If ENOSYS was returned, clear
18751 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18752 (cpu_relax, atomic_write_barrier): New static inlines.
18753 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18754 (sys_futex0): Return error code.
18755 (futex_wake, futex_wait): If ENOSYS was returned, clear
18756 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18757 (cpu_relax, atomic_write_barrier): New static inlines.
18758 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18759 (sys_futex0): Return error code.
18760 (futex_wake, futex_wait): If ENOSYS was returned, clear
18761 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18762 (cpu_relax, atomic_write_barrier): New static inlines.
18763 * config/linux/sem.c: Include wait.h instead of libgomp.h and
18764 futex.h.
18765 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18766 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18767 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18768 types.
18769 (omp_nest_lock_t): Change owner into void *, add lock field.
18770 * config/posix95/omp-lock.h: Include semaphore.h.
18771 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18772 (omp_lock_t): Use sem_t instead of mutex if semaphores
18773 aren't broken.
18774 (omp_nest_lock_t): Likewise. Change owner to void *.
18775 * config/posix/omp-lock.h: Include semaphore.h.
18776 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18777 (omp_lock_t): Use sem_t instead of mutex if semaphores
18778 aren't broken.
18779 (omp_nest_lock_t): Likewise. Add owner field.
18780
18781 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18782
18783 * testsuite/libgomp.c/collapse-1.c: New test.
18784 * testsuite/libgomp.c/collapse-2.c: New test.
18785 * testsuite/libgomp.c/collapse-3.c: New test.
18786 * testsuite/libgomp.c/icv-1.c: New test.
18787 * testsuite/libgomp.c/icv-2.c: New test.
18788 * testsuite/libgomp.c/lib-2.c: New test.
18789 * testsuite/libgomp.c/lock-1.c: New test.
18790 * testsuite/libgomp.c/lock-2.c: New test.
18791 * testsuite/libgomp.c/lock-3.c: New test.
18792 * testsuite/libgomp.c/loop-4.c: New test.
18793 * testsuite/libgomp.c/loop-5.c: New test.
18794 * testsuite/libgomp.c/loop-6.c: New test.
18795 * testsuite/libgomp.c/loop-7.c: New test.
18796 * testsuite/libgomp.c/loop-8.c: New test.
18797 * testsuite/libgomp.c/loop-9.c: New test.
18798 * testsuite/libgomp.c/nested-3.c: New test.
18799 * testsuite/libgomp.c/nestedfn-6.c: New test.
18800 * testsuite/libgomp.c/sort-1.c: New test.
18801 * testsuite/libgomp.c/task-1.c: New test.
18802 * testsuite/libgomp.c/task-2.c: New test.
18803 * testsuite/libgomp.c/task-3.c: New test.
18804 * testsuite/libgomp.c/task-4.c: New test.
18805 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18806 to C++ testsuite default compiler options.
18807 * testsuite/libgomp.c++/collapse-1.C: New test.
18808 * testsuite/libgomp.c++/collapse-2.C: New test.
18809 * testsuite/libgomp.c++/ctor-10.C: New test.
18810 * testsuite/libgomp.c++/for-1.C: New test.
18811 * testsuite/libgomp.c++/for-2.C: New test.
18812 * testsuite/libgomp.c++/for-3.C: New test.
18813 * testsuite/libgomp.c++/for-4.C: New test.
18814 * testsuite/libgomp.c++/for-5.C: New test.
18815 * testsuite/libgomp.c++/loop-8.C: New test.
18816 * testsuite/libgomp.c++/loop-9.C: New test.
18817 * testsuite/libgomp.c++/loop-10.C: New test.
18818 * testsuite/libgomp.c++/task-1.C: New test.
18819 * testsuite/libgomp.c++/task-2.C: New test.
18820 * testsuite/libgomp.c++/task-3.C: New test.
18821 * testsuite/libgomp.c++/task-4.C: New test.
18822 * testsuite/libgomp.c++/task-5.C: New test.
18823 * testsuite/libgomp.c++/task-6.C: New test.
18824 * testsuite/libgomp.fortran/allocatable1.f90: New test.
18825 * testsuite/libgomp.fortran/allocatable2.f90: New test.
18826 * testsuite/libgomp.fortran/allocatable3.f90: New test.
18827 * testsuite/libgomp.fortran/allocatable4.f90: New test.
18828 * testsuite/libgomp.fortran/collapse1.f90: New test.
18829 * testsuite/libgomp.fortran/collapse2.f90: New test.
18830 * testsuite/libgomp.fortran/collapse3.f90: New test.
18831 * testsuite/libgomp.fortran/collapse4.f90: New test.
18832 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18833 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18834 * testsuite/libgomp.fortran/lib4.f90: New test.
18835 * testsuite/libgomp.fortran/lock-1.f90: New test.
18836 * testsuite/libgomp.fortran/lock-2.f90: New test.
18837 * testsuite/libgomp.fortran/nested1.f90: New test.
18838 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18839 * testsuite/libgomp.fortran/strassen.f90: New test.
18840 * testsuite/libgomp.fortran/tabs1.f90: New test.
18841 * testsuite/libgomp.fortran/tabs2.f: New test.
18842 * testsuite/libgomp.fortran/task1.f90: New test.
18843 * testsuite/libgomp.fortran/task2.f90: New test.
18844 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18845 * testsuite/libgomp.fortran/vla5.f90: Likewise.
18846 * testsuite/libgomp.c/pr26943-2.c: Likewise.
18847 * testsuite/libgomp.c/pr26943-3.c: Likewise.
18848 * testsuite/libgomp.c/pr26943-4.c: Likewise.
18849
18850 2008-05-23 Jakub Jelinek <jakub@redhat.com>
18851
18852 PR c++/36308
18853 * testsuite/libgomp.c++/ctor-11.C: New test.
18854 * testsuite/libgomp.c++/ctor-12.C: New test.
18855
18856 2008-05-15 Janis Johnson <janis187@us.ibm.com>
18857
18858 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18859
18860 2008-05-07 Jakub Jelinek <jakub@redhat.com>
18861
18862 PR middle-end/36106
18863 * testsuite/libgomp.c/atomic-5.c: New test.
18864 * testsuite/libgomp.c/atomic-6.c: New test.
18865 * testsuite/libgomp.c/autopar-1.c: New test.
18866
18867 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18868
18869 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18870 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18871 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18872 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18873 * configure: Regenerate.
18874 * Makefile.in, testsuite/Makefile.in: Likewise.
18875
18876 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
18877
18878 PR bootstrap/35457
18879 * aclocal.m4: Regenerate.
18880 * configure: Regenerate.
18881
18882 2008-03-18 Jakub Jelinek <jakub@redhat.com>
18883
18884 PR middle-end/35611
18885 * testsuite/libgomp.c/atomic-4.c: New test.
18886
18887 PR libgomp/35625
18888 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18889 (gomp_iter_guided_next): Likewise.
18890 * testsuite/libgomp.c/pr35625.c: New test.
18891
18892 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18893
18894 * aclocal.m4: Regenerate.
18895 * configure: Likewise.
18896 * Makefile.in: Likewise.
18897 * testsuite/Makefile.in: Likewise.
18898
18899 2008-03-13 Jakub Jelinek <jakub@redhat.com>
18900
18901 PR middle-end/35185
18902 * testsuite/libgomp.c++/pr35185.C: New test.
18903
18904 2008-03-12 Jakub Jelinek <jakub@redhat.com>
18905
18906 PR middle-end/35549
18907 * testsuite/libgomp.c/pr35549.c: New test.
18908
18909 2008-03-06 Jakub Jelinek <jakub@redhat.com>
18910
18911 * testsuite/libgomp.c/atomic-3.c: New test.
18912
18913 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18914
18915 PR fortran/33197
18916 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18917 .F08 file suffixes.
18918
18919 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
18920
18921 PR libgomp/33131
18922 * configure.ac: Add ACX_HEADER_STRING.
18923 * env.c: Include strings.h.
18924 * aclocal.m4: Regenerate.
18925 * config.h.in: Regenerate.
18926 * configure: Regenerate.
18927 * Makefile.in: Regenerate.
18928 * testsuite/Makefile.in: Regenerate.
18929
18930 2008-02-15 Jakub Jelinek <jakub@redhat.com>
18931
18932 PR middle-end/35196
18933 * testsuite/libgomp.c/pr35196.c: New test.
18934
18935 PR middle-end/35130
18936 * testsuite/libgomp.fortran/pr35130.f90: New test.
18937 * testsuite/libgomp.c/pr35130.c: New test.
18938
18939 2008-01-25 Jakub Jelinek <jakub@redhat.com>
18940
18941 PR middle-end/33880
18942 * testsuite/libgomp.c/pr33880.c: New test.
18943 * testsuite/libgomp.fortran/pr33880.f90: New test.
18944
18945 2008-01-24 David Edelsohn <edelsohn@gnu.org>
18946
18947 * configure: Regenerate.
18948
18949 2008-01-08 Jakub Jelinek <jakub@redhat.com>
18950
18951 * configure.ac: Move futex checking into ../config/futex.m4.
18952 * configure: Rebuilt.
18953 * aclocal.m4: Rebuilt.
18954 * Makefile.in: Rebuilt.
18955
18956 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18957 2007-10-15 ../config/tls.m4 change.
18958
18959 2007-12-19 Jakub Jelinek <jakub@redhat.com>
18960
18961 PR c++/34513
18962 * testsuite/libgomp.c/pr34513.c: New test.
18963 * testsuite/libgomp.c++/pr34513.C: New test.
18964
18965 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
18966
18967 PR target/32765
18968 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18969
18970 2007-12-04 Jakub Jelinek <jakub@redhat.com>
18971
18972 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
18973
18974 2007-12-03 Jakub Jelinek <jakub@redhat.com>
18975
18976 * testsuite/libgomp.c/private-1.c: New test.
18977
18978 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
18979 Paolo Bonzini <bonzini@gnu.org>
18980
18981 * Makefile.am: Use space as vpath separator. Use 'vpath %'
18982 instead of 'VPATH ='.
18983 * Makefile.in: Regenerate.
18984
18985 2007-11-23 Matthias Klose <doko@ubuntu.com>
18986
18987 * configure.ac: Adjust makeinfo version check.
18988 * configure: Regenerate.
18989
18990 2007-11-10 Jakub Jelinek <jakub@redhat.com>
18991
18992 PR fortran/34020
18993 * testsuite/libgomp.fortran/pr34020.f90: New test.
18994
18995 2007-11-06 Jakub Jelinek <jakub@redhat.com>
18996
18997 PR c++/33894
18998 * testsuite/libgomp.c++/atomic-1.C: New test.
18999
19000 2007-10-25 Jakub Jelinek <jakub@redhat.com>
19001
19002 PR libgomp/33275
19003 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19004 Make x and y integers rather than (implicit) reals. Add private (j)
19005 clause to the last omp parallel.
19006
19007 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
19008
19009 * configure: Regenerate following changes to ../config/tls.m4.
19010
19011 2007-09-28 Jakub Jelinek <jakub@redhat.com>
19012
19013 * testsuite/libgomp.fortran/stack.f90: New test.
19014
19015 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
19016
19017 * config/mingw32/proc.c: New file.
19018
19019 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
19020
19021 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19022 (main): Use __get_cpuid to get i386 target fetaures.
19023 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19024 (main): Use __get_cpuid to get x86_64 target fetaures.
19025
19026 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
19027
19028 PR target/32765
19029 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19030 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19031
19032 2007-07-12 Jakub Jelinek <jakub@redhat.com>
19033
19034 PR fortran/32550
19035 * testsuite/libgomp.fortran/pr32550.f90: New test.
19036 * testsuite/libgomp.fortran/crayptr2.f90: New test.
19037
19038 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
19039
19040 * aclocal.m4: Regenerated.
19041
19042 2007-07-05 Tobias Burnus <burnus@net-b.de>
19043
19044 PR fortran/32359
19045 * testsuite/libgomp.fortran/pr32359.f90: New.
19046
19047 2007-07-02 Jakub Jelinek <jakub@redhat.com>
19048
19049 PR libgomp/32468
19050 * sections.c (GOMP_parallel_sections_start): Only decrease
19051 number of threads to COUNT if dyn_var is true.
19052 * testsuite/libgomp.c/pr32468.c: New test.
19053
19054 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19055
19056 PR libgomp/26308
19057 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19058
19059 2007-06-21 Jakub Jelinek <jakub@redhat.com>
19060
19061 PR middle-end/32362
19062 * testsuite/libgomp.c/pr32362-1.c: New test.
19063 * testsuite/libgomp.c/pr32362-2.c: New test.
19064 * testsuite/libgomp.c/pr32362-3.c: New test.
19065
19066 2007-06-07 Jakub Jelinek <jakub@redhat.com>
19067
19068 * team.c (gomp_team_start): Fix setting up thread_attr
19069 stack size.
19070
19071 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
19072
19073 * configure: Regenerate.
19074
19075 2007-05-23 Steve Ellcey <sje@cup.hp.com>
19076
19077 * Makefile.in: Regenerate.
19078 * configure: Regenerate.
19079 * aclocal.m4: Regenerate.
19080 * testsuite/Makefile.in: Regenerate.
19081
19082 2007-05-04 Jakub Jelinek <jakub@redhat.com>
19083
19084 * config/linux/proc.c: New file.
19085
19086 PR libgomp/28482
19087 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19088
19089 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
19090
19091 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19092
19093 2007-04-16 Matthias Klose <doko@debian.org>
19094
19095 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19096 flags if not building with -m64.
19097 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19098 flag for i?86-*-* targets, if current target matches -m64.
19099
19100 2007-04-14 Steve Ellcey <sje@cup.hp.com>
19101
19102 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19103 * Makefile.in: Regenerate.
19104
19105 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19106
19107 PR testsuite/31369
19108 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19109 ld_library_path.
19110 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19111
19112 2007-04-04 Jakub Jelinek <jakub@redhat.com>
19113
19114 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19115 decls.
19116 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19117 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19118 (parse_affinity): New function.
19119 (initialize_env): Call it and gomp_init_affinity.
19120 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19121 create new pthread_attr_t and call gomp_init_thread_affinity
19122 on it for each thread before passing the attribute to pthread_create.
19123 * config/linux/affinity.c: New file.
19124 * config/posix/affinity.c: New file.
19125 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19126 * configure: Rebuilt.
19127 * config.h.in: Rebuilt.
19128 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19129 * Makefile.in: Rebuilt.
19130
19131 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19132
19133 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19134 *-*-darwin*.
19135 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19136 and use it if found.
19137
19138 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
19139
19140 * testsuite/config/default.exp: New file.
19141 * testsuite/lib/libgomp.exp: New file.
19142 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19143 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19144 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19145 (libgomp_load): Remove.
19146 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19147 always_ld_library_path, not ld_library_path. Set additional_flags
19148 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19149 (target_compile): Do not call libgomp_init. Append lang_library_path
19150 and lang_link_flags to options.
19151 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19152 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19153 here.
19154 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19155 always_ld_library_path. Set LD_LIBRARY_PATH here.
19156 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19157 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19158 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19159 CX8 flag.
19160 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19161 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19162 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19163 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19164 * testsuite/libgomp.c/atomic-10.c: Ditto.
19165
19166 2007-03-21 Jakub Jelinek <jakub@redhat.com>
19167
19168 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19169 dg-final cleanup-modules line.
19170 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19171 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19172 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19173 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19174 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19175 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19176 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19177
19178 2007-03-18 Andreas Schwab <schwab@suse.de>
19179
19180 * acinclude.m4: Adjust regular expression for ld version
19181 extraction.
19182 * configure: Regenerate.
19183
19184 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19185
19186 * Makefile.am: Add install-pdf target as copied from
19187 automake v1.10 rules.
19188 * Makefile.in: Regenerate
19189
19190 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19191
19192 PR libgomp/28486
19193 * configure: Regenerate.
19194
19195 PR c++/30703
19196 * testsuite/libgomp.c++/pr30703.C: New test.
19197
19198 2007-02-02 Jakub Jelinek <jakub@redhat.com>
19199
19200 Revert:
19201 2006-07-05 Eric Christopher <echristo@apple.com>
19202 * configure.ac: Depend addition of -pthread on host OS.
19203 * configure: Regenerate.
19204
19205 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19206
19207 * libgomp.texi: Fix spacing after abbreviations.
19208
19209 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
19210
19211 PR libgomp/30546
19212 * configure.ac: Add check for makeinfo
19213 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19214 if an appropriate version of makeinfo is found.
19215 * aclocal.m4: Regenerated.
19216 * configure: Regenerated.
19217 * Makefile.in: Regenerated.
19218 * testsuite/Makefile.in: Regenerated.
19219
19220 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
19221
19222 PR libgomp/30540
19223 * libgomp.texi: More about implementation-dependent settings.
19224
19225 2007-01-26 Tobias Burnus <burnus@net-b.de>
19226
19227 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19228
19229 2007-01-24 Jakub Jelinek <jakub@redhat.com>
19230
19231 PR middle-end/30494
19232 * testsuite/libgomp.c/pr30494.c: New test.
19233
19234 2007-01-15 Tom Tromey <tromey@redhat.com>
19235
19236 * configure: Rebuilt.
19237 * configure.ac: Fixed comment.
19238
19239 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
19240
19241 * libgomp.texi: Document implementation specific default values of
19242 environment variables.
19243
19244 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19245
19246 PR libgomp/28209
19247 * libgomp.texi: New file.
19248 * configure.ac: Add --enable-generated-files-in-srcdir option.
19249 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19250 files to srcdir.
19251 * Makefile.in: Regenerated.
19252 * config.h.in: Regenerated.
19253 * testsuite/Makefile.in: Regenerated.
19254 * NOTES: Removed.
19255
19256 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
19257
19258 PR libgomp/29949
19259 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19260
19261 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19262
19263 * configure: Regenerate.
19264
19265 2006-12-04 Jakub Jelinek <jakub@redhat.com>
19266
19267 PR libgomp/29947
19268 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19269 start if there shouldn't be any loop iterations.
19270 (gomp_loop_ordered_static_start): Remove start == end test.
19271 * testsuite/libgomp.c/pr29947-1.c: New test.
19272 * testsuite/libgomp.c/pr29947-2.c: New test.
19273
19274 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19275
19276 * configure.tgt: Force initial-exec TLS model on Linux only.
19277
19278 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19279
19280 * configure: Regenerated.
19281
19282 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
19283
19284 * env.c (parse_schedule): Reject out of range values.
19285 (parse_unsigned_long): Reject out of range, negative or zero values.
19286
19287 2006-10-29 Jakub Jelinek <jakub@redhat.com>
19288
19289 PR fortran/29629
19290 * testsuite/libgomp.fortran/pr29629.f90: New test.
19291
19292 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19293
19294 PR libgomp/29494
19295 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19296 * config/posix95: New directory.
19297 * config/posix95/omp-lock.h: New file.
19298 * config/posix95/lock.c: Likewise.
19299
19300 2006-10-14 Geoffrey Keating <geoffk@apple.com>
19301
19302 * aclocal.m4: Regenerate.
19303 * configure: Regenerate.
19304
19305 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19306
19307 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19308 '<' to '<='.
19309
19310 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19311
19312 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19313 test.
19314 * configure: Regenerate.
19315 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19316
19317 2006-09-26 Jakub Jelinek <jakub@redhat.com>
19318
19319 PR middle-end/25261
19320 PR middle-end/28790
19321 * testsuite/libgomp.c/nestedfn-4.c: New test.
19322 * testsuite/libgomp.c/nestedfn-5.c: New test.
19323 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19324
19325 PR fortran/29097
19326 * testsuite/libgomp.fortran/condinc1.f: New test.
19327 * testsuite/libgomp.fortran/condinc2.f: New test.
19328 * testsuite/libgomp.fortran/condinc3.f90: New test.
19329 * testsuite/libgomp.fortran/condinc4.f90: New test.
19330 * testsuite/libgomp.fortran/condinc1.inc: New file.
19331
19332 2006-09-18 Tom Tromey <tromey@redhat.com>
19333
19334 * configure: Rebuilt.
19335
19336 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19337
19338 PR c/28768
19339 PR preprocessor/14634
19340 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19341 to AC_DEFINE.
19342 * configure: Regenerate.
19343
19344 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19345
19346 * testsuite/libgomp.fortran/reduction3.f90: Change
19347 -2147483648 to -huge(i)-1 to avoid overflow.
19348 * testsuite/libgomp.fortran/reduction4.f90: Change
19349 Z'ffffffff' to not(0) to avoid overflow.
19350
19351 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19352
19353 PR libgomp/25938
19354 * Makefile.am (libsubincludedir): New.
19355 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19356 * Makefile.in: Regenerate.
19357
19358 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19359
19360 PR libgomp/28725
19361 * env.c: Include ctype.h.
19362 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19363 leading and/or trailing whitespace and compare strings case
19364 insensitively.
19365
19366 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19367
19368 PR fortran/28390
19369 * testsuite/libgomp.fortran/pr28390.f: New test.
19370
19371 2006-07-05 Eric Christopher <echristo@apple.com>
19372
19373 * configure.ac: Depend addition of -pthread on host OS.
19374 * configure: Regenerate.
19375
19376 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19377
19378 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19379 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19380 defined.
19381
19382 2006-06-20 Jakub Jelinek <jakub@redhat.com>
19383
19384 PR libgomp/26175
19385 PR libgomp/26477
19386 * configure.ac: If neither --enable-linux-futex nor
19387 --disable-linux-futex is passed, determine the default by checking
19388 for compiling and/or running against NPTL. With --enable-linux-futex,
19389 check if SYS_gettid and SYS_futex are defined.
19390 * configure: Rebuilt.
19391
19392 2006-06-14 Richard Henderson <rth@redhat.com>
19393
19394 PR libgomp/28008
19395 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19396 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19397
19398 2006-06-09 Richard Henderson <rth@redhat.com>
19399
19400 * env.c (gomp_nthreads_var): Change to unsigned long.
19401 (gomp_run_sched_chunk): Likewise.
19402 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19403 (initialize_env): Initialize gomp_thread_attr.
19404 * libgomp.h (gomp_nthreads_var): Update decl.
19405 (gomp_run_sched_chunk): Likewise.
19406 (gomp_thread_attr): Declare.
19407 * team.c (gomp_thread_attr): Export.
19408 (initialize_team): Don't initialize it.
19409
19410 2006-06-09 Jakub Jelinek <jakub@redhat.com>
19411
19412 PR fortran/27916
19413 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19414 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19415
19416 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19417
19418 * config/mingw32/time.c: New file.
19419 * configure.tgt: Use it.
19420
19421 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
19422
19423 * Makefile.am: Add install-html target. Add install-html to .PHONY
19424 * Makefile.in: Regenerate.
19425
19426 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19427
19428 PR libgomp/27612
19429 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19430 * testsuite/libgomp.c/critical-1.c: Likewise.
19431 * testsuite/libgomp.c/loop-1.c: Likewise.
19432 * testsuite/libgomp.c/loop-2.c: Likewise.
19433 * testsuite/libgomp.c/single-1.c: Likewise.
19434 * testsuite/libgomp.c/ordered-1.c: Likewise.
19435 * testsuite/libgomp.c/ordered-2.c: Likewise.
19436
19437 2006-05-15 Jakub Jelinek <jakub@redhat.com>
19438
19439 PR middle-end/27416
19440 * libgomp.fortran/pr27416-1.f90: New test.
19441
19442 2006-05-03 Jakub Jelinek <jakub@redhat.com>
19443
19444 PR fortran/27395
19445 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19446 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19447
19448 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19449
19450 PR c++/26943
19451 * testsuite/libgomp.c/pr26943-1.c: New test.
19452 * testsuite/libgomp.c/pr26943-2.c: New test.
19453 * testsuite/libgomp.c/pr26943-3.c: New test.
19454 * testsuite/libgomp.c/pr26943-4.c: New test.
19455 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19456 * testsuite/libgomp.c++/pr26943.C: New test.
19457
19458 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19459
19460 PR middle-end/27337
19461 * testsuite/libgomp.c++/pr27337.C: New test.
19462
19463 2006-04-26 Jakub Jelinek <jakub@redhat.com>
19464
19465 PR c/26171
19466 * testsuite/libgomp.c/pr26171.c: New test.
19467
19468 2006-04-25 Richard Henderson <rth@redhat.com>
19469
19470 PR libgomp/25865
19471 * configure.ac: Use GCC_CHECK_TLS.
19472 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19473 * Makefile.in, aclocal.m4, configure: Regenerate.
19474
19475 2006-04-10 Matthias Klose <doko@debian.org>
19476
19477 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19478 directory names containing underscores.
19479
19480 2006-03-21 Jakub Jelinek <jakub@redhat.com>
19481
19482 PR c++/26691
19483 * testsuite/libgomp.c++/pr26691.C: New test.
19484
19485 2006-03-13 Jakub Jelinek <jakub@redhat.com>
19486
19487 * testsuite/libgomp.fortran/retval2.f90: New test.
19488
19489 2006-03-09 Diego Novillo <dnovillo@redhat.com>
19490
19491 * testsuite/libgomp.c++: New directory.
19492
19493 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
19494
19495 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19496 * config/posix/sem.c: Implement the above.
19497
19498 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
19499
19500 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19501 define HAVE_BROKEN_POSIX_SEMAPHORES.
19502 * configure: Rebuilt.
19503 * config.h.in: Rebuilt.
19504
19505 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19506
19507 PR bootstrap/26161
19508 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19509 for the other pthread check.
19510 * configure: Regenerate.
19511 * config.h.in: Regenerate.
19512
19513 2006-02-15 Jakub Jelinek <jakub@redhat.com>
19514
19515 PR libgomp/25938
19516 PR libgomp/25984
19517 * Makefile.am (fincludedir): New variable.
19518 (nodist_include_HEADERS): Remove Fortran files.
19519 (nodist_finclude_HEADERS): New variable.
19520 * Makefile.in: Regenerated.
19521
19522 2006-02-13 Jakub Jelinek <jakub@redhat.com>
19523
19524 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19525 Remove tests for returning assumed character length arrays.
19526
19527 2006-02-12 Roger Sayle <roger@eyesopen.com>
19528 John David Anglin <dave@hiauly1.hia.nrc.ca>
19529
19530 PR libgomp/25936
19531 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19532
19533 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
19534
19535 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19536
19537 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19538
19539 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19540 part of LD_LIBRARY_PATH manually.
19541
19542 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
19543
19544 PR libgomp/25852
19545 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19546 libgomp_init.
19547
19548 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
19549
19550 PR libgomp/25884
19551 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19552 * configure.ac (PERL): Don't set.
19553 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19554 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19555 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19556 * omp.h.in: Wrap the new configure substitutions with @ characters.
19557 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19558 * aclocal.m4, configure, Makefile.in: Regenerate.
19559 * mkomp_h.pl: Delete.
19560
19561 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
19562
19563 PR libgomp/25259
19564 * configure.ac: Use GCC_HEADER_STDINT.
19565 * libgomp.h: Include gstdint.h.
19566 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19567 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19568
19569 2006-01-24 Richard Henderson <rth@redhat.com>
19570
19571 PR libgomp/25942
19572 * configure.ac: Add AM_MAINTAINER_MODE.
19573 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19574
19575 2006-01-24 Diego Novillo <dnovillo@redhat.com>
19576
19577 * Makefile.in: Regenerate.
19578 * testsuite/Makefile.in: Regenerate.
19579 * aclocal.m4: Regenerate.
19580
19581 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
19582
19583 * config/posix/proc.c: Conditional include of sys/loadavg.h for
19584 Solaris.
19585 * configure.ac: Add check for loadavg.h.
19586 (link_gomp): Adjust comment.
19587 * configure: Regenerate.
19588 * config.h.in: Regenerate.
19589
19590 2006-01-21 Steve Ellcey <sje@cup.hp.com>
19591
19592 PR libgomp/25877
19593 * configure.ac: Remove check for alloca.h.
19594 * configure: Regenerate.
19595 * config.h.in: Regenerate.
19596 * libgomp.h: define gomp_alloca to be __builtin_alloca.
19597 * team.c: Remove use of alloca.h.
19598 Call gomp_alloca instead of alloca.
19599
19600 2006-01-20 Steve Ellcey <sje@cup.hp.com>
19601
19602 PR libgomp/25877
19603 * team.c: Add include of alloca.h.
19604 * configure.ac: Add check for alloca.h.
19605 * configure: Regenerate.
19606 * config.h.in: Regenerate.
19607
19608 2006-01-17 Jakub Jelinek <jakub@redhat.com>
19609
19610 PR fortran/25219
19611 * testsuite/libgomp.fortran/pr25219.f90: New test.
19612
19613 2005-12-05 Uros Bizjak <uros@kss-loka.si>
19614
19615 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19616 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19617 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19618 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19619 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19620 testsuite/libgomp.fortran/threadprivate1.f90,
19621 testsuite/libgomp.fortran/threadprivate2.f90,
19622 testsuite/libgomp.fortran/threadprivate3.f90,
19623 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19624 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19625 testsuite/libgomp.fortran/omp_parse3.f90: Change required
19626 effective-target to TLS runtime.
19627
19628 * testsuite/libgomp.fortran/pr25162.f: Require
19629 effective-target TLS runtime.
19630
19631 2005-12-01 Jakub Jelinek <jakub@redhat.com>
19632
19633 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19634 * testsuite/libgomp.c/nestedfn-3.c: New test.
19635
19636 2005-11-30 Jakub Jelinek <jakub@redhat.com>
19637
19638 PR fortran/25162
19639 * testsuite/libgomp.fortran/pr25162.f: New test.
19640
19641 2005-11-28 Jakub Jelinek <jakub@redhat.com>
19642
19643 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19644 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19645
19646 2005-11-25 Jakub Jelinek <jakub@redhat.com>
19647
19648 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19649 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19650 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19651 single.c, team.c, work.c, config/linux/alpha/futex.h,
19652 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19653 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19654 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19655 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19656 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19657 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19658 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19659 FSF address.
19660
19661 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19662
19663 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19664 to nodist_noinst_HEADERS.
19665 * Makefile.in: Rebuilt.
19666
19667 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19668 add integer count field.
19669 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19670 omp_nest_lock_t type change.
19671 (omp_init_nest_lock): Likewise. Initialize count to 0.
19672 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19673 Increment count.
19674 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19675 Decrement count.
19676 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19677 Increment count if successful and return the new nesting level.
19678 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19679 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19680 * testsuite/libgomp.c/lib-1.c: New test.
19681 * testsuite/libgomp.fortran/lib1.f90: New test.
19682 * testsuite/libgomp.fortran/lib2.f: New test.
19683 * testsuite/libgomp.fortran/lib3.f: New test.
19684
19685 2005-11-17 Richard Henderson <rth@redhat.com>
19686
19687 PR 24845
19688 * Makefile.am (nodist_toolexeclib_HEADERS): New.
19689 * configure.ac (link_gomp): New. Substitute it.
19690 (AC_CONFIG_FILES): Add libgomp.spec.
19691 * libgomp.spec.in: New file.
19692 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19693 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19694
19695 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19696
19697 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19698 reduction(-:var) behaving the same as reduction(+:var).
19699 * testsuite/libgomp.c/reduction-4.c: New test.
19700
19701 2005-11-15 Uros Bizjak <uros@kss-loka.si>
19702
19703 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19704 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19705 testsuite/libgomp.c/copyin-3.c,
19706 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19707 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19708 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19709 testsuite/libgomp.c++/pr24455.C,
19710 testsuite/libgomp.fortran/threadprivate1.f90,
19711 testsuite/libgomp.fortran/threadprivate2.f90,
19712 testsuite/libgomp.fortran/threadprivate3.f90,
19713 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19714 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19715 testsuite/libgomp.fortran/omp_parse3.f90: Require
19716 effective-target TLS.
19717
19718 2005-11-14 Diego Novillo <dnovillo@redhat.com>
19719
19720 * HEADER: Remove.
19721
19722 2005-11-13 Jakub Jelinek <jakub@redhat.com>
19723
19724 PR libgomp/24797
19725 * team.c (initialize_team): Pass NULL rather than free as
19726 pthread_key_create destructor. Initialize thread specific data
19727 pointer in initial thread to a static local variable rather than
19728 malloced memory.
19729
19730 2005-11-11 Uros Bizjak <uros@kss-loka.si>
19731
19732 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19733 its location to ld_library_path.
19734
19735 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19736
19737 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19738
19739 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19740
19741 * testsuite/libgomp.c: Rename from libgomp.dg.
19742
19743 2005-11-09 Diego Novillo <dnovillo@redhat.com>
19744
19745 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19746 threadprivate variable 'i'.
19747
19748 2005-11-09 Jakub Jelinek <jakub@redhat.com>
19749
19750 * config/linux/s390/futex.h: New file.
19751 * configure.tgt: Use it.
19752
19753 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19754 before the parallel.
19755
19756 2005-11-08 Jakub Jelinek <jakub@redhat.com>
19757
19758 PR c++/24734
19759 * testsuite/libgomp.c++/master-1.C: New test.
19760
19761 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19762
19763 * testsuite/libgomp.dg/copyin-3.c: New test.
19764
19765 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19766
19767 * testsuite/libgomp.fortran/retval1.f90: New test.
19768 * testsuite/libgomp.fortran/vla7.f90: New test.
19769
19770 2005-11-06 Jakub Jelinek <jakub@redhat.com>
19771
19772 * testsuite/libgomp.fortran/vla2.f90: New test.
19773 * testsuite/libgomp.fortran/vla3.f90: New test.
19774 * testsuite/libgomp.fortran/vla4.f90: New test.
19775 * testsuite/libgomp.fortran/vla5.f90: New test.
19776 * testsuite/libgomp.fortran/vla6.f90: New test.
19777
19778 2005-11-01 Jakub Jelinek <jakub@redhat.com>
19779
19780 * config/linux/sparc/futex.h: New file.
19781 * configure.tgt: Use it.
19782 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19783
19784 * critical.c: Include stdlib.h.
19785 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19786 ignoring return value.
19787 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19788 LIBGOMP_CHECK_SYNC_BUILTINS check.
19789 * configure: Rebuilt.
19790
19791 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19792
19793 * testsuite/libgomp.fortran/vla1.f90: New test.
19794
19795 2005-10-31 Richard Henderson <rth@redhat.com>
19796
19797 * testsuite/libgomp.fortran/character2.f90: Fix race condition
19798 setting 's' in different threads.
19799
19800 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19801
19802 * libgomp.h (attribute_hidden, ialias): Define.
19803 * config/posix/proc.c (omp_get_num_procs): Add ialias.
19804 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19805 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19806 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19807 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19808 omp_test_lock, omp_test_nest_lock): Likewise.
19809 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19810 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19811 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19812 omp_test_lock, omp_test_nest_lock): Likewise.
19813 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19814 omp_get_dynamic, omp_get_nested): Likewise.
19815 * parallel.c (omp_get_num_threads, omp_get_max_threads,
19816 omp_get_thread_num, omp_in_parallel): Likewise.
19817 * fortran.c (ialias_redirect): Define.
19818 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19819 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19820 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19821 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19822 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19823 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19824 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19825 omp_get_wtime): Add ialias_redirect.
19826
19827 2005-10-30 Jakub Jelinek <jakub@redhat.com>
19828
19829 * fortran.c: Include stdlib.h.
19830
19831 2005-10-29 Jakub Jelinek <jakub@redhat.com>
19832
19833 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19834 * Makefile.in: Regenerated.
19835
19836 2005-10-28 Jakub Jelinek <jakub@redhat.com>
19837
19838 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19839 * libgomp_f.h.in (omp_check_defines): New function.
19840 * env.c: Include libgomp_f.h.
19841 (initialize_env): Call omp_check_defines.
19842
19843 * testsuite/libgomp.dg/copyin-2.c: New test.
19844 * testsuite/libgomp.c++/copyin-2.C: New test.
19845 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19846
19847 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19848 * testsuite/libgomp.fortran/sharing2.f90: New test.
19849
19850 * testsuite/libgomp.dg/copyin-1.c: New test.
19851 * testsuite/libgomp.c++/copyin-1.C: New test.
19852
19853 2005-10-26 Jakub Jelinek <jakub@redhat.com>
19854
19855 * testsuite/libgomp.fortran/crayptr1.f90: New test.
19856
19857 * testsuite/libgomp.fortran/workshare1.f90: New test.
19858
19859 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19860 only test.
19861 * libgomp.fortran/sharing1.f90: New test.
19862
19863 2005-10-24 Jakub Jelinek <jakub@redhat.com>
19864
19865 PR c++/24502
19866 * testsuite/libgomp.c++/loop-7.C: New test.
19867
19868 * testsuite/libgomp.dg/nestedfn-2.c: New test.
19869
19870 * testsuite/libgomp.dg/nestedfn-1.c: New test.
19871 * testsuite/libgomp.fortran/reduction6.f90: New test.
19872 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19873
19874 2005-10-23 Richard Henderson <rth@redhat.com>
19875
19876 * testsuite/libgomp.c++/ctor-1.C: New.
19877 * testsuite/libgomp.c++/ctor-2.C: New.
19878 * testsuite/libgomp.c++/ctor-3.C: New.
19879 * testsuite/libgomp.c++/ctor-4.C: New.
19880 * testsuite/libgomp.c++/ctor-5.C: New.
19881 * testsuite/libgomp.c++/ctor-6.C: New.
19882 * testsuite/libgomp.c++/ctor-7.C: New.
19883 * testsuite/libgomp.c++/ctor-8.C: New.
19884 * testsuite/libgomp.c++/ctor-9.C: New.
19885
19886 2005-10-21 Diego Novillo <dnovillo@redhat.com>
19887
19888 PR 24455
19889 * testsuite/libgomp.c++/pr24455-1.C: New test.
19890 * testsuite/libgomp.c++/pr24455.C: New test.
19891 * testsuite/libgomp.dg/pr24455-1.c: New test.
19892 * testsuite/libgomp.dg/pr24455.c: New test.
19893
19894 2005-10-20 Richard Henderson <rth@redhat.com>
19895
19896 * testsuite/libgomp.c++/loop-6.C: New.
19897 * testsuite/libgomp.dg/loop-3.c: New.
19898
19899 2005-10-20 Jakub Jelinek <jakub@redhat.com>
19900
19901 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19902 explicitly private.
19903 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19904 explicitly shared.
19905
19906 2005-10-19 Diego Novillo <dnovillo@redhat.com>
19907
19908 * testsuite/libgomp.fortran/jacobi.f: New test.
19909
19910 2005-10-19 Richard Henderson <rth@redhat.com>
19911
19912 * configure.tgt (i?86-linux): Default to with_arch instead of
19913 CFLAGS. Add -mtune to match target_cpu.
19914 (x86_64-linux): Tune to i686.
19915
19916 * fortran.c (omp_test_nest_lock_): Fix typo.
19917
19918 2005-10-19 Jakub Jelinek <jakub@redhat.com>
19919
19920 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19921 gomp_ordered_sync): Do nothing if team->nthreads == 1.
19922 * testsuite/libgomp.dg/ordered-3.c: New test.
19923
19924 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19925 Remove volatile keyword.
19926
19927 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19928 in COMMON block to avoid warnings on 64-bit targets.
19929
19930 2005-10-18 Diego Novillo <dnovillo@redhat.com>
19931
19932 * testsuite/libgomp.dg/shared-3.c: New test.
19933
19934 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19935
19936 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19937 * testsuite/libgomp.fortran/reduction5.f90: New test.
19938
19939 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19940
19941 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19942 dg-options.
19943 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
19944 flush loop now that __sync_synchronize has proper memory barrier.
19945 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19946 Add -ffixed-form to dg-options.
19947
19948 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19949
19950 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19951 from subdirectories.
19952 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19953 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19954 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19955 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19956 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19957 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19958 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19959 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19960 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19961 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19962 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19963 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19964 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19965 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19966 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19967 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19968 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19969 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19970 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19971 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19972 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19973 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19974 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19975 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19976 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19977
19978 2005-10-17 Jakub Jelinek <jakub@redhat.com>
19979
19980 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19981 lang_library_path exists. Use find instead of glob to gather tests.
19982 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19983
19984 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19985
19986 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19987 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19988 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19989 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19990 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19991 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19992 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19993 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19994 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19995 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19996 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19997 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19998 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19999
20000 2005-10-15 Jakub Jelinek <jakub@redhat.com>
20001
20002 * testsuite/libgomp.dg/vla-1.c: New test.
20003
20004 * testsuite/libgomp.fortran/reference2.f90: New test.
20005
20006 * testsuite/libgomp.fortran/character2.f90: Remove explicit
20007 declaration of omp_get_thread_num.
20008 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
20009 use omp_lib.
20010
20011 * testsuite/libgomp.fortran/reduction1.f90: New test.
20012 * testsuite/libgomp.fortran/reduction2.f90: New test.
20013 * testsuite/libgomp.fortran/reduction3.f90: New test.
20014 * testsuite/libgomp.fortran/reduction4.f90: New test.
20015
20016 2005-10-13 Richard Henderson <rth@redhat.com>
20017
20018 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20019 * Makefile.in: Regenerate.
20020 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20021 * libgomp.h: Include bar.h.
20022 (struct gomp_barrier): Remove.
20023 (struct gomp_team): Add barrier. Replace master_barrier with
20024 master_release. Replace threads with ordered_release.
20025 (struct gomp_thread): Replace barrier with release.
20026 * ordered.c (gomp_ordered_first): Update for ordered_release change.
20027 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20028 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20029 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20030 (GOMP_single_copy_end): Likewise.
20031 * team.c (gomp_threads_dock): New.
20032 (gomp_barrier_init, gomp_barrier_destroy): Remove.
20033 (gomp_thread_start): Use gomp_barrier_wait.
20034 (new_team, free_team): Update for gomp_team changes.
20035 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20036 (gomp_team_end): Use gomp_barrier_wait.
20037 (initialize_team): Update for gomp_thread changes.
20038 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20039 (gomp_work_share_end_nowait): Use atomic ops when available.
20040 * config/linux/bar.c, config/linux/bar.h: New files.
20041 * config/posix/bar.c, config/posix/bar.h: New files.
20042
20043 2005-10-13 Jakub Jelinek <jakub@redhat.com>
20044
20045 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20046 * testsuite/libgomp.dg/single-2.c: New test.
20047
20048 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20049 lang_link_flags): Unset, so that they aren't inherited from previously
20050 sourced *.exp.
20051
20052 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20053
20054 2005-10-12 Richard Henderson <rth@redhat.com>
20055
20056 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20057 (libgomp_init): Use lang_test_file, lang_library_path, and
20058 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
20059
20060 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20061 (lang_test_file, lang_link_flags): New.
20062 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20063
20064 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20065 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20066 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20067 testsuite/libgomp.c++/parallel-1.C,
20068 testsuite/libgomp.c++/reduction-1.C,
20069 testsuite/libgomp.c++/reduction-2.C,
20070 testsuite/libgomp.c++/reduction-3.C,
20071 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20072 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20073 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20074 New files, largely cribbed from the C testsuite.
20075
20076 2005-10-12 Jakub Jelinek <jakub@redhat.com>
20077
20078 * testsuite/libgomp.fortran/character1.f90: New test.
20079 * testsuite/libgomp.fortran/character2.f90: New test.
20080
20081 * testsuite/libgomp.dg/nested-1.c: New test.
20082 * testsuite/libgomp.dg/nested-2.c: New test.
20083 * testsuite/libgomp.fortran/do1.f90: New test.
20084 * testsuite/libgomp.fortran/do2.f90: New test.
20085
20086 * testsuite/libgomp.fortran/reference1.f90: New test.
20087
20088 2005-10-11 Jakub Jelinek <jakub@redhat.com>
20089
20090 * testsuite/libgomp.dg/reduction-1.c: New test.
20091 * testsuite/libgomp.dg/reduction-2.c: New test.
20092 * testsuite/libgomp.dg/reduction-3.c: New test.
20093
20094 2005-10-10 Jakub Jelinek <jakub@redhat.com>
20095
20096 * testsuite/libgomp.dg/atomic-1.c: New test.
20097 * testsuite/libgomp.dg/atomic-2.c: New test.
20098
20099 2005-10-09 Richard Henderson <rth@redhat.com>
20100
20101 * critical.c (atomic_lock): New.
20102 (initialize_critical): Initialize it.
20103 (GOMP_atomic_start, GOMP_atomic_end): New.
20104 * libgomp.map: Export them.
20105 * libgomp_g.h: Declare them.
20106
20107 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20108
20109 2005-10-02 Richard Henderson <rth@redhat.com>
20110
20111 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20112 to XCFLAGS instead of CFLAGS.
20113
20114 2005-09-30 Richard Henderson <rth@redhat.com>
20115
20116 * configure.ac: Determine whether -pthread or -lpthread is needed.
20117 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20118 * Makefile.in, configure: Rebuild.
20119
20120 2005-09-28 Richard Henderson <rth@redhat.com>
20121
20122 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20123 * testsuite/libgomp.dg/omp-single-3.c: New test.
20124
20125 2005-09-28 Diego Novillo <dnovillo@redhat.com>
20126
20127 * testsuite/libgomp.dg/omp-single-2.c: New test.
20128 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20129
20130 2005-09-27 Richard Henderson <rth@redhat.com>
20131
20132 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20133 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20134
20135 2005-09-27 Jakub Jelinek <jakub@redhat.com>
20136
20137 * testsuite/libgomp.dg/omp-loop03.c: New test.
20138
20139 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20140
20141 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20142
20143 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20144
20145 * testsuite/libgomp.dg/omp-single-1.c: New test.
20146 * testsuite/libgomp.dg/shared-1.c: Return 0.
20147 Add prototype for abort.
20148 * testsuite/libgomp.dg/shared-2.c: Likewise.
20149
20150 2005-09-26 Jakub Jelinek <jakub@redhat.com>
20151
20152 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20153 constructs.
20154
20155 2005-09-26 Diego Novillo <dnovillo@redhat.com>
20156
20157 * testsuite/libgomp.dg/shared-1.c: New test.
20158 * testsuite/libgomp.dg/shared-2.c: New test.
20159
20160 2005-09-24 Richard Henderson <rth@redhat.com>
20161
20162 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20163
20164 2005-09-24 Richard Henderson <rth@redhat.com>
20165
20166 * iter.c (gomp_iter_static_next): Round up when computing number
20167 of iterations. Don't bother distributing a remainder equally.
20168
20169 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20170 Don't call srand. Zero b before testing.
20171 (main): New.
20172
20173 2005-09-24 Jakub Jelinek <jakub@redhat.com>
20174
20175 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20176 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20177
20178 2005-09-23 Jakub Jelinek <jakub@redhat.com>
20179
20180 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20181 without !$omp end do, followed immediately by subroutine end.
20182
20183 2005-09-23 Diego Novillo <dnovillo@redhat.com>
20184
20185 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20186
20187 2005-09-22 Richard Henderson <rth@redhat.com>
20188
20189 * critical.c (GOMP_critical_name_start): Change argument to void**.
20190 Reuse the pointer space if the mutex fits.
20191 (GOMP_critical_name_end): Likewise.
20192 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20193 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20194 (GOMP_critical_name_end): Likewise.
20195 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20196 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20197
20198 2005-09-20 Richard Henderson <rth@redhat.com>
20199
20200 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20201 (create_lock_lock): New.
20202 (initialize_critical): Initialize it.
20203 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20204 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20205
20206 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20207
20208 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20209
20210 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20211
20212 * testsuite/libgomp.dg/omp-loop01.c: New test.
20213 * testsuite/libgomp.dg/omp-loop02.c: New test.
20214
20215 2005-09-20 Jakub Jelinek <jakub@redhat.com>
20216
20217 * configure.ac (AC_PROG_FC): Add.
20218 (USE_FORTRAN): New automake conditional.
20219 * configure: Rebuilt.
20220 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20221 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20222 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20223 Add rules to build them.
20224 * Makefile.in: Rebuilt.
20225 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20226 OMP_NEST_LOCK_KIND.
20227 * libgomp.map: Add Fortran wrappers.
20228 * libgomp_f.h.in: New file.
20229 * omp_lib.h.in: New file.
20230 * omp_lib.f90.in: New file.
20231 * fortran.c: New file.
20232 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20233 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20234 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20235 libgfortran has been built.
20236 * testsuite/libgomp.fortran/fortran.exp: New file.
20237 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20238 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20239 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20240 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20241 * testsuite/libgomp.fortran/omp_hello.f: New test.
20242 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20243 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20244 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20245 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20246 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20247 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20248 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20249 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20250
20251 2005-08-30 Richard Henderson <rth@redhat.com>
20252
20253 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20254 function for when aliases are not usable.
20255 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20256 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20257 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20258 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20259 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20260 GOMP_loop_ordered_guided_next): Likewise.
20261 * ordered.c (GOMP_ordered_start): Likewise.
20262
20263 2005-08-01 Diego Novillo <dnovillo@redhat.com>
20264
20265 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20266 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20267 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20268 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20269 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20270 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20271 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20272 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20273 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20274
20275 2005-07-07 Eric Christopher <echristo@redhat.com>
20276 Diego Novillo <dnovillo@redhat.com>
20277
20278 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20279 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20280 up code.
20281 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20282 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20283 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20284 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20285 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20286 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20287 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20288
20289 2005-06-13 Diego Novillo <dnovillo@redhat.com>
20290
20291 * TOPLEVEL.patch: Remove.
20292
20293 2005-05-16 Richard Henderson <rth@redhat.com>
20294
20295 * configure.ac: Test for clock_gettime.
20296 * config.h.in, configure: Rebuild.
20297 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20298 (omp_get_wtime): Use clock_gettime if available.
20299 (omp_get_wtick): Use clock_getres if available.
20300
20301 2005-05-11 Richard Henderson <rth@redhat.com>
20302
20303 * config/linux/ia64/futex.h: New file.
20304 * configure.tgt: Use it.
20305
20306 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20307
20308 2005-05-07 Richard Henderson <rth@redhat.com>
20309
20310 * config/linux/powerpc/futex.h: New file.
20311 * configure.tgt: Use it.
20312
20313 * config/linux/i486/futex.h: Merge ...
20314 * config/linux/x86_64/futex.h: ... into ...
20315 * config/linux/x86/futex.h: ... here.
20316 * configure.tgt: Update to match.
20317
20318 2005-05-06 Richard Henderson <rth@redhat.com>
20319
20320 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20321 * config/linux/i486/futex.h: Likewise.
20322 * config/linux/x86_64/futex.h: Likewise.
20323
20324 * config/linux/lock.c: New file.
20325 * config/linux/omp-lock.h: New file.
20326
20327 * critical.c, env.h: Don't include omp.h
20328 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20329 * config/posix/time.c: Likewise.
20330 * config/posix/omp-lock.h: New file.
20331 * libgomp.h: Include omp-lock.h and omp.h.
20332 * Makefile.am (nodist_include_HEADERS): New.
20333 (omp.h): New rule.
20334 * configure.ac (PERL): New.
20335 * mkomp_h.pl: New file.
20336 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20337 with templates.
20338 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20339
20340 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20341 build directory. Re-add -march=i486 hack.
20342
20343 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20344 (libgomp_link_flags): Remove.
20345 (libgomp_initialized): Remove.
20346 (libgomp_init): Don't protect from reinitialization. Copy code
20347 from libstdc++ for getting the multilib set correctly.
20348
20349 2005-05-05 Richard Henderson <rth@redhat.com>
20350
20351 * config/linux/alpha/futex.h: New file.
20352 * configure.tgt (alpha*-*-linux*): Use it.
20353
20354 * config/posix/mutex.c: New file.
20355 * config/posix/sem.c: Use libgomp.h.
20356
20357 * configure.tgt (x86_64-linux): Also test CC for -m32.
20358 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20359
20360 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20361 after $gccpath.
20362
20363 * Makefile.am (SUBDIRS): New.
20364 (libgomp_la_LDFLAGS): Add -lpthread.
20365 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20366 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20367
20368 * libgomp_g.h: New file.
20369 * libgomp.h: Split out all public declarations to libgomp_g.h.
20370 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20371 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20372 * config/linux/sem.h: Likewise.
20373 * config/posix/sem.h: Likewise.
20374
20375 * Makefile.am (AM_LDFLAGS): New.
20376 (libgomp_version_script): Split out from ...
20377 (libgomp_la_LDFLAGS): ... here.
20378 (libgomp_version_info): New.
20379 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20380 (LIBGOMP_ENABLE): New.
20381 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20382 (LIBGOMP_ENABLE_SYMVERS): New.
20383 * configure.ac (AC_INIT): Version 1.0.
20384 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20385 (enable-linux-futex): Likewise. Rename from enable-futex.
20386 (libtool_VERSION): New.
20387 (LIBGOMP_ENABLE_SYMVERS): Use it.
20388 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20389 * Makefile.in, aclocal.m4, configure: Rebuild.
20390
20391 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20392 (gomp_mutex_unlock_slow): Fix typo.
20393 * config/linux/sem.c: Similarly.
20394 (gomp_sem_post_slow): Fix typo.
20395 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20396 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20397 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20398
20399 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20400 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20401 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20402 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20403 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20404 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20405 LDFLAGS. Pull enable_futex check to top-level.
20406 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20407 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20408
20409 First attempt at real configury.
20410 * Makefile, config.h: Remove file.
20411 * Makefile.am, Makefile.in: New file.
20412 * acinclude.m4 aclocal.m4: New file.
20413 * configure.ac, configure.tgt, configure: New file.
20414
20415 * config/posix/lock.c: Rename from sys-lock.c.
20416 * config/posix/mutex.h: Rename from sys-mutex.h.
20417 * config/posix/sem.c: Rename from sys-sem.c.
20418 * config/posix/sem.h: Rename from sys-sem.h.
20419 * config/posix/proc.c: Rename from sys-proc.c.
20420 * config/posix/time.c: Rename from sys-proc.c.
20421
20422 * config/linux/mutex.c: New file.
20423 * config/linux/mutex.h: New file.
20424 * config/linux/sem.c: New file.
20425 * config/linux/sem.h: New file.
20426 * config/linux/i486/futex.h: New file.
20427 * config/linux/x86_64/futex.h: New file.
20428
20429 2005-05-04 Richard Henderson <rth@redhat.com>
20430
20431 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20432 * libgomp.h: Declare them.
20433 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20434 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20435
20436 2005-05-04 Richard Henderson <rth@redhat.com>
20437
20438 * libgomp-1 code drop
20439
20440 2005-05-04 Richard Henderson <rth@redhat.com>
20441
20442 * iter.c (gomp_iter_static_next): Return tri-state on 0.
20443 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20444 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20445 (gomp_iter_static_next): Update.
20446 (gomp_ordered_static_next): Update.
20447 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20448 (gomp_loop_ordered_static_start): Likewise. Exit early for a
20449 totally empty range.
20450 (gomp_loop_ordered_static_next): Refine test for calling
20451 gomp_ordered_static_next.
20452 * testsuite/ordered-1.c: Add case for more threads than iterations.
20453
20454 * iter.c (gomp_iter_runtime_next_locked): Remove.
20455 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20456 gomp_loop_guided_start, gomp_loop_ordered_static_start,
20457 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20458 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20459 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20460 gomp_loop_ordered_guided_next): Downcase name, make static, add
20461 an external alias with the old name.
20462 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20463 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20464 switch and call one of the above static functions.
20465 * libgomp.h: Update.
20466
20467 * work.c (gomp_work_share_start): Lock the mutex for !first too.
20468 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20469 GOMP_loop_guided_start, GOMP_loop_runtime_start,
20470 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20471 GOMP_loop_ordered_guided_start): Update to match.
20472 * sections.c (GOMP_sections_start): Likewise.
20473 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20474
20475 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20476 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20477 Use bounds check instead of modulus.
20478 (gomp_ordered_sync): Split out of GOMP_ordered_start.
20479 (gomp_ordered_last): Don't sync with ordered_owner here.
20480 (gomp_ordered_next): Likewise.
20481 (gomp_ordered_static_loop_next): Likewise.
20482 * loop.c, libgomp.h: Update to match.
20483
20484 * libgomp.h (GOMP_barrier): Declare.
20485
20486 * testsuite/barrier-1.c: New file.
20487 * testsuite/critical-1.c: New file.
20488 * testsuite/ordered-2.c: New file.
20489 * testsuite/ordered-1.c: New file.
20490 * testsuite/sections-1.c: New file.
20491 * testsuite/single-1.c: New file.
20492 * testsuite/Makefile (TESTS): Add them.
20493
20494 2005-05-04 Richard Henderson <rth@redhat.com>
20495
20496 * libgomp.h (struct gomp_work_share): Add ordered_owner.
20497 * loop.c (GOMP_loop_static_start): If not the startup thread,
20498 acquire the mutex to wait for initialization complete.
20499 (GOMP_loop_ordered_static_start): Likewise.
20500 (GOMP_loop_ordered_runtime_start): Likewise.
20501 (GOMP_loop_ordered_static_first): Remove.
20502 (GOMP_loop_ordered_dynamic_first): Remove.
20503 (GOMP_loop_ordered_guided_first): Remove.
20504 (GOMP_loop_ordered_runtime_first): Remove.
20505 * ordered.c (gomp_ordered_loop_first): Post to own release when
20506 we're the first thread.
20507 (gomp_ordered_loop_last): Wait on release if not owner.
20508 (gomp_ordered_loop_next): Likewise.
20509 (gomp_ordered_static_loop_init): New.
20510 (gomp_ordered_static_loop_next): Use ordered_owner.
20511 (GOMP_ordered_start): Likewise.
20512 * work.c (gomp_new_work_share): Initialize ordered_owner.
20513
20514 2005-05-03 Richard Henderson <rth@redhat.com>
20515
20516 * Makefile (OPT): New.
20517 (CFLAGS): Use it.
20518
20519 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20520 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20521 * libgomp.h, libgomp.map, NOTES: Update to match.
20522
20523 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20524 Add initialized and thr members.
20525 (gomp_thread_start): Pause when initially spawned to wait for
20526 the whole team to be created.
20527 (gomp_team_start): Release team members at the end.
20528
20529 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
20530 (f_foo_1): Use GOMP_loop_end.
20531 (f_foo_2): Use GOMP_loop_end_nowait.
20532
20533 * testsuite/loop-2.c: New file.
20534 * testsuite/Makefile (TESTS): Add it.
20535
20536 2005-05-03 Richard Henderson <rth@redhat.com>
20537
20538 * iter.c (gomp_iter_static_next): Fix overflow check typo.
20539 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20540 * team.c (new_team): Initialize oldest_live_gen to 1 if no
20541 initial work_share.
20542
20543 * testsuite/Makefile: New file.
20544 * testsuite/loop-1.c: New file.
20545
20546 2005-05-03 Richard Henderson <rth@redhat.com>
20547
20548 Initial implementation and checkin.
20549 \f
20550 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20551
20552 Copying and distribution of this file, with or without modification,
20553 are permitted in any medium without royalty provided the copyright
20554 notice and this notice are preserved.