]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
607786cd7eff9d1629c284a8f1eedbd6aead093f
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
2
3 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
4 improve wording especially for Fortran; mention -fopenmp-simd.
5 (Enabling OpenACC): Minor cleanup; remove conditional compilation
6 sentinel.
7
8 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
9
10 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
11 Actually document what the function does.
12 (GCC_ACC_NOTIFY): Remove unused env var.
13
14 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
15
16 * libgomp.texi: Replace most future tense by present tense.
17
18 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
19
20 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
21 dg-additional-options "-fdump-tree-gimple"; fix scan.
22
23 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
24
25 * libgomp.texi: Fix some typos.
26 (Memory Management Routines): Document remaining 5.x routines.
27 (Memory allocation): Make clear when the section applies.
28
29 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
30
31 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
32 supports the allocate directive for stack variables.
33 * testsuite/libgomp.fortran/allocate-5.f90: New test.
34 * testsuite/libgomp.fortran/allocate-6.f90: New test.
35 * testsuite/libgomp.fortran/allocate-7.f90: New test.
36 * testsuite/libgomp.fortran/allocate-8.f90: New test.
37
38 2023-10-12 Tobias Burnus <tobias@codesourcery.com>
39
40 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
41 OMP_TARGET_OFFLOAD.
42 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
43 clarify MANDATORY behavior.
44
45 2023-10-12 Zhang, Jun <jun.zhang@intel.com>
46
47 * env.c (initialize_env): Use do_adjust_default_spincount.
48 * config/linux/x86/spincount.h: New file.
49
50 2023-10-08 Tobias Burnus <tobias@codesourcery.com>
51
52 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
53
54 2023-10-06 Tobias Burnus <tobias@codesourcery.com>
55
56 * libgomp.texi (Device Memory Routines): New.
57
58 2023-10-04 Tobias Burnus <tobias@codesourcery.com>
59
60 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
61 and that other target archs have no 'arch'/'isa' traits implemented.
62
63 2023-09-20 Tobias Burnus <tobias@codesourcery.com>
64
65 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
66 implemented for C only.
67 * testsuite/libgomp.c/allocate-4.c: New test.
68 * testsuite/libgomp.c/allocate-5.c: New test.
69 * testsuite/libgomp.c/allocate-6.c: New test.
70
71 2023-09-20 Jakub Jelinek <jakub@redhat.com>
72
73 PR c++/111392
74 * libgomp.texi: Mark decl attribute was added to the C++ attribute
75 syntax as implemented.
76
77 2023-09-19 Jakub Jelinek <jakub@redhat.com>
78
79 PR libgomp/111413
80 * env.c (initialize_env): Don't dereference environ if it is NULL.
81 Reindent.
82
83 2023-09-18 Richard Biener <rguenther@suse.de>
84
85 PR tree-optimization/111294
86 * team.c (gomp_team_start): Assert alloca size to avoid false
87 positive alloc-size diagnostic.
88
89 2023-09-12 Thomas Schwinge <thomas@codesourcery.com>
90 Chung-Lin Tang <cltang@codesourcery.com>
91
92 PR testsuite/91884
93 PR testsuite/109951
94 * configure.ac: Revert earlier changes, instead
95 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
96 * Makefile.in: Regenerate.
97 * configure: Likewise.
98 * testsuite/Makefile.in: Likewise.
99 * testsuite/lib/libgomp.exp (libgomp_init): Remove
100 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
101 If '--with-build-sysroot=[...]' was specified, use it for
102 build-tree testing.
103 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
104 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
105 (SYSROOT_CFLAGS_FOR_TARGET): Set.
106 * testsuite/libgomp.c++/c++.exp (lang_source_re)
107 (lang_include_flags): Set for build-tree testing.
108 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
109 (lang_include_flags): Likewise.
110
111 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
112
113 * libgomp.texi (Memory Management Routines): New; add documentation for
114 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
115 omp_get_default_allocator.
116 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
117
118 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
119
120 * target.c (gomp_unload_device): Remove tailing whitespace.
121
122 2023-09-04 Tobias Burnus <tobias@codesourcery.com>
123 Thomas Schwinge <thomas@codesourcery.com>
124
125 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
126
127 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
128
129 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
130
131 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
132
133 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
134 * testsuite/libgomp.fortran/imperfect1.f90: New.
135 * testsuite/libgomp.fortran/imperfect2.f90: New.
136 * testsuite/libgomp.fortran/imperfect3.f90: New.
137 * testsuite/libgomp.fortran/imperfect4.f90: New.
138 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
139 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
140 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
141 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
142
143 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
144
145 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
146 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
147 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
148 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
149 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
150 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
151 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
152 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
153 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
154 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
155
156 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
157
158 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
159 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
160 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
161 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
162 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
163 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
164 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
165 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
166 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
167 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
168 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
169 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
170 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
171
172 2023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
173
174 * testsuite/lib/libgomp.exp: Add effective target.
175 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
176 functions.
177
178 2023-08-22 Tobias Burnus <tobias@codesourcery.com>
179
180 * libgomp.texi (OpenMP 5.2 status): Add depobj with
181 destroy-var argument as 'N'. Mark defaultmap with
182 'all' category as 'Y'.
183
184 2023-08-19 Tobias Burnus <tobias@codesourcery.com>
185
186 PR middle-end/111017
187 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
188
189 2023-08-17 Tobias Burnus <tobias@codesourcery.com>
190
191 PR libgomp/111024
192 * allocator.c (gomp_init_libnuma): Call numa_available; if
193 not available or not returning 0, disable libnuma usage.
194
195 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
196
197 * configure: Regenerate.
198
199 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
200
201 * configure: Regenerate.
202
203 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
204
205 * configure: Regenerate.
206
207 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
208
209 * configure: Regenerate.
210
211 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
212
213 * configure: Regenerate.
214
215 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
216
217 * configure: Regenerate.
218
219 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
220
221 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
222 GOMP_OFFLOAD_CAP_SHARED_MEM.
223 (omp_target_memcpy_rect_copy): Likewise for lock condition.
224 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
225 memcpy3d/memcpy2d.
226 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
227 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
228 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
229
230 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
231
232 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
233 GOMP_OFFLOAD_memcpy3d): New prototypes.
234 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
235 and memcpy3d_func.
236 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
237 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
238 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
239 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
240 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
241 GOMP_OFFLOAD_memcpy3d): New.
242 * target.c (omp_target_memcpy_rect_worker):
243 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
244 Permit all device-to-device copyies; invoke new plugins for
245 2D and 3D copying when available.
246 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
247 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
248 * testsuite/libgomp.fortran/target-12.f90: Likewise.
249 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
250
251 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
252
253 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
254 (Tasking Routines): Document omp_in_explicit_task.
255 (Implementation-defined ICV Initialization): Use @ref not @code.
256
257 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
258
259 * libgomp.texi (OpenMP Runtime Library Routines):
260 Split long list by adding sections and moving routines there.
261 (OMP_ALLOCATORS): Fix typo.
262
263 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
264
265 PR fortran/107424
266 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
267 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
268 commented tests.
269 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
270 test file; tests are in non-rectangular-loop-1.f90.
271 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
272 testcase to use a non-constant step to retain the 'sorry' test.
273 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
274
275 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
276 Chung-Lin Tang <cltang@codesourcery.com>
277
278 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
279 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
280
281 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
282
283 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
284 the traits. Add crossref to 'Memory allocation'.
285 (Memory allocation): Refer to OMP_ALLOCATOR for the available
286 traits and allocators/mem spaces; document the default value
287 for the pool_size trait.
288
289 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
290
291 * allocator.c (omp_init_allocator): Check whether symbol from
292 dlopened libnuma is available before using libnuma for
293 allocations.
294
295 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
296
297 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
298 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
299 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
300
301 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
302
303 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
304 'Memory allocation' section which contains the full status.
305 (TR11): Remove differently worded duplicated entry.
306
307 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
308
309 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
310 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
311 add GOMP_MEMKIND_LIBNUMA.
312 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
313 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
314 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
315 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
316 needed.
317 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
318 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
319 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
320 updated for libnuma usage.
321 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
322 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
323
324 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
325
326 * allocator.c (omp_init_allocator): Use malloc for
327 omp_high_bw_mem_space when the memkind lib is unavailable
328 instead of returning omp_null_allocator.
329 * libgomp.texi (OpenMP 5.0): Fix typo.
330 (Memory allocation with libmemkind): Document implementation
331 in more detail.
332
333 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
334
335 * libgomp.texi: Use @var for ICV vars.
336 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
337 document which ICV is set and which scope the ICV has; extend/cleanup
338 some @ref.
339 (Implementation-defined ICV Initialization): New.
340 (nvptx): Document the implementation-defined used per-warp stack size.
341
342 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
343
344 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
345 error.
346
347 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
348
349 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
350 as expected dg-output.
351
352 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
353
354 PR middle-end/110270
355 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
356 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
357 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
358 * testsuite/libgomp.c/target-19.c: Update expected value.
359 * testsuite/libgomp.c++/target-18.C: Likewise.
360 * testsuite/libgomp.c++/target-19.C: Likewise.
361 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
362 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
363 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
364
365 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
366
367 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
368 gomp_init_targets_once was called before using default-device-var.
369 * testsuite/libgomp.c/target-55.c: New test.
370 * testsuite/libgomp.c/target-55a.c: New test.
371
372 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
373
374 * env.c (gomp_def_allocator_envvar): New var.
375 (parse_allocator): Handle OpenMP 5.1 syntax.
376 (cleanup_env): New.
377 (omp_display_env): Output gomp_def_allocator_envvar
378 for an allocator with traits.
379 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
380 OMP_DISPLAY_AFFINITY): New.
381 * testsuite/libgomp.c/allocator-1.c: New test.
382 * testsuite/libgomp.c/allocator-2.c: New test.
383 * testsuite/libgomp.c/allocator-3.c: New test.
384 * testsuite/libgomp.c/allocator-4.c: New test.
385 * testsuite/libgomp.c/allocator-5.c: New test.
386 * testsuite/libgomp.c/allocator-6.c: New test.
387
388 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
389
390 * target.c (resolve_device): Align a
391 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
392 * testsuite/libgomp.c/target-51.c: Adjust.
393
394 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
395
396 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
397 set.
398 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
399 Likewise.
400 * testsuite/libgomp.c/simd-math-1.c: Remove
401 '-foffload-options=-lm'.
402 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
403 Likewise.
404 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
405 Likewise.
406
407 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
408
409 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
410 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
411 Likewise.
412
413 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
414
415 * testsuite/libgomp.c/target-51.c: Fix typo.
416
417 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
418
419 * env.c (gomp_default_icv_values): Init default_device_var to
420 an nonconforming value - INT_MIN.
421 (initialize_env): After env-var parsing, set default_device_var to
422 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
423 (omp_display_env): If default_device_var is INT_MIN, call
424 gomp_init_targets_once.
425 * icv-device.c (omp_get_default_device): Likewise.
426 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
427 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
428 * target.c (resolve_device): Improve error message device-num < 0
429 with 'mandatory' and no no-host devices available.
430 (gomp_target_init): Set default-device-var if INT_MIN.
431 * testsuite/libgomp.c/target-48.c: New test.
432 * testsuite/libgomp.c/target-49.c: New test.
433 * testsuite/libgomp.c/target-50.c: New test.
434 * testsuite/libgomp.c/target-50a.c: New test.
435 * testsuite/libgomp.c/target-51.c: New test.
436 * testsuite/libgomp.c/target-52.c: New test.
437 * testsuite/libgomp.c/target-53.c: New test.
438 * testsuite/libgomp.c/target-54.c: New test.
439
440 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
441
442 PR libgomp/109837
443 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
444 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
445
446 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
447
448 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
449 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
450 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
451 error message.
452 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
453 changed error message.
454 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
455 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
456 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
457 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
458 extend testcase to check that data is copied when needed.
459 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
460 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
461
462 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
463 Tobias Burnus <tobias@codesourcery.com>
464
465 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
466 also for non-offload_device targets; check that it runs
467 successfully for those and for all until a checkpoint for all
468 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
469 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
470 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
471 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
472 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
473 add missing vars to map clause.
474
475 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
476
477 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
478 unified_address requirement as supported.
479 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
480 'unified_address' from the not-supported requirements.
481
482 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
483 Tobias Burnus <tobias@codesourcery.com>
484
485 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
486 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
487 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
488 modifier.
489 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
490 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
491 Emit runtime error if memory region not present.
492 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
493 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
494 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
495 * testsuite/libgomp.fortran/target-present-1.f90: New test.
496 * testsuite/libgomp.fortran/target-present-2.f90: New test.
497 * testsuite/libgomp.fortran/target-present-3.f90: New test.
498
499 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
500
501 PR testsuite/66005
502 * testsuite/lib/libgomp.exp: 'flock' through stdout.
503 * testsuite/flock: New.
504 * configure.ac (FLOCK): Point to that if no 'flock' available, but
505 'perl' is.
506 * configure: Regenerate.
507
508 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
509
510 * configure.ac (PERL): Remove.
511 * configure: Regenerate.
512 * Makefile.in: Likewise.
513 * testsuite/Makefile.in: Likewise.
514
515 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
516
517 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
518
519 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
520
521 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
522
523 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
524
525 PR libgomp/109875
526 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
527 * config/nvptx/target.c (GOMP_teams4): Likewise.
528 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
529 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
530 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
531 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
532
533 2023-05-19 Jakub Jelinek <jakub@redhat.com>
534
535 PR libgomp/109904
536 * configure.ac (link_gomp): Include also $DL_LIBS.
537 * configure: Regenerated.
538
539 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
540
541 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
542 'target exit data'.
543 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
544 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
545 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
546 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
547
548 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
549
550 PR testsuite/66005
551 * configure.ac: Look for 'flock'.
552 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
553 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
554 * testsuite/lib/libgomp.exp: ... but here, instead.
555 (libgomp_load): Override for parallel testing.
556 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
557 * configure: Regenerate.
558 * Makefile.in: Regenerate.
559 * testsuite/Makefile.in: Regenerate.
560
561 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
562 Thomas Schwinge <thomas@codesourcery.com>
563
564 PR testsuite/66005
565 * testsuite/Makefile.am (PWD_COMMAND): New variable.
566 (%/site.exp): New target.
567 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
568 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
569 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
570 (check_p_subdirs)
571 (check_DEJAGNU_libgomp_targets): New variables.
572 ($(check_DEJAGNU_libgomp_targets)): New target.
573 ($(check_DEJAGNU_libgomp_targets)): New dependency.
574 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
575 * testsuite/Makefile.in: Regenerate.
576 * testsuite/lib/libgomp.exp: For parallel testing,
577 'load_file ../libgomp-test-support.exp'.
578
579 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
580
581 PR testsuite/91884
582 * configure.ac: 'AC_SUBST(CXX)'.
583 * configure: Regenerate.
584 * Makefile.in: Likewise.
585 * testsuite/Makefile.in: Likewise.
586 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
587 (GFORTRAN_UNDER_TEST): Set.
588 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
589 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
590 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
591 * testsuite/libgomp.fortran/fortran.exp: Use
592 'GFORTRAN_UNDER_TEST'.
593 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
594
595 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
596
597 PR testsuite/91884
598 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
599 specify compiler.
600 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
601 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
602 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
603 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
604 Likewise.
605 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
606 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
607 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
608 Likewise.
609
610 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
611
612 PR libstdc++/109816
613 * testsuite/libgomp.c++/target-map-class-1.C: New test.
614 * testsuite/libgomp.c++/target-map-class-2.C: New test.
615
616 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
617
618 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
619 'lang_library_path' into a list of 'lang_library_paths'.
620 * testsuite/libgomp.c++/c++.exp: Adjust.
621 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
622 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
623 libquadmath, too.
624 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
625
626 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
627
628 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
629 at 'lang_test_file_found'.
630 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
631 'return' early if not able to test. Simplify 'ld_library_path' setup.
632 * testsuite/libgomp.fortran/fortran.exp: Likewise.
633 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
634 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
635
636 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
637
638 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
639 first.
640 * testsuite/libgomp.fortran/fortran.exp: Likewise.
641 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
642 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
643
644 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
645
646 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
647 * testsuite/libgomp.c/c.exp: Likewise.
648 * testsuite/libgomp.fortran/fortran.exp: Likewise.
649 * testsuite/libgomp.graphite/graphite.exp: Likewise.
650 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
651 * testsuite/libgomp.oacc-c/c.exp: Likewise.
652 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
653
654 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
655
656 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
657 * testsuite/libgomp.fortran/fortran.exp: Likewise.
658 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
659 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
660 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
661 'lang_test_file'.
662 * testsuite/libgomp.oacc-c/c.exp: Likewise.
663 * testsuite/libgomp.graphite/graphite.exp: Likewise.
664 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
665 'lang_test_file_found' instead of 'lang_test_file'.
666
667 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
668
669 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
670 set.
671 * testsuite/libgomp.c++/c++.exp: Likewise.
672 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
673
674 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
675
676 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
677 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
678
679 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
680
681 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
682 of 'libstdcxx_includes'.
683 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
684
685 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
686
687 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
688 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
689 * libgomp.h (gomp_target_rev): Adjust.
690 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
691 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
692 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
693 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
694 (rev_off_host_to_dev_cpy): Remove.
695 (GOMP_OFFLOAD_run): Adjust.
696
697 2023-05-04 Julian Brown <julian@codesourcery.com>
698
699 PR fortran/109622
700 * testsuite/libgomp.fortran/pr109622.f90: Move test...
701 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
702 vector length warning.
703 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
704 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
705 missing copyin/copyout variable. Ignore vector length warnings.
706 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
707 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
708 vector length warnings.
709 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
710
711 2023-04-28 Julian Brown <julian@codesourcery.com>
712
713 PR fortran/109622
714 * testsuite/libgomp.fortran/pr109622.f90: New test.
715 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
716 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
717
718 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
719
720 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
721 * testsuite/libgomp.c/scan-23.c: New test.
722 * testsuite/libgomp.fortran/scan-2.f90: New test.
723
724 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
725
726 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
727 weak_undefined options.
728
729 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
730
731 * libgomp.texi (Offload-Target Specifics): Grammar fix.
732
733 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
734
735 PR fortran/104949
736 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
737 caveat/safeguard.
738
739 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
740
741 PR libgomp/90596
742 * target.c (gomp_map_vars_internal): Allow for
743 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
744 * oacc-parallel.c (GOACC_parallel_keyed): Pass
745 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
746 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
747 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
748 Adjust, simplify.
749 (gomp_offload_free): Remove.
750 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
751 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
752 (cuda_free_argmem): Remove.
753 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
754 Adjust.
755
756 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
757
758 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
759 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
760 data.
761
762 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
763
764 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
765 'GOMP_MAP_IF_PRESENT'.
766 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
767 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
768 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
769 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
770 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
771 testing.
772 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
773
774 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
775
776 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
777 shortcut.
778
779 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
780
781 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
782 another aspect of OpenACC 'async' semantics.
783
784 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
785
786 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
787 position.
788 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
789 Verify 'acc_ev_alloc', 'acc_ev_free'.
790
791 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
792
793 PR libgomp/109062
794 * env.c (wait_policy): Initialize to -1.
795 (initialize_icvs): Initialize icvs->wait_policy to -1.
796 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
797
798 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
799
800 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
801
802 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
803 Paul-Antoine Arras <pa@codesourcery.com>
804
805 * testsuite/libgomp.c/simd-math-1.c: New testcase.
806
807 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
808
809 PR middle-end/108546
810 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
811 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
812
813 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
814
815 * testsuite/libgomp.fortran/alloc-10.f90: Use
816 '-Wno-complain-wrong-lang'.
817 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
818 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
819 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
820 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
821 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
822 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
823 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
824 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
825 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
826 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
827 Likewise.
828 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
829 Likewise.
830 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
831 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
832 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
833 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
834 'dg-prune-output'.
835
836 2023-02-16 Jakub Jelinek <jakub@redhat.com>
837
838 * libgomp.texi: Fix typos - theads -> threads.
839
840 2023-02-16 Jakub Jelinek <jakub@redhat.com>
841
842 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
843 comment typo and improve its wording.
844
845 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
846
847 * target.c (gomp_target_rev): Dereference ptr
848 to get device address.
849 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
850 for unallocated allocatable.
851
852 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
853
854 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
855 kind check.
856 (GOMP_target_enter_exit_data): If the next map item is
857 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
858 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
859
860 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
861
862 PR fortran/107424
863 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
864 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
865 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
866 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
867 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
868 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
869
870 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
871
872 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
873 offloading compilation.
874
875 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
876
877 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
878 freeing not allocated memory.
879 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
880
881 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
882
883 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
884 reverse offload.
885 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
886 reverse-offload requirement.
887
888 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
889
890 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
891 (DEFAULT_TEAM_ARENA_SIZE): New define.
892 (struct heap): Move to this file.
893 (struct kernargs_abi): Likewise.
894 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
895 the kernargs.
896 * libgomp.h: Include libgomp-gcn.h.
897 (TEAM_ARENA_SIZE): Remove.
898 (team_malloc): Update the error message.
899 * plugin/plugin-gcn.c (struct kernargs): Move common content to
900 struct kernargs_abi.
901 (struct agent_info): Rename team arenas to ephemeral memories.
902 (struct team_arena_list): Rename ....
903 (struct ephemeral_memories_list): to this.
904 (struct heap): Delete.
905 (team_arena_size): New variable.
906 (stack_size): New variable.
907 (print_kernel_dispatch): Update debug messages.
908 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
909 Read GCN_STACK_SIZE.
910 (get_team_arena): Rename ...
911 (configure_ephemeral_memories): ... to this, and set up stacks.
912 (release_team_arena): Rename ...
913 (release_ephemeral_memories): ... to this.
914 (destroy_team_arenas): Rename ...
915 (destroy_ephemeral_memories): ... to this.
916 (create_kernel_dispatch): Add num_threads parameter.
917 Adjust for kernargs_abi refactor and ephemeral memories.
918 (release_kernel_dispatch): Adjust for ephemeral memories.
919 (run_kernel): Pass thread-count to create_kernel_dispatch.
920 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
921 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
922
923 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
924
925 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
926
927 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
928
929 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
930 usage, remove unused -fdump-tree-original.
931 * testsuite/libgomp.fortran/allocate-4.f90: New.
932
933 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
934
935 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
936 (GCN): Add item about 'omp requires'.
937 (nvptx): Likewise; add item about reverse offload.
938
939 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
940
941 PR fortran/108558
942 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
943
944 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
945
946 * libgomp.texi (OpenMP 5.0): Set non-rectangular
947 loop nest back to 'P' as Fortran support is incomplete.
948
949 2023-01-19 Jakub Jelinek <jakub@redhat.com>
950
951 PR middle-end/108459
952 * testsuite/libgomp.c/pr108459.c: New test.
953
954 2023-01-17 Martin Liska <mliska@suse.cz>
955
956 * Makefile.in: Regenerate.
957 * configure: Regenerate.
958
959 2023-01-07 LIU Hao <lh_mouse@126.com>
960
961 PR middle-end/108300
962 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
963 <windows.h>.
964
965 2023-01-05 Jakub Jelinek <jakub@redhat.com>
966
967 PR c++/108286
968 * testsuite/libgomp.c++/pr108286.C: New test.
969
970 2023-01-02 Jakub Jelinek <jakub@redhat.com>
971
972 * libgomp.texi: Bump @copying's copyright year.
973
974 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
975
976 PR target/99555
977 * config/nvptx/bar.c (generation_to_barrier): Remove.
978 (futex_wait,futex_wake,do_spin,do_wait): Remove.
979 (GOMP_WAIT_H): Remove.
980 (#include "../linux/bar.c"): Remove.
981 (gomp_barrier_wait_end): New function.
982 (gomp_barrier_wait): Likewise.
983 (gomp_barrier_wait_last): Likewise.
984 (gomp_team_barrier_wait_end): Likewise.
985 (gomp_team_barrier_wait): Likewise.
986 (gomp_team_barrier_wait_final): Likewise.
987 (gomp_team_barrier_wait_cancel_end): Likewise.
988 (gomp_team_barrier_wait_cancel): Likewise.
989 (gomp_team_barrier_cancel): Likewise.
990 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
991 (gomp_barrier_init): Remove init of waiters, lock fields.
992 (gomp_team_barrier_wake): Remove prototype, add new static inline
993 function.
994
995 2022-12-21 Jakub Jelinek <jakub@redhat.com>
996
997 PR c++/108180
998 * testsuite/libgomp.c++/pr108180.C: New test.
999
1000 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
1001
1002 PR libfortran/108056
1003 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1004 accidentally added file.
1005
1006 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
1007
1008 PR libfortran/108056
1009 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1010
1011 2022-12-14 Julian Brown <julian@codesourcery.com>
1012
1013 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1014 test.
1015
1016 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
1017
1018 * libgomp.h (struct target_mem_desc): Predeclare; move
1019 below after 'reverse_splay_tree_node' and add rev_array
1020 member.
1021 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1022 (reverse_splay_tree_node, reverse_splay_tree,
1023 reverse_splay_tree_key): New typedef.
1024 (struct gomp_device_descr): Add mem_map_rev member.
1025 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1026 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1027 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1028 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1029 splay_tree_callback but returning int not void.
1030 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1031 taking splay_tree_callback_stop as argument.
1032 * splay-tree.c (splay_tree_foreach_internal_lazy,
1033 splay_tree_foreach_lazy): New; but early exit if callback returns
1034 nonzero.
1035 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1036 (gomp_map_lookup_rev): New.
1037 (gomp_load_image_to_device): Handle reverse-offload function
1038 lookup table.
1039 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1040 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1041 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1042 gomp_map_cdata_lookup): New auxiliary structs and functions for
1043 gomp_target_rev.
1044 (gomp_target_rev): Implement reverse offloading and its mapping.
1045 (gomp_target_init): Init current_device.mem_map_rev.root.
1046 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1047 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1048 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1049 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1050 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1051 mapping of on-device allocated variables.
1052
1053 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
1054
1055 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1056 item about 'align'; mark clause as 'Y' and directive as 'N'.
1057 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1058 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1059
1060 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1061
1062 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1063 allow processing of device-specific values.
1064 (omp_set_teams_thread_limit): Likewise.
1065 (ialias): Likewise.
1066 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1067 (omp_set_teams_thread_limit): Likewise.
1068 (ialias): Likewise.
1069 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1070 (ialias): Likewise.
1071 (omp_set_teams_thread_limit): Likewise.
1072 * icv.c (omp_set_teams_thread_limit): Removed.
1073 (omp_get_teams_thread_limit): Likewise.
1074 (ialias): Likewise.
1075 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1076 to the limitation of the number of teams.
1077 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1078 the number of teams by twice the number of compute units.
1079 (parse_target_attributes): Limit the number of teams on gcn offload
1080 devices.
1081 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1082 handling.
1083 (gomp_load_image_to_device): Added a size check for the ICVs struct
1084 variable.
1085 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1086 copy back the ICV values from device to host.
1087 (GOMP_target_ext): Update the number of teams and threads in the kernel
1088 args also considering device-specific values.
1089 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1090 of OMP_TEAMS_THREAD_LIMIT from the environment.
1091 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1092 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1093 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1094 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1095 * testsuite/libgomp.fortran/icv-5.f90: New test.
1096 * testsuite/libgomp.fortran/icv-6.f90: New test.
1097
1098 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
1099
1100 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1101 (TR11): Add missing '@tab N @tab'.
1102
1103 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
1104
1105 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1106
1107 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1108
1109 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1110 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1111 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1112 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1113 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1114 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1115 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1116
1117 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
1118
1119 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1120
1121 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1122
1123 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1124 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1125 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1126 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1127
1128 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1129
1130 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1131 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1132 as valid and the code having no reverse-offload code.
1133 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1134
1135 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1136
1137 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1138 and status for Technical Report (TR) 11.
1139
1140 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
1141
1142 * config/gcn/libgomp-gcn.h (struct output):
1143 Remove 'msg_u64' from the union, change
1144 value_u64[2] to value_u64[6].
1145 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1146 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1147 Likewise.
1148
1149 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
1150
1151 * config/gcn/libgomp-gcn.h: New file; contains
1152 struct output, declared previously in plugin-gcn.c.
1153 * config/gcn/target.c: Include it.
1154 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1155 (GOMP_target_ext): Handle reverse offload.
1156 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1157 (struct kernargs): Replace struct def by the one
1158 from libgomp-gcn.h for output_data.
1159 (process_reverse_offload): New.
1160 (console_output): Call it.
1161
1162 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
1163 Andrew Stubbs <ams@codesourcery.com>
1164
1165 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1166 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1167
1168 2022-11-14 Martin Liska <mliska@suse.cz>
1169
1170 Revert:
1171 2022-11-14 Martin Liska <mliska@suse.cz>
1172
1173 * doc/amd-radeon-gcn.rst: New file.
1174 * doc/conf.py: New file.
1175 * doc/copyright.rst: New file.
1176 * doc/cuda-streams-usage.rst: New file.
1177 * doc/enabling-openacc.rst: New file.
1178 * doc/enabling-openmp.rst: New file.
1179 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1180 * doc/first-invocation-openacc-library-api.rst: New file.
1181 * doc/funding.rst: New file.
1182 * doc/general-public-license-3.rst: New file.
1183 * doc/gnu-free-documentation-license.rst: New file.
1184 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1185 * doc/index.rst: New file.
1186 * doc/indices-and-tables.rst: New file.
1187 * doc/introduction.rst: New file.
1188 * doc/memory-allocation-with-libmemkind.rst: New file.
1189 * doc/nvptx.rst: New file.
1190 * doc/offload-target-specifics.rst: New file.
1191 * doc/openacc-environment-variables.rst: New file.
1192 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1193 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1194 * doc/openacc-environment-variables/accproflib.rst: New file.
1195 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1196 * doc/openacc-introduction.rst: New file.
1197 * doc/openacc-library-and-environment-variables.rst: New file.
1198 * doc/openacc-library-interoperability.rst: New file.
1199 * doc/openacc-profiling-interface.rst: New file.
1200 * doc/openacc-runtime-library-routines.rst: New file.
1201 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1202 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1203 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1204 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1205 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1206 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1207 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1208 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1209 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1210 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1211 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1212 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1213 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1214 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1215 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1216 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1217 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1218 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1219 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1220 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1221 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1222 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1223 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1224 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1225 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1226 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1227 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1228 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1229 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1230 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1231 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1232 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1233 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1234 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1235 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1236 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1237 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1238 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1239 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1240 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1241 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1242 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1243 * doc/openmp-context-selectors.rst: New file.
1244 * doc/openmp-environment-variables.rst: New file.
1245 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1246 * doc/openmp-environment-variables/gompdebug.rst: New file.
1247 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1248 * doc/openmp-environment-variables/gompspincount.rst: New file.
1249 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1250 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1251 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1252 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1253 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1254 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1255 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1256 * doc/openmp-environment-variables/ompnested.rst: New file.
1257 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1258 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1259 * doc/openmp-environment-variables/ompplaces.rst: New file.
1260 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1261 * doc/openmp-environment-variables/ompschedule.rst: New file.
1262 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1263 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1264 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1265 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1266 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1267 * doc/openmp-implementation-specifics.rst: New file.
1268 * doc/openmp-implementation-status.rst: New file.
1269 * doc/openmp-implementation-status/openmp-45.rst: New file.
1270 * doc/openmp-implementation-status/openmp-50.rst: New file.
1271 * doc/openmp-implementation-status/openmp-51.rst: New file.
1272 * doc/openmp-implementation-status/openmp-52.rst: New file.
1273 * doc/openmp-runtime-library-routines.rst: New file.
1274 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1275 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1276 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1277 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1278 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1279 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1280 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1281 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1282 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1283 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1284 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1285 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1286 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1287 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1288 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1289 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1290 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1291 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1292 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1293 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1294 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1295 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1296 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1297 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1298 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1299 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1300 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1301 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1302 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1303 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1304 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1305 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1306 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1307 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1308 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1309 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1310 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1311 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1312 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1313 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1314 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1315 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1316 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1317 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1318 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1319 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1320 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1321 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1322 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1323 * doc/reporting-bugs.rst: New file.
1324 * doc/the-libgomp-abi.rst: New file.
1325 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1326 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1327 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1328 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1329 New file.
1330 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1331 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1332 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1333 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1334 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1335 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1336 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1337 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1338 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1339 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1340 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1341
1342 2022-11-14 Martin Liska <mliska@suse.cz>
1343
1344 Revert:
1345 2022-11-14 Martin Liska <mliska@suse.cz>
1346
1347 * Makefile.in: Support Sphinx based documentation.
1348
1349 2022-11-14 Martin Liska <mliska@suse.cz>
1350
1351 Revert:
1352 2022-11-14 Martin Liska <mliska@suse.cz>
1353
1354 * libgomp.texi: Removed.
1355
1356 2022-11-14 Martin Liska <mliska@suse.cz>
1357
1358 Revert:
1359 2022-11-14 Martin Liska <mliska@suse.cz>
1360
1361 * Makefile.in: Support --with-sphinx-build.
1362 * configure.ac: Likewise..
1363 * configure: Regenerate.
1364
1365 2022-11-14 Martin Liska <mliska@suse.cz>
1366
1367 Revert:
1368 2022-11-09 Martin Liska <mliska@suse.cz>
1369
1370 * Makefile.in: Build info pages conditionally.
1371
1372 2022-11-14 Martin Liska <mliska@suse.cz>
1373
1374 Revert:
1375 2022-11-14 Martin Liska <mliska@suse.cz>
1376
1377 * doc/amd-radeon-gcn.rst:
1378 Add trailing newline.
1379 * doc/copyright.rst:
1380 Add trailing newline.
1381 * doc/cuda-streams-usage.rst:
1382 Add trailing newline.
1383 * doc/enabling-openacc.rst:
1384 Add trailing newline.
1385 * doc/enabling-openmp.rst:
1386 Add trailing newline.
1387 * doc/first-invocation-nvidia-cublas-library-api.rst:
1388 Add trailing newline.
1389 * doc/first-invocation-openacc-library-api.rst:
1390 Add trailing newline.
1391 * doc/funding.rst:
1392 Add trailing newline.
1393 * doc/general-public-license-3.rst:
1394 Add trailing newline.
1395 * doc/gnu-free-documentation-license.rst:
1396 Add trailing newline.
1397 * doc/implementation-status-and-implementation-defined-behavior.rst:
1398 Add trailing newline.
1399 * doc/index.rst:
1400 Add trailing newline.
1401 * doc/indices-and-tables.rst:
1402 Add trailing newline.
1403 * doc/introduction.rst:
1404 Add trailing newline.
1405 * doc/memory-allocation-with-libmemkind.rst:
1406 Add trailing newline.
1407 * doc/nvptx.rst:
1408 Add trailing newline.
1409 * doc/offload-target-specifics.rst:
1410 Add trailing newline.
1411 * doc/openacc-environment-variables.rst:
1412 Add trailing newline.
1413 * doc/openacc-environment-variables/accdevicenum.rst:
1414 Add trailing newline.
1415 * doc/openacc-environment-variables/accdevicetype.rst:
1416 Add trailing newline.
1417 * doc/openacc-environment-variables/accproflib.rst:
1418 Add trailing newline.
1419 * doc/openacc-environment-variables/gccaccnotify.rst:
1420 Add trailing newline.
1421 * doc/openacc-introduction.rst:
1422 Add trailing newline.
1423 * doc/openacc-library-and-environment-variables.rst:
1424 Add trailing newline.
1425 * doc/openacc-library-interoperability.rst:
1426 Add trailing newline.
1427 * doc/openacc-profiling-interface.rst:
1428 Add trailing newline.
1429 * doc/openacc-runtime-library-routines.rst:
1430 Add trailing newline.
1431 * doc/openacc-runtime-library-routines/accasynctest.rst:
1432 Add trailing newline.
1433 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1434 Add trailing newline.
1435 * doc/openacc-runtime-library-routines/accattach.rst:
1436 Add trailing newline.
1437 * doc/openacc-runtime-library-routines/acccopyin.rst:
1438 Add trailing newline.
1439 * doc/openacc-runtime-library-routines/acccopyout.rst:
1440 Add trailing newline.
1441 * doc/openacc-runtime-library-routines/acccreate.rst:
1442 Add trailing newline.
1443 * doc/openacc-runtime-library-routines/accdelete.rst:
1444 Add trailing newline.
1445 * doc/openacc-runtime-library-routines/accdetach.rst:
1446 Add trailing newline.
1447 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1448 Add trailing newline.
1449 * doc/openacc-runtime-library-routines/accfree.rst:
1450 Add trailing newline.
1451 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1452 Add trailing newline.
1453 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1454 Add trailing newline.
1455 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1456 Add trailing newline.
1457 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1458 Add trailing newline.
1459 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1460 Add trailing newline.
1461 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1462 Add trailing newline.
1463 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1464 Add trailing newline.
1465 * doc/openacc-runtime-library-routines/acchostptr.rst:
1466 Add trailing newline.
1467 * doc/openacc-runtime-library-routines/accinit.rst:
1468 Add trailing newline.
1469 * doc/openacc-runtime-library-routines/accispresent.rst:
1470 Add trailing newline.
1471 * doc/openacc-runtime-library-routines/accmalloc.rst:
1472 Add trailing newline.
1473 * doc/openacc-runtime-library-routines/accmapdata.rst:
1474 Add trailing newline.
1475 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1476 Add trailing newline.
1477 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1478 Add trailing newline.
1479 * doc/openacc-runtime-library-routines/accondevice.rst:
1480 Add trailing newline.
1481 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1482 Add trailing newline.
1483 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1484 Add trailing newline.
1485 * doc/openacc-runtime-library-routines/accproflookup.rst:
1486 Add trailing newline.
1487 * doc/openacc-runtime-library-routines/accprofregister.rst:
1488 Add trailing newline.
1489 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1490 Add trailing newline.
1491 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1492 Add trailing newline.
1493 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1494 Add trailing newline.
1495 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1496 Add trailing newline.
1497 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1498 Add trailing newline.
1499 * doc/openacc-runtime-library-routines/accshutdown.rst:
1500 Add trailing newline.
1501 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1502 Add trailing newline.
1503 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1504 Add trailing newline.
1505 * doc/openacc-runtime-library-routines/accupdateself.rst:
1506 Add trailing newline.
1507 * doc/openacc-runtime-library-routines/accwait.rst:
1508 Add trailing newline.
1509 * doc/openacc-runtime-library-routines/accwaitall.rst:
1510 Add trailing newline.
1511 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1512 Add trailing newline.
1513 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1514 Add trailing newline.
1515 * doc/openmp-context-selectors.rst:
1516 Add trailing newline.
1517 * doc/openmp-environment-variables.rst:
1518 Add trailing newline.
1519 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1520 Add trailing newline.
1521 * doc/openmp-environment-variables/gompdebug.rst:
1522 Add trailing newline.
1523 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1524 Add trailing newline.
1525 * doc/openmp-environment-variables/gompspincount.rst:
1526 Add trailing newline.
1527 * doc/openmp-environment-variables/gompstacksize.rst:
1528 Add trailing newline.
1529 * doc/openmp-environment-variables/ompcancellation.rst:
1530 Add trailing newline.
1531 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1532 Add trailing newline.
1533 * doc/openmp-environment-variables/ompdisplayenv.rst:
1534 Add trailing newline.
1535 * doc/openmp-environment-variables/ompdynamic.rst:
1536 Add trailing newline.
1537 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1538 Add trailing newline.
1539 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1540 Add trailing newline.
1541 * doc/openmp-environment-variables/ompnested.rst:
1542 Add trailing newline.
1543 * doc/openmp-environment-variables/ompnumteams.rst:
1544 Add trailing newline.
1545 * doc/openmp-environment-variables/ompnumthreads.rst:
1546 Add trailing newline.
1547 * doc/openmp-environment-variables/ompplaces.rst:
1548 Add trailing newline.
1549 * doc/openmp-environment-variables/ompprocbind.rst:
1550 Add trailing newline.
1551 * doc/openmp-environment-variables/ompschedule.rst:
1552 Add trailing newline.
1553 * doc/openmp-environment-variables/ompstacksize.rst:
1554 Add trailing newline.
1555 * doc/openmp-environment-variables/omptargetoffload.rst:
1556 Add trailing newline.
1557 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1558 Add trailing newline.
1559 * doc/openmp-environment-variables/ompthreadlimit.rst:
1560 Add trailing newline.
1561 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1562 Add trailing newline.
1563 * doc/openmp-implementation-specifics.rst:
1564 Add trailing newline.
1565 * doc/openmp-implementation-status.rst:
1566 Add trailing newline.
1567 * doc/openmp-implementation-status/openmp-45.rst:
1568 Add trailing newline.
1569 * doc/openmp-implementation-status/openmp-50.rst:
1570 Add trailing newline.
1571 * doc/openmp-implementation-status/openmp-51.rst:
1572 Add trailing newline.
1573 * doc/openmp-implementation-status/openmp-52.rst:
1574 Add trailing newline.
1575 * doc/openmp-runtime-library-routines.rst:
1576 Add trailing newline.
1577 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1578 Add trailing newline.
1579 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1580 Add trailing newline.
1581 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1582 Add trailing newline.
1583 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1584 Add trailing newline.
1585 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1586 Add trailing newline.
1587 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1588 Add trailing newline.
1589 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1590 Add trailing newline.
1591 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1592 Add trailing newline.
1593 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1594 Add trailing newline.
1595 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1596 Add trailing newline.
1597 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1598 Add trailing newline.
1599 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1600 Add trailing newline.
1601 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1602 Add trailing newline.
1603 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1604 Add trailing newline.
1605 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1606 Add trailing newline.
1607 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1608 Add trailing newline.
1609 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1610 Add trailing newline.
1611 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1612 Add trailing newline.
1613 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1614 Add trailing newline.
1615 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1616 Add trailing newline.
1617 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1618 Add trailing newline.
1619 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1620 Add trailing newline.
1621 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1622 Add trailing newline.
1623 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1624 Add trailing newline.
1625 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1626 Add trailing newline.
1627 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1628 Add trailing newline.
1629 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1630 Add trailing newline.
1631 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1632 Add trailing newline.
1633 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1634 Add trailing newline.
1635 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1636 Add trailing newline.
1637 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1638 Add trailing newline.
1639 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1640 Add trailing newline.
1641 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1642 Add trailing newline.
1643 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1644 Add trailing newline.
1645 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1646 Add trailing newline.
1647 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1648 Add trailing newline.
1649 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1650 Add trailing newline.
1651 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1652 Add trailing newline.
1653 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1654 Add trailing newline.
1655 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1656 Add trailing newline.
1657 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1658 Add trailing newline.
1659 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1660 Add trailing newline.
1661 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1662 Add trailing newline.
1663 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1664 Add trailing newline.
1665 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1666 Add trailing newline.
1667 * doc/openmp-runtime-library-routines/omptestlock.rst:
1668 Add trailing newline.
1669 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1670 Add trailing newline.
1671 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1672 Add trailing newline.
1673 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1674 Add trailing newline.
1675 * doc/reporting-bugs.rst:
1676 Add trailing newline.
1677 * doc/the-libgomp-abi.rst:
1678 Add trailing newline.
1679 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1680 Add trailing newline.
1681 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1682 Add trailing newline.
1683 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1684 Add trailing newline.
1685 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1686 Add trailing newline.
1687 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1688 Add trailing newline.
1689 * doc/the-libgomp-abi/implementing-for-construct.rst:
1690 Add trailing newline.
1691 * doc/the-libgomp-abi/implementing-master-construct.rst:
1692 Add trailing newline.
1693 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1694 Add trailing newline.
1695 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1696 Add trailing newline.
1697 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1698 Add trailing newline.
1699 * doc/the-libgomp-abi/implementing-private-clause.rst:
1700 Add trailing newline.
1701 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1702 Add trailing newline.
1703 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1704 Add trailing newline.
1705 * doc/the-libgomp-abi/implementing-single-construct.rst:
1706 Add trailing newline.
1707 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1708 Add trailing newline.
1709
1710 2022-11-14 Martin Liska <mliska@suse.cz>
1711
1712 Revert:
1713 2022-11-09 Martin Liska <mliska@suse.cz>
1714
1715 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1716
1717 2022-11-14 Martin Liska <mliska@suse.cz>
1718
1719 Revert:
1720 2022-11-14 Martin Liska <mliska@suse.cz>
1721
1722 * doc/conf.py: Add newline at last line.
1723
1724 2022-11-14 Martin Liska <mliska@suse.cz>
1725
1726 Revert:
1727 2022-11-14 Martin Liska <mliska@suse.cz>
1728
1729 PR other/107620
1730 * configure: Regenerate.
1731 * configure.ac: Always set sphinx-build.
1732
1733 2022-11-13 Martin Liska <mliska@suse.cz>
1734
1735 PR other/107620
1736 * configure: Regenerate.
1737 * configure.ac: Always set sphinx-build.
1738
1739 2022-11-12 Jakub Jelinek <jakub@redhat.com>
1740
1741 PR libgomp/107641
1742 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1743 unsigned long. Change type of upper from unsigned to unsigned long.
1744
1745 2022-11-10 Martin Liska <mliska@suse.cz>
1746
1747 * doc/conf.py: Add newline at last line.
1748
1749 2022-11-09 Martin Liska <mliska@suse.cz>
1750
1751 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1752
1753 2022-11-09 Martin Liska <mliska@suse.cz>
1754
1755 * doc/amd-radeon-gcn.rst:
1756 Add trailing newline.
1757 * doc/copyright.rst:
1758 Add trailing newline.
1759 * doc/cuda-streams-usage.rst:
1760 Add trailing newline.
1761 * doc/enabling-openacc.rst:
1762 Add trailing newline.
1763 * doc/enabling-openmp.rst:
1764 Add trailing newline.
1765 * doc/first-invocation-nvidia-cublas-library-api.rst:
1766 Add trailing newline.
1767 * doc/first-invocation-openacc-library-api.rst:
1768 Add trailing newline.
1769 * doc/funding.rst:
1770 Add trailing newline.
1771 * doc/general-public-license-3.rst:
1772 Add trailing newline.
1773 * doc/gnu-free-documentation-license.rst:
1774 Add trailing newline.
1775 * doc/implementation-status-and-implementation-defined-behavior.rst:
1776 Add trailing newline.
1777 * doc/index.rst:
1778 Add trailing newline.
1779 * doc/indices-and-tables.rst:
1780 Add trailing newline.
1781 * doc/introduction.rst:
1782 Add trailing newline.
1783 * doc/memory-allocation-with-libmemkind.rst:
1784 Add trailing newline.
1785 * doc/nvptx.rst:
1786 Add trailing newline.
1787 * doc/offload-target-specifics.rst:
1788 Add trailing newline.
1789 * doc/openacc-environment-variables.rst:
1790 Add trailing newline.
1791 * doc/openacc-environment-variables/accdevicenum.rst:
1792 Add trailing newline.
1793 * doc/openacc-environment-variables/accdevicetype.rst:
1794 Add trailing newline.
1795 * doc/openacc-environment-variables/accproflib.rst:
1796 Add trailing newline.
1797 * doc/openacc-environment-variables/gccaccnotify.rst:
1798 Add trailing newline.
1799 * doc/openacc-introduction.rst:
1800 Add trailing newline.
1801 * doc/openacc-library-and-environment-variables.rst:
1802 Add trailing newline.
1803 * doc/openacc-library-interoperability.rst:
1804 Add trailing newline.
1805 * doc/openacc-profiling-interface.rst:
1806 Add trailing newline.
1807 * doc/openacc-runtime-library-routines.rst:
1808 Add trailing newline.
1809 * doc/openacc-runtime-library-routines/accasynctest.rst:
1810 Add trailing newline.
1811 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1812 Add trailing newline.
1813 * doc/openacc-runtime-library-routines/accattach.rst:
1814 Add trailing newline.
1815 * doc/openacc-runtime-library-routines/acccopyin.rst:
1816 Add trailing newline.
1817 * doc/openacc-runtime-library-routines/acccopyout.rst:
1818 Add trailing newline.
1819 * doc/openacc-runtime-library-routines/acccreate.rst:
1820 Add trailing newline.
1821 * doc/openacc-runtime-library-routines/accdelete.rst:
1822 Add trailing newline.
1823 * doc/openacc-runtime-library-routines/accdetach.rst:
1824 Add trailing newline.
1825 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1826 Add trailing newline.
1827 * doc/openacc-runtime-library-routines/accfree.rst:
1828 Add trailing newline.
1829 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1830 Add trailing newline.
1831 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1832 Add trailing newline.
1833 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1834 Add trailing newline.
1835 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1836 Add trailing newline.
1837 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1838 Add trailing newline.
1839 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1840 Add trailing newline.
1841 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1842 Add trailing newline.
1843 * doc/openacc-runtime-library-routines/acchostptr.rst:
1844 Add trailing newline.
1845 * doc/openacc-runtime-library-routines/accinit.rst:
1846 Add trailing newline.
1847 * doc/openacc-runtime-library-routines/accispresent.rst:
1848 Add trailing newline.
1849 * doc/openacc-runtime-library-routines/accmalloc.rst:
1850 Add trailing newline.
1851 * doc/openacc-runtime-library-routines/accmapdata.rst:
1852 Add trailing newline.
1853 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1854 Add trailing newline.
1855 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1856 Add trailing newline.
1857 * doc/openacc-runtime-library-routines/accondevice.rst:
1858 Add trailing newline.
1859 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1860 Add trailing newline.
1861 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1862 Add trailing newline.
1863 * doc/openacc-runtime-library-routines/accproflookup.rst:
1864 Add trailing newline.
1865 * doc/openacc-runtime-library-routines/accprofregister.rst:
1866 Add trailing newline.
1867 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1868 Add trailing newline.
1869 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1870 Add trailing newline.
1871 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1872 Add trailing newline.
1873 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1874 Add trailing newline.
1875 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1876 Add trailing newline.
1877 * doc/openacc-runtime-library-routines/accshutdown.rst:
1878 Add trailing newline.
1879 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1880 Add trailing newline.
1881 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1882 Add trailing newline.
1883 * doc/openacc-runtime-library-routines/accupdateself.rst:
1884 Add trailing newline.
1885 * doc/openacc-runtime-library-routines/accwait.rst:
1886 Add trailing newline.
1887 * doc/openacc-runtime-library-routines/accwaitall.rst:
1888 Add trailing newline.
1889 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1890 Add trailing newline.
1891 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1892 Add trailing newline.
1893 * doc/openmp-context-selectors.rst:
1894 Add trailing newline.
1895 * doc/openmp-environment-variables.rst:
1896 Add trailing newline.
1897 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1898 Add trailing newline.
1899 * doc/openmp-environment-variables/gompdebug.rst:
1900 Add trailing newline.
1901 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1902 Add trailing newline.
1903 * doc/openmp-environment-variables/gompspincount.rst:
1904 Add trailing newline.
1905 * doc/openmp-environment-variables/gompstacksize.rst:
1906 Add trailing newline.
1907 * doc/openmp-environment-variables/ompcancellation.rst:
1908 Add trailing newline.
1909 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1910 Add trailing newline.
1911 * doc/openmp-environment-variables/ompdisplayenv.rst:
1912 Add trailing newline.
1913 * doc/openmp-environment-variables/ompdynamic.rst:
1914 Add trailing newline.
1915 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1916 Add trailing newline.
1917 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1918 Add trailing newline.
1919 * doc/openmp-environment-variables/ompnested.rst:
1920 Add trailing newline.
1921 * doc/openmp-environment-variables/ompnumteams.rst:
1922 Add trailing newline.
1923 * doc/openmp-environment-variables/ompnumthreads.rst:
1924 Add trailing newline.
1925 * doc/openmp-environment-variables/ompplaces.rst:
1926 Add trailing newline.
1927 * doc/openmp-environment-variables/ompprocbind.rst:
1928 Add trailing newline.
1929 * doc/openmp-environment-variables/ompschedule.rst:
1930 Add trailing newline.
1931 * doc/openmp-environment-variables/ompstacksize.rst:
1932 Add trailing newline.
1933 * doc/openmp-environment-variables/omptargetoffload.rst:
1934 Add trailing newline.
1935 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1936 Add trailing newline.
1937 * doc/openmp-environment-variables/ompthreadlimit.rst:
1938 Add trailing newline.
1939 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1940 Add trailing newline.
1941 * doc/openmp-implementation-specifics.rst:
1942 Add trailing newline.
1943 * doc/openmp-implementation-status.rst:
1944 Add trailing newline.
1945 * doc/openmp-implementation-status/openmp-45.rst:
1946 Add trailing newline.
1947 * doc/openmp-implementation-status/openmp-50.rst:
1948 Add trailing newline.
1949 * doc/openmp-implementation-status/openmp-51.rst:
1950 Add trailing newline.
1951 * doc/openmp-implementation-status/openmp-52.rst:
1952 Add trailing newline.
1953 * doc/openmp-runtime-library-routines.rst:
1954 Add trailing newline.
1955 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1956 Add trailing newline.
1957 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1958 Add trailing newline.
1959 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1960 Add trailing newline.
1961 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1962 Add trailing newline.
1963 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1964 Add trailing newline.
1965 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1966 Add trailing newline.
1967 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1968 Add trailing newline.
1969 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1970 Add trailing newline.
1971 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1972 Add trailing newline.
1973 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1974 Add trailing newline.
1975 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1976 Add trailing newline.
1977 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1978 Add trailing newline.
1979 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1980 Add trailing newline.
1981 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1982 Add trailing newline.
1983 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1984 Add trailing newline.
1985 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1986 Add trailing newline.
1987 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1988 Add trailing newline.
1989 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1990 Add trailing newline.
1991 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1992 Add trailing newline.
1993 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1994 Add trailing newline.
1995 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1996 Add trailing newline.
1997 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1998 Add trailing newline.
1999 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2000 Add trailing newline.
2001 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2002 Add trailing newline.
2003 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2004 Add trailing newline.
2005 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2006 Add trailing newline.
2007 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2008 Add trailing newline.
2009 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2010 Add trailing newline.
2011 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2012 Add trailing newline.
2013 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2014 Add trailing newline.
2015 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2016 Add trailing newline.
2017 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2018 Add trailing newline.
2019 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2020 Add trailing newline.
2021 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2022 Add trailing newline.
2023 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2024 Add trailing newline.
2025 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2026 Add trailing newline.
2027 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2028 Add trailing newline.
2029 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2030 Add trailing newline.
2031 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2032 Add trailing newline.
2033 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2034 Add trailing newline.
2035 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2036 Add trailing newline.
2037 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2038 Add trailing newline.
2039 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2040 Add trailing newline.
2041 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2042 Add trailing newline.
2043 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2044 Add trailing newline.
2045 * doc/openmp-runtime-library-routines/omptestlock.rst:
2046 Add trailing newline.
2047 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2048 Add trailing newline.
2049 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2050 Add trailing newline.
2051 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2052 Add trailing newline.
2053 * doc/reporting-bugs.rst:
2054 Add trailing newline.
2055 * doc/the-libgomp-abi.rst:
2056 Add trailing newline.
2057 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2058 Add trailing newline.
2059 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2060 Add trailing newline.
2061 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2062 Add trailing newline.
2063 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2064 Add trailing newline.
2065 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2066 Add trailing newline.
2067 * doc/the-libgomp-abi/implementing-for-construct.rst:
2068 Add trailing newline.
2069 * doc/the-libgomp-abi/implementing-master-construct.rst:
2070 Add trailing newline.
2071 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2072 Add trailing newline.
2073 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2074 Add trailing newline.
2075 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2076 Add trailing newline.
2077 * doc/the-libgomp-abi/implementing-private-clause.rst:
2078 Add trailing newline.
2079 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2080 Add trailing newline.
2081 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2082 Add trailing newline.
2083 * doc/the-libgomp-abi/implementing-single-construct.rst:
2084 Add trailing newline.
2085 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2086 Add trailing newline.
2087
2088 2022-11-09 Martin Liska <mliska@suse.cz>
2089
2090 * Makefile.in: Build info pages conditionally.
2091
2092 2022-11-09 Martin Liska <mliska@suse.cz>
2093
2094 * Makefile.in: Support --with-sphinx-build.
2095 * configure.ac: Likewise..
2096 * configure: Regenerate.
2097
2098 2022-11-09 Martin Liska <mliska@suse.cz>
2099
2100 * libgomp.texi: Removed.
2101
2102 2022-11-09 Martin Liska <mliska@suse.cz>
2103
2104 * Makefile.in: Support Sphinx based documentation.
2105
2106 2022-11-09 Martin Liska <mliska@suse.cz>
2107
2108 * doc/amd-radeon-gcn.rst: New file.
2109 * doc/conf.py: New file.
2110 * doc/copyright.rst: New file.
2111 * doc/cuda-streams-usage.rst: New file.
2112 * doc/enabling-openacc.rst: New file.
2113 * doc/enabling-openmp.rst: New file.
2114 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2115 * doc/first-invocation-openacc-library-api.rst: New file.
2116 * doc/funding.rst: New file.
2117 * doc/general-public-license-3.rst: New file.
2118 * doc/gnu-free-documentation-license.rst: New file.
2119 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2120 * doc/index.rst: New file.
2121 * doc/indices-and-tables.rst: New file.
2122 * doc/introduction.rst: New file.
2123 * doc/memory-allocation-with-libmemkind.rst: New file.
2124 * doc/nvptx.rst: New file.
2125 * doc/offload-target-specifics.rst: New file.
2126 * doc/openacc-environment-variables.rst: New file.
2127 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2128 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2129 * doc/openacc-environment-variables/accproflib.rst: New file.
2130 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2131 * doc/openacc-introduction.rst: New file.
2132 * doc/openacc-library-and-environment-variables.rst: New file.
2133 * doc/openacc-library-interoperability.rst: New file.
2134 * doc/openacc-profiling-interface.rst: New file.
2135 * doc/openacc-runtime-library-routines.rst: New file.
2136 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2137 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2138 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2139 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2140 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2141 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2142 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2143 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2144 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2145 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2146 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2147 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2148 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2149 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2150 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2151 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2152 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2153 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2154 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2155 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2156 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2157 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2158 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2159 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2160 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2161 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2162 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2163 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2164 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2165 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2166 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2167 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2168 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2169 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2170 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2171 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2172 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2173 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2174 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2175 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2176 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2177 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2178 * doc/openmp-context-selectors.rst: New file.
2179 * doc/openmp-environment-variables.rst: New file.
2180 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2181 * doc/openmp-environment-variables/gompdebug.rst: New file.
2182 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2183 * doc/openmp-environment-variables/gompspincount.rst: New file.
2184 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2185 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2186 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2187 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2188 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2189 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2190 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2191 * doc/openmp-environment-variables/ompnested.rst: New file.
2192 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2193 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2194 * doc/openmp-environment-variables/ompplaces.rst: New file.
2195 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2196 * doc/openmp-environment-variables/ompschedule.rst: New file.
2197 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2198 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2199 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2200 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2201 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2202 * doc/openmp-implementation-specifics.rst: New file.
2203 * doc/openmp-implementation-status.rst: New file.
2204 * doc/openmp-implementation-status/openmp-45.rst: New file.
2205 * doc/openmp-implementation-status/openmp-50.rst: New file.
2206 * doc/openmp-implementation-status/openmp-51.rst: New file.
2207 * doc/openmp-implementation-status/openmp-52.rst: New file.
2208 * doc/openmp-runtime-library-routines.rst: New file.
2209 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2210 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2211 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2212 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2213 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2214 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2215 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2216 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2217 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2218 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2219 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2220 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2221 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2222 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2223 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2224 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2225 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2226 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2227 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2228 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2229 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2230 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2231 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2232 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2233 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2234 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2235 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2236 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2237 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2238 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2239 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2240 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2241 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2242 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2243 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2244 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2245 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2246 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2247 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2248 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2249 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2250 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2251 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2252 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2253 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2254 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2255 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2256 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2257 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2258 * doc/reporting-bugs.rst: New file.
2259 * doc/the-libgomp-abi.rst: New file.
2260 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2261 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2262 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2263 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2264 New file.
2265 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2266 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2267 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2268 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2269 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2270 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2271 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2272 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2273 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2274 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2275 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2276
2277 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2278
2279 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2280 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2281 documentation.
2282 * plugin/configfrag.ac <enable_offload_targets>
2283 [*-intelmic-* | *-intelmicemul-*]: Remove.
2284 * configure: Regenerate.
2285 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2286 handling.
2287 (offload_target_to_openacc_device_type)
2288 [$offload_target = *-intelmic*]: Remove.
2289 (check_effective_target_offload_device_intel_mic)
2290 (check_effective_target_offload_device_any_intel_mic): Remove.
2291 * testsuite/libgomp.c-c++-common/on_device_arch.h
2292 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2293 (any_device_arch_intel_mic): Remove.
2294 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2295 'offload_device_any_intel_mic' XFAIL.
2296 * testsuite/libgomp.fortran/target10.f90: Likewise.
2297
2298 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
2299
2300 * testsuite/libgomp.fortran/target-11.f90: New test.
2301 * testsuite/libgomp.fortran/target-13.f90: New test.
2302
2303 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2304
2305 PR libgomp/106643
2306 PR fortran/96668
2307 * oacc-mem.c (goacc_enter_data_internal): Support
2308 OpenACC 'declare create' with Fortran allocatable arrays, part II.
2309 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2310 Adjust.
2311 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2312
2313 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2314
2315 PR libgomp/106643
2316 * oacc-mem.c (goacc_enter_data_internal): Support
2317 OpenACC 'declare create' with Fortran allocatable arrays, part I.
2318 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2319 New.
2320 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2321 New.
2322
2323 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2324
2325 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2326 New.
2327
2328 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2329
2330 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2331 New.
2332
2333 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
2334 Thomas Schwinge <thomas@codesourcery.com>
2335
2336 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2337
2338 2022-10-28 Julian Brown <julian@codesourcery.com>
2339 Thomas Schwinge <thomas@codesourcery.com>
2340
2341 PR middle-end/90115
2342 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2343 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2344 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2345 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2346 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2347
2348 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
2349
2350 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2351 'ptx_dev->rev_data'.
2352
2353 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
2354
2355 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2356 'static' for this variable.
2357 * config/nvptx/libgomp-nvptx.h: New file.
2358 * config/nvptx/target.c: Include it.
2359 (GOMP_ADDITIONAL_ICVS): Declare extern var.
2360 (GOMP_REV_OFFLOAD_VAR): Declare var.
2361 (GOMP_target_ext): Handle reverse offload.
2362 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2363 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2364 * target.c (gomp_target_rev): ... this new stub function.
2365 * libgomp.h (gomp_target_rev): Declare.
2366 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2367 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2368 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2369 (struct ptx_device): Add rev_data member.
2370 (nvptx_open_device): Remove async_engines query, last used in
2371 r10-304-g1f4c5b9b; add unified-address assert check.
2372 (GOMP_OFFLOAD_get_num_devices): Claim unified address
2373 support.
2374 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2375 offload functions exist. Make offload var available
2376 on host and device.
2377 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2378 (GOMP_OFFLOAD_run): Handle reverse offload.
2379
2380 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
2381
2382 PR tree-optimization/107195
2383 PR target/107344
2384 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2385 regions checking.
2386
2387 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
2388
2389 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2390 New.
2391 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2392 on_device_arch_gcn): New.
2393 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2394 requires-4.c but using heap-allocated memory.
2395
2396 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
2397
2398 PR target/105421
2399 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2400
2401 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
2402
2403 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2404 '-foffload-options' syntax.
2405
2406 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
2407
2408 * testsuite/libgomp.fortran/task-7.f90: New test.
2409 * testsuite/libgomp.fortran/task-8.f90: New test.
2410 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2411 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2412 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2413 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2414 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2415
2416 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2417
2418 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2419 in deprecation bullet.
2420
2421 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2422
2423 * omp.h.in (omp_in_explicit_task): Declare.
2424 * omp_lib.h.in (omp_in_explicit_task): Likewise.
2425 * omp_lib.f90.in (omp_in_explicit_task): New interface.
2426 * libgomp.map (OMP_5.2): New symbol version, export
2427 omp_in_explicit_task and omp_in_explicit_task_.
2428 * task.c (omp_in_explicit_task): New function.
2429 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2430 (omp_in_explicit_task_): New function.
2431 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2432 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2433 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2434 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2435
2436 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2437
2438 * task.c (gomp_create_artificial_team): Fix up handling of invocations
2439 from within explicit task.
2440 * target.c (GOMP_target_ext): Likewise.
2441 * testsuite/libgomp.c/task-7.c: New test.
2442 * testsuite/libgomp.c/task-8.c: New test.
2443 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2444 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2445
2446 2022-10-12 Martin Liska <mliska@suse.cz>
2447
2448 * configure: Regenerate.
2449
2450 2022-10-11 Olivier Hainque <hainque@adacore.com>
2451 Olivier Hainque <hainque@adacore.com>
2452
2453 * configure: Regenerate.
2454
2455 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
2456
2457 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2458
2459 2022-10-04 Jakub Jelinek <jakub@redhat.com>
2460
2461 * libgomp.texi (Support begin/end declare target syntax in C/C++):
2462 Mark as implemented.
2463
2464 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
2465
2466 PR fortran/105318
2467 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2468
2469 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
2470
2471 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2472 for C/C++. Remove duplicated 'begin declare target' entry.
2473
2474 2022-09-24 Jakub Jelinek <jakub@redhat.com>
2475
2476 PR c/106981
2477 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2478
2479 2022-09-14 Julian Brown <julian@codesourcery.com>
2480
2481 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2482 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2483 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2484 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2485 test to here, make "run" test.
2486
2487 2022-09-13 Jakub Jelinek <jakub@redhat.com>
2488
2489 PR libgomp/106906
2490 * env.c (get_icv_member_addr): Cast false to void * before assigning
2491 it to icv_addr[1], and comment the whole assignment out.
2492
2493 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
2494
2495 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2496 (nvptx): ... here.
2497
2498 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2499
2500 * libgomp.texi (Offload-Target Specifics: nvptx): Document
2501 that reverse offload requires >= -march=sm_35.
2502 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2503 with -misa=sm_35.
2504 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2505 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2506 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2507 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2508 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2509
2510 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2511
2512 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2513 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2514
2515 2022-09-12 Jakub Jelinek <jakub@redhat.com>
2516
2517 PR libgomp/106894
2518 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2519 (main): Avoid tests for which corresponding non-_ALL suffixed variable
2520 is in the environment, or for OMP_NUM_TEAMS on the device
2521 OMP_NUM_TEAMS_DEV_?.
2522
2523 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
2524
2525 * env.c (initialize_env): Include libiberty environ.h.
2526
2527 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2528
2529 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2530 function address table '$offload_func_table' if rev_fn_table
2531 is not NULL.
2532
2533 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2534
2535 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2536 .offload_func_table to populate rev_fn_table when requested.
2537
2538 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2539
2540 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2541 'uint64_t **rev_fn_table' argument.
2542 * oacc-host.c (host_load_image): Likewise.
2543 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2544 currently unused.
2545 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2546 * target.c (gomp_load_image_to_device): Update call but pass
2547 NULL for now.
2548
2549 2022-09-09 Jakub Jelinek <jakub@redhat.com>
2550
2551 PR libgomp/106894
2552 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2553 char * for dest[1] initialization from params[1]. Formatting fixes.
2554
2555 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2556
2557 PR fortran/106670
2558 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2559
2560 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2561
2562 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2563 section; move OpenMP Context Selectors from ...
2564 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2565 'nvptx' sections.
2566
2567 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
2568
2569 * config/gcn/icv-device.c (omp_get_default_device): Return device-
2570 specific ICV.
2571 (omp_get_max_teams): Added for GCN devices.
2572 (omp_set_num_teams): Likewise.
2573 (ialias): Likewise.
2574 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2575 specific ICV.
2576 (omp_get_max_teams): Added for NVPTX devices.
2577 (omp_set_num_teams): Likewise.
2578 (ialias): Likewise.
2579 * env.c (struct gomp_icv_list): New struct to store entries of initial
2580 ICV values.
2581 (struct gomp_offload_icv_list): New struct to store entries of device-
2582 specific ICV values that are copied to the device and back.
2583 (struct gomp_default_icv_values): New struct to store default values of
2584 ICVs according to the OpenMP standard.
2585 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2586 (print_env_var_error): Function that prints an error for invalid values
2587 for ICVs.
2588 (parse_unsigned_long_1): Removed getenv. Generalized.
2589 (parse_unsigned_long): Likewise.
2590 (parse_int_1): Likewise.
2591 (parse_int): Likewise.
2592 (parse_int_secure): Likewise.
2593 (parse_unsigned_long_list): Likewise.
2594 (parse_target_offload): Likewise.
2595 (parse_bind_var): Likewise.
2596 (parse_stacksize): Likewise.
2597 (parse_boolean): Likewise.
2598 (parse_wait_policy): Likewise.
2599 (parse_allocator): Likewise.
2600 (omp_display_env): Extended to output different variants of environment
2601 variables.
2602 (print_schedule): New helper function for omp_display_env which prints
2603 the values of run_sched_var.
2604 (print_proc_bind): New helper function for omp_display_env which prints
2605 the values of proc_bind_var.
2606 (enum gomp_parse_type): Collection of types used for parsing environment
2607 variables.
2608 (ENTRY): Preprocess string lengths of environment variables.
2609 (OMP_VAR_CNT): Preprocess table size.
2610 (OMP_HOST_VAR_CNT): Likewise.
2611 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2612 number.
2613 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2614 (gomp_set_icv_flag): Sets a flag for a particular ICV.
2615 (print_device_specific_icvs): New helper function for omp_display_env to
2616 print device specific ICV values.
2617 (get_device_num): New helper function for parse_device_specific.
2618 Extracts the device number from an environment variable name.
2619 (get_icv_member_addr): Gets the memory address for a particular member
2620 of an ICV struct.
2621 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2622 (initialize_icvs): New function to initialize a gomp_initial_icvs
2623 struct.
2624 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2625 (startswith): Checks if a string starts with a given prefix.
2626 (initialize_env): Extended to parse the new syntax of environment
2627 variables.
2628 * icv-device.c (omp_get_max_teams): Added.
2629 (ialias): Likewise.
2630 (omp_set_num_teams): Likewise.
2631 * icv.c (omp_set_num_teams): Moved to icv-device.c.
2632 (omp_get_max_teams): Likewise.
2633 (ialias): Likewise.
2634 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2635 (GOMP_ADDITIONAL_ICVS): New target-side struct that
2636 holds the designated ICVs of the target device.
2637 * libgomp.h (enum gomp_icvs): Collection of ICVs.
2638 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2639 no suffix.
2640 (enum gomp_env_suffix): Collection of possible suffixes of environment
2641 variables.
2642 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2643 initial values.
2644 (struct gomp_default_icv):New struct to hold ICVs for which we need
2645 to store initial values.
2646 (struct gomp_icv_list): Definition of a linked list that is used for
2647 storing ICVs for the devices and also for _DEV, _ALL, and without
2648 suffix.
2649 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2650 a device.
2651 (struct gomp_offload_icv_list): Definition of a linked list that holds
2652 device-specific ICVs that are copied to devices.
2653 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2654 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2655 * libgomp.texi: Updated.
2656 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2657 further ICVs from the offload image.
2658 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2659 * target.c (gomp_get_offload_icv_item): Get a list item of
2660 gomp_offload_icv_list.
2661 (get_gomp_offload_icvs): New. Returns the ICV values
2662 depending on the device num and the variable hierarchy.
2663 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2664 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2665 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2666 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2667 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2668 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2669 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2670
2671 2022-09-08 Jakub Jelinek <jakub@redhat.com>
2672
2673 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2674 fully supported.
2675 * testsuite/libgomp.c/doacross-4.c: New test.
2676 * testsuite/libgomp.c/doacross-5.c: New test.
2677 * testsuite/libgomp.c/doacross-6.c: New test.
2678 * testsuite/libgomp.c/doacross-7.c: New test.
2679
2680 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
2681
2682 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2683
2684 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
2685
2686 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2687 refer to 'requires'.
2688 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2689 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2690 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2691 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2692
2693 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2694
2695 PR middle-end/106548
2696 * testsuite/libgomp.c/linear-2.c: New test.
2697
2698 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2699
2700 * splay-tree.h: Fix splay_* macro unsetting if
2701 splay_tree_prefix is defined.
2702
2703 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
2704
2705 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2706
2707 2022-07-29 Jakub Jelinek <jakub@redhat.com>
2708
2709 PR middle-end/106449
2710 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2711
2712 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
2713
2714 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2715
2716 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
2717
2718 PR middle-end/101551
2719 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2720 'offloading_enabled' diagnostics issue.
2721
2722 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
2723
2724 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2725 '_Pragma' diagnostics verification.
2726
2727 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
2728
2729 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2730 improved warning locations.
2731 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2732
2733 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
2734
2735 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2736 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2737 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2738 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2739 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2740
2741 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2742
2743 * target.c (GOMP_offload_register, GOMP_offload_unregister):
2744 Denote as legacy entry points.
2745 * testsuite/lib/libgomp.exp
2746 (check_effective_target_offload_target_any): New proc.
2747 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2748 'offload_target_any'.
2749 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2750 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2751 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2752
2753 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2754
2755 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2756 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2757
2758 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2759
2760 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2761
2762 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
2763
2764 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2765 'data'.
2766 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
2767
2768 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2769 Jakub Jelinek <jakub@redhat.com>
2770
2771 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2772
2773 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2774 Chung-Lin Tang <cltang@codesourcery.com>
2775 Thomas Schwinge <thomas@codesourcery.com>
2776
2777 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2778 omp_requires_mask arg.
2779 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2780 return -1 when device available but omp_requires_mask != 0.
2781 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2782 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2783 Update call.
2784 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2785 goacc_attach_host_thread_to_device, acc_get_num_devices,
2786 acc_set_device_num, get_property_any): Likewise.
2787 * target.c (omp_requires_mask): New global var.
2788 (gomp_requires_to_name): New.
2789 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2790 (gomp_target_init): Handle omp_requires_mask.
2791 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2792 (OpenMP 5.1): Add a missed item.
2793 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2794 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2795 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2796 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2797 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2798 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2799 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2800 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2801 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2802 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2803 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2804 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2805 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2806 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2807 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2808 * testsuite/libgomp.fortran/requires-1.f90: New test.
2809
2810 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
2811
2812 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2813 with fromto as implemented.
2814
2815 2022-06-28 Martin Liska <mliska@suse.cz>
2816
2817 * acinclude.m4: Fix typo in mold linker detection.
2818 * Makefile.in: Regenerate.
2819 * configure: Regenerate.
2820
2821 2022-06-21 Jakub Jelinek <jakub@redhat.com>
2822 Paul Iannetta <piannetta@kalrayinc.com>
2823
2824 PR libgomp/106045
2825 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2826
2827 2022-06-17 Martin Liska <mliska@suse.cz>
2828
2829 * libgomp.texi: Add table header for new features of
2830 OpenMP 5.2.
2831
2832 2022-06-15 Jakub Jelinek <jakub@redhat.com>
2833
2834 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2835 q to ddress of an automatic variable. Use -5 instead of -1 in
2836 omp_get_mapped_ptr call. Add test with omp_initial_device.
2837 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2838 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
2839 Renumber stop arguments afterwards.
2840
2841 2022-06-13 Jakub Jelinek <jakub@redhat.com>
2842
2843 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2844 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2845 parameters.
2846 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2847 * target.c (resolve_device): Add remapped argument, handle
2848 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2849 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2850 if remapped, otherwise treat omp_initial_device that way. For
2851 omp_invalid_device, always emit gomp_fatal, even when
2852 OMP_TARGET_OFFLOAD isn't mandatory.
2853 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2854 GOMP_target_update, GOMP_target_update_ext,
2855 GOMP_target_enter_exit_data): Pass true as remapped argument to
2856 resolve_device.
2857 (omp_target_alloc, omp_target_free, omp_target_is_present,
2858 omp_target_memcpy_check, omp_target_associate_ptr,
2859 omp_target_disassociate_ptr, omp_get_mapped_ptr,
2860 omp_target_is_accessible): Pass false as remapped argument to
2861 resolve_device. Treat omp_initial_device the same as
2862 gomp_get_num_devices (). Don't bypass resolve_device calls if
2863 device_num is negative.
2864 (omp_pause_resource): Treat omp_initial_device the same as
2865 gomp_get_num_devices (). Call resolve_device.
2866 * icv-device.c (omp_set_default_device): Always set to device_num
2867 even when it is negative.
2868 * libgomp.texi: Document that Conforming device numbers,
2869 omp_initial_device and omp_invalid_device is implemented.
2870 * testsuite/libgomp.c/target-41.c (main): Add test with
2871 omp_initial_device.
2872 * testsuite/libgomp.c/target-45.c: New test.
2873 * testsuite/libgomp.c/target-46.c: New test.
2874 * testsuite/libgomp.c/target-47.c: New test.
2875 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2876 test with omp_initial_device. Use -5 instead of -1 for negative value
2877 test.
2878 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2879 Likewise. Reorder stop numbers.
2880
2881 2022-06-10 Jakub Jelinek <jakub@redhat.com>
2882
2883 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2884 rather than "libmemkind.so".
2885
2886 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
2887
2888 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2889 * plugin/configfrag.ac (--with-cuda-driver)
2890 (--with-cuda-driver-include, --with-cuda-driver-lib)
2891 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2892 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2893 Remove.
2894 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2895 (cuda_driver_lib): Remove.
2896 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2897 * Makefile.in: Regenerate.
2898 * configure: Likewise.
2899 * testsuite/Makefile.in: Likewise.
2900
2901 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2902
2903 * config/linux/allocator.c: Fix up #include directive.
2904
2905 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2906
2907 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
2908 (enum gomp_memkind_kind): New type.
2909 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
2910 is defined.
2911 (struct gomp_memkind_data): New type.
2912 (memkind_data, memkind_data_once): New variables.
2913 (gomp_init_memkind, gomp_get_memkind): New functions.
2914 (omp_init_allocator): Initialize data.memkind, don't fail for
2915 omp_high_bw_mem_space if libmemkind supports it.
2916 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2917 memkind support of LIBGOMP_USE_MEMKIND is defined.
2918 * config/linux/allocator.c: New file.
2919
2920 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
2921
2922 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
2923 * testsuite/libgomp.fortran/scope-2.f90: New test.
2924
2925 2022-06-02 David Malcolm <dmalcolm@redhat.com>
2926
2927 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
2928
2929 2022-05-31 Jakub Jelinek <jakub@redhat.com>
2930
2931 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
2932 scope construct with allocate clause.
2933 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
2934 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
2935
2936 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
2937
2938 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
2939 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
2940 explicit 'to' and 'enter' clause.
2941 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
2942
2943 2022-05-28 Jakub Jelinek <jakub@redhat.com>
2944
2945 PR libgomp/105745
2946 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
2947 defined(HAVE__ALIGNED_MALLOC) case.
2948 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2949 handling as last option before fallback instead of first.
2950 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2951 _aligned_free.
2952
2953 2022-05-27 Jakub Jelinek <jakub@redhat.com>
2954
2955 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2956 clauses to enter.
2957 * testsuite/libgomp.c/target-41.c: Likewise.
2958
2959 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
2960
2961 * libgomp.texi (Other new OpenMP 5.1 features): Add
2962 'begin declare target'.
2963 (Other new OpenMP 5.2 features): New.
2964
2965 2022-05-25 Jakub Jelinek <jakub@redhat.com>
2966
2967 * task.c (gomp_task_run_post_handle_dependers): If empty_task
2968 is the last task taskwait depend depends on, wake it up.
2969 Similarly if it is the last child of a taskgroup, use atomic
2970 store instead of decrement and awak taskgroup wait if any.
2971 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2972
2973 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
2974
2975 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2976 EF_AMDGPU_MACH_AMDGCN_GFX90a.
2977 (gcn_gfx90a_s): New.
2978 (isa_hsa_name): Support gfx90a.
2979 (isa_code): Likewise.
2980
2981 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
2982
2983 PR c/105378
2984 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2985 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2986
2987 2022-05-24 Jakub Jelinek <jakub@redhat.com>
2988
2989 PR c/105378
2990 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
2991 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
2992 * task.c (empty_task): New function.
2993 (gomp_task_run_post_handle_depend_hash): Declare earlier.
2994 (gomp_task_run_post_handle_depend): Declare.
2995 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
2996 for.
2997 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
2998 (GOMP_taskwait_depend_nowait): New function.
2999 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3000
3001 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
3002
3003 PR fortran/104949
3004 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3005 Support attach for GOMP_MAP_FIRSTPRIVATE.
3006 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3007 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3008 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3009
3010 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3011
3012 * libgomp.map: Added omp_target_memcpy_async and
3013 omp_target_memcpy_rect_async.
3014 * libgomp.texi: Both functions are now supported.
3015 * omp.h.in: Added omp_target_memcpy_async and
3016 omp_target_memcpy_rect_async.
3017 * omp_lib.f90.in: Added interfaces for both new functions.
3018 * omp_lib.h.in: Likewise.
3019 * target.c (ialias_redirect): Added for GOMP_task.
3020 (omp_target_memcpy): Restructured into check and copy part.
3021 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3022 omp_target_memcpy_async that checks requirements.
3023 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3024 omp_target_memcpy_async that performs the memcpy.
3025 (omp_target_memcpy_async_helper): New helper function that is used in
3026 omp_target_memcpy_async for the asynchronous task.
3027 (omp_target_memcpy_async): Added.
3028 (omp_target_memcpy_rect): Restructured into check and copy part.
3029 (omp_target_memcpy_rect_check): New helper function for
3030 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3031 requirements.
3032 (omp_target_memcpy_rect_copy): New helper function for
3033 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3034 the memcpy.
3035 (omp_target_memcpy_rect_async_helper): New helper function that is used
3036 in omp_target_memcpy_rect_async for the asynchronous task.
3037 (omp_target_memcpy_rect_async): Added.
3038 * task.c (ialias): Added for GOMP_task.
3039 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3040 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3041 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3042 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3043 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3044 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3045 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3046 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3047
3048 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
3049
3050 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3051 (OpenMP Context Selectors): Add missing comma.
3052 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3053 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3054 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3055 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3056
3057 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3058
3059 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3060 comment for omp_display_env feature.
3061
3062 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3063
3064 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3065 to document OpenMP context selectors.
3066
3067 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3068
3069 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3070 from bool to unsigned char.
3071 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3072 Ignore dependencies where
3073 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3074 rather than just task->depend[i].is_in && ent->is_in. Remember
3075 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3076 conditional.
3077 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3078 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3079 rather than just elem.is_in && ent->is_in.
3080 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3081 inoutset depend-kind.
3082 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3083 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3084 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3085
3086 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3087
3088 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3089
3090 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3091
3092 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3093 * testsuite/libgomp.fortran/depend-5.f90: New test.
3094 * testsuite/libgomp.fortran/depend-6.f90: New test.
3095 * testsuite/libgomp.fortran/depend-7.f90: New test.
3096
3097 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3098
3099 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3100 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3101 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3102
3103 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3104
3105 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3106
3107 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3108
3109 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3110
3111 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3112
3113 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3114 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3115 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3116 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3117 * Makefile.in: Regenerate.
3118
3119 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3120
3121 * Makefile.am (libgomp_la_LIBADD): Initialize.
3122 * plugin/configfrag.ac (DL_LIBS): New.
3123 (PLUGIN_GCN_LIBS): Remove.
3124 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3125 * plugin/Makefrag.am (libgomp_la_LIBADD)
3126 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3127 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3128 * Makefile.in: Regenerate.
3129 * config.h.in: Likewise.
3130 * configure: Likewise.
3131 * testsuite/Makefile.in: Likewise.
3132
3133 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3134
3135 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3136 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3137 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3138 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3139 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3140 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3141 * Makefile.in: Regenerate.
3142 * config.h.in: Likewise.
3143 * configure: Likewise.
3144
3145 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3146
3147 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3148 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3149 * Makefile.in: Regenerate.
3150 * config.h.in: Likewise.
3151 * configure: Likewise.
3152 * testsuite/Makefile.in: Likewise.
3153
3154 2022-05-12 Jakub Jelinek <jakub@redhat.com>
3155
3156 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3157 * task.c (gomp_init_task): Initialize depend_all_memory.
3158 (gomp_task_handle_depend): Handle omp_all_memory.
3159 (gomp_task_run_post_handle_depend_hash): Clear
3160 parent->depend_all_memory if equal to current task.
3161 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3162 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3163 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3164 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3165
3166 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3167
3168 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3169 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3170 * Makefile.in: Regenerate.
3171 * configure: Likewise.
3172 * testsuite/Makefile.in: Likewise.
3173
3174 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3175
3176 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3177 consider 'PLUGIN_GCN_CPPFLAGS'.
3178 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3179 'PLUGIN_GCN_LDFLAGS'.
3180 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3181 Remove.
3182 * Makefile.in: Regenerate.
3183 * configure: Likewise.
3184 * testsuite/Makefile.in: Likewise.
3185
3186 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3187
3188 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3189 (HSA_RUNTIME_LDFLAGS): Remove.
3190 * configure: Regenerate.
3191
3192 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3193
3194 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3195 'append always_ld_library_path ":$hsa_runtime_lib"'.
3196 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3197
3198 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3199
3200 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3201 multi-device testing.
3202
3203 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3204
3205 * libgomp.map: Added omp_target_is_accessible.
3206 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3207 * omp.h.in: Added omp_target_is_accessible.
3208 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3209 * omp_lib.h.in: Likewise.
3210 * target.c (omp_target_is_accessible): Added implementation of
3211 omp_target_is_accessible.
3212 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3213 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3214
3215 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3216
3217 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3218
3219 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3220
3221 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3222
3223 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3224
3225 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3226
3227 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3228
3229 * libgomp.map: Added omp_get_mapped_ptr.
3230 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3231 * omp.h.in: Added omp_get_mapped_ptr.
3232 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3233 * omp_lib.h.in: Likewise.
3234 * target.c (omp_get_mapped_ptr): Added implementation of
3235 omp_get_mapped_ptr.
3236 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3237 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3238 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3239 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3240 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3241 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3242 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3243 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3244
3245 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3246
3247 PR fortran/104717
3248 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3249 privatization scanning. For GCN offloading compilation, raise
3250 '-mgang-private-size'.
3251
3252 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3253
3254 PR libgomp/105358
3255 * work.c (gomp_init_work_share): Don't mask of adjustment for
3256 dynamic long long realignment if struct gomp_work_share has smaller
3257 alignof than long long.
3258 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3259 struct gomp_work_share has smaller alignof than long long or if
3260 sizeof (struct gomp_work_share) is smaller than
3261 INLINE_ORDERED_TEAM_IDS_OFF.
3262 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3263 * sections.c (GOMP_sections2_start): Likewise.
3264
3265 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3266 Thomas Schwinge <thomas@codesourcery.com>
3267
3268 PR fortran/104717
3269 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3270
3271 2022-04-13 Jakub Jelinek <jakub@redhat.com>
3272
3273 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3274
3275 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3276
3277 * plugin/cuda/cuda.h: Remove file.
3278 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3279 "cuda/cuda.h" instead of <cuda.h>.
3280 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3281 'PLUGIN_NVPTX_CPPFLAGS'.
3282 * configure: Regenerate.
3283
3284 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3285
3286 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3287
3288 2022-04-04 Tom de Vries <tdevries@suse.de>
3289
3290 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3291 on_device_arch_nvptx instead of offload_target_nvptx.
3292 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3293
3294 2022-04-01 Tom de Vries <tdevries@suse.de>
3295
3296 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3297 and use REC_DEPTH.
3298 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3299
3300 2022-04-01 Tom de Vries <tdevries@suse.de>
3301
3302 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3303 num_workers check.
3304
3305 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3306 Lulu Cheng <chenglulu@loongson.cn>
3307
3308 * configure.tgt: Add LoongArch triplet.
3309
3310 2022-03-28 Tom de Vries <tdevries@suse.de>
3311
3312 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3313 instead of /libexec/.
3314 * configure: Regenerate.
3315
3316 2022-03-25 Tom de Vries <tdevries@suse.de>
3317
3318 PR libgomp/105042
3319 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3320 execution time.
3321 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3322 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3323
3324 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
3325
3326 PR middle-end/104285
3327 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3328 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3329 * testsuite/libgomp.c++/target-same-name-2.C: New test.
3330 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3331 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3332 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3333
3334 2022-03-22 Tom de Vries <tdevries@suse.de>
3335
3336 PR target/104916
3337 PR target/104783
3338 * testsuite/libgomp.c/pr104783-2.c: New test.
3339
3340 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
3341
3342 PR fortran/103039
3343 * testsuite/libgomp.fortran/associate4.f90: New test.
3344
3345 2022-03-18 Tom de Vries <tdevries@suse.de>
3346
3347 PR target/104952
3348 * testsuite/libgomp.c/pr104952-1.c: New test.
3349 * testsuite/libgomp.c/pr104952-2.c: New test.
3350
3351 2022-03-18 Jakub Jelinek <jakub@redhat.com>
3352
3353 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3354 variable next to pl variable.
3355
3356 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3357
3358 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3359 Enhance.
3360 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3361 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3362
3363 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3364
3365 PR middle-end/90115
3366 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3367 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3368
3369 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
3370
3371 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3372 omp_set_max_active_levels.
3373 * testsuite/libgomp.fortran/icv-8.f90: New test.
3374
3375 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
3376
3377 PR testsuite/102841
3378 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3379
3380 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
3381
3382 * libgomp.texi: Fix typo.
3383
3384 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3385
3386 PR middle-end/100280
3387 PR middle-end/104892
3388 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3389 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3390 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3391 Likewise.
3392 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3393 Likewise.
3394 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3395 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3396 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3397 Likewise.
3398
3399 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3400
3401 PR middle-end/104892
3402 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3403 to PR104892.
3404 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3405 enable '--param=openacc-kernels=decompose' and adjust.
3406 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3407 Likewise.
3408 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3409 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3410 Likewise.
3411
3412 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3413
3414 PR middle-end/90115
3415 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3416 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3417 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3418 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3419
3420 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3421
3422 PR middle-end/100280
3423 PR middle-end/104086
3424 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3425 Merge this...
3426 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3427 ..., and this...
3428 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3429 this, and adjust.
3430 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3431 Extend.
3432
3433 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
3434
3435 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3436 trait. Test last index in w and v array. Remove redundant
3437 assignment to V(1). Move alignment checks at the end of
3438 parallel region.
3439
3440 2022-03-10 Tom de Vries <tdevries@suse.de>
3441
3442 * testsuite/libgomp.c/pr104783.c: New test.
3443
3444 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3445
3446 PR middle-end/90115
3447 PR middle-end/102330
3448 PR middle-end/104774
3449 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3450 Enhance.
3451 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3452 Adjust.
3453 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3454 Likewise.
3455 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3456 Likewise.
3457 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3458 Likewise.
3459 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3460 Likewise.
3461 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3462 Likewise.
3463 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3464 Likewise.
3465 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3466 Likewise.
3467 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3468 Likewise.
3469 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3470 Likewise.
3471 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3472 Likewise.
3473 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3474 Likewise.
3475 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3476 Likewise.
3477 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3478 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3479 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3480
3481 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3482
3483 PR middle-end/90115
3484 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3485 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3486 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3487 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3488
3489 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3490
3491 PR testsuite/104791
3492 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3493 expected diagnostics.
3494
3495 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3496
3497 PR middle-end/104784
3498 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3499 Test with '--param=openacc-kernels=decompose'.
3500 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3501 Likewise.
3502 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3503 Likewise.
3504 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3505 Likewise.
3506 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3507 Likewise.
3508 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3509 Likewise.
3510 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3511 Likewise.
3512 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3513 Likewise.
3514 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3515 Likewise.
3516 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3517 Likewise.
3518 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3519 Likewise.
3520 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3521 Likewise.
3522 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3523 Likewise.
3524 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3525 Likewise.
3526 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3527 Likewise.
3528 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3529 Likewise.
3530 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3531 Likewise.
3532 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3533 Likewise.
3534 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3535 Likewise.
3536 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3537 Likewise.
3538 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3539 Likewise.
3540 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3541 Likewise.
3542 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3543 Likewise.
3544 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3545 Likewise.
3546 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3547 Likewise.
3548 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3549 Likewise.
3550 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3551 Likewise.
3552 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3553 Likewise.
3554 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3555 Likewise.
3556 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3557 Likewise.
3558 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3559 Likewise.
3560 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3561 Likewise.
3562 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3563 Likewise.
3564
3565 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3566
3567 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3568 Test '-fopt-info-omp-all'.
3569 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3570 Likewise.
3571 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3572 Likewise.
3573 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3574 Likewise.
3575 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3576 Likewise.
3577 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3578 Likewise.
3579 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3580 Likewise.
3581 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3582 Likewise.
3583 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3584 Likewise.
3585 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3586 Likewise.
3587 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3588 Likewise.
3589 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3590 Likewise.
3591 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3592 Likewise.
3593 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3594 Likewise.
3595 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3596 Likewise.
3597 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3598 Likewise.
3599 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3600 Likewise.
3601 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3602 Likewise.
3603 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3604 Likewise.
3605 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3606 Likewise.
3607 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3608 Likewise.
3609 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3610 Likewise.
3611 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3612 Likewise.
3613 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3614 Likewise.
3615 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3616 Likewise.
3617 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3618 Likewise.
3619 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3620 Likewise.
3621 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3622 Likewise.
3623 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3624 Likewise.
3625 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3626 Likewise.
3627 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3628 Likewise.
3629 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3630 Likewise.
3631 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3632 Likewise.
3633
3634 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3635
3636 PR middle-end/100280
3637 PR middle-end/104132
3638 PR middle-end/104133
3639 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3640 Extend.
3641
3642 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3643
3644 PR middle-end/100280
3645 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3646 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3647 Likewise.
3648
3649 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3650
3651 PR middle-end/100280
3652 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3653 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3654 Likewise.
3655
3656 2022-02-28 Tom de Vries <tdevries@suse.de>
3657
3658 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3659 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3660 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3661 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3662 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3663 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3664
3665 2022-02-24 Tom de Vries <tdevries@suse.de>
3666
3667 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3668 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3669 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3670 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3671 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3672 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3673 * testsuite/libgomp.c/declare-variant-3.h: New header file.
3674
3675 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
3676
3677 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3678 gang-redundant execution.
3679
3680 2022-02-22 Tom de Vries <tdevries@suse.de>
3681
3682 PR target/99555
3683 * config/nvptx/bar.c (generation_to_barrier): New function, copied
3684 from config/rtems/bar.c.
3685 (futex_wait, futex_wake): New function.
3686 (do_spin, do_wait): New function, copied from config/linux/wait.h.
3687 (gomp_barrier_wait_end, gomp_barrier_wait_last)
3688 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3689 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3690 and replace with include of config/linux/bar.c.
3691 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3692 (gomp_barrier_init): Init new fields.
3693 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3694 workarounds.
3695 * testsuite/libgomp.c/pr99555-1.c: Same.
3696 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3697
3698 2022-02-22 Tom de Vries <tdevries@suse.de>
3699
3700 PR testsuite/104146
3701 * testsuite/libgomp.c++/pr96390.C: Add additional-option
3702 -foffload=-Wa,--verify for nvptx.
3703 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3704
3705 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
3706
3707 * testsuite/libgomp.fortran/depend-4.f90: New test.
3708
3709 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
3710
3711 PR c++/102204
3712 * testsuite/libgomp.c++/target-virtual-1.C: New test.
3713
3714 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
3715
3716 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3717 * target.c (copy_firstprivate_data): Copy only if host address is not
3718 NULL.
3719 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3720 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3721 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3722 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3723 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3724 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3725 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3726 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3727 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3728 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3729
3730 2022-02-08 Jakub Jelinek <jakub@redhat.com>
3731
3732 PR libgomp/104385
3733 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3734 clear task->parent.
3735 * testsuite/libgomp.c/pr104385.c: New test.
3736
3737 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3738
3739 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3740 STOP of previous commit.
3741
3742 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3743
3744 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3745 from is_64bit_aligned_.
3746 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3747 and use it, more implicit none, remove unused argument.
3748
3749 2022-02-03 David Seifert <soap@gentoo.org>
3750 Jakub Jelinek <jakub@redhat.com>
3751
3752 * configure.ac: Support --disable-werror.
3753 * configure: Regenerate.
3754
3755 2022-02-01 Tom de Vries <tdevries@suse.de>
3756
3757 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3758 PR83812 workaround.
3759 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3760 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3761
3762 2022-02-01 Tom de Vries <tdevries@suse.de>
3763
3764 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3765 num_workers for nvidia accelerator to fix libgomp error 'insufficient
3766 resources'.
3767 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3768 Same.
3769 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3770
3771 2022-02-01 Tom de Vries <tdevries@suse.de>
3772
3773 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3774 recursion depth.
3775 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3776
3777 2022-01-31 Martin Liska <mliska@suse.cz>
3778
3779 * acinclude.m4: Detect *_ld_is_mold and use it.
3780 * configure: Regenerate.
3781
3782 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
3783
3784 * libgomp.texi (OpenMP 5.0): Update implementation status.
3785
3786 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
3787
3788 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3789 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3790 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3791 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3792 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3793 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3794 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3795 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3796 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3797 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3798 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3799 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3800 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3801 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3802 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3803
3804 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
3805
3806 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3807 "static") to make the device num available in the offload image.
3808
3809 2022-01-19 Martin Liska <mliska@suse.cz>
3810 Thomas Schwinge <thomas@codesourcery.com>
3811
3812 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3813 patterns.
3814 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3815 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3816 Likewise.
3817 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3818 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3819 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3820 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3821 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3822 Likewise.
3823 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3824 Likewise.
3825 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3826 Likewise.
3827 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3828 Likewise.
3829 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3830 Likewise.
3831 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3832 Likewise.
3833 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3834 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3835 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3836
3837 2022-01-18 Martin Liska <mliska@suse.cz>
3838
3839 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3840 in dg-warning.
3841 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3842 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3843 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3844 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3845 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3846 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3847 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3848 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3849 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3850 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3851 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3852 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3853 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3854 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3855 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3856
3857 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
3858
3859 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3860 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3861 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3862
3863 2022-01-17 Julian Brown <julian@codesourcery.com>
3864 Thomas Schwinge <thomas@codesourcery.com>
3865
3866 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3867 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3868 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3869
3870 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
3871 Andrew Stubbs <ams@codesourcery.com>
3872
3873 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3874 the number of teams and threads if necessary.
3875 (gcn_exec): Automatically set the number of gangs and workers if
3876 necessary.
3877
3878 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
3879
3880 * testsuite/libgomp.fortran/allocate-1.c: New test.
3881 * testsuite/libgomp.fortran/allocate-1.f90: New test.
3882 * libgomp.texi: Remove string that says that allocate clause
3883 support is for C/C++ only.
3884
3885 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3886
3887 * testsuite/libgomp.c-c++-common/on_device_arch.h
3888 (any_device_arch, any_device_arch_intel_mic): New.
3889 * testsuite/lib/libgomp.exp
3890 (check_effective_target_offload_device_any_intel_mic): New.
3891 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3892 * testsuite/libgomp.fortran/target10.f90: Likewise.
3893
3894 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3895
3896 PR tree-optimization/102192
3897 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3898 '-Wuninitialized' diagnostics.
3899
3900 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3901
3902 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3903 current '-Wuninitialized' diagnostics.
3904 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
3905 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
3906 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
3907 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
3908 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3909 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3910 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
3911 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3912 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3913 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3914 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
3915 Likewise.
3916
3917 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3918
3919 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
3920 for 'offload_device_intel_mic'.
3921
3922 2022-01-13 Julian Brown <julian@codesourcery.com>
3923 Thomas Schwinge <thomas@codesourcery.com>
3924
3925 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
3926 offloading execution XFAIL.
3927
3928 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3929
3930 PR middle-end/100280
3931 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3932 Update.
3933 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3934 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3935 Likewise.
3936
3937 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3938
3939 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3940 Enhance.
3941 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3942 Likewise.
3943 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
3944 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3945 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
3946 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
3947 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3948 Likewise.
3949 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3950 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3951 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3952 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3953
3954 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
3955
3956 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3957 * testsuite/libgomp.fortran/target10.f90: Likewise.
3958
3959 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
3960
3961 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3962 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3963 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3964
3965 2022-01-03 Jakub Jelinek <jakub@redhat.com>
3966
3967 * libgomp.texi: Bump @copying's copyright year.
3968
3969 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
3970
3971 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3972 * testsuite/libgomp.fortran/atomic-19.f90: New test.
3973
3974 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
3975
3976 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3977 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3978 table, not individual symbols.
3979
3980 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
3981
3982 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3983 "target offload_device_nonshared_as"
3984 * testsuite/libgomp.c++/target-this-3.C: Likewise.
3985 * testsuite/libgomp.c++/target-this-4.C: Likewise.
3986
3987 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3988
3989 * target.c (gomp_map_vars_existing): Make sure attached pointer is
3990 not overwritten during cross-host/device copying.
3991 (gomp_update): Likewise.
3992 (gomp_exit_data): Likewise.
3993 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
3994 * testsuite/libgomp.c++/target-12.C: Likewise.
3995 * testsuite/libgomp.c++/target-15.C: Likewise.
3996 * testsuite/libgomp.c++/target-16.C: Likewise.
3997 * testsuite/libgomp.c++/target-17.C: Likewise.
3998 * testsuite/libgomp.c++/target-21.C: Likewise.
3999 * testsuite/libgomp.c++/target-23.C: Likewise.
4000 * testsuite/libgomp.c/target-23.c: Likewise.
4001 * testsuite/libgomp.c/target-29.c: Likewise.
4002 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4003
4004 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4005
4006 PR middle-end/92120
4007 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4008 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4009 (goacc_enter_data_internal): Likewise.
4010 * target.c (gomp_map_vars_existing): Update assert condition to
4011 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4012 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4013 parameter, add support for mapping a pointer with NULL target.
4014 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4015 parameter, add support for attaching a pointer with NULL target.
4016 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4017 gomp_attach_pointer, add handling for
4018 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4019 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4020 * testsuite/libgomp.c++/target-23.C: New testcase.
4021 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4022 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4023 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4024 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4025 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4026 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4027 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4028
4029 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4030
4031 * libgomp.texi (OpenMP 5.1): Update status.
4032
4033 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4034
4035 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4036
4037 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4038
4039 PR fortran/90030
4040 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4041 * testsuite/libgomp.fortran/pr90030.f90: New test.
4042
4043 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4044 Thomas Schwinge <thomas@codesourcery.com>
4045
4046 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4047 temporary skip.
4048
4049 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4050 Thomas Schwinge <thomas@codesourcery.com>
4051
4052 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4053 skip.
4054
4055 2021-11-29 Richard Biener <rguenther@suse.de>
4056
4057 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4058 return.
4059
4060 2021-11-24 Jakub Jelinek <jakub@redhat.com>
4061
4062 PR middle-end/103384
4063 * testsuite/libgomp.c/declare-variant-2.c: New test.
4064
4065 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
4066
4067 * alloc.c (gomp_aligned_alloc): Fix typo.
4068
4069 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4070
4071 PR libgomp/102838
4072 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4073 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4074 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4075 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4076 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4077 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4078 gomp_aligned_alloc instead of team_malloc.
4079
4080 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4081
4082 PR libgomp/102838
4083 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4084 memalign over posix_memalign over aligned_alloc over fallback
4085 with malloc instead of aligned_alloc over _aligned_alloc over
4086 posix_memalign over memalign over fallback with malloc. For
4087 aligned_alloc, round up size up to multiple of al.
4088
4089 2021-11-16 Jakub Jelinek <jakub@redhat.com>
4090
4091 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4092 construct as implemented.
4093
4094 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
4095
4096 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4097
4098 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4099
4100 * task.c (gomp_create_target_task): Copy args array as well.
4101 * target.c (gomp_target_fallback): Add args argument.
4102 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4103 (GOMP_target): Adjust gomp_target_fallback caller.
4104 (GOMP_target_ext): Likewise.
4105 (gomp_target_task_fn): Likewise.
4106 * config/nvptx/team.c (gomp_nvptx_main): Set
4107 gomp_global_icv.thread_limit_var.
4108 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4109
4110 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4111
4112 * config/nvptx/team.c (__gomp_team_num): Define as
4113 __attribute__((shared)) var.
4114 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4115 * config/nvptx/target.c (__gomp_team_num): Declare as
4116 extern __attribute__((shared)) var.
4117 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4118 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4119 is bigger than num_blocks, use num_teams_lower teams and arrange for
4120 bumping of __gomp_team_num if !first and returning false once we run
4121 out of teams.
4122 * config/nvptx/teams.c (__gomp_team_num): Declare as
4123 extern __attribute__((shared)) var.
4124 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4125
4126 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4127
4128 * testsuite/libgomp.c/teams-5.c: New test.
4129
4130 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4131
4132 PR target/103201
4133 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4134 to ...
4135 * config/gcn/teams.c: ... here. New file.
4136
4137 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4138
4139 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4140 implicit map handling to allow a "superset" existing map as valid case.
4141 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4142 (get_implicit): New function to extract implicit status.
4143 (gomp_map_fields_existing): Adjust arguments in calls to
4144 gomp_map_vars_existing, and add uses of get_implicit.
4145 (gomp_map_vars_internal): Likewise.
4146 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4147
4148 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4149
4150 * libgomp_g.h (GOMP_teams4): Declare.
4151 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4152 * target.c (GOMP_teams4): New function.
4153 * config/nvptx/target.c (GOMP_teams): Remove.
4154 (GOMP_teams4): New function.
4155 * config/gcn/target.c (GOMP_teams): Remove.
4156 (GOMP_teams4): New function.
4157 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4158 teams instead of <= 2.
4159 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4160
4161 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
4162
4163 * testsuite/libgomp.fortran/teams-1.f90: New test.
4164
4165 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4166
4167 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4168 * team.c (struct gomp_thread_start_data): Likewise.
4169 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4170 (gomp_team_start): Initialize start_data->num_teams and
4171 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4172 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4173 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4174 instead of gomp_num_teams and gomp_team_num.
4175 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4176 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4177 * testsuite/libgomp.c/teams-4.c: New test.
4178
4179 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4180
4181 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4182
4183 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4184
4185 * env.c (parse_gomp_openacc_dim): Restore parsing.
4186
4187 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4188
4189 PR middle-end/102972
4190 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4191 parallel construct.
4192 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4193 * testsuite/libgomp.c/target-3.c: Likewise.
4194 * testsuite/libgomp.c/target-5.c: Likewise.
4195 * testsuite/libgomp.c/target-6.c: Likewise.
4196 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4197 * testsuite/libgomp.c/teams-1.c: Likewise.
4198 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4199 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4200 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4201 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4202 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4203 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4204 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4205
4206 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
4207
4208 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4209 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4210
4211 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4212
4213 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4214 aren't implemented for Fortran yet.
4215
4216 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4217
4218 * testsuite/libgomp.c/loop-26.c: New test.
4219 * testsuite/libgomp.c/loop-27.c: New test.
4220
4221 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4222
4223 PR testsuite/102910
4224 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4225 instead of #include <alloca.h> + alloca.
4226
4227 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4228
4229 * libgomp.texi (Support of strictly structured blocks in Fortran):
4230 Adjust to 'Y'.
4231 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4232
4233 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4234
4235 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4236 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4237
4238 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4239
4240 PR libgomp/102838
4241 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4242 (struct gomp_work_share): Only use aligned(64) attribute if
4243 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4244 add padding before lock to ensure lock is at offset 64 bytes
4245 into the structure.
4246 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4247 New poor man's static assertions.
4248 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4249 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4250
4251 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4252 Richard Biener <rguenther@suse.de>
4253
4254 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4255
4256 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4257
4258 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4259 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4260
4261 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4262
4263 PR fortran/102086
4264 PR fortran/92189
4265 PR fortran/92621
4266 PR fortran/101308
4267 PR fortran/101309
4268 PR fortran/101635
4269 PR fortran/92482
4270 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4271
4272 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4273
4274 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4275 type from char [50] to const char *.
4276 (places_array): Add a testcase for simplified syntax place followed
4277 by length or length and stride.
4278
4279 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4280
4281 * env.c (parse_one_place): Handle non-negative-number the same
4282 as { non-negative-number }. Reject even !number:1 and
4283 !number:1:stride or !place:1 or !place:1:stride instead of just
4284 length other than 1.
4285 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4286 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4287 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4288 as implemented.
4289 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4290 simplified syntax.
4291
4292 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4293
4294 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4295 clearly reject return value 0 as invalid handle the case where end
4296 pointer is the same as first argument as invalid.
4297 (parse_unsigned_long_1): Likewise.
4298 (parse_one_place): Likewise.
4299 (parse_places_var): Likewise.
4300 (parse_stacksize): Likewise.
4301 (parse_spincount): Likewise.
4302 (parse_affinity): Likewise.
4303 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4304 Make code valid C89.
4305 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4306 For strtoul calls which don't clearly reject return value 0 as
4307 invalid handle the case where end pointer is the same as first
4308 argument as invalid.
4309 (gomp_affinity_init_level_1): Likewise.
4310 (gomp_affinity_init_numa_domains): Likewise.
4311 * config/rtems/proc.c (parse_thread_pools): Likewise.
4312
4313 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4314
4315 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4316 after creating count places clean up and return immediately.
4317 * testsuite/libgomp.c/places-6.c: New test.
4318 * testsuite/libgomp.c/places-7.c: New test.
4319 * testsuite/libgomp.c/places-8.c: New test.
4320 * testsuite/libgomp.c/places-9.c: New test.
4321 * testsuite/libgomp.c/places-10.c: New test.
4322
4323 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4324
4325 * env.c (parse_places_var): Handle numa_domains as level 5.
4326 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4327 function.
4328 (gomp_affinity_init_level): Use it instead of
4329 gomp_affinity_init_level_1 for level == 5.
4330 * testsuite/libgomp.c/places-5.c: New test.
4331
4332 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4333
4334 * env.c (parse_places_var): Handle ll_caches as level 4.
4335 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4336 function.
4337 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4338 last level cache.
4339 (gomp_affinity_init_level): Likewise.
4340 * testsuite/libgomp.c/places-1.c: New test.
4341 * testsuite/libgomp.c/places-2.c: New test.
4342 * testsuite/libgomp.c/places-3.c: New test.
4343 * testsuite/libgomp.c/places-4.c: New test.
4344
4345 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4346
4347 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4348 directive.
4349
4350 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4351
4352 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4353
4354 2021-10-12 Julian Brown <julian@codesourcery.com>
4355
4356 * target.c (gomp_copy_host2dev): Release device lock on cbuf
4357 error path.
4358
4359 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
4360
4361 * testsuite/libgomp.fortran/icv-3.f90: New.
4362 * testsuite/libgomp.fortran/icv-4.f90: New.
4363
4364 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4365
4366 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4367 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4368 OMP_TEAMS_THREAD_LIMIT): Document.
4369
4370 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4371
4372 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4373 to avoid makeinfo warnings.
4374
4375 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4376
4377 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4378 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4379
4380 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4381
4382 PR libgomp/102628
4383 PR libgomp/102668
4384 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4385 allocation sizes from 420 to 320 and from 768 to 568.
4386 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4387 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4388 for cr from 16 to 4.
4389
4390 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4391
4392 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4393 * testsuite/libgomp.c/scan-12.c: Likewise.
4394 * testsuite/libgomp.c/scan-13.c: Likewise.
4395 * testsuite/libgomp.c/scan-14.c: Likewise.
4396 * testsuite/libgomp.c/scan-15.c: Likewise.
4397 * testsuite/libgomp.c/scan-16.c: Likewise.
4398 * testsuite/libgomp.c/scan-17.c: Likewise.
4399 * testsuite/libgomp.c/scan-18.c: Likewise.
4400 * testsuite/libgomp.c/scan-19.c: Likewise.
4401 * testsuite/libgomp.c/scan-20.c: Likewise.
4402 * testsuite/libgomp.c/scan-21.c: Likewise.
4403 * testsuite/libgomp.c/scan-22.c: Likewise.
4404 * testsuite/libgomp.c++/scan-9.C: Likewise.
4405 * testsuite/libgomp.c++/scan-10.C: Likewise.
4406 * testsuite/libgomp.c++/scan-11.C: Likewise.
4407 * testsuite/libgomp.c++/scan-12.C: Likewise.
4408 * testsuite/libgomp.c++/scan-13.C: Likewise.
4409 * testsuite/libgomp.c++/scan-14.C: Likewise.
4410 * testsuite/libgomp.c++/scan-15.C: Likewise.
4411 * testsuite/libgomp.c++/scan-16.C: Likewise.
4412
4413 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
4414
4415 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4416
4417 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
4418
4419 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4420 omp_atv_serialized.
4421 * omp.h.in: Add deprecated flag for omp_atv_sequential.
4422 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4423 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4424 * testsuite/libgomp.fortran/alloc-12.f90: New test.
4425
4426 2021-10-11 Jakub Jelinek <jakub@redhat.com>
4427
4428 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4429 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4430 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4431 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4432 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4433 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4434 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4435 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4436 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4437 omp_set_teams_thread_limit{,_,_8_}.
4438 * icv.c (omp_set_num_teams, omp_get_max_teams,
4439 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4440 functions.
4441 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4442 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4443 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4444 vars.
4445 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4446 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
4447 is not specified, use gomp_nteams_var.
4448 * fortran.c (omp_set_num_teams, omp_get_max_teams,
4449 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4450 ialias_redirect.
4451 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4452 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4453 omp_get_teams_thread_limit_): New functions.
4454
4455 2021-10-09 liuhongt <hongtao.liu@intel.com>
4456
4457 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4458 * testsuite/libgomp.c++/scan-11.C: Ditto.
4459 * testsuite/libgomp.c++/scan-12.C: Ditto.
4460 * testsuite/libgomp.c++/scan-13.C: Ditto.
4461 * testsuite/libgomp.c++/scan-14.C: Ditto.
4462 * testsuite/libgomp.c++/scan-15.C: Ditto.
4463 * testsuite/libgomp.c++/scan-16.C: Ditto.
4464 * testsuite/libgomp.c++/scan-9.C: Ditto.
4465 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4466 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4467 * testsuite/libgomp.c/scan-11.c: Ditto.
4468 * testsuite/libgomp.c/scan-12.c: Ditto.
4469 * testsuite/libgomp.c/scan-13.c: Ditto.
4470 * testsuite/libgomp.c/scan-14.c: Ditto.
4471 * testsuite/libgomp.c/scan-15.c: Ditto.
4472 * testsuite/libgomp.c/scan-16.c: Ditto.
4473 * testsuite/libgomp.c/scan-17.c: Ditto.
4474 * testsuite/libgomp.c/scan-18.c: Ditto.
4475 * testsuite/libgomp.c/scan-19.c: Ditto.
4476 * testsuite/libgomp.c/scan-20.c: Ditto.
4477 * testsuite/libgomp.c/scan-21.c: Ditto.
4478 * testsuite/libgomp.c/scan-22.c: Ditto.
4479
4480 2021-10-09 Jakub Jelinek <jakub@redhat.com>
4481
4482 * libgomp.texi (OpenMP 5.1): Mention implemented support for
4483 structured block sequences in C/C++. Mention support for
4484 unconstrained/reproducible modifiers on order clause.
4485 Mention partial (C/C++ only) support of extentensions to atomics
4486 construct. Mention partial (C/C++ on clause only) support of
4487 align/allocator modifiers on allocate clause.
4488
4489 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
4490
4491 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4492 based on libgomp.c-c++-common/order-reproducible-1.c.
4493 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4494 * testsuite/libgomp.fortran/my-usleep.c: New test.
4495
4496 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
4497
4498 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4499 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4500 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4501 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4502 based on libgomp.c-c++-common/alloc-9.c.
4503
4504 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4505
4506 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4507 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4508
4509 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4510
4511 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4512 ialias_redirect.
4513 * env.c (handle_omp_display_env): Use ialias_call.
4514 * icv-device.c: Move ialias right below each function.
4515 (omp_get_device_num): Use ialias_call.
4516 * fortran.c (omp_fulfill_event): Add ialias_redirect.
4517 * icv.c (omp_get_active_level): Add ialias_redirect.
4518
4519 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4520
4521 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4522 __alloc_align__ (1) attribute.
4523 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4524
4525 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4526
4527 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4528 for -fintrinsic-modules-path= warning of the C compiler.
4529 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4530 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4531
4532 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4533
4534 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4535 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4536 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4537 omp_realloc): Add.
4538 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4539 omp_realloc): Add.
4540 * testsuite/libgomp.fortran/alloc-10.f90: New test.
4541 * testsuite/libgomp.fortran/alloc-6.f90: New test.
4542 * testsuite/libgomp.fortran/alloc-7.c: New test.
4543 * testsuite/libgomp.fortran/alloc-7.f90: New test.
4544 * testsuite/libgomp.fortran/alloc-8.f90: New test.
4545 * testsuite/libgomp.fortran/alloc-9.f90: New test.
4546
4547 2021-09-30 Jakub Jelinek <jakub@redhat.com>
4548
4549 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4550 omp_realloc): New prototypes.
4551 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4552 attribute.
4553 * allocator.c: Include string.h.
4554 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
4555 variable and use it instead of alignment so that when retrying the old
4556 alignment is used again. Don't retry if new alignment is the same
4557 as old alignment, unless allocator had pool size.
4558 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4559 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4560 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4561 omp_aligned_calloc and omp_realloc.
4562 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4563 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4564 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4565 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4566 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4567 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4568
4569 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
4570
4571 PR libgomp/96661
4572 * configure.ac: Only check for int-type = 2*size_t support when
4573 building with Fortran support.
4574 * configure: Regenerate.
4575
4576 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
4577
4578 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4579 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4580
4581 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
4582
4583 * team.c: Initialize start_data.
4584 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4585 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4586
4587 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4588
4589 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4590 dg-message back to dg-note.
4591
4592 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4593
4594 PR fortran/94070
4595 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4596 expected dg-note output.
4597
4598 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
4599
4600 PR fortran/55534
4601 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4602 r12-3722 by removing -Wno-missing-include-dirs.
4603 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4604
4605 2021-09-22 Jakub Jelinek <jakub@redhat.com>
4606
4607 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4608 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4609
4610 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
4611
4612 PR fortran/55534
4613 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4614 to ALWAYS_CFLAGS.
4615 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4616
4617 2021-09-18 Jakub Jelinek <jakub@redhat.com>
4618
4619 * testsuite/libgomp.c++/default-1.C: New test.
4620 * testsuite/libgomp.c-c++-common/default-1.c: New test.
4621 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4622 to default clause in C and C++" as implemented.
4623
4624 2021-09-17 Julian Brown <julian@codesourcery.com>
4625
4626 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4627
4628 2021-09-17 Julian Brown <julian@codesourcery.com>
4629
4630 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4631
4632 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4633
4634 * libgomp.texi (OpenMP 5.1): Spelling fix,
4635 declare variante -> declare variant.
4636
4637 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4638
4639 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4640 Use /* */ comments instead of //.
4641 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4642 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4643 * testsuite/libgomp.c++/atomic-16.C: New test.
4644 * testsuite/libgomp.c++/atomic-17.C: New test.
4645
4646 2021-09-10 Jakub Jelinek <jakub@redhat.com>
4647
4648 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4649 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4650 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4651
4652 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4653
4654 * libgomp.texi (OpenMP Implementation Status): Extend
4655 OpenMP 5.0 section.
4656 (OpenACC Profiling Interface): Fix typo.
4657
4658 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4659
4660 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4661 not to 4.5; link to new section.
4662 (OpenMP Implementation Status): New.
4663
4664 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
4665
4666 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4667
4668 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
4669
4670 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4671 dg-output.
4672 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4673
4674 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4675 Jakub Jelinek <jakub@redhat.com>
4676
4677 * testsuite/libgomp.c/address-space-1.c: New file.
4678
4679 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4680
4681 * testsuite/lib/libgomp.exp
4682 (check_effective_target_offload_target_intelmic): Remove 'proc'.
4683 (check_effective_target_offload_device_intel_mic): New 'proc'.
4684 * testsuite/libgomp.c-c++-common/on_device_arch.h
4685 (device_arch_intel_mic, on_device_arch_intel_mic): New.
4686 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4687 'dg-xfail-run-if'.
4688 * testsuite/libgomp.fortran/target10.f90: Likewise.
4689
4690 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
4691
4692 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4693 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4694 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4695 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4696
4697 2021-08-23 Jakub Jelinek <jakub@redhat.com>
4698
4699 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4700 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4701 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4702
4703 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
4704
4705 * config/nvptx/error.c (fwrite, exit): Override, too.
4706 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4707 of offloading testing.
4708 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4709
4710 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
4711
4712 * testsuite/libgomp.fortran/error-1.f90: New test.
4713
4714 2021-08-20 Jakub Jelinek <jakub@redhat.com>
4715
4716 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4717 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4718 * error.c (GOMP_warning, GOMP_error): New functions.
4719 * testsuite/libgomp.c-c++-common/error-1.c: New test.
4720
4721 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
4722
4723 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4724 omp_target_free. omp_target_is_present, omp_target_memcpy,
4725 omp_target_memcpy_rect, omp_target_associate_ptr,
4726 omp_target_disassociate_ptr): Add interface.
4727 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4728 omp_target_free. omp_target_is_present, omp_target_memcpy,
4729 omp_target_memcpy_rect, omp_target_associate_ptr,
4730 omp_target_disassociate_ptr): Add interface.
4731 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4732 interface block for omp_alloc + omp_free.
4733 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4734 * testsuite/libgomp.fortran/refcount-1.f90: New test.
4735 * testsuite/libgomp.fortran/target-12.f90: New test.
4736
4737 2021-08-18 Jakub Jelinek <jakub@redhat.com>
4738
4739 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4740
4741 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
4742
4743 * testsuite/libgomp.fortran/scope-1.f90: New test.
4744 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4745
4746 2021-08-17 Jakub Jelinek <jakub@redhat.com>
4747
4748 * Makefile.am (libgomp_la_SOURCES): Add scope.c
4749 * Makefile.in: Regenerated.
4750 * libgomp_g.h (GOMP_scope_start): Declare.
4751 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4752 * scope.c: New file.
4753 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4754 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4755
4756 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
4757
4758 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4759 '?:' issues.
4760
4761 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
4762
4763 * testsuite/libgomp.fortran/masked-1.f90: New test.
4764
4765 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
4766
4767 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4768
4769 2021-08-12 Jakub Jelinek <jakub@redhat.com>
4770
4771 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4772
4773 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
4774
4775 * env.c (parse_bind_var): Accept 'primary' as alias for
4776 'master'.
4777 (omp_display_env): Add TODO comment to
4778 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4779 * libgomp.texi: Change 'master thread' to 'primary thread'
4780 in line with OpenMP 5.1.
4781 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4782 omp_proc_bind_master is an alias of it.
4783 (OMP_PROC_BIND): Mention 'PRIMARY'.
4784 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4785 (omp_proc_bind_primary): Add.
4786 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4787 * omp_lib.f90.in (omp_proc_bind_primary): Add.
4788 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4789 * omp_lib.h.in (omp_proc_bind_primary): Add.
4790 * testsuite/libgomp.c/affinity-1.c: Check that
4791 'primary' works and is identical to 'master'.
4792
4793 2021-08-09 Julian Brown <julian@codesourcery.com>
4794 Kwok Cheung Yeung <kcy@codesourcery.com>
4795 Thomas Schwinge <thomas@codesourcery.com>
4796
4797 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4798 16.
4799 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4800 [acc_device_radeon]: Update.
4801 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4802 [ACC_DEVICE_TYPE_radeon]: Likewise.
4803 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4804 [acc_device_radeon]: Likewise.
4805 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4806 [ACC_DEVICE_TYPE_radeon]: Likewise.
4807 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4808 'openacc_radeon_accel_selected' and '-O0'.
4809 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4810
4811 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
4812
4813 * icv-device.c (omp_get_device_num): New API function, host side.
4814 * fortran.c (omp_get_device_num_): New interface function.
4815 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4816 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4817 omp_get_device_num_.
4818 * libgomp.texi (omp_get_device_num): Add documentation for new API
4819 function.
4820 * omp.h.in (omp_get_device_num): Add declaration.
4821 * omp_lib.f90.in (omp_get_device_num): Likewise.
4822 * omp_lib.h.in (omp_get_device_num): Likewise.
4823 * target.c (gomp_load_image_to_device): If additional entry for device
4824 number exists at end of returned entries from 'load_image_func' hook,
4825 copy the assigned device number over to the device variable.
4826 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4827 (omp_get_device_num): New API function, device side.
4828 * plugin/plugin-gcn.c ("symcat.h"): Add include.
4829 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4830 at end of returned 'target_table' entries.
4831 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4832 (omp_get_device_num): New API function, device side.
4833 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4834 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4835 at end of returned 'target_table' entries.
4836 * testsuite/lib/libgomp.exp
4837 (check_effective_target_offload_target_intelmic): New function for
4838 testing for intelmic offloading.
4839 * testsuite/libgomp.c-c++-common/target-45.c: New test.
4840 * testsuite/libgomp.fortran/target10.f90: New test.
4841
4842 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
4843 Ulrich Drepper <drepper@redhat.com>
4844
4845 * fortran.c (omp_display_env_, omp_display_env_8_): Only
4846 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4847
4848 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
4849 Julian Brown <julian@codesourcery.com>
4850 Kwok Cheung Yeung <kcy@codesourcery.com>
4851
4852 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4853 's%oaccdevlow%oaccloops%g'.
4854 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4855 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4856 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4857 Likewise.
4858 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4859 Likewise.
4860 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4861 Likewise.
4862 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4863 Likewise.
4864 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4865 Likewise.
4866 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4867 Likewise.
4868 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4869 Likewise.
4870 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4871 Likewise.
4872 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4873
4874 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
4875
4876 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4877 threader.
4878 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4879
4880 2021-07-27 Ulrich Drepper <drepper@gmail.com>
4881
4882 * env.c (wait_policy, stacksize): New static variables,
4883 move out of handle_omp_display_env.
4884 (omp_display_env): New function. The meat of the old
4885 handle_omp_display_env function.
4886 (handle_omp_display_env): Change to not take parameters
4887 and instead use the global variables. Only perform
4888 parsing, defer to omp_display_env for the implementation.
4889 (initialize_env): Remove local variables wait_policy and
4890 stacksize. Don't pass parameters to handle_omp_display_env.
4891 * fortran.c: Add ialias_redirect for omp_display_env.
4892 (omp_display_env_, omp_display_env_8_): New functions.
4893 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
4894 omp_display_env_, and omp_display_env_8_.
4895 * omp.h.in: Declare omp_display_env.
4896 * omp_lib.f90.in: Likewise.
4897 * omp_lib.h.in: Likewise.
4898
4899 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4900 Julian Brown <julian@codesourcery.com>
4901
4902 * target.c (gomp_coalesce_buf_add): Update comment.
4903 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
4904 'aq && cbuf'.
4905 (gomp_map_vars_internal): Only 'if (!aq)', do
4906 'gomp_coalesce_buf_add'.
4907 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
4908 XFAIL.
4909
4910 2021-07-27 Julian Brown <julian@codesourcery.com>
4911 Thomas Schwinge <thomas@codesourcery.com>
4912
4913 * libgomp.h (gomp_copy_host2dev): Update prototype.
4914 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
4915 argument to gomp_copy_host2dev (false).
4916 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
4917 (copy_data): Don't free src.
4918 (queue_push_copy): Remove free_src handling.
4919 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
4920 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
4921 snapshotting.
4922 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
4923 queue_push_copy.
4924 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
4925 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
4926 data when true, and set up deferred freeing of temporary buffer.
4927 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
4928 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
4929 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
4930 calls to gomp_copy_host2dev with appropriate ephemeral argument.
4931 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
4932 XFAIL.
4933
4934 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4935 Tom de Vries <tom@codesourcery.com>
4936
4937 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
4938 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
4939
4940 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4941
4942 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
4943 sequencing of 'async' data copying vs. profiling events.
4944 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4945 Likewise.
4946
4947 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4948 Julian Brown <julian@codesourcery.com>
4949
4950 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4951 'async'/'wait' issue.
4952 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4953 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4954 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4955
4956 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
4957 Joseph Myers <joseph@codesourcery.com>
4958 Cesar Philippidis <cesar@codesourcery.com>
4959
4960 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4961 file.
4962 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4963 Likewise.
4964 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4965 Likewise.
4966 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4967
4968 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
4969
4970 PR target/101484
4971 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4972 '-Wno-error=array-bounds'.
4973 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4974 * libgomp.h [__AMDGCN__]: Likewise.
4975
4976 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
4977
4978 PR target/101484
4979 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4980 * libgomp.h [__AMDGCN__]: Likewise.
4981
4982 2021-07-13 Jakub Jelinek <jakub@redhat.com>
4983 Florian Weimer <fweimer@redhat.com>
4984
4985 * config/linux/sem.h: Don't include limits.h.
4986 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4987 * config/linux/affinity.c: Include limits.h.
4988
4989 2021-07-01 Jakub Jelinek <jakub@redhat.com>
4990
4991 PR middle-end/94366
4992 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
4993
4994 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4995
4996 PR other/67300
4997 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
4998 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4999 avoid disabling other offload targets.
5000 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5001 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5002 * testsuite/libgomp.c/target-44.c: Likewise.
5003
5004 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5005
5006 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5007 target has shared memory and disable some scalar pointer/allocatable
5008 checks if not as firstprivate does not work.
5009
5010 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5011
5012 PR testsuite/101114
5013 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5014 Add "target offload_device_nonshared_as" condition for enabling test.
5015
5016 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5017
5018 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5019 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5020 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5021 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5022
5023 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5024
5025 PR middle-end/101167
5026 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5027
5028 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5029
5030 * hashtab.h (htab_clear): New function with initialization code
5031 factored out from...
5032 (htab_create): ...here, adjust to use htab_clear function.
5033 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5034 special refcount values, add comments.
5035 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5036 (REFCOUNT_LINK): Likewise.
5037 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5038 element siblings.
5039 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5040 sibling maps.
5041 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5042 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5043 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5044 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5045 (struct splay_tree_key_s): Add structelem_refcount and
5046 structelem_refcount_ptr fields into a union with dynamic_refcount.
5047 Add comments.
5048 (gomp_map_vars): Delete declaration.
5049 (gomp_map_vars_async): Likewise.
5050 (gomp_unmap_vars): Likewise.
5051 (gomp_unmap_vars_async): Likewise.
5052 (goacc_map_vars): New declaration.
5053 (goacc_unmap_vars): Likewise.
5054 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5055 (goacc_enter_datum): Likewise.
5056 (goacc_enter_data_internal): Likewise.
5057 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5058 and goacc_unmap_vars.
5059 (GOACC_data_start): Adjust to use goacc_map_vars.
5060 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5061 * target.c (hash_entry_type): New typedef.
5062 (htab_alloc): New function hook for hashtab.h.
5063 (htab_free): Likewise.
5064 (htab_hash): Likewise.
5065 (htab_eq): Likewise.
5066 (hashtab.h): Add file include.
5067 (gomp_increment_refcount): New function.
5068 (gomp_decrement_refcount): Likewise.
5069 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5070 gomp_increment_refcount.
5071 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5072 to gomp_map_vars_existing.
5073 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5074 variable to guard OpenMP specific paths, adjust calls to
5075 gomp_map_vars_existing, add structure element sibling splay_tree_key
5076 sequence creation code, adjust Fortran map case to avoid increment
5077 under OpenMP.
5078 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5079 local refcount_set if caller passed in NULL, adjust call to
5080 gomp_map_vars_internal.
5081 (gomp_map_vars_async): Adjust and rename into...
5082 (goacc_map_vars): ...this new function, adjust call to
5083 gomp_map_vars_internal.
5084 (gomp_remove_splay_tree_key): New function with code factored out from
5085 gomp_remove_var_internal.
5086 (gomp_remove_var_internal): Add code to handle removing multiple
5087 splay_tree_key sequence for structure elements, adjust code to use
5088 gomp_remove_splay_tree_key for splay-tree key removal.
5089 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5090 gomp_decrement_refcount.
5091 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5092 local refcount_set if caller passed in NULL, adjust call to
5093 gomp_unmap_vars_internal.
5094 (gomp_unmap_vars_async): Adjust and rename into...
5095 (goacc_unmap_vars): ...this new function, adjust call to
5096 gomp_unmap_vars_internal.
5097 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5098 gomp_unmap_vars.
5099 (GOMP_target_ext): Likewise.
5100 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5101 (GOMP_target_data): Likewise.
5102 (GOMP_target_data_ext): Likewise.
5103 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5104 (gomp_exit_data): Add refcount_set parameter, adjust to use
5105 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5106 after main loop.
5107 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5108 gomp_map_vars and gomp_exit_data.
5109 (gomp_target_task_fn): Likewise.
5110 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5111 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5112 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5113 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5114 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5115 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5116
5117 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5118
5119 PR fortran/92568
5120 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5121
5122 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5123 Thomas Schwinge <thomas@codesourcery.com>
5124
5125 * libgomp.map (GOACC_2.0.2): New symbol version.
5126 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5127 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5128
5129 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5130 Andrew Stubbs <ams@codesourcery.com>
5131
5132 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5133 extracted from...
5134 (GOACC_enter_exit_data): ... here.
5135 (GOACC_declare): Use it.
5136
5137 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5138
5139 * oacc-parallel.c (GOACC_declare): Move...
5140 * oacc-mem.c: ... here.
5141 * libgomp_g.h: Adjust.
5142
5143 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5144 Thomas Schwinge <thomas@codesourcery.com>
5145
5146 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5147 handling.
5148
5149 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5150
5151 PR tree-optimization/100981
5152 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5153 dsdotr and dsdoti to 0.
5154
5155 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5156
5157 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5158 if atomic compare-and-swap is supported on 'int'.
5159
5160 2021-06-09 Richard Biener <rguenther@suse.de>
5161
5162 PR tree-optimization/100981
5163 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5164
5165 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5166
5167 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5168 unconditionally.
5169 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5170 Update.
5171 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5172 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5173
5174 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5175
5176 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5177 '-DACC_MEM_SHARED=0'.
5178 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5179 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5180 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5181 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5182 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5183 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5184 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5185 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5186 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5187 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5188 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5189 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5190 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5191 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5192 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5193 'acc_device_radeon' testing.
5194 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5195 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5196 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5197 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5198 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5199 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5200 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5201 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5202 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5203 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5204 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5205 for non-'openacc_nvidia_accel_selected'.
5206 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5207 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5208 all implement this checking".
5209 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5210 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5211 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5212 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5213 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5214
5215 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5216
5217 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5218 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5219
5220 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5221
5222 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5223 for 'acc_device_radeon'.
5224
5225 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5226
5227 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5228 for non-'acc_device_nvidia'.
5229
5230 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5231
5232 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5233 'acc_device_radeon' testing.
5234 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5235 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5236 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5237
5238 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5239
5240 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5241 require 'openacc_nvidia_accel_selected'. Fix up for
5242 'ACC_DEVICE_TYPE_radeon'.
5243
5244 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5245
5246 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5247 'openacc_nvidia_accel_selected'.
5248 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5249
5250 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5251
5252 * testsuite/lib/libgomp.exp
5253 (check_effective_target_openacc_radeon_accel_selected):
5254 Streamline.
5255
5256 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5257
5258 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5259 PR80547 workaround.
5260
5261 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5262
5263 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5264 <acc_device_nvidia>: Update comment.
5265
5266 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5267
5268 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5269
5270 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5271
5272 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5273 check_effective_target_openacc_cublas,
5274 check_effective_target_openacc_cudart): New.
5275 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5276 target openacc_cublas.
5277 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5278 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5279 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5280 target openacc_cuda.
5281 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5282 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5283 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5284 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5285 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5286 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5287 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5288 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5289 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5290 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5291 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5292 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5293 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5294 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5295 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5296 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5297 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5298 targets openacc_cublas and openacc_cudart.
5299 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5300 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5301 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5302 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5303 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5304 Require effective target openacc_cudart.
5305 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5306 for effective target openacc_cuda and add && defined USE_CUDA_H to
5307 preprocessor conditionals. Guard -lcuda also on openacc_cuda
5308 effective target.
5309
5310 2021-05-26 Jakub Jelinek <jakub@redhat.com>
5311
5312 PR libgomp/100573
5313 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5314 GOMP_target_end_data, GOMP_target_update_ext,
5315 GOMP_target_enter_exit_data): New dummy entrypoints.
5316 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5317 GOMP_target_end_data, GOMP_target_update_ext,
5318 GOMP_target_enter_exit_data): Likewise.
5319 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5320 OMPFROM, OMPTO): Define.
5321 (main): Remove #pragma omp target teams around all the tests.
5322 * testsuite/libgomp.c-c++-common/target-41.c: New test.
5323 * testsuite/libgomp.c-c++-common/target-42.c: New test.
5324
5325 2021-05-25 Jakub Jelinek <jakub@redhat.com>
5326
5327 PR middle-end/99928
5328 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5329
5330 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
5331
5332 PR fortran/86470
5333 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5334 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5335 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5336
5337 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
5338
5339 PR testsuite/90115
5340 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5341 uninteresting/varying diagnostics.
5342
5343 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5344
5345 PR middle-end/90115
5346 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5347 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5348
5349 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5350
5351 PR middle-end/90115
5352 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5353 file.
5354 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5355 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5356 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5357 Likewise.
5358 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5359 Likewise.
5360 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5361 Likewise.
5362 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5363 Likewise.
5364 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5365 Likewise.
5366 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5367 Likewise.
5368 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5369 Likewise.
5370 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5371 Likewise.
5372 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5373 Likewise.
5374 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5375 Likewise.
5376 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5377 Likewise.
5378 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5379 Likewise.
5380 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5381 Likewise.
5382 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5383 Likewise.
5384 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5385 Likewise.
5386 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5387 Likewise.
5388 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5389 Likewise.
5390 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5391 Likewise.
5392 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5393 Likewise.
5394 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5395 Likewise.
5396 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5397 Likewise.
5398 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5399 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5400 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5401 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5402 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5403 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5404 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5405 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5406 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5407 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5408 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5409 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5410 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5411 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5412 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5413 Likewise.
5414 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5415 Likewise.
5416 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5417 Likewise.
5418 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5419 Likewise.
5420 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5421 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5422 Likewise.
5423 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5424 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5425 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5426 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5427 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5428 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5429 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5430 Likewise.
5431 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5432 Likewise.
5433 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5434 Likewise.
5435 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5436 Likewise.
5437 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5438 Likewise.
5439 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5440 Likewise.
5441 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5442 Likewise.
5443 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5444 Likewise.
5445 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5446 Likewise.
5447 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5448 Likewise.
5449 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5450 Likewise.
5451 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5452 Likewise.
5453 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5454 Likewise.
5455 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5456 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5457 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5458 Likewise.
5459 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5460 Likewise.
5461 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5462 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5463 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5464
5465 2021-05-21 Julian Brown <julian@codesourcery.com>
5466 Chung-Lin Tang <cltang@codesourcery.com>
5467 Thomas Schwinge <thomas@codesourcery.com>
5468
5469 PR middle-end/90115
5470 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5471 test.
5472 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5473 Likewise.
5474 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5475 Likewise.
5476
5477 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5478
5479 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5480 for nvptx offloading.
5481
5482 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
5483
5484 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5485
5486 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
5487
5488 PR target/83812
5489 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5490
5491 2021-05-19 Julian Brown <julian@codesourcery.com>
5492
5493 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5494
5495 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5496
5497 * testsuite/lib/libgomp.exp
5498 (check_effective_target_offload_target_nvptx): Don't shadow global
5499 'offload_targets' variable.
5500
5501 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5502
5503 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5504 '-latomic' to nvptx offloading compilation.
5505 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5506
5507 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5508
5509 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5510 offloading compilation.
5511
5512 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
5513
5514 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5515 if new tasks generated.
5516 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5517
5518 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
5519
5520 * testsuite/libgomp.fortran/parallel-master.f90: New test.
5521
5522 2021-05-13 Martin Liska <mliska@suse.cz>
5523
5524 PR testsuite/100569
5525 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5526 * testsuite/libgomp.c/pr46032-2.c: Likewise.
5527 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5528 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5529
5530 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
5531
5532 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5533 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5534
5535 2021-05-11 Jakub Jelinek <jakub@redhat.com>
5536
5537 PR middle-end/100471
5538 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5539 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5540 reduction pointer.
5541 * testsuite/libgomp.c/task-reduction-4.c: New test.
5542
5543 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
5544 Tom de Vries <tdevries@suse.de>
5545
5546 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5547 complex/floating-point || + && reduction with 'omp target'.
5548 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5549
5550 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5551
5552 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5553 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5554 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5555 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5556
5557 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5558
5559 PR testsuite/100397
5560 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5561 declaration to scope of non-'depend'-guarded assignment to avoid races.
5562
5563 2021-05-03 Tom de Vries <tdevries@suse.de>
5564
5565 PR target/100321
5566 * testsuite/libgomp.c/target-44.c: New test.
5567
5568 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
5569
5570 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5571
5572 2021-04-29 Tom de Vries <tdevries@suse.de>
5573
5574 * testsuite/libgomp.c/pr81778.c: New test.
5575
5576 2021-04-29 Tom de Vries <tdevries@suse.de>
5577
5578 PR target/100232
5579 * testsuite/libgomp.c/target-43.c: New file.
5580
5581 2021-04-28 Jakub Jelinek <jakub@redhat.com>
5582 Tobias Burnus <tobias@codesourcery.com>
5583
5584 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5585 * target.c (gomp_load_plugin_for_device): If set and if a plugin
5586 can't be dlopened, silently assume it has no devices.
5587 * Makefile.in: Regenerate.
5588 * config.h.in: Regenerate.
5589 * configure: Regenerate.
5590
5591 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5592
5593 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5594 Use [Ww]arning in dg-bogus as FE diagnostic and default
5595 diagnostic differ and the result depends on ENABLE_OFFLOAD.
5596 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5597 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5598 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5599
5600 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5601
5602 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5603 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5604 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5605 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5606 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5607
5608 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5609 Nathan Sidwell <nathan@codesourcery.com>
5610 Tom de Vries <vries@codesourcery.com>
5611 Julian Brown <julian@codesourcery.com>
5612 Kwok Cheung Yeung <kcy@codesourcery.com>
5613
5614 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5615 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5616 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5617 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5618 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5619 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5620 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5621 Likewise.
5622 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5623 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5624 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5625 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5626 Likewise.
5627 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5628 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5629 Likewise.
5630 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5631 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5632 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5633 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5634 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5635 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5636 Likewise.
5637 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5638 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5639 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5640 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5641 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5642 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5643 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5644 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5645 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5646 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5647 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5648
5649 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5650
5651 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5652 compile with '-w'.
5653 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5654 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5655 Likewise.
5656 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5657 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5658 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5659 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5660 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5661 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5662 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5663
5664 2021-04-22 Richard Biener <rguenther@suse.de>
5665
5666 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5667 only on nvptx-none.
5668
5669 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5670
5671 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5672 omp_depend_kind instead of defining it as 16.
5673
5674 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5675
5676 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5677 New, based on check_effective_target_offload_target_nvptx.
5678 (check_effective_target_offload_target_nvptx): Call it.
5679 (check_effective_target_offload_target_amdgcn): New.
5680 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5681 Require target offload_target_nvptx || offload_target_amdgcn.
5682 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5683 * testsuite/libgomp.c/pr86416-1.c: Likewise.
5684 * testsuite/libgomp.c/pr86416-2.c: Likewise.
5685
5686 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5687
5688 * testsuite/libgomp.fortran/depobj-1.f90: New test.
5689
5690 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
5691
5692 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5693 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5694 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5695 Likewise.
5696 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5697 Likewise.
5698 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5699
5700 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
5701
5702 PR target/99555
5703 * testsuite/lib/libgomp.exp
5704 (check_effective_target_offload_device_nvptx): New.
5705 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5706 resolved, make sure that we exit quickly, with error status,
5707 XFAILed.
5708 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5709 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5710
5711 2021-04-14 Jakub Jelinek <jakub@redhat.com>
5712
5713 PR testsuite/100071
5714 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5715 cp = omp_alloc with cp, p arguments instead of cq, q and call
5716 c_f_pointer after last cq = omp_alloc with cq, q.
5717
5718 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
5719
5720 PR middle-end/98088
5721 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5722 for loop with GT/GE condition.
5723 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5724
5725 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
5726
5727 PR middle-end/84991
5728 PR middle-end/84992
5729 PR middle-end/90779
5730 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5731
5732 2021-04-09 Jakub Jelinek <jakub@redhat.com>
5733
5734 PR libgomp/99984
5735 * team.c (gomp_thread_start): Call pthread_setspecific for
5736 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5737 has been initialized to avoid false positive warning.
5738
5739 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
5740
5741 PR target/99555
5742 * testsuite/lib/on_device_arch.c: Move to ...
5743 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5744 * testsuite/libgomp.fortran/on_device_arch.c: New file;
5745 #include on_device_arch.h.
5746 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5747 on_device_arch.h instead of using dg-additional-source.
5748 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5749 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5750 on_device_arch.c without relative paths.
5751
5752 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5753
5754 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5755 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5756 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5757 * config.h.in: Regenerate.
5758 * configure: Likewise.
5759
5760 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5761
5762 PR target/99555
5763 * testsuite/lib/on_device_arch.c: New file.
5764 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5765 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5766 skip for nvptx offloading, with error status.
5767 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5768
5769 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5770
5771 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5772 OpenACC 'serial' construct diagnostic for nvptx offloading.
5773
5774 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
5775
5776 PR c++/99509
5777 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5778
5779 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
5780
5781 PR fortran/98858
5782 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5783
5784 2021-03-04 Jakub Jelinek <jakub@redhat.com>
5785
5786 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5787 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5788 checking of -m32 or -mx32 options on the command line.
5789 * config.h.in: Regenerated.
5790 * configure: Regenerated.
5791
5792 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
5793
5794 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5795 support from the target.
5796
5797 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5798 Jakub Jelinek <jakub@redhat.com>
5799
5800 PR libgomp/98738
5801 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5802 (struct gomp_task): Replace detach and completion_sem fields with
5803 union containing completion_sem and detach_team. Add deferred_p
5804 field.
5805 (struct gomp_team): Remove task_detach_queue.
5806 * task.c: Include assert.h.
5807 (gomp_init_task): Initialize deferred_p and completion_sem fields.
5808 Rearrange initialization order of fields.
5809 (task_fulfilled_p): Delete.
5810 (GOMP_task): Use address of task as the event handle. Remove
5811 initialization of detach field. Initialize deferred_p field.
5812 Use automatic local for completion_sem. Initialize detach_team field
5813 for deferred tasks.
5814 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5815 Set kind of suspended detach task to GOMP_TASK_DETACHED and
5816 decrement task_running_count. Move finish_cancelled block out of
5817 else branch. Relocate call to gomp_team_barrier_done.
5818 (GOMP_taskwait): Handle tasks with completion events that have not
5819 been fulfilled.
5820 (GOMP_taskgroup_end): Likewise.
5821 (omp_fulfill_event): Use address of task as event handle. Post to
5822 completion_sem for undeferred tasks. Clear detach_team if task
5823 has not finished. For finished tasks, handle post-execution tasks,
5824 call gomp_team_barrier_wake if necessary, and free task.
5825 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5826 (free_team): Remove free of task_detach_queue.
5827 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5828 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5829 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5830 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5831 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5832 Change data-sharing of detach events on enclosing parallel to private.
5833 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
5834 taskwait directive.
5835 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5836 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5837 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5838 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5839 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5840 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5841 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5842 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5843 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5844 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5845 Change data-sharing of detach events on enclosing parallel to private.
5846 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
5847 taskwait directive.
5848 * testsuite/libgomp.fortran/task-detach-7.f90: New.
5849 * testsuite/libgomp.fortran/task-detach-8.f90: New.
5850 * testsuite/libgomp.fortran/task-detach-9.f90: New.
5851 * testsuite/libgomp.fortran/task-detach-10.f90: New.
5852 * testsuite/libgomp.fortran/task-detach-11.f90: New.
5853
5854 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
5855
5856 PR fortran/99171
5857 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5858
5859 2021-02-17 Julian Brown <julian@codesourcery.com>
5860
5861 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5862 expected errors.
5863
5864 2021-02-17 Julian Brown <julian@codesourcery.com>
5865
5866 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5867 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5868
5869 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5870
5871 * config/linux/x86/futex.h (__futex_wait):
5872 Revert output type back to long.
5873 (__futex_wake): Ditto.
5874 (futex_wait): Update for revert.
5875 (futex_wake): Ditto.
5876
5877 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5878
5879 * config/linux/x86/futex.h (__futex_wait): New static inline
5880 wrapper function. Correct output type to int and
5881 timeout type to void *.
5882 (__futex_wake): New static inline wrapper function.
5883 Correct output type to int.
5884 (futex_wait): Use __futex_wait.
5885 (futex_wake): Use __futex_wake.
5886
5887 2021-02-10 Julian Brown <julian@codesourcery.com>
5888
5889 PR fortran/98979
5890 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5891 errors.
5892
5893 2021-02-04 Julian Brown <julian@codesourcery.com>
5894
5895 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5896
5897 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
5898
5899 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5900 EF_AMDGPU_MACH_AMDGCN_GFX908.
5901 (gcn_gfx908_s): New constant string.
5902 (isa_hsa_name): Add gfx908.
5903 (isa_code): Add gfx908.
5904
5905 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5906
5907 * libgomp.texi (omp_fulfill_event): New entry.
5908
5909 2021-01-20 Jakub Jelinek <jakub@redhat.com>
5910
5911 * task.c (GOMP_task): Rename priority argument to priority_arg,
5912 add priority automatic variable and modify that variable. Instead of
5913 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
5914 check flags for that bit.
5915
5916 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
5917
5918 PR fortran/98476
5919 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
5920
5921 2021-01-18 Andreas Schwab <schwab@suse.de>
5922
5923 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
5924
5925 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
5926
5927 * config/rtems/sem.h (gomp_sem_getcount): New function.
5928
5929 2021-01-18 Jakub Jelinek <jakub@redhat.com>
5930
5931 * config/linux/sem.h (gomp_sem_getcount): New function.
5932 * config/posix/sem.h (gomp_sem_getcount): New function.
5933 * config/posix/sem.c (gomp_sem_getcount): New function.
5934 * config/accel/sem.h (gomp_sem_getcount): New function.
5935 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
5936 (omp_fulfill_event): Likewise.
5937
5938 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
5939
5940 * fortran.c (omp_fulfill_event_): New.
5941 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
5942 (struct gomp_team): Add task_detach_queue and task_detach_count
5943 fields.
5944 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
5945 * libgomp_g.h (GOMP_task): Add extra argument.
5946 * omp.h.in (enum omp_event_handle_t): New.
5947 (omp_fulfill_event): New.
5948 * omp_lib.f90.in (omp_event_handle_kind): New.
5949 (omp_fulfill_event): New.
5950 * omp_lib.h.in (omp_event_handle_kind): New.
5951 (omp_fulfill_event): Declare.
5952 * priority_queue.c (priority_tree_find): New.
5953 (priority_list_find): New.
5954 (priority_queue_find): New.
5955 * priority_queue.h (priority_queue_predicate): New.
5956 (priority_queue_find): New.
5957 * task.c (gomp_init_task): Initialize detach field.
5958 (task_fulfilled_p): New.
5959 (GOMP_task): Add detach argument. Ignore detach argument if
5960 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
5961 field. Copy address of completion_sem into detach argument and
5962 into the start of the data record. Wait for detach event if task
5963 not deferred.
5964 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5965 Remove completed tasks and requeue dependent tasks.
5966 (omp_fulfill_event): New.
5967 * team.c (gomp_new_team): Initialize task_detach_queue and
5968 task_detach_count fields.
5969 (free_team): Free task_detach_queue field.
5970 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5971 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5972 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5973 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5974 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5975 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5976 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5977 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5978 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5979 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5980 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5981 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5982
5983 2021-01-15 Jakub Jelinek <jakub@redhat.com>
5984
5985 PR target/70454
5986 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5987 be added through preprocessor check on
5988 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5989
5990 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
5991
5992 PR libgomp/65099
5993 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
5994 configurations.
5995 * configure: Regenerate.
5996 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5997 check.
5998
5999 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6000
6001 * configure: Re-generate.
6002
6003 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6004
6005 * configure: Re-generate.
6006
6007 2021-01-05 Julian Brown <julian@codesourcery.com>
6008
6009 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6010 (struct ptx_device): Add omp_stacks struct.
6011 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6012 (nvptx_close_device): Free cached stacks block and mutex.
6013 (nvptx_stacks_free): New function.
6014 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6015 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6016 (nvptx_stacks_alloc): Rename to...
6017 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6018 size or smaller is required.
6019 (nvptx_stacks_free): Remove.
6020 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6021 during kernel execution.
6022
6023 2021-01-01 Jakub Jelinek <jakub@redhat.com>
6024
6025 * libgomp.texi: Bump @copying's copyright year.
6026
6027 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6028
6029 * libgomp.texi (Top): Avoid bad "up" link.
6030
6031 2020-12-18 Jakub Jelinek <jakub@redhat.com>
6032
6033 * testsuite/libgomp.c/task-6.c: New test.
6034
6035 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
6036
6037 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6038 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6039
6040 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
6041
6042 * testsuite/libgomp.fortran/scan-1.f90: New test.
6043
6044 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6045
6046 PR target/97865
6047 * configure: Regenerate.
6048
6049 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
6050
6051 * configure: Regenerate.
6052
6053 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6054
6055 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6056 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6057
6058 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
6059
6060 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6061 expected results.
6062
6063 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
6064
6065 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6066 (reserved): Delete unused define.
6067
6068 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6069
6070 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6071 Tcl 8.5-specific behavior.
6072 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6073
6074 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6075
6076 * env.c (gomp_global_icv): Remove nest_var field. Add
6077 max_active_levels_var field.
6078 (gomp_max_active_levels_var): Remove.
6079 (parse_boolean): Return true on success.
6080 (handle_omp_display_env): Express OMP_NESTED in terms of
6081 max_active_levels_var. Change format specifier for
6082 max_active_levels_var.
6083 (initialize_env): Set max_active_levels_var from
6084 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6085 OMP_PROC_BIND.
6086 * icv.c (omp_set_nested): Express in terms of
6087 max_active_levels_var.
6088 (omp_get_nested): Likewise.
6089 (omp_set_max_active_levels): Use max_active_levels_var field instead
6090 of gomp_max_active_levels_var.
6091 (omp_get_max_active_levels): Likewise.
6092 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6093 max_active_levels_var field.
6094 (gomp_supported_active_levels): Set to UCHAR_MAX.
6095 (gomp_max_active_levels_var): Delete.
6096 * libgomp.texi (omp_get_nested): Update documentation.
6097 (omp_set_nested): Likewise.
6098 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6099 (OMP_NESTED): Likewise.
6100 (OMP_NUM_THREADS): Likewise.
6101 (OMP_PROC_BIND): Likewise.
6102 * parallel.c (gomp_resolve_num_threads): Replace reference
6103 to nest_var with max_active_levels_var. Use max_active_levels_var
6104 field instead of gomp_max_active_levels_var.
6105
6106 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
6107
6108 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6109 nvptx_usleep; use also for device={arch(gcn)}.
6110
6111 2020-11-14 Jakub Jelinek <jakub@redhat.com>
6112
6113 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6114 (foo): Add tests for non-VLA private and firstprivate clauses on
6115 omp task.
6116 (bar): Likewise. Remove taking of address from private/firstprivate
6117 variables.
6118 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6119 (foo): Add p, q, px and s arguments. Add tests for array reductions
6120 and for non-VLA private and firstprivate clauses on omp task.
6121 (bar): Removed.
6122 (main): Adjust foo caller. Don't call bar.
6123
6124 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6125 Thomas Schwinge <thomas@codesourcery.com>
6126
6127 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6128 New.
6129 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6130 Likewise.
6131 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6132 Likewise.
6133 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6134 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6135
6136 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6137 Thomas Schwinge <thomas@codesourcery.com>
6138
6139 PR fortran/94358
6140 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6141
6142 2020-11-13 Jakub Jelinek <jakub@redhat.com>
6143
6144 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6145 for array reductions.
6146 (main): Adjust foo callers.
6147
6148 2020-11-12 Jakub Jelinek <jakub@redhat.com>
6149
6150 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6151 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6152 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6153 * allocator.c (omp_aligned_alloc): New for now static function,
6154 add alignment argument and handle it.
6155 (omp_alloc): Reimplement using omp_aligned_alloc.
6156 (GOMP_alloc, GOMP_free): New functions.
6157 (omp_free): Add ialias.
6158 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6159 * testsuite/libgomp.c++/allocate-1.C: New test.
6160
6161 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6162
6163 PR fortran/97782
6164 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6165
6166 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6167
6168 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6169 usable.
6170 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6171 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6172 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6173 (goacc_enter_data_internal): Likewise.
6174 * target.c (gomp_map_vars_internal):
6175 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6176 of gomp_attach_pointer for OpenMP cases.
6177 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6178 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6179 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6180
6181 2020-11-05 Ulrich Drepper <drepper@redhat.com>
6182 Kwok Cheung Yeung <kcy@codesourcery.com>
6183
6184 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6185 * Makefile.in: Regenerate.
6186 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6187 pragmas to ignore -Wdeprecated-declarations warnings.
6188 * icv.c: Likewise.
6189 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6190 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6191 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6192 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6193 deprecated.
6194 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6195 to test options.
6196 * testsuite/libgomp.c/affinity-1.c: Likewise.
6197 * testsuite/libgomp.c/affinity-2.c: Likewise.
6198 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6199 * testsuite/libgomp.c/lib-1.c: Likewise.
6200 * testsuite/libgomp.c/nested-1.c: Likewise.
6201 * testsuite/libgomp.c/nested-2.c: Likewise.
6202 * testsuite/libgomp.c/nested-3.c: Likewise.
6203 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6204 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6205 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6206 * testsuite/libgomp.c/pr35549.c: Likewise.
6207 * testsuite/libgomp.c/pr42942.c: Likewise.
6208 * testsuite/libgomp.c/pr61200.c: Likewise.
6209 * testsuite/libgomp.c/sort-1.c: Likewise.
6210 * testsuite/libgomp.c/target-5.c: Likewise.
6211 * testsuite/libgomp.c/target-6.c: Likewise.
6212 * testsuite/libgomp.c/teams-1.c: Likewise.
6213 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6214 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6215 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6216 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6217 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6218 * testsuite/libgomp.fortran/lib2.f: Likewise.
6219 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6220 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6221
6222 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6223
6224 PR target/85486
6225 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6226 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6227 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6228
6229 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6230
6231 PR testsuite/80219
6232 PR testsuite/85303
6233 * testsuite/lib/libgomp.exp (libgomp_init): Set
6234 'gcc_warning_prefix', 'gcc_error_prefix'.
6235
6236 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6237
6238 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6239 even in field_tgt_clear initializer.
6240
6241 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6242
6243 * testsuite/libgomp.c/target-42.c: New test.
6244
6245 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6246 Tom de Vries <tdevries@suse.de>
6247
6248 PR testsuite/81690
6249 * testsuite/libgomp.c/usleep.h: New file.
6250 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6251 (main): Use tgt_usleep instead of usleep.
6252 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6253 (main): Use tgt_usleep instead of usleep.
6254
6255 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6256
6257 PR lto/96680
6258 * testsuite/libgomp.c/declare-variant-1.c: New test.
6259
6260 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6261
6262 * testsuite/libgomp.c/target-41.c: New test.
6263
6264 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6265
6266 * icv.c (omp_get_initial_device): Remove including corresponding
6267 ialias.
6268 * icv-device.c (omp_get_initial_device): New function. Return
6269 gomp_get_num_devices (). Add ialias.
6270 * target.c (resolve_device): Don't fail with
6271 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6272 gomp_get_num_devices ().
6273 (omp_target_alloc, omp_target_free, omp_target_is_present,
6274 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6275 omp_target_disassociate_ptr, omp_pause_resource): Use
6276 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6277 first use in the functions, in uses dominated by the
6278 gomp_get_num_devices call use num_devices_openmp instead.
6279 * libgomp.texi (omp_get_initial_device): Document.
6280 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6281 Add ialias.
6282 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6283 * testsuite/libgomp.c/target-40.c: New test.
6284
6285 2020-10-21 Jakub Jelinek <jakub@redhat.com>
6286
6287 * env.c (parse_target_offload): Change new_offload var type to int,
6288 preinitialize to -1, remove found var and test new_offload != -1
6289 instead of found.
6290
6291 2020-10-20 Jakub Jelinek <jakub@redhat.com>
6292
6293 * target.c (gomp_target_init): Inside of the function, use automatic
6294 variables corresponding to num_devices, num_devices_openmp and devices
6295 global variables and update the globals only at the end of the
6296 function.
6297
6298 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6299
6300 * env.c (gomp_target_offload_var): New.
6301 (parse_target_offload): New.
6302 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6303 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6304 * libgomp.h (gomp_target_offload_t): New.
6305 (gomp_target_offload_var): New.
6306 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6307 * target.c (resolve_device): Generate error if device not found and
6308 offloading is mandatory.
6309 (gomp_target_fallback): Generate error if offloading is mandatory.
6310 (GOMP_target): Add argument in call to gomp_target_fallback.
6311 (GOMP_target_ext): Likewise.
6312 (gomp_target_data_fallback): Generate error if offloading is mandatory.
6313 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6314 (GOMP_target_data_ext): Likewise.
6315 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6316 (gomp_target_init): Return early if offloading is disabled.
6317
6318 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
6319
6320 * libgomp.texi (omp_get_max_active_levels): Modify description.
6321 (omp_get_supported_active_levels): Make descriptions consistent.
6322
6323 2020-10-14 Jakub Jelinek <jakub@redhat.com>
6324
6325 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6326
6327 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6328
6329 * env.c (gomp_max_active_levels_var): Initialize to
6330 gomp_supported_active_levels.
6331 (initialize_env): Limit gomp_max_active_levels_var to be at most
6332 equal to gomp_supported_active_levels.
6333 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6334 (omp_get_supported_active_levels_): New.
6335 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6336 to at most equal to gomp_supported_active_levels.
6337 (omp_get_supported_active_levels): New.
6338 * libgomp.h (gomp_supported_active_levels): New.
6339 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6340 omp_get_supported_active_levels_.
6341 * libgomp.texi (omp_get_supported_active_levels): New.
6342 (omp_set_max_active_levels): Update. Add reference to
6343 omp_get_supported_active_levels.
6344 * omp.h.in (omp_get_supported_active_levels): New.
6345 * omp_lib.f90.in (omp_get_supported_active_levels): New.
6346 * omp_lib.h.in (omp_get_supported_active_levels): New.
6347 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6348 against omp_get_supported_active_levels.
6349 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6350
6351 2020-10-11 Clement Chigot <clement.chigot@atos.net>
6352
6353 * config/t-aix: Delete and recreate libgomp before creating
6354 FAT library.
6355
6356 2020-10-08 Tom de Vries <tdevries@suse.de>
6357
6358 PR libgomp/81802
6359 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6360 dimensions.
6361
6362 2020-10-06 Tom de Vries <tdevries@suse.de>
6363
6364 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6365
6366 2020-10-06 Tom de Vries <tdevries@suse.de>
6367
6368 PR middle-end/90861
6369 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6370
6371 2020-10-05 Tom de Vries <tdevries@suse.de>
6372
6373 PR fortran/95654
6374 * testsuite/libgomp.fortran/pr95654.f90: New test.
6375
6376 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
6377
6378 * Makefile.in: Regenerate with automake 1.15.1.
6379 * aclocal.m4: Likewise.
6380 * configure: Likewise.
6381 * testsuite/Makefile.in: Likewise.
6382
6383 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
6384
6385 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6386 and amdgcn targets.
6387
6388 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6389
6390 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6391
6392 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
6393
6394 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6395 total number of threads is one.
6396 (gomp_team_barrier_wake): Likewise.
6397 (gomp_team_barrier_wait_end): Likewise.
6398 (gomp_team_barrier_wait_cancel_end): Likewise.
6399 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6400 (gomp_team_barrier_wake): Likewise.
6401 (gomp_team_barrier_wait_end): Likewise.
6402 (gomp_team_barrier_wait_cancel_end): Likewise.
6403 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6404
6405 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6406
6407 PR middle-end/96390
6408 * testsuite/libgomp.c++/pr96390.C: New test.
6409 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6410
6411 2020-09-27 Clement Chigot <clement.chigot@atos.net>
6412
6413 * config/t-aix: Use $(AR) without -X32_64.
6414
6415 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6416
6417 * testsuite/libgomp.c/loop-25.c: New test.
6418
6419 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
6420
6421 PR fortran/95654
6422 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6423
6424 2020-09-22 Tom de Vries <tdevries@suse.de>
6425
6426 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6427 fails.
6428
6429 2020-09-16 Nathan Sidwell <nathan@acm.org>
6430
6431 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6432
6433 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6434
6435 PR fortran/96668
6436 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6437
6438 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6439
6440 PR fortran/96668
6441 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6442 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6443 (gomp_map_vars_existing): Update call to it.
6444 (gomp_map_fields_existing): Likewise
6445 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6446 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6447 remapped.
6448 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6449 GOMP_MAP_POINTER.
6450 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6451 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6452
6453 2020-09-14 Tom de Vries <tdevries@suse.de>
6454
6455 * config/nvptx/atomic.c: New file. Add
6456 __sync_val_compare_and_swap_16.
6457 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6458 target offload_target_nvptx.
6459
6460 2020-09-08 Julian Brown <julian@codesourcery.com>
6461
6462 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6463 iteration-ordering assumptions.
6464
6465 2020-09-08 Julian Brown <julian@codesourcery.com>
6466
6467 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6468 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6469
6470 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
6471
6472 * plugin/plugin-nvptx.c (nvptx_free):
6473 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6474 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6475 comments.
6476
6477 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
6478
6479 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6480
6481 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6482
6483 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6484
6485 2020-08-13 Jakub Jelinek <jakub@redhat.com>
6486
6487 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6488 * testsuite/libgomp.c/loop-23.c (main): Likewise.
6489 * testsuite/libgomp.c/loop-24.c: New test.
6490
6491 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6492 Tobias Burnus <tobias@codesourcery.com>
6493
6494 PR fortran/93553
6495 * testsuite/libgomp.fortran/pr93553.f90: New test.
6496
6497 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6498
6499 * testsuite/libgomp.c/loop-22.c: New test.
6500 * testsuite/libgomp.c/loop-23.c: New test.
6501
6502 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6503
6504 PR middle-end/96459
6505 * testsuite/libgomp.c/teams-3.c: New test.
6506 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6507 if not defined yet.
6508 (N(test)): Use it before all N(f*) calls.
6509 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6510 (main): Don't call all test_* functions from within
6511 #pragma omp teams reduction(|:err), call them directly.
6512
6513 2020-08-04 Tom de Vries <tdevries@suse.de>
6514
6515 PR target/96428
6516 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6517 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6518
6519 2020-08-03 Julian Brown <julian@codesourcery.com>
6520 Thomas Schwinge <thomas@codesourcery.com>
6521
6522 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6523 shared-memory devices. Extend with further checking.
6524
6525 2020-08-03 Martin Jambor <mjambor@suse.cz>
6526
6527 * plugin/Makefrag.am: Remove configuration of HSA plugin.
6528 * aclocal.m4: Regenerated.
6529 * Makefile.in: Regenerated.
6530 * config.h.in: Regenerated.
6531 * configure: Regenerated.
6532 * plugin/configfrag.ac: Likewise.
6533 * plugin/hsa_ext_finalize.h: Removed.
6534 * plugin/plugin-hsa.c: Likewise.
6535 * testsuite/Makefile.in: Regenerated.
6536 * testsuite/lib/libgomp.exp
6537 (offload_target_to_openacc_device_type): Remove hsa case.
6538 (check_effective_target_hsa_offloading_selected_nocache): Removed
6539 (check_effective_target_hsa_offloading_selected): Likewise.
6540 (libgomp_init): Do not add -Wno-hsa to additional_flags.
6541 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6542 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6543 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6544 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6545 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6546 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6547 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6548 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6549 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6550 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6551 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6552 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6553 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6554 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6555 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6556 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6557 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6558 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6559 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6560 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6561 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6562 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6563 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6564 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6565
6566 2020-07-27 Julian Brown <julian@codesourcery.com>
6567 Thomas Schwinge <thomas@codesourcery.com>
6568
6569 * libgomp.h (struct target_var_desc): Rename do_detach field to
6570 is_attach.
6571 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
6572 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6573 (goacc_enter_data_internal): Don't affect reference counts
6574 for attach mappings.
6575 (goacc_exit_data_internal): Don't affect reference counts for detach
6576 mappings.
6577 * target.c (gomp_map_vars_existing): Don't affect reference counts for
6578 attach mappings.
6579 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6580 mark attach mappings.
6581 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6582 reference count for attach mappings.
6583 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6584 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6585 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6586 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6587 test as shouldfail.
6588 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6589 gracefully in no-finalize mode.
6590 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6591
6592 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
6593
6594 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6595 use.
6596 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6597 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6598
6599 2020-07-23 Julian Brown <julian@codesourcery.com>
6600 Thomas Schwinge <thomas@codesourcery.com>
6601
6602 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6603 finalization for detach operation.
6604 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6605 New test.
6606
6607 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
6608
6609 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6610 * libgomp_f.h.in (omp_check_defines): Check whether
6611 sizeof of determined Fortran kind and C typedef match.
6612 * omp_lib.f90.in: Add omp_depened_kind.
6613 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6614 * configure: Regenerate.
6615 * Makefile.in: Regenerate.
6616 * testsuite/Makefile.in: Regenerate.
6617
6618 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6619
6620 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6621 gcc/testsuite/c-c++-common/gomp/.
6622 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6623 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6624 from gcc/testsuite/gfortran.dg/gomp/.
6625 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6626
6627 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6628
6629 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6630 * omp_lib.h.in: Likewise.
6631
6632 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
6633
6634 PR target/95620
6635 * testsuite/libgomp.c/pr95620.c: New test.
6636
6637 2020-07-16 Julian Brown <julian@codesourcery.com>
6638 Thomas Schwinge <thomas@codesourcery.com>
6639
6640 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6641 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6642
6643 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6644
6645 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6646 avoid conversion on 32bit systems from 32bit to 64bit due
6647 to -fdefault-integer-8.
6648
6649 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6650
6651 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6652 variables; add character(kind=4) tests; update TODO comment.
6653
6654 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6655
6656 * allocator.c: Add ialias for omp_init_allocator and
6657 omp_destroy_allocator.
6658 * configure.ac: Set INTPTR_T_KIND.
6659 * configure: Regenerate.
6660 * Makefile.in: Regenerate.
6661 * testsuite/Makefile.in: Regenerate.
6662 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6663 omp_set_default_allocator_, omp_get_default_allocator_): New
6664 functions and ialias_redirect.
6665 * icv.c: Add ialias for omp_set_default_allocator and
6666 omp_get_default_allocator.
6667 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6668 omp_destroy_allocator_, omp_set_default_allocator_ and
6669 omp_get_default_allocator_.
6670 * omp_lib.f90.in: Add allocator traits parameters, declare
6671 allocator routines and add related kind parameters.
6672 * omp_lib.h.in: Likewise.
6673 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6674 * testsuite/libgomp.fortran/alloc-1.F90: New test.
6675 * testsuite/libgomp.fortran/alloc-2.F90: New test.
6676 * testsuite/libgomp.fortran/alloc-3.F: New test.
6677 * testsuite/libgomp.fortran/alloc-4.f90: New test.
6678 * testsuite/libgomp.fortran/alloc-5.f90: New test.
6679
6680 2020-07-14 Tom de Vries <tom@codesourcery.com>
6681 Cesar Philippidis <cesar@codesourcery.com>
6682 Thomas Schwinge <thomas@codesourcery.com>
6683 Kwok Cheung Yeung <kcy@codesourcery.com>
6684
6685 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6686 New variable.
6687 (acc_init_1): Set acc_init_thread to pthread_self (). Set
6688 acc_init_state to initializing at the start, and to initialized at the
6689 end.
6690 (self_initializing_p): New function.
6691 (acc_get_device_type): Return acc_device_none if called by thread that
6692 is currently executing acc_init_1.
6693 * libgomp.texi (acc_get_device_type): Update documentation.
6694 (Implementation Status and Implementation-Defined Behavior): Likewise.
6695 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6696
6697 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
6698
6699 * config/t-aix: Set BITS from compiler cpp macro.
6700
6701 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6702
6703 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6704
6705 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6706
6707 PR fortran/67311
6708 * testsuite/libgomp.fortran/target-map-1.f90: New test.
6709
6710 2020-07-14 Jakub Jelinek <jakub@redhat.com>
6711
6712 * testsuite/libgomp.c/loop-21.c: New test.
6713
6714 2020-07-13 Julian Brown <julian@codesourcery.com>
6715 Thomas Schwinge <thomas@codesourcery.com>
6716
6717 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6718
6719 2020-07-10 Julian Brown <julian@codesourcery.com>
6720 Thomas Schwinge <thomas@codesourcery.com>
6721
6722 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6723 dynamic_refcount.
6724 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6725 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6726 dynamic_refcount.
6727 (acc_unmap_data): Update comment.
6728 (goacc_map_var_existing, goacc_enter_datum): Adjust for
6729 dynamic_refcount semantics.
6730 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6731 Adjust for dynamic_refcount semantics.
6732 (goacc_enter_data_internal): Implement "present" case of dynamic
6733 memory-map handling here. Update "non-present" case for
6734 dynamic_refcount semantics.
6735 (goacc_exit_data_internal): Use goacc_exit_datum_1.
6736 * target.c (gomp_map_vars_internal): Remove
6737 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
6738 handling.
6739 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6740 (gomp_load_image_to_device): Substitute dynamic_refcount for
6741 virtual_refcount.
6742 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6743 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6744 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6745 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6746 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6747 trace output.
6748 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6749 trace output.
6750 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6751 test.
6752 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6753 Remove stale comment.
6754 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6755 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6756 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6757 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6758 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6759 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6760
6761 2020-07-10 Julian Brown <julian@codesourcery.com>
6762 Thomas Schwinge <thomas@codesourcery.com>
6763
6764 * oacc-mem.c (goacc_map_var_existing): New function.
6765 (goacc_enter_datum): Use above function.
6766 (goacc_exit_datum_1): New function.
6767 (goacc_exit_datum): Use above function.
6768
6769 2020-07-09 Julian Brown <julian@codesourcery.com>
6770 Thomas Schwinge <thomas@codesourcery.com>
6771
6772 PR middle-end/95270
6773 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6774 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6775
6776 2020-07-09 Julian Brown <julian@codesourcery.com>
6777
6778 * oacc-mem.c (find_group_last): Group data-movement clauses
6779 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6780 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
6781
6782 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6783
6784 * testsuite/libgomp.c/loop-19.c: New test.
6785 * testsuite/libgomp.c/loop-20.c: New test.
6786
6787 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6788
6789 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6790 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
6791 it. Remove __omp_alloctrait_value_max__.
6792 * allocator.c (omp_init_allocator): Handle omp_atv_default for
6793 omp_atk_alignment and omp_atk_pool_size.
6794
6795 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6796
6797 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6798 behavior for 'GOMP_MAP_FORCE_FROM'.
6799 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6800
6801 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6802
6803 * oacc-mem.c (goacc_exit_data_internal): Remove
6804 'GOMP_MAP_ALWAYS_FROM' handling.
6805
6806 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6807
6808 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6809 'scan-assembler' with 'scan-offload-rtl'.
6810 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6811 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6812 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6813 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6814
6815 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6816
6817 * target.c (gomp_map_vars_existing): Assert 'kind !=
6818 GOMP_MAP_ATTACH'.
6819 (gomp_map_vars_internal): Clean up.
6820
6821 2020-06-27 Jakub Jelinek <jakub@redhat.com>
6822
6823 * testsuite/libgomp.c/loop-17.c: New test.
6824 * testsuite/libgomp.c/loop-18.c: New test.
6825
6826 2020-06-26 Marek Polacek <polacek@redhat.com>
6827
6828 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6829
6830 2020-06-23 Alexandre Oliva <oliva@adacore.com>
6831
6832 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6833 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6834
6835 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
6836
6837 * Makefile.am: Use -include.
6838 * Makefile.in: Regenerate.
6839
6840 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
6841
6842 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6843 * Makefile.in: Regenerate
6844 * configure.ac (tmake_file): Substitute.
6845 * configure: Regenerate.
6846 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6847 * config/t-aix: New file.
6848
6849 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
6850
6851 PR lto/94848
6852 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6853 'dg-do run'.
6854
6855 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
6856
6857 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6858 variant for HSA_RUNTIME_LIB name.
6859 (find_executable_symbol_1): Delete.
6860 (find_executable_symbol): Delete.
6861 (init_kernel_properties): Add ".kd" suffix to symbol names.
6862 (find_load_offset): Delete.
6863 (create_and_finalize_hsa_program): Remove relocation handling.
6864
6865 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
6866
6867 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6868
6869 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
6870
6871 PR lto/94848
6872 PR middle-end/95551
6873 * testsuite/libgomp.fortran/target-var.f90: New test.
6874
6875 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6876 Julian Brown <julian@codesourcery.com>
6877
6878 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6879 special handling.
6880
6881 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6882 Julian Brown <julian@codesourcery.com>
6883
6884 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6885 Simplify.
6886
6887 2020-06-05 Julian Brown <julian@codesourcery.com>
6888
6889 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6890 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6891
6892 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6893
6894 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6895 Evaluate 'copyfrom' individually for each entry.
6896 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6897
6898 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6899
6900 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6901 Evaluate 'finalize' individually for each entry.
6902 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6903 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
6904 file.
6905
6906 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6907
6908 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
6909 usage.
6910 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
6911
6912 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6913 Julian Brown <julian@codesourcery.com>
6914
6915 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
6916 checking.
6917 (acc_unmap_data, goacc_exit_data_internal): Restore
6918 'is_tgt_unmapped' checking.
6919 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
6920 file.
6921 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
6922 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6923 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6924 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6925 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6926 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6927
6928 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6929 Julian Brown <julian@codesourcery.com>
6930
6931 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
6932
6933 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6934
6935 PR libgomp/92854
6936 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
6937
6938 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6939
6940 PR libgomp/92854
6941 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
6942 more.
6943
6944 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6945 Julian Brown <julian@codesourcery.com>
6946
6947 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6948 'gomp_map_vars'.
6949 (acc_map_data): Clean up accordingly.
6950
6951 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6952
6953 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6954 of over-eager 'finalize' clause.
6955 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6956 file.
6957 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6958 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6959 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6960 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6961 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6962 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6963 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6964 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6965
6966 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6967
6968 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6969
6970 2020-06-04 Julian Brown <julian@codesourcery.com>
6971
6972 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6973 error path.
6974 (goacc_detach_internal): Likewise.
6975
6976 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6977
6978 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6979 the checkpoint.
6980 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6981 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6982 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6983 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6984 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6985
6986 2020-06-02 Jakub Jelinek <jakub@redhat.com>
6987
6988 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
6989 defined.
6990
6991 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6992
6993 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
6994
6995 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6996
6997 * allocator.c (omp_alloc): For size == 0, return NULL early.
6998
6999 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
7000
7001 PR bootstrap/95413
7002 * configure: Regenerated.
7003
7004 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7005
7006 PR libfortran/95191
7007 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7008
7009 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7010
7011 * omp.h.in (omp_uintptr_t): New typedef.
7012 (__GOMP_UINTPTR_T_ENUM): Define.
7013 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7014 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7015 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7016 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7017 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7018 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7019 (gomp_def_allocator): Declare.
7020 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7021 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7022 omp_alloc and omp_free.
7023 * team.c (gomp_team_start): Copy over ts.def_allocator.
7024 * env.c (gomp_def_allocator): New variable.
7025 (parse_wait_policy): Adjust function comment.
7026 (parse_allocator): New function.
7027 (handle_omp_display_env): Print OMP_ALLOCATOR.
7028 (initialize_env): Call parse_allocator.
7029 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7030 * allocator.c: New file.
7031 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7032 functions.
7033 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7034 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7035 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7036 * Makefile.in: Regenerated.
7037
7038 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7039
7040 PR bootstrap/95147
7041 * configure: Regenerated.
7042
7043 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7044
7045 PR libfortran/95119
7046 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7047
7048 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7049
7050 * configure: Regenerated.
7051
7052 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7053
7054 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7055
7056 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
7057
7058 PR fortran/94690
7059 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7060 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7061 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7062 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7063 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7064 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7065 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7066
7067 2020-05-12 Jakub Jelinek <jakub@redhat.com>
7068
7069 * testsuite/libgomp.c/target-39.c: New test.
7070
7071 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7072
7073 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7074 * openacc.f90 (acc_device_current): Likewise.
7075 * openacc.h (acc_device_current): Likewise.
7076 * openacc_lib.h (acc_device_current): Likewise.
7077
7078 PR target/94282
7079 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7080 'dg-allow-blank-lines-in-output'.
7081
7082 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7083 * testsuite/lib/libgomp.exp
7084 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7085 'radeon'. Adjust all users.
7086 (check_effective_target_openacc_amdgcn_accel_present): Rename
7087 to...
7088 (check_effective_target_openacc_radeon_accel_present): ... this.
7089 Adjust all users.
7090 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7091 (check_effective_target_openacc_radeon_accel_selected): ... this.
7092 Adjust all users.
7093
7094 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7095 'dg-do run'.
7096
7097 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
7098
7099 PR other/94629
7100
7101 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7102 hsa_iterate_agents.
7103 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7104 hsa_agent_iterate_regions.
7105
7106 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7107
7108 PR middle-end/94635
7109 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7110 run'.
7111
7112 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
7113
7114 PR middle-end/94120
7115 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7116 test case.
7117
7118 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
7119
7120 PR middle-end/94635
7121 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7122
7123 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7124
7125 PR libgomp/92843
7126 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7127 Rename to...
7128 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7129 ... this.
7130 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7131 Rename to...
7132 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7133 ... this.
7134 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7135 Rename to...
7136 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7137 ... this.
7138 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7139 Rename to...
7140 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7141 ... this.
7142 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7143 Rename to...
7144 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7145 ... this.
7146 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7147 Rename to...
7148 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7149 ... this.
7150 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7151 Rename to...
7152 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7153 ... this.
7154 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7155 Rename to...
7156 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7157 ... this.
7158 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7159 Rename to...
7160 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7161 ... this.
7162 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7163 Rename to...
7164 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7165 ... this.
7166 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7167 Rename to...
7168 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7169 ... this.
7170 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7171 Rename to...
7172 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7173 ... this.
7174 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7175 Rename to...
7176 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7177 ... this.
7178 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7179 Rename to...
7180 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7181 ... this.
7182 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7183 Rename to...
7184 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7185 ... this.
7186 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7187 Rename to...
7188 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7189 ... this.
7190
7191 2020-04-10 Julian Brown <julian@codesourcery.com>
7192 Thomas Schwinge <thomas@codesourcery.com>
7193
7194 PR libgomp/92843
7195 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7196 New file.
7197 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7198 Likewise.
7199 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7200 Likewise.
7201 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7202 Likewise.
7203 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7204 Likewise.
7205 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7206 Likewise.
7207 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7208 Likewise.
7209 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7210 Likewise.
7211 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7212 Likewise.
7213 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7214 Likewise.
7215 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7216 Likewise.
7217 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7218 Likewise.
7219 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7220 Likewise.
7221 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7222 Likewise.
7223 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7224 Likewise.
7225 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7226 Likewise.
7227
7228 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7229
7230 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7231 run'.
7232
7233 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7234
7235 PR middle-end/94120
7236 * libgomp.oacc-c++/declare-pr94120.C: New.
7237
7238 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7239
7240 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7241 files.
7242 * configure: Regenerate.
7243 * testsuite/libgomp-site-extra.exp.in: New file.
7244 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7245 variable.
7246 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7247 variable.
7248 * testsuite/Makefile.in: Regenerate.
7249
7250 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7251
7252 PR tree-optimization/89713
7253 PR c/94392
7254 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7255 'bar.sync'.
7256 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7257
7258 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7259
7260 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7261 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7262
7263 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7264
7265 PR libgomp/81689
7266 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7267
7268 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7269
7270 PR libgomp/94251
7271 * target.c (gomp_load_image_to_device): Fix link
7272 variable handling.
7273
7274 2020-03-19 Jakub Jelinek <jakub@redhat.com>
7275
7276 PR c++/93931
7277 * testsuite/libgomp.c++/pr93931.C: New test.
7278
7279 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
7280
7281 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7282 dg-allow-blank-lines-in-output.
7283
7284 2020-03-18 Julian Brown <julian@codesourcery.com>
7285 Tobias Burnus <tobias@codesourcery.com>
7286
7287 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7288 it work concurrently.
7289
7290 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
7291
7292 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7293 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7294 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7295
7296 2020-03-14 Jakub Jelinek <jakub@redhat.com>
7297
7298 PR middle-end/93566
7299 * testsuite/libgomp.c/pr93566.c: New test.
7300
7301 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
7302
7303 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7304 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7305 integer(acc_device_property) for the type of the return value of
7306 acc_get_property.
7307
7308 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
7309
7310 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7311 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7312 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7313 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7314 (acc_set_device_num): Fix Fortran argument name, use same name for C.
7315 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7316 corrections; add note about the previous interface and named constant.
7317 (OpenACC library and environment variables): Fix two typos.
7318 * openacc.f90: Use for all procedures the argument names from the spec
7319 as for …_h they are user visible.
7320 (openacc_kinds): Rename acc_device_property to
7321 acc_device_property_kinds and change value to int32 ; and update users.
7322 Re-add acc_device_property for for backward compatibility.
7323 (acc_get_property_string_h): Clean up as acc_device_property_kind
7324 changed.
7325 (acc_get_property_h): Likewise and return c_size_t instead of
7326 acc_device_property.
7327 (openacc): Also export acc_device_property_kinds.
7328 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7329 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7330 handling; check against /= 0 instead of == 1 to match C.
7331 * openacc_lib.h: Use for all procedures the argument names from the spec
7332 as for …_h they are user visible. Place !GCC$ into the first column to
7333 be active also for fixed-form souce form.
7334 (acc_device_current, acc_device_property_kind, acc_device_property,
7335 acc_property_memory, acc_property_free_memory, acc_property_name,
7336 acc_property_vendor, acc_property_driver): New named constants.
7337 (acc_get_property, acc_get_property_string): New generic interface.
7338
7339 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
7340
7341 PR libgomp/93481
7342 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7343 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7344 optional.
7345 (gomp_target_task_fn): Assert "devicep->async_run_func".
7346 (clear_unsupported_flags): New function to remove unsupported flags
7347 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7348 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7349 * testsuite/libgomp.c/target-33.c:
7350 Remove xfail for offload_target_nvptx.
7351 * testsuite/libgomp.c/target-34.c: Likewise.
7352
7353 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
7354
7355 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7356 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7357 * testsuite/libgomp.c/target-34.c: Likewise.
7358 * testsuite/libgomp.c/target-link-1.c: Add xfail for
7359 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7360
7361 2020-02-09 Jakub Jelinek <jakub@redhat.com>
7362
7363 * testsuite/libgomp.c/target-38.c: New test.
7364
7365 2020-02-06 Jakub Jelinek <jakub@redhat.com>
7366
7367 PR libgomp/93515
7368 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7369
7370 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
7371
7372 * testsuite/lib/libgomp.exp
7373 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7374 and not as 'source' argument to libgomp_target_compile.
7375
7376 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
7377
7378 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7379 (gcn_gfx801_s): Remove.
7380 (isa_hsa_name): Remove gfx801.
7381 (isa_gcc_name): Remove gfx801/carizzo.
7382 (isa_code): Remove gfx801.
7383
7384 2020-02-03 Julian Brown <julian@codesourcery.com>
7385 Tobias Burnus <tobias@codesourcery.com>
7386
7387 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7388 and *_finalize variants; document acc_attach and acc_detach; update
7389 references from OpenACC 2.0 to 2.6.
7390 * openacc.f90 (openacc_version): Update to 201711.
7391 * openacc_lib.h (openacc_version): Update to 201711.
7392 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7393 openacc_version to 201711.
7394 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7395
7396 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
7397
7398 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7399 and vgpr_count fields.
7400 (struct kernel_info): Add a field for a hsa_kernel_description.
7401 (run_kernel): Reduce the number of threads/workers if the requested
7402 number would require too many VGPRs.
7403 (init_basic_kernel_info): Initialize description field with
7404 the hsa_kernel_description entry for the kernel.
7405
7406 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
7407
7408 PR bootstrap/93409
7409 * plugin/configfrag.ac (enable_offload_targets): Skip
7410 HSA and GCN plugin besides -m32 also for -mx32.
7411 * configure: Regenerate.
7412
7413 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7414
7415 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7416
7417 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7418
7419 * plugin-gcn.c (struct agent_info): Add fields "name" and
7420 "vendor_name" ...
7421 (GOMP_OFFLOAD_init_device): ... and init from here.
7422 (struct hsa_context_info): Add field "driver_version_s" ...
7423 (init_hsa_contest): ... and init from here.
7424 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7425 implementation.
7426 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7427 Enable test execution for amdgcn and host offloading targets.
7428 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7429 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7430 (expect_device_properties): Split function into ...
7431 (expect_device_string_properties): ... this new function ...
7432 (expect_device_memory): ... and this new function.
7433 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7434 Add test.
7435
7436 2020-01-28 Julian Brown <julian@codesourcery.com>
7437
7438 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7439 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7440 component/non-component variable refs in a single directive.
7441 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7442
7443 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
7444
7445 * configure.ac: Handle `--with-toolexeclibdir='.
7446 * Makefile.in: Regenerate.
7447 * aclocal.m4: Regenerate.
7448 * configure: Regenerate.
7449 * testsuite/Makefile.in: Regenerate.
7450
7451 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
7452
7453 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7454 (expect_device_properties): Remove "expected_free_mem" argument,
7455 change "expected_total_mem" argument type to size_t;
7456 change types of acc_get_property results to size_t,
7457 adapt format strings.
7458 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7459 Use %zu instead of %zd to print size_t values.
7460 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7461 rename to ...
7462 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7463 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7464 rename to ...
7465 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7466
7467 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
7468
7469 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7470 the device id.
7471
7472 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
7473
7474 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7475 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7476 Adjust test dimensions for amdgcn.
7477 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7478 gang/worker/vector expectations dynamically.
7479 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7480 (main): Likewise.
7481 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7482 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7483 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7484 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7485 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7486 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7487 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7488 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7489 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7490 (acc_gang): Recognise acc_device_radeon.
7491 (acc_worker): Likewise.
7492 (acc_vector): Likewise.
7493 (main): Set expectations for amdgcn.
7494 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7495 (main): Adjust gang/worker/vector expectations dynamically.
7496 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7497 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7498 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7499 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7500 for amdgcn.
7501
7502 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
7503
7504 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7505 acc_device_radeon.
7506 (openacc): Likewise.
7507 * openacc.f90 (openacc_kinds): Likewise.
7508 (openacc): Likewise.
7509 * openacc.h (acc_device_t): Likewise.
7510 * openacc_lib.h: Likewise.
7511 * testsuite/lib/libgomp.exp
7512 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7513 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7514 (cb_compute_construct_end): Likewise.
7515 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7516 (cb_enqueue_launch_start): Likewise.
7517 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7518 (cb_enter_data_end): Likewise.
7519 (cb_exit_data_start): Likewise.
7520 (cb_exit_data_end): Likewise.
7521 (cb_compute_construct_end): Likewise.
7522 (cb_enqueue_launch_start): Likewise.
7523 (cb_enqueue_launch_end): Likewise.
7524 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7525 (main): Likewise.
7526
7527 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
7528
7529 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
7530 to use this instead of 'enum gomp_device_property'.
7531 (GOMP_OFFLOAD_get_property): Rename to...
7532 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
7533 * libgomp.h (struct gomp_device_descr): Move
7534 'GOMP_OFFLOAD_openacc_get_property'...
7535 (struct acc_dispatch_t): ... here. Adjust all users.
7536 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7537
7538 * target.c (gomp_map_vars_internal)
7539 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7540 paths.
7541
7542 2020-01-10 Jakub Jelinek <jakub@redhat.com>
7543
7544 PR libgomp/93219
7545 * libgomp.h (gomp_print_string): Change return type from void to int.
7546 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
7547 not all characters have been written.
7548
7549 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
7550
7551 * libgomp.texi: Fix typos, use https.
7552
7553 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
7554
7555 * testsuite/libgomp.fortran/optional-map.f90: Add test for
7556 unallocated/disassociated actual arguments to nonallocatable/nonpointer
7557 dummy arguments; those are/shall be regarded as absent arguments.
7558 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7559 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7560
7561 2020-01-01 Jakub Jelinek <jakub@redhat.com>
7562
7563 Update copyright years.
7564
7565 * libgomp.texi: Bump @copying's copyright year.
7566
7567 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
7568
7569 PR libgomp/93065
7570 * oacc-init.c (goacc_runtime_deinitialize): New function.
7571
7572 2019-12-28 Jakub Jelinek <jakub@redhat.com>
7573
7574 PR bootstrap/93074
7575 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7576 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
7577
7578 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
7579 Frederik Harwath <frederik@codesourcery.com>
7580 Thomas Schwinge <tschwinge@codesourcery.com>
7581
7582 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7583 * libgomp-plugin.h (gomp_device_property_value): New union.
7584 (gomp_device_property_value): New prototype.
7585 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7586 constant.
7587 (acc_device_property_t): New enum.
7588 (acc_get_property, acc_get_property_string): New prototypes.
7589 * oacc-init.c (acc_get_device_type): Also assert that result
7590 is not `acc_device_current'.
7591 (get_property_any, acc_get_property, acc_get_property_string):
7592 New functions.
7593 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7594 `acc_property_memory', `acc_property_free_memory',
7595 `acc_property_name', `acc_property_vendor' and
7596 `acc_property_driver' constants. Add `acc_device_property' data
7597 type.
7598 (openacc_internal): Add `acc_get_property' and
7599 `acc_get_property_string' interfaces. Add `acc_get_property_h',
7600 `acc_get_property_string_h', `acc_get_property_l' and
7601 `acc_get_property_string_l'.
7602 * oacc-host.c (host_get_property): New function.
7603 (host_dispatch): Wire it.
7604 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7605 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7606 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7607 * libgomp.texi (OpenACC Runtime Library Routines): Add
7608 `acc_get_property'.
7609 (acc_get_property): New node.
7610 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7611 function (stub).
7612 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7613 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7614 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7615 calls.
7616 (GOMP_OFFLOAD_get_property): New function.
7617 (struct ptx_device): Add new field "name".
7618 (cuda_driver_version_s): Add new static variable ...
7619 (nvptx_init): ... and init from here.
7620
7621 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7622 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7623 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7624 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7625 with test helper functions.
7626
7627 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7628
7629 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
7630
7631 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7632 variable.
7633
7634 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
7635
7636 * target.c (gomp_map_vars_internal): Restore 'omp declare target
7637 link' handling.
7638
7639 2019-12-19 Julian Brown <julian@codesourcery.com>
7640
7641 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7642 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7643 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7644
7645 2019-12-19 Julian Brown <julian@codesourcery.com>
7646 Cesar Philippidis <cesar@codesourcery.com>
7647
7648 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7649 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7650 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7651 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7652 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7653 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7654 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7655 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7656 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7657 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7658 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7659 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7660 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7661
7662 2019-12-19 Julian Brown <julian@codesourcery.com>
7663
7664 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7665 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7666 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7667 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7668 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7669 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7670 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7671 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7672 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7673 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7674 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7675 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7676
7677 2019-12-19 Julian Brown <julian@codesourcery.com>
7678
7679 * libgomp.h (struct target_var_desc): Add do_detach flag.
7680 * oacc-init.c (acc_shutdown_1): Free aux block if present.
7681 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7682 struct components. Tidy up and add some new checks.
7683 (goacc_enter_data_internal): Update call to find_group_last.
7684 (goacc_exit_data_internal): Support detach operations and
7685 GOMP_MAP_STRUCT.
7686 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7687 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
7688 attach/detach in enter/exit data detection code.
7689 * target.c (gomp_map_vars_existing): Initialise do_detach field of
7690 tgt_var_desc.
7691 (gomp_map_vars_internal): Support attach.
7692 (gomp_unmap_vars_internal): Support detach.
7693
7694 2019-12-19 Julian Brown <julian@codesourcery.com>
7695 Thomas Schwinge <thomas@codesourcery.com>
7696
7697 * libgomp.h (struct splay_tree_aux): Add attach_count field.
7698 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7699 * libgomp.map (OACC_2.6): New section. Add acc_attach,
7700 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7701 acc_detach_finalize_async.
7702 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7703 acc_detach, acc_detach_async, acc_detach_finalize,
7704 acc_detach_finalize_async): New functions.
7705 * openacc.h (acc_attach, acc_attach_async, acc_detach,
7706 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7707 prototypes.
7708 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7709 (gomp_remove_var_internal): Free attachment counts if present.
7710 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7711 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7712
7713 2019-12-19 Julian Brown <julian@codesourcery.com>
7714 Cesar Philippidis <cesar@codesourcery.com>
7715
7716 * libgomp.h (gomp_map_val): Add prototype.
7717 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7718 open-coding device-address calculation.
7719 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7720 non-present case.
7721
7722 2019-12-19 Julian Brown <julian@codesourcery.com>
7723
7724 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7725 field for virtual_refcount.
7726 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7727 (gomp_free_memmap): Remove prototype.
7728 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7729 instead of calling gomp_free_memmap.
7730 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7731 dynamic_refcount.
7732 (acc_unmap_data): Open code instead of forcing target_mem_desc's
7733 to_free field to NULL then calling gomp_unmap_vars. Handle
7734 REFCOUNT_INFINITY on target blocks.
7735 (goacc_enter_data): Rename to...
7736 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
7737 handling for mapping groups. Use virtual_refcount instead of
7738 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7739 map_map_vars_async call. Re-do lookup for target pointer return value.
7740 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7741 renamed goacc_enter_datum function.
7742 (goacc_exit_data): Rename to...
7743 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
7744 (acc_delete, acc_delete_async, acc_delete_finalize,
7745 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7746 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7747 goacc_exit_datum function.
7748 (gomp_acc_remove_pointer, find_pointer): Remove functions.
7749 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7750 New functions.
7751 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7752 goacc_exit_data_internal helper functions.
7753 * target.c (gomp_map_vars_internal): Handle
7754 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
7755 semantics.
7756 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7757 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7758 virtual_refcount field instead of dynamic_refcount.
7759 (gomp_free_memmap): Remove function.
7760 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7761 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7762 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7763
7764 2019-12-19 Julian Brown <julian@codesourcery.com>
7765 Thomas Schwinge <thomas@codesourcery.com>
7766
7767 * libgomp.h (struct splay_tree_aux): New.
7768 (struct splay_tree_key_s): Replace link_key field with aux pointer.
7769 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7770 to aux struct.
7771 (gomp_remove_var_internal): Free aux block if present.
7772 (gomp_load_image_to_device): Zero-initialise aux field instead of
7773 link_key field.
7774 (omp_target_associate_pointer): Zero-initialise aux field.
7775
7776 2019-12-18 Jakub Jelinek <jakub@redhat.com>
7777
7778 PR middle-end/86416
7779 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7780 q or none.
7781 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7782 L or none.
7783
7784 2019-12-19 Julian Brown <julian@codesourcery.com>
7785 Maciej W. Rozycki <macro@codesourcery.com>
7786 Tobias Burnus <tobias@codesourcery.com>
7787 Thomas Schwinge <thomas@codesourcery.com>
7788
7789 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7790 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7791 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7792 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7793 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7794 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7795 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7796 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7797 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7798
7799 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
7800
7801 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7802 called...
7803 (goacc_insert_pointer): ... from here, "present" case.
7804 (goacc_insert_pointer): Inline function into...
7805 (GOACC_enter_exit_data): ... here, and simplify.
7806
7807 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7808 called...
7809 (goacc_insert_pointer): ... from here, "not present" case.
7810
7811 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
7812 all users.
7813
7814 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7815 'goacc_enter_data', 'goacc_exit_data'.
7816
7817 * oacc-mem.c (delete_copyout): Refactor into...
7818 (goacc_exit_data): ... this. Adjust all users.
7819
7820 * oacc-mem.c (present_create_copy): Refactor into...
7821 (goacc_enter_data): ... this. Adjust all users.
7822
7823 * target.c (gomp_unmap_vars_internal): Add a safeguard to
7824 'gomp_remove_var'.
7825
7826 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7827 like 'GOMP_MAP_FROM'.
7828
7829 PR libgomp/92726
7830 PR libgomp/92970
7831 PR libgomp/92984
7832 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7833 fails.
7834 (GOACC_enter_exit_data): Simplify accordingly.
7835 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7836 subsuming...
7837 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7838 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7839 file.
7840 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7841 subsuming...
7842 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7843 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7844 file.
7845 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7846 subsuming...
7847 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7848
7849 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7850 'finalize' handling.
7851
7852 PR libgomp/92848
7853 * oacc-mem.c (acc_map_data, present_create_copy)
7854 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7855 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7856 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7857 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7858 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7859 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7860 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7861 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7862 Remove "XFAIL"s.
7863
7864 * target.c (gomp_unmap_tgt): Make it 'static'.
7865 * libgomp.h (gomp_unmap_tgt): Remove.
7866
7867 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
7868
7869 PR middle-end/86416
7870 * testsuite/libgomp.c/pr86416-1.c: New.
7871 * testsuite/libgomp.c/pr86416-2.c: New.
7872
7873 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
7874
7875 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7876 all symbols as public except for the 'use …, only' imported symbol,
7877 which is private.
7878 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7879 all symbols from module openacc_kinds as PUBLIC
7880 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7881 fix comment typo.
7882 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7883
7884 2019-12-13 Julian Brown <julian@codesourcery.com>
7885
7886 PR libgomp/92881
7887
7888 * libgomp.h (gomp_remove_var_async): Add prototype.
7889 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7890 gomp_remove_var.
7891 * target.c (gomp_unref_tgt): Change return type to bool, indicating
7892 whether target_mem_desc was unmapped.
7893 (gomp_unref_tgt_void): New.
7894 (gomp_remove_var): Reimplement in terms of...
7895 (gomp_remove_var_internal): ...this new helper function.
7896 (gomp_remove_var_async): New, implemented using above helper function.
7897 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7898 gomp_unref_tgt.
7899
7900 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
7901
7902 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7903 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
7904 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
7905 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
7906 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
7907 Likewise.
7908 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
7909 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
7910
7911 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
7912
7913 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
7914 as public except for the 'use …, only' imported symbol, which is
7915 private.
7916 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7917 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
7918 attributes for acc_copyout_finalize and acc_delete_finalize.
7919
7920 2019-12-11 Jakub Jelinek <jakub@redhat.com>
7921
7922 PR fortran/92899
7923 * testsuite/libgomp.fortran/atomic1.f90: New test.
7924
7925 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7926
7927 PR libgomp/92843
7928 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
7929 reference counting for structured 'REFCOUNT_INFINITY'. Add some
7930 assertions.
7931 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
7932 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
7933 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
7934 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7935 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7936
7937 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
7938 * oacc-mem.c: ... here.
7939 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
7940 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
7941 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7942 Remove.
7943 * libgomp_g.h: Update.
7944
7945 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
7946 * oacc-async.c: ... here.
7947 * oacc-int.h (goacc_wait): Declare.
7948 * libgomp_g.h: Update
7949
7950 PR libgomp/92854
7951 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7952 New file.
7953 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7954 Likewise.
7955 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7956 Likewise.
7957 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7958 Likewise.
7959 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7960 Likewise.
7961 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7962 Likewise.
7963
7964 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7965 Julian Brown <julian@codesourcery.com>
7966
7967 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7968 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7969
7970 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7971
7972 * omp_lib.h.in: Fix spelling of function declaration
7973 omp_get_cancell(l)ation.
7974 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7975 Fix typos.
7976 * env.c: Fix comment typos.
7977 * oacc-host.c: Likewise.
7978 * ordered.c: Likewise.
7979 * task.c: Likewise.
7980 * team.c: Likewise.
7981 * config/gcn/task.c: Likewise.
7982 * config/gcn/team.c: Likewise.
7983 * config/nvptx/task.c: Likewise.
7984 * config/nvptx/team.c: Likewise.
7985 * plugin/plugin-gcn.c: Likewise.
7986 * testsuite/libgomp.fortran/jacobi.f: Likewise.
7987 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7988 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
7989
7990 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7991
7992 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
7993 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
7994 unnecessary 'dg-additional-options "-w"'.
7995
7996 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7997 Julian Brown <julian@codesourcery.com>
7998
7999 PR libgomp/92116
8000 PR libgomp/92877
8001
8002 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8003 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8004 Adjust all users.
8005 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8006 Remove XFAIL.
8007 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8008 Likewise.
8009 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8010
8011 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8012
8013 PR libgomp/92503
8014 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8015 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8016 file.
8017 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8018 Likewise.
8019 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8020 Likewise.
8021 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8022 Likewise.
8023 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8024 Likewise.
8025 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8026 Likewise.
8027 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8028 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8029 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8030 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8031 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8032 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8033 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8034 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8035 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8036 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8037
8038 PR libgomp/92840
8039 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8040 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8041 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8042 New file.
8043 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8044 Likewise.
8045 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8046 Likewise.
8047 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8048 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8049
8050 PR libgomp/92511
8051 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8052 this file...
8053 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8054 this file...
8055 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8056 file...
8057 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8058 file...
8059 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8060 ... with their content moved into, and extended in this new file.
8061 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8062 New file.
8063 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8064 Likewise.
8065 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8066 Likewise.
8067 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8068 Likewise.
8069
8070 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8071
8072 PR libgomp/92854
8073 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8074
8075 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8076
8077 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8078
8079 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
8080
8081 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8082 unique.
8083 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8084 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8085 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8086 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8087 Ditto.
8088 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8089 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8090
8091 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8092
8093 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8094
8095 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
8096 Kwok Cheung Yeung <kcy@codesourcery.com>
8097
8098 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8099 if input it a NULL pointer.
8100 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8101 diagnostic of NULL pointer.
8102 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8103 * testsuite/libgomp.fortran/optional-map.f90: New.
8104 * testsuite/libgomp.fortran/use_device_addr-1.f90
8105 (test_dummy_opt_callee_1_absent): New.
8106 (test_dummy_opt_call_1): Call it.
8107 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8108 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8109 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8110 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8111 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8112 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8113 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8114 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8115 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8116 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8117 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8118 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8119 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8120 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8121 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8122 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8123
8124 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
8125
8126 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8127 expect dg-output of 'Error termination.' for GCN.
8128 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8129 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8130
8131 2019-12-04 Jakub Jelinek <jakub@redhat.com>
8132
8133 PR fortran/92756
8134 * testsuite/libgomp.fortran/teams1.f90: New test.
8135 * testsuite/libgomp.fortran/teams2.f90: New test.
8136
8137 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
8138
8139 * oacc-init.c (acc_known_device_type): Add function.
8140 (unknown_device_type_error): Add function.
8141 (name_of_acc_device_t): Change to call unknown_device_type_error
8142 on unknown type.
8143 (resolve_device): Use acc_known_device_type.
8144 (acc_init): Fail if acc_device_t argument is not valid.
8145 (acc_shutdown): Likewise.
8146 (acc_get_num_devices): Likewise.
8147 (acc_set_device_type): Likewise.
8148 (acc_get_device_num): Likewise.
8149 (acc_set_device_num): Likewise.
8150 (acc_on_device): Add comment that argument validity is not checked.
8151
8152 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
8153
8154 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8155 Recognize amdgcn.
8156 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8157 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8158 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8159 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8160 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8161
8162 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8163
8164 PR libgomp/91938
8165 * configure.tgt: Avoid IE tls on *-*-musl*.
8166
8167 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
8168
8169 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8170 adding a common-block test case.
8171
8172 2019-11-29 Jakub Jelinek <jakub@redhat.com>
8173
8174 PR c++/60228
8175 * testsuite/libgomp.c++/udr-20.C: New test.
8176 * testsuite/libgomp.c++/udr-21.C: New test.
8177
8178 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8179
8180 * testsuite/lib/libgomp.exp
8181 (check_effective_target_offload_target_nvptx): New proc.
8182 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8183 'dg-skip-if'.
8184 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8185 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8186 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8187
8188 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8189
8190 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8191 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8192 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8193 * testsuite/libgomp.c/private-1.c: Likewise.
8194 * testsuite/libgomp.c/task-1.c: Likewise.
8195 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8196
8197 2019-11-20 Julian Brown <julian@codesourcery.com>
8198
8199 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8200 aq->mutex here.
8201 (queue_push_launch): Lock aq->mutex before calling
8202 wait_for_queue_nonfull.
8203 (queue_push_callback): Likewise.
8204 (queue_push_asyncwait): Likewise.
8205 (queue_push_placeholder): Likewise.
8206
8207 2019-11-20 Julian Brown <julian@codesourcery.com>
8208
8209 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8210 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8211 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8212 return code.
8213
8214 2019-11-20 Julian Brown <julian@codesourcery.com>
8215
8216 PR libgomp/92511
8217
8218 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8219 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8220 in non-present/create case.
8221 (delete_copyout): Change error condition to fail only on copies outside
8222 of mapped block. Adjust error message accordingly.
8223 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8224 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8225 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8226 message.
8227 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8228 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8229 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8230
8231 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8232
8233 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8234 libatomic in build-tree testing.
8235
8236 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8237
8238 * testsuite/Makefile.in: Regenerate.
8239
8240 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8241
8242 * testsuite/libgomp.c/target-print-1.c: New file.
8243 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8244 * testsuite/libgomp.oacc-c/print-1.c: New file.
8245 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8246
8247 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8248 Kwok Cheung Yeung <kcy@codesourcery.com>
8249 Julian Brown <julian@codesourcery.com>
8250 Tom de Vries <tom@codesourcery.com>
8251
8252 * plugin/Makefrag.am: Add amdgcn plugin support.
8253 * plugin/configfrag.ac: Likewise.
8254 * plugin/plugin-gcn.c: New file.
8255 * configure: Regenerate.
8256 * Makefile.in: Regenerate.
8257 * testsuite/Makefile.in: Regenerate.
8258
8259 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8260
8261 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8262 and use team_malloc variants.
8263 (gomp_gcn_exit_kernel): Use team_free.
8264 * libgomp.h (TEAM_ARENA_SIZE): Define.
8265 (TEAM_ARENA_START): Define.
8266 (TEAM_ARENA_FREE): Define.
8267 (TEAM_ARENA_END): Define.
8268 (team_malloc): New function.
8269 (team_malloc_cleared): New function.
8270 (team_free): New function.
8271 * team.c (gomp_new_team): Initialize and use team_malloc.
8272 (free_team): Use team_free.
8273 (gomp_free_thread): Use team_free.
8274 (gomp_pause_host): Use team_free.
8275 * work.c (gomp_init_work_share): Use team_malloc.
8276 (gomp_fini_work_share): Use team_free.
8277
8278 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8279 Kwok Cheung Yeung <kcy@codesourcery.com>
8280 Julian Brown <julian@codesourcery.com>
8281 Tom de Vries <tom@codesourcery.com>
8282
8283 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8284 * Makefile.in: Regenerate.
8285 * config.h.in (PLUGIN_GCN): Add new undef.
8286 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8287 * config/gcn/affinity-fmt.c: New file.
8288 * config/gcn/bar.c: New file.
8289 * config/gcn/bar.h: New file.
8290 * config/gcn/doacross.h: New file.
8291 * config/gcn/icv-device.c: New file.
8292 * config/gcn/oacc-target.c: New file.
8293 * config/gcn/simple-bar.h: New file.
8294 * config/gcn/target.c: New file.
8295 * config/gcn/task.c: New file.
8296 * config/gcn/team.c: New file.
8297 * config/gcn/time.c: New file.
8298 * configure.ac: Add amdgcn*-*-*.
8299 * configure: Regenerate.
8300 * configure.tgt: Add amdgcn*-*-*.
8301 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8302 * libgomp.h (gcn_thrs): Add amdgcn variant.
8303 (set_gcn_thrs): Likewise.
8304 (gomp_thread): Likewise.
8305 * oacc-int.h (goacc_thread): Likewise.
8306 * oacc-target.c: New file.
8307 * openacc.f90 (acc_device_gcn): New parameter.
8308 * openacc.h (acc_device_t): Add acc_device_gcn.
8309 * team.c (gomp_free_pool_helper): Add amdgcn support.
8310
8311 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8312 Julian Brown <julian@codesourcery.com>
8313
8314 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8315 parameter.
8316 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8317 queue constructor.
8318 * oacc-host.c (host_openacc_async_construct): Add device parameter.
8319 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8320 device parameter.
8321
8322 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8323
8324 * configure.tgt (nvptx*-*-*): Add "accel" directory.
8325 * config/nvptx/libgomp-plugin.c: Move ...
8326 * config/accel/libgomp-plugin.c: ... to here.
8327 * config/nvptx/lock.c: Move ...
8328 * config/accel/lock.c: ... to here.
8329 * config/nvptx/mutex.c: Move ...
8330 * config/accel/mutex.c: ... to here.
8331 * config/nvptx/mutex.h: Move ...
8332 * config/accel/mutex.h: ... to here.
8333 * config/nvptx/oacc-async.c: Move ...
8334 * config/accel/oacc-async.c: ... to here.
8335 * config/nvptx/oacc-cuda.c: Move ...
8336 * config/accel/oacc-cuda.c: ... to here.
8337 * config/nvptx/oacc-host.c: Move ...
8338 * config/accel/oacc-host.c: ... to here.
8339 * config/nvptx/oacc-init.c: Move ...
8340 * config/accel/oacc-init.c: ... to here.
8341 * config/nvptx/oacc-mem.c: Move ...
8342 * config/accel/oacc-mem.c: ... to here.
8343 * config/nvptx/oacc-plugin.c: Move ...
8344 * config/accel/oacc-plugin.c: ... to here.
8345 * config/nvptx/omp-lock.h: Move ...
8346 * config/accel/omp-lock.h: ... to here.
8347 * config/nvptx/openacc.f90: Move ...
8348 * config/accel/openacc.f90: ... to here.
8349 * config/nvptx/pool.h: Move ...
8350 * config/accel/pool.h: ... to here.
8351 * config/nvptx/proc.c: Move ...
8352 * config/accel/proc.c: ... to here.
8353 * config/nvptx/ptrlock.c: Move ...
8354 * config/accel/ptrlock.c: ... to here.
8355 * config/nvptx/ptrlock.h: Move ...
8356 * config/accel/ptrlock.h: ... to here.
8357 * config/nvptx/sem.c: Move ...
8358 * config/accel/sem.c: ... to here.
8359 * config/nvptx/sem.h: Move ...
8360 * config/accel/sem.h: ... to here.
8361 * config/nvptx/thread-stacksize.h: Move ...
8362 * config/accel/thread-stacksize.h: ... to here.
8363
8364 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
8365 Tobias Burnus <tobias@codesourcery.com>
8366 Frederik Harwath <frederik@codesourcery.com>
8367 Thomas Schwinge <thomas@codesourcery.com>
8368
8369 libgomp/
8370 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8371 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8372 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8373
8374 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
8375 Kwok Cheung Yeung <kcy@codesourcery.com>
8376
8377 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8378 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8379
8380 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
8381
8382 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8383
8384 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8385 run'.
8386 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8387 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8388
8389 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
8390
8391 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8392 Add expected warnings about missing reduction clauses.
8393 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8394 Likewise.
8395 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8396 Likewise.
8397 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8398 Likewise.
8399
8400 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8401
8402 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8403 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8404 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8405 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8406 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8407 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8408
8409 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8410
8411 PR fortran/92305
8412 * testsuite/libgomp.fortran/allocatable2.f90: Use
8413 unique numbers with 'stop'.
8414 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8415 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8416 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8417 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8418 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8419
8420 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
8421
8422 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8423 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8424 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8425 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8426 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8427 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8428
8429 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8430
8431 * testsuite/libgomp.fortran/target9.f90: New.
8432
8433 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8434
8435 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8436 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8437 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8438 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8439 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8440 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8441 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8442 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8443 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8444 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8445 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8446 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8447 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8448 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8449 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8450 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8451 * testsuite/libgomp.fortran/associate1.f90: Ditto.
8452 * testsuite/libgomp.fortran/associate2.f90: Ditto.
8453 * testsuite/libgomp.fortran/associate3.f90: Ditto.
8454 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8455 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8456 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8457 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8458 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8459 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8460 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8461 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8462 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8463 * testsuite/libgomp.fortran/character1.f90: Ditto.
8464 * testsuite/libgomp.fortran/character2.f90: Ditto.
8465 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8466 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8467 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8468 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8469 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8470 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8471 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8472 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8473 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8474 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8475 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8476 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8477 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8478 * testsuite/libgomp.fortran/do1.f90: Ditto.
8479 * testsuite/libgomp.fortran/do2.f90: Ditto.
8480 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8481 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8482 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8483 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8484 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8485 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8486 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8487 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8488 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8489 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8490 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8491 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8492 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8493 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8494 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8495 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8496 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8497 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8498 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8499 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8500 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8501 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8502 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8503 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8504 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8505 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8506 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8507 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8508 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8509 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8510 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8511 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8512 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8513 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8514 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8515 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8516 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8517 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8518 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8519 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8520 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8521 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8522 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8523 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8524 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8525 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8526 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8527 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8528 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8529 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8530 * testsuite/libgomp.fortran/lib1.f90: Ditto.
8531 * testsuite/libgomp.fortran/lib4.f90: Ditto.
8532 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8533 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8534 * testsuite/libgomp.fortran/nested1.f90: Ditto.
8535 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8536 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8537 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8538 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8539 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8540 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8541 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8542 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8543 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8544 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8545 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8546 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8547 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8548 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8549 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8550 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8551 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8552 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8553 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8554 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8555 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8556 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8557 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8558 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8559 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8560 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8561 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8562 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8563 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8564 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8565 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8566 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8567 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8568 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8569 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8570 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8571 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8572 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8573 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8574 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8575 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8576 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8577 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8578 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8579 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8580 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8581 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8582 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8583 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8584 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8585 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8586 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8587 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8588 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8589 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8590 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8591 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8592 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8593 * testsuite/libgomp.fortran/reference1.f90: Ditto.
8594 * testsuite/libgomp.fortran/reference2.f90: Ditto.
8595 * testsuite/libgomp.fortran/retval1.f90: Ditto.
8596 * testsuite/libgomp.fortran/retval2.f90: Ditto.
8597 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8598 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8599 * testsuite/libgomp.fortran/simd1.f90: Ditto.
8600 * testsuite/libgomp.fortran/simd2.f90: Ditto.
8601 * testsuite/libgomp.fortran/simd3.f90: Ditto.
8602 * testsuite/libgomp.fortran/simd4.f90: Ditto.
8603 * testsuite/libgomp.fortran/simd5.f90: Ditto.
8604 * testsuite/libgomp.fortran/simd6.f90: Ditto.
8605 * testsuite/libgomp.fortran/simd7.f90: Ditto.
8606 * testsuite/libgomp.fortran/stack.f90: Ditto.
8607 * testsuite/libgomp.fortran/strassen.f90: Ditto.
8608 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8609 * testsuite/libgomp.fortran/tabs2.f: Ditto.
8610 * testsuite/libgomp.fortran/target1.f90: Ditto.
8611 * testsuite/libgomp.fortran/target2.f90: Ditto.
8612 * testsuite/libgomp.fortran/target3.f90: Ditto.
8613 * testsuite/libgomp.fortran/target4.f90: Ditto.
8614 * testsuite/libgomp.fortran/target5.f90: Ditto.
8615 * testsuite/libgomp.fortran/target6.f90: Ditto.
8616 * testsuite/libgomp.fortran/target7.f90: Ditto.
8617 * testsuite/libgomp.fortran/target8.f90: Ditto.
8618 * testsuite/libgomp.fortran/task1.f90: Ditto.
8619 * testsuite/libgomp.fortran/task2.f90: Ditto.
8620 * testsuite/libgomp.fortran/task3.f90: Ditto.
8621 * testsuite/libgomp.fortran/task4.f90: Ditto.
8622 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8623 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8624 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8625 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8626 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8627 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8628 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8629 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8630 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8631 * testsuite/libgomp.fortran/udr1.f90: Ditto.
8632 * testsuite/libgomp.fortran/udr10.f90: Ditto.
8633 * testsuite/libgomp.fortran/udr11.f90: Ditto.
8634 * testsuite/libgomp.fortran/udr12.f90: Ditto.
8635 * testsuite/libgomp.fortran/udr13.f90: Ditto.
8636 * testsuite/libgomp.fortran/udr14.f90: Ditto.
8637 * testsuite/libgomp.fortran/udr15.f90: Ditto.
8638 * testsuite/libgomp.fortran/udr2.f90: Ditto.
8639 * testsuite/libgomp.fortran/udr3.f90: Ditto.
8640 * testsuite/libgomp.fortran/udr4.f90: Ditto.
8641 * testsuite/libgomp.fortran/udr5.f90: Ditto.
8642 * testsuite/libgomp.fortran/udr6.f90: Ditto.
8643 * testsuite/libgomp.fortran/udr7.f90: Ditto.
8644 * testsuite/libgomp.fortran/udr8.f90: Ditto.
8645 * testsuite/libgomp.fortran/udr9.f90: Ditto.
8646 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8647 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8648 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8649 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8650 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8651 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8652 * testsuite/libgomp.fortran/vla7.f90: Ditto.
8653 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8654 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8655 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8656
8657 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8658
8659 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8660 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8661 Ditto; add 'dg-do run' for torture testing.
8662 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
8663 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8664 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8665 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8666 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8667 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8668 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8669 * testsuite/libgomp.fortran/task2.f90: Ditto.
8670 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8671 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8672 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8673 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8674 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8675 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8676
8677 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
8678
8679 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8680 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8681 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8682 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8683 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8684 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8685 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8686 Use 'stop' not abort().
8687 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8688 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8689 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8690 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8691 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8692 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8693 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8694 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8695 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8696 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8697 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8698 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8699 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8700 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8701 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8702 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8703 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8704 Ditto.
8705 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8706 Ditto.
8707 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8708 Ditto.
8709 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8710 Ditto.
8711 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8712 Ditto.
8713 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8714 Ditto.
8715 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8716 Ditto.
8717 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8718 Ditto.
8719 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8720 Ditto.
8721 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8722 Ditto.
8723 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8724 Ditto.
8725 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8726 Ditto.
8727 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8728 Ditto.
8729 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8730 Ditto.
8731 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8732 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8733 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8734 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8735 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8736 Likewise and also add 'dg-do run'.
8737 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8738 Ditto.
8739
8740 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
8741 Tobias Burnus <tobias@codesourcery.com>
8742
8743 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8744 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8745 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8746
8747 2019-10-14 Jakub Jelinek <jakub@redhat.com>
8748
8749 PR libgomp/92081
8750 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8751 than 0.
8752
8753 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8754
8755 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8756 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8757
8758 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
8759
8760 PR middle-end/92036
8761 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8762 file.
8763
8764 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
8765
8766 PR testsuite/91884
8767 * testsuite/libgomp.fortran/fortran.exp: Conditionally
8768 add -lquadmath.
8769 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8770
8771 2019-10-09 Jakub Jelinek <jakub@redhat.com>
8772
8773 PR libgomp/92028
8774 * target.c (gomp_map_vars_internal): Readd the previous
8775 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8776 though do that just in the !not_found_cnt case.
8777
8778 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
8779
8780 * gfortran.dg/gomp/target-simd.f90: New.
8781
8782 2019-10-02 Julian Brown <julian@codesourcery.com>
8783 Cesar Philippidis <cesar@codesourcery.com>
8784
8785 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8786 * target.c (FIELD_TGT_EMPTY): Define.
8787 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
8788 as switch instead of list of ifs.
8789 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8790
8791 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
8792
8793 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8794 include. Replace alloca () with __builtin_alloca ().
8795 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8796
8797 2019-10-01 Jakub Jelinek <jakub@redhat.com>
8798
8799 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8800 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8801 * oacc-parallel.c: Don't include "libgomp_g.h".
8802 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8803 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8804 * aclocal.m4: Regenerated.
8805 * config.h.in: Regenerated.
8806 * configure: Regenerated.
8807 * Makefile.in: Regenerated.
8808
8809 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
8810
8811 * libgomp_g.h: Include stdint.h instead of gstdint.h.
8812
8813 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8814
8815 * configure: Regenerate.
8816
8817 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
8818
8819 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8820 string is initialized.
8821
8822 2019-09-06 Florian Weimer <fweimer@redhat.com>
8823
8824 * configure: Regenerate.
8825
8826 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
8827
8828 PR other/79543
8829 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8830 scanning to conform to the GNU Coding Standards.
8831 * configure: Regenerate.
8832
8833 2019-08-28 Jakub Jelinek <jakub@redhat.com>
8834
8835 PR libgomp/91530
8836 * testsuite/libgomp.c/scan-21.c: New test.
8837 * testsuite/libgomp.c/scan-22.c: New test.
8838
8839 2019-08-27 Jakub Jelinek <jakub@redhat.com>
8840
8841 PR libgomp/91530
8842 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8843 targets.
8844 * testsuite/libgomp.c/scan-12.c: Likewise.
8845 * testsuite/libgomp.c/scan-13.c: Likewise.
8846 * testsuite/libgomp.c/scan-14.c: Likewise.
8847 * testsuite/libgomp.c/scan-15.c: Likewise.
8848 * testsuite/libgomp.c/scan-16.c: Likewise.
8849 * testsuite/libgomp.c/scan-17.c: Likewise.
8850 * testsuite/libgomp.c/scan-18.c: Likewise.
8851 * testsuite/libgomp.c/scan-19.c: Likewise.
8852 * testsuite/libgomp.c/scan-20.c: Likewise.
8853 * testsuite/libgomp.c++/scan-9.C: Likewise.
8854 * testsuite/libgomp.c++/scan-10.C: Likewise.
8855 * testsuite/libgomp.c++/scan-11.C: Likewise.
8856 * testsuite/libgomp.c++/scan-12.C: Likewise.
8857 * testsuite/libgomp.c++/scan-14.C: Likewise.
8858 * testsuite/libgomp.c++/scan-15.C: Likewise.
8859 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
8860 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8861 * testsuite/libgomp.c++/scan-16.C: Likewise.
8862
8863 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
8864
8865 PR fortran/91473
8866 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8867 -std=legacy so invalid code in the test case is accepted.
8868
8869 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8870
8871 PR fortran/91422
8872 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8873 dimension.
8874
8875 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8876
8877 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8878 perform the lookup in the first loop only if !not_found_cnt, otherwise
8879 perform lookups for it in the second loop guarded with
8880 if (not_found_cnt || has_firstprivate).
8881 * testsuite/libgomp.c/target-37.c: New test.
8882 * testsuite/libgomp.c++/target-22.C: New test.
8883
8884 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8885
8886 * testsuite/libgomp.c/target-18.c (struct S): New type.
8887 (foo): Use use_device_addr clause instead of use_device_ptr clause
8888 where required by OpenMP 5.0, add further tests for both use_device_ptr
8889 and use_device_addr clauses.
8890 * testsuite/libgomp.c++/target-9.C (struct S): New type.
8891 (foo): Use use_device_addr clause instead of use_device_ptr clause
8892 where required by OpenMP 5.0, add further tests for both use_device_ptr
8893 and use_device_addr clauses. Add t and u arguments.
8894 (main): Adjust caller.
8895
8896 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8897
8898 * testsuite/libgomp.c++/loop-13.C: New test.
8899 * testsuite/libgomp.c++/loop-14.C: New test.
8900 * testsuite/libgomp.c++/loop-15.C: New test.
8901
8902 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8903
8904 PR middle-end/91301
8905 * testsuite/libgomp.c++/for-27.C: New test.
8906
8907 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
8908
8909 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8910 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8911
8912 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8913
8914 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
8915
8916 2019-07-08 Jakub Jelinek <jakub@redhat.com>
8917
8918 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
8919 * testsuite/libgomp.c++/scan-16.C: Likewise.
8920
8921 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8922
8923 * testsuite/libgomp.c/scan-19.c: New test.
8924 * testsuite/libgomp.c/scan-20.c: New test.
8925
8926 * testsuite/libgomp.c/scan-11.c: New test.
8927 * testsuite/libgomp.c/scan-12.c: New test.
8928 * testsuite/libgomp.c/scan-13.c: New test.
8929 * testsuite/libgomp.c/scan-14.c: New test.
8930 * testsuite/libgomp.c/scan-15.c: New test.
8931 * testsuite/libgomp.c/scan-16.c: New test.
8932 * testsuite/libgomp.c/scan-17.c: New test.
8933 * testsuite/libgomp.c/scan-18.c: New test.
8934 * testsuite/libgomp.c++/scan-9.C: New test.
8935 * testsuite/libgomp.c++/scan-10.C: New test.
8936 * testsuite/libgomp.c++/scan-11.C: New test.
8937 * testsuite/libgomp.c++/scan-12.C: New test.
8938 * testsuite/libgomp.c++/scan-13.C: New test.
8939 * testsuite/libgomp.c++/scan-14.C: New test.
8940 * testsuite/libgomp.c++/scan-15.C: New test.
8941 * testsuite/libgomp.c++/scan-16.C: New test.
8942
8943 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8944
8945 * testsuite/libgomp.c/scan-9.c: New test.
8946 * testsuite/libgomp.c/scan-10.c: New test.
8947
8948 2019-07-03 Jakub Jelinek <jakub@redhat.com>
8949
8950 * testsuite/libgomp.c++/scan-1.C: New test.
8951 * testsuite/libgomp.c++/scan-2.C: New test.
8952 * testsuite/libgomp.c++/scan-3.C: New test.
8953 * testsuite/libgomp.c++/scan-4.C: New test.
8954 * testsuite/libgomp.c++/scan-5.C: New test.
8955 * testsuite/libgomp.c++/scan-6.C: New test.
8956 * testsuite/libgomp.c++/scan-7.C: New test.
8957 * testsuite/libgomp.c++/scan-8.C: New test.
8958 * testsuite/libgomp.c/scan-1.c: New test.
8959 * testsuite/libgomp.c/scan-2.c: New test.
8960 * testsuite/libgomp.c/scan-3.c: New test.
8961 * testsuite/libgomp.c/scan-4.c: New test.
8962 * testsuite/libgomp.c/scan-5.c: New test.
8963 * testsuite/libgomp.c/scan-6.c: New test.
8964 * testsuite/libgomp.c/scan-7.c: New test.
8965 * testsuite/libgomp.c/scan-8.c: New test.
8966
8967 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8968
8969 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8970 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8971 Likewise.
8972
8973 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8974 check.
8975
8976 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
8977
8978 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8979 file.
8980
8981 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8982
8983 PR fortran/90743
8984 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8985 case.
8986 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8987 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8988 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
8989 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
8990
8991 PR testsuite/90861
8992 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
8993
8994 PR middle-end/90862
8995 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8996
8997 2019-06-16 Tom de Vries <tdevries@suse.de>
8998
8999 PR tree-optimization/89376
9000 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9001
9002 2019-06-15 Tom de Vries <tdevries@suse.de>
9003
9004 PR tree-optimization/89713
9005 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9006 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9007
9008 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9009
9010 PR middle-end/90779
9011 * testsuite/libgomp.c/pr90779.c: New test.
9012 * testsuite/libgomp.fortran/pr90779.f90: New test.
9013
9014 2019-06-15 Tom de Vries <tdevries@suse.de>
9015
9016 PR tree-optimization/90009
9017 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9018
9019 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9020
9021 PR tree-optimization/89713
9022 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9023
9024 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9025
9026 PR target/90811
9027 * testsuite/libgomp.c/pr90811.c: New test.
9028
9029 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9030
9031 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9032 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9033
9034 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9035
9036 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9037 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9038 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9039 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9040
9041 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9042
9043 * configure.ac: Call AX_COUNT_CPUS.
9044 Substitute CPU_COUNT.
9045 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9046 count fallback.
9047 * aclocal.m4: Regenerate.
9048 * configure: Regenerate.
9049 * Makefile.in, testsuite/Makefile.in: Regenerate.
9050
9051 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9052
9053 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9054 to ...
9055 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9056 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9057 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9058
9059 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9060
9061 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9062
9063 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9064
9065 PR libgomp/90641
9066 * work.c (gomp_init_work_share): Instead of aligning final ordered
9067 value to multiples of long long alignment, align to that the
9068 first part (ordered team ids) and if inline_ordered_team_ids
9069 is not on a long long alignment boundary within the structure,
9070 use __alignof__ (long long) - 1 pad size always.
9071 * loop.c (GOMP_loop_start): Fix *mem computation if
9072 inline_ordered_team_ids is not aligned on long long alignment boundary
9073 within the structure.
9074 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9075 * sections.c (GOMP_sections2_start): Likewise.
9076
9077 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9078
9079 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9080 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9081
9082 PR libgomp/90585
9083 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9084 HAVE_INTTYPES_H is defined.
9085 (print_uint64_t): New typedef.
9086 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9087 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9088 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9089 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9090 before casting to void *.
9091 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9092 * oacc-mem.c: Don't include config.h nor stdint.h.
9093 * target.c: Don't include config.h.
9094 * oacc-cuda.c: Likewise.
9095 * oacc-host.c: Don't include stdint.h.
9096
9097 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9098
9099 PR libgomp/90527
9100 * alloc.c (_GNU_SOURCE): Define.
9101
9102 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9103
9104 * acc_prof.h: New file.
9105 * oacc-profiling.c: Likewise.
9106 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9107 Add these, respectively.
9108 * Makefile.in: Regenerate.
9109 * env.c (initialize_env): Call goacc_profiling_initialize.
9110 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9111 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9112 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9113 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9114 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9115 acc_prof_register, acc_prof_unregister, and acc_register_library.
9116 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9117 GOMP_PLUGIN_goacc_thread.
9118 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9119 prof_callbacks_enabled members.
9120 (goacc_prof_enabled, goacc_profiling_initialize)
9121 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9122 (goacc_profiling_dispatch): Declare.
9123 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9124 (GOACC_PROFILING_SETUP_P): Define.
9125 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9126 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9127 OpenACC Profiling Interface.
9128 * oacc-cuda.c (acc_get_current_cuda_device)
9129 (acc_get_current_cuda_context, acc_get_cuda_stream)
9130 (acc_set_cuda_stream): Likewise.
9131 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9132 (acc_init, acc_set_device_type, acc_get_device_type)
9133 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9134 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9135 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9136 (acc_unmap_data, present_create_copy, delete_copyout)
9137 (update_dev_host): Likewise.
9138 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9139 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9140 Likewise.
9141 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9142 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9143 Likewise.
9144 * libgomp.texi: Update.
9145 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9146 file.
9147 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9148 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9149 Likewise.
9150 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9151 Likewise.
9152 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9153 Likewise.
9154 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9155 Likewise.
9156
9157 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9158
9159 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9160 (struct goacc_asyncqueue_list): Likewise.
9161 (goacc_aq): Likewise.
9162 (goacc_aq_list): Likewise.
9163 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9164 (GOMP_OFFLOAD_openacc_async_test): Remove.
9165 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9166 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9167 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9168 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9169 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9170 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9171 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9172 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9173 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9174 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9175 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9176 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9177 (GOMP_OFFLOAD_openacc_async_test): Declare.
9178 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9179 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9180 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9181 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9182 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9183
9184 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9185 (gomp_acc_insert_pointer): Adjust declaration.
9186 (gomp_copy_host2dev): New declaration.
9187 (gomp_copy_dev2host): Likewise.
9188 (gomp_map_vars_async): Likewise.
9189 (gomp_unmap_tgt): Likewise.
9190 (gomp_unmap_vars_async): Likewise.
9191 (gomp_fini_device): Likewise.
9192
9193 * oacc-async.c (get_goacc_thread): New function.
9194 (get_goacc_thread_device): New function.
9195 (lookup_goacc_asyncqueue): New function.
9196 (get_goacc_asyncqueue): New function.
9197 (acc_async_test): Adjust code to use new async design.
9198 (acc_async_test_all): Likewise.
9199 (acc_wait): Likewise.
9200 (acc_wait_async): Likewise.
9201 (acc_wait_all): Likewise.
9202 (acc_wait_all_async): Likewise.
9203 (goacc_async_free): New function.
9204 (goacc_init_asyncqueues): Likewise.
9205 (goacc_fini_asyncqueues): Likewise.
9206 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9207 design.
9208 (acc_set_cuda_stream): Likewise.
9209 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9210 (host_openacc_register_async_cleanup): Remove.
9211 (host_openacc_async_exec): New function.
9212 (host_openacc_async_test): Adjust parameters.
9213 (host_openacc_async_test_all): Remove.
9214 (host_openacc_async_wait): Remove.
9215 (host_openacc_async_wait_async): Remove.
9216 (host_openacc_async_wait_all): Remove.
9217 (host_openacc_async_wait_all_async): Remove.
9218 (host_openacc_async_set_async): Remove.
9219 (host_openacc_async_synchronize): New function.
9220 (host_openacc_async_serialize): New function.
9221 (host_openacc_async_host2dev): New function.
9222 (host_openacc_async_dev2host): New function.
9223 (host_openacc_async_queue_callback): New function.
9224 (host_openacc_async_construct): New function.
9225 (host_openacc_async_destruct): New function.
9226 (struct gomp_device_descr host_dispatch): Remove initialization of old
9227 interface, add initialization of new async sub-struct.
9228 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9229 (goacc_attach_host_thread_to_device): Remove old async code usage.
9230 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9231 (goacc_fini_asyncqueues): Likewise.
9232 (goacc_async_copyout_unmap_vars): Likewise.
9233 (goacc_async_free): Likewise.
9234 (get_goacc_asyncqueue): Likewise.
9235 (lookup_goacc_asyncqueue): Likewise.
9236 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9237 design.
9238 (present_create_copy): Adjust code to use new async design.
9239 (delete_copyout): Likewise.
9240 (update_dev_host): Likewise.
9241 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9242 async design.
9243 (gomp_acc_remove_pointer): Adjust code to use new async design.
9244 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9245 design.
9246 (GOACC_enter_exit_data): Likewise.
9247 (goacc_wait): Likewise.
9248 (GOACC_update): Likewise.
9249 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9250 when called, warn as obsolete in comment.
9251 * target.c (goacc_device_copy_async): New function.
9252 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9253 add goacc_device_copy_async case.
9254 (gomp_copy_dev2host): Likewise.
9255 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9256 (gomp_map_pointer): Likewise.
9257 (gomp_map_fields_existing): Likewise.
9258 (gomp_map_vars_internal): New always_inline function, renamed from
9259 gomp_map_vars.
9260 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9261 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9262 passing goacc_asyncqueue argument.
9263 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9264 (gomp_unref_tgt): New function.
9265 (gomp_unmap_vars_internal): New always_inline function, renamed from
9266 gomp_unmap_vars.
9267 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9268 (gomp_unmap_vars_async): Implement by calling
9269 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9270 (gomp_fini_device): New function.
9271 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9272 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9273 new async interface.
9274 (gomp_target_fini): Adjust code to call gomp_fini_device.
9275
9276 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9277 (struct ptx_stream): Remove.
9278 (struct nvptx_thread): Remove current_stream field.
9279 (cuda_map_create): Remove.
9280 (cuda_map_destroy): Remove.
9281 (map_init): Remove.
9282 (map_fini): Remove.
9283 (map_pop): Remove.
9284 (map_push): Remove.
9285 (struct goacc_asyncqueue): Define.
9286 (struct nvptx_callback): Define.
9287 (struct ptx_free_block): Define.
9288 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9289 stream_lock, and next fields.
9290 (enum ptx_event_type): Remove.
9291 (struct ptx_event): Remove.
9292 (ptx_event_lock): Remove.
9293 (ptx_events): Remove.
9294 (init_streams_for_device): Remove.
9295 (fini_streams_for_device): Remove.
9296 (select_stream_for_async): Remove.
9297 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9298 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9299 case.
9300 (nvptx_open_device): Add free_blocks initialization, remove
9301 init_streams_for_device call.
9302 (nvptx_close_device): Remove fini_streams_for_device call, add
9303 free_blocks destruct code.
9304 (event_gc): Remove.
9305 (event_add): Remove.
9306 (nvptx_exec): Adjust parameters and code.
9307 (nvptx_free): Likewise.
9308 (nvptx_host2dev): Remove.
9309 (nvptx_dev2host): Remove.
9310 (nvptx_set_async): Remove.
9311 (nvptx_async_test): Remove.
9312 (nvptx_async_test_all): Remove.
9313 (nvptx_wait): Remove.
9314 (nvptx_wait_async): Remove.
9315 (nvptx_wait_all): Remove.
9316 (nvptx_wait_all_async): Remove.
9317 (nvptx_get_cuda_stream): Remove.
9318 (nvptx_set_cuda_stream): Remove.
9319 (GOMP_OFFLOAD_alloc): Adjust code.
9320 (GOMP_OFFLOAD_free): Likewise.
9321 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9322 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9323 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9324 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9325 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9326 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9327 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9328 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9329 (cuda_free_argmem): New function.
9330 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9331 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9332 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9333 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9334 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9335 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9336 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9337 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9338 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9339 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9340 (cuda_callback_wrapper): New function.
9341 (cuda_memcpy_sanity_check): New function.
9342 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9343 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9344 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9345 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9346
9347 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
9348
9349 PR target/87835
9350 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9351
9352 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
9353
9354 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9355
9356 2019-03-27 Kevin Buettner <kevinb@redhat.com>
9357
9358 * team.c (gomp_team_start): Initialize pool->threads[0].
9359
9360 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9361
9362 * testsuite/libgomp.oacc-c++/c++.exp: Specify
9363 "-foffload=$offload_target".
9364 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9365 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9366 * testsuite/lib/libgomp.exp
9367 (check_effective_target_openacc_nvidia_accel_configured): Remove,
9368 as (conceptually) merged into
9369 check_effective_target_openacc_nvidia_accel_selected. Adjust all
9370 users.
9371
9372 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9373 * testsuite/libgomp-test-support.exp.in: Adjust.
9374 * testsuite/lib/libgomp.exp: Likewise. Don't populate
9375 openacc_device_types_s.
9376 (offload_target_to_openacc_device_type): New proc.
9377 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9378 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9379 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9380 * Makefile.in: Regenerate.
9381 * configure: Likewise.
9382 * testsuite/Makefile.in: Likewise.
9383
9384 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9385 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9386 instead of OFFLOAD_TARGETS.
9387 * target.c (gomp_target_init): Adjust.
9388 * testsuite/libgomp-test-support.exp.in: Likewise.
9389 * testsuite/lib/libgomp.exp: Likewise. Populate
9390 openacc_device_types_s instead of offload_targets_s_openacc.
9391 (check_effective_target_openacc_nvidia_accel_selected)
9392 (check_effective_target_openacc_host_selected): Adjust.
9393 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9394 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9395 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9396 * Makefile.in: Regenerate.
9397 * config.h.in: Likewise.
9398 * configure: Likewise.
9399 * testsuite/Makefile.in: Likewise.
9400
9401 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9402 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
9403 "offloading: supported, but hardware not accessible".
9404 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9405 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9406
9407 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
9408
9409 PR c/87924
9410 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9411 goacc_wait().
9412 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9413 and related adjustment.
9414
9415 2019-01-30 Jakub Jelinek <jakub@redhat.com>
9416
9417 PR c++/88988
9418 * testsuite/libgomp.c++/pr88988.C: New test.
9419
9420 2019-01-28 Jakub Jelinek <jakub@redhat.com>
9421
9422 PR middle-end/89002
9423 * testsuite/libgomp.c/pr89002.c: New test.
9424
9425 2019-01-28 Richard Biener <rguenther@suse.de>
9426
9427 PR testsuite/89064
9428 PR tree-optimization/86865
9429 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9430
9431 2019-01-24 Tom de Vries <tdevries@suse.de>
9432
9433 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9434 once instantiated_devices drops to 0.
9435
9436 2019-01-23 Tom de Vries <tdevries@suse.de>
9437
9438 PR target/PR88946
9439 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9440 cuMemFree.
9441 (nvptx_exec): Don't call map_push if mapnum == 0.
9442 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9443
9444 2019-01-23 Tom de Vries <tdevries@suse.de>
9445
9446 PR target/88941
9447 PR target/88939
9448 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9449 (map_fini): Remove "assert (!s->map->active)".
9450 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9451
9452 2019-01-23 Tom de Vries <tdevries@suse.de>
9453
9454 PR target/87835
9455 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9456 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9457
9458 2019-01-15 Tom de Vries <tdevries@suse.de>
9459
9460 PR target/80547
9461 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9462 New test.
9463
9464 2019-01-12 Tom de Vries <tdevries@suse.de>
9465
9466 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9467 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9468 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9469 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9470
9471 2019-01-12 Tom de Vries <tdevries@suse.de>
9472
9473 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9474
9475 2019-01-12 Tom de Vries <tdevries@suse.de>
9476
9477 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9478 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9479 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9480
9481 2019-01-12 Tom de Vries <tdevries@suse.de>
9482
9483 PR target/85486
9484 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9485 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9486
9487 2019-01-12 Tom de Vries <tdevries@suse.de>
9488
9489 PR target/85381
9490 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9491 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9492
9493 2019-01-12 Tom de Vries <tdevries@suse.de>
9494
9495 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9496 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9497 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9498
9499 2019-01-12 Tom de Vries <tdevries@suse.de>
9500
9501 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9502 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9503 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9504
9505 2019-01-12 Tom de Vries <tdevries@suse.de>
9506
9507 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9508 resources diagnostic.
9509
9510 2019-01-12 Tom de Vries <tdevries@suse.de>
9511
9512 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9513 vector length to be 128.
9514 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9515 length 2097152 to be reduced to 1024 instead of 32.
9516
9517 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
9518 James Norris <jnorris@codesourcery.com>
9519
9520 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9521 Library Routines", and "Environment Variables".
9522
9523 2019-01-11 Tom de Vries <tdevries@suse.de>
9524
9525 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9526 num_workers 16.
9527
9528 2019-01-11 Tom de Vries <tdevries@suse.de>
9529
9530 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9531 -foffload=-w.
9532 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9533 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9534 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9535 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9536
9537 2019-01-11 Tom de Vries <tdevries@suse.de>
9538
9539 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9540 test.
9541
9542 2019-01-10 Nathan Sidwell <nathan@acm.org>
9543 Julian Brown <julian@codesourcery.com>
9544
9545 PR lto/71959
9546 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9547 * testsuite/libgomp.oacc-c++/pr71959.C: New.
9548
9549 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9550
9551 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9552 and paste code.
9553
9554 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9555
9556 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
9557 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9558 write.
9559
9560 2019-01-09 Tom de Vries <tdevries@suse.de>
9561
9562 PR target/88756
9563 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9564 #define instead of "const int".
9565 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9566 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9567 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9568 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9569
9570 2019-01-09 Tom de Vries <tdevries@suse.de>
9571
9572 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9573 one worker.
9574
9575 2019-01-07 Tom de Vries <tdevries@suse.de>
9576
9577 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9578 GOMP_OPENACC_DIM argument.
9579
9580 2019-01-03 Tom de Vries <tdevries@suse.de>
9581
9582 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9583 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9584
9585 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9586
9587 Update copyright years.
9588
9589 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9590
9591 * libgomp.texi: Bump @copying's copyright year.
9592
9593 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9594
9595 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9596 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9597 (GOACC_declare): Redefine the "device" argument to "flags".
9598
9599 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9600 Cesar Philippidis <cesar@codesourcery.com>
9601
9602 * target.c (struct gomp_coalesce_chunk): New structure.
9603 (struct gomp_coalesce_buf): Update the chunks member to use that
9604 type. Adjust all users.
9605
9606 2018-12-19 Tom de Vries <tdevries@suse.de>
9607
9608 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9609 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9610 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9611
9612 2018-12-19 Tom de Vries <tdevries@suse.de>
9613
9614 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9615 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9616 gcc/testsuite/gcc.dg/goacc.
9617 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9618
9619 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9620 Chung-Lin Tang <cltang@codesourcery.com>
9621
9622 * oacc-mem.c (acc_present_or_create): Remove definition and change
9623 to alias of acc_create.
9624 (acc_present_or_copyin): Remove definition and change to alias of
9625 acc_copyin.
9626 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9627 of acc_present_or_create.
9628 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9629 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9630 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9631 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9632 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9633 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9634 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9635 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9636 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9637 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9638 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9639 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9640 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9641 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9642 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9643 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9644
9645 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9646
9647 PR libgomp/88495
9648 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9649 "identical parameters".
9650 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9651 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9652
9653 PR libgomp/88484
9654 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9655 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9656
9657 PR libgomp/88407
9658 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9659 (nvptx_wait_async): Unseen async-argument is a no-op.
9660 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9661 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9662 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9663 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9664 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9665 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9666 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
9667 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9668 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
9669
9670 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9671 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9672
9673 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
9674
9675 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9676 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9677 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9678
9679 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9680
9681 PR libgomp/88370
9682 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9683 (acc_set_cuda_stream): Clarify.
9684 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9685 "async_valid_p".
9686 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9687 acc_async_sync".
9688 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9689 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9690 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9691 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9692
9693 2018-12-14 Tom de Vries <tdevries@suse.de>
9694
9695 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9696 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9697 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9698 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9699 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9700
9701 2018-12-13 Tom de Vries <tdevries@suse.de>
9702
9703 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9704 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9705 * fortran.c (omp_display_affinity_): ... here.
9706 * libgomp.h (gomp_print_string): Declare.
9707 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
9708 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9709 write.
9710
9711 2018-12-13 Jakub Jelinek <jakub@redhat.com>
9712
9713 PR libgomp/88460
9714 * testsuite/libgomp.c++/for-24.C (results): Include it in
9715 omp declare target region.
9716 (main): Use map (always, tofrom: results) instead of
9717 map (tofrom: results).
9718
9719 2018-12-12 Jakub Jelinek <jakub@redhat.com>
9720
9721 PR fortran/88463
9722 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9723 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9724
9725 * testsuite/libgomp.c-c++-common/for-16.c: New test.
9726
9727 2018-12-12 Andreas Schwab <schwab@suse.de>
9728
9729 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9730 clobbered.
9731
9732 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
9733
9734 PR fortran/88411
9735 * testsuite/libgomp.fortran/async_io_8.f90: New test.
9736
9737 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
9738 Jakub Jelinek <jakub@redhat.com>
9739
9740 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9741 devicep->host2dev_func.
9742
9743 2018-12-08 Jakub Jelinek <jakub@redhat.com>
9744
9745 PR libgomp/87995
9746 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9747 tls_runtime effective target.
9748 (t): New threadprivate variable.
9749 (main): Set t in threads which execute iterations of the worksharing
9750 loop. Propagate that to the task after the loop and don't abort
9751 if the current taskgroup hasn't been cancelled.
9752
9753 2018-12-02 Jakub Jelinek <jakub@redhat.com>
9754
9755 * testsuite/libgomp.c/task-reduction-3.c: New test.
9756
9757 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9758
9759 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
9760
9761 PR libgomp/88288
9762 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9763 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9764
9765 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
9766
9767 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9768
9769 2018-10-19 Richard Biener <rguenther@suse.de>
9770
9771 PR tree-optimization/88182
9772 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9773
9774 2018-11-26 Jakub Jelinek <jakub@redhat.com>
9775
9776 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9777 (RUNTEST): Don't define.
9778 (RUNTESTDEFAULTFLAGS): Add.
9779 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9780 (distclean-am): Depend on distclean-DEJAGNU.
9781 (check-am): If -j% option is present in MFLAGS and if
9782 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9783 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9784 * testsuite/Makefile.in: Regenerated.
9785
9786 2018-11-26 Richard Biener <rguenther@suse.de>
9787
9788 PR tree-optimization/88182
9789 * testsuite/libgomp.c++/pr88182.C: New testcase.
9790
9791 2018-11-20 Jakub Jelinek <jakub@redhat.com>
9792
9793 PR bootstrap/88106
9794 * config/mingw32/affinity-fmt.c: New file.
9795
9796 2018-11-09 Jakub Jelinek <jakub@redhat.com>
9797
9798 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9799 (gomp_display_affinity): Use __builtin_choose_expr to handle
9800 properly handle argument having integral, or pointer or some other
9801 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
9802 with uint64_t type instead of %llx and unsigned long long.
9803
9804 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9805 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9806
9807 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9808
9809 * affinity.c: Include <string.h>, <stdio.h>.
9810 (gomp_display_affinity_place): Remove cpusetp.
9811 * teams.c: Include <limits.h>.
9812
9813 2018-11-08 Jakub Jelinek <jakub@redhat.com>
9814
9815 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9816 in_reduction clause for s[0].
9817
9818 * affinity.c (gomp_display_affinity_place): New function.
9819 * affinity-fmt.c: New file.
9820 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9821 * config/linux/affinity.c (gomp_display_affinity_place): New function.
9822 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9823 Move these functions to ...
9824 * config/nvptx/teams.c: ... here. New file.
9825 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9826 New functions.
9827 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9828 functions.
9829 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9830 and _aligned_malloc.
9831 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9832 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9833 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9834 gomp_affinity_format_len): New variables.
9835 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9836 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
9837 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9838 modifiers. Display (non-default) chunk sizes. Print
9839 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9840 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
9841 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9842 * fortran.c: Include stdio.h and string.h.
9843 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9844 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9845 (omp_set_affinity_format_, omp_get_affinity_format_,
9846 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9847 omp_pause_resource_all_): New functions.
9848 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9849 switch.
9850 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9851 functions to ...
9852 * teams.c: ... here. New file.
9853 * libgomp_g.h: Include gstdint.h.
9854 (GOMP_loop_nonmonotonic_runtime_start,
9855 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9856 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9857 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9858 GOMP_parallel_loop_nonmonotonic_runtime,
9859 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9860 GOMP_loop_ull_nonmonotonic_runtime_start,
9861 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9862 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9863 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9864 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9865 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9866 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9867 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9868 GOMP_teams_reg): Declare.
9869 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9870 gomp_aligned_alloc uses fallback implementation.
9871 (gomp_aligned_alloc, gomp_aligned_free): Declare.
9872 (enum gomp_schedule_type): Add GFS_MONOTONIC.
9873 (struct gomp_doacross_work_share): Add extra field.
9874 (struct gomp_work_share): Add task_reductions field.
9875 (struct gomp_taskgroup): Add workshare and reductions fields.
9876 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9877 (gomp_thread_handle): New typedef.
9878 (gomp_display_affinity_place, gomp_set_affinity_format,
9879 gomp_display_string, gomp_display_affinity,
9880 gomp_display_affinity_thread): Declare.
9881 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9882 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9883 gomp_workshare_task_reduction_register): Declare.
9884 (gomp_team_start): Add taskgroup argument.
9885 (gomp_pause_host): Declare.
9886 (gomp_init_work_share, gomp_work_share_start): Change bool argument
9887 to size_t.
9888 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9889 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9890 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9891 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9892 GOMP_loop_ull_doacross_start,
9893 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9894 GOMP_loop_maybe_nonmonotonic_runtime_next,
9895 GOMP_loop_maybe_nonmonotonic_runtime_start,
9896 GOMP_loop_nonmonotonic_runtime_next,
9897 GOMP_loop_nonmonotonic_runtime_start,
9898 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9899 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9900 GOMP_loop_ull_nonmonotonic_runtime_next,
9901 GOMP_loop_ull_nonmonotonic_runtime_start,
9902 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9903 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
9904 GOMP_taskgroup_reduction_register,
9905 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9906 GOMP_teams_reg and GOMP_taskwait_depend.
9907 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
9908 omp_{capture,display}_affinity{,_}, and
9909 omp_[gs]et_affinity_format{,_}.
9910 * loop.c: Include string.h.
9911 (GOMP_loop_runtime_next): Add ialias.
9912 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9913 (gomp_loop_static_start, gomp_loop_dynamic_start,
9914 gomp_loop_guided_start, gomp_loop_ordered_static_start,
9915 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
9916 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9917 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
9918 or gomp_doacross_init callers.
9919 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
9920 GOMP_loop_doacross_start): New functions.
9921 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
9922 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
9923 Mask off GFS_MONOTONIC bit.
9924 (GOMP_loop_maybe_nonmonotonic_runtime_next,
9925 GOMP_loop_maybe_nonmonotonic_runtime_start,
9926 GOMP_loop_nonmonotonic_runtime_next,
9927 GOMP_loop_nonmonotonic_runtime_start,
9928 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9929 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
9930 functions.
9931 (gomp_parallel_loop_start): Pass NULL as taskgroup to
9932 gomp_team_start.
9933 * loop_ull.c: Include string.h.
9934 (GOMP_loop_ull_runtime_next): Add ialias.
9935 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9936 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
9937 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
9938 gomp_loop_ull_ordered_dynamic_start,
9939 gomp_loop_ull_ordered_guided_start,
9940 gomp_loop_ull_doacross_static_start,
9941 gomp_loop_ull_doacross_dynamic_start,
9942 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
9943 and gomp_doacross_ull_init callers.
9944 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9945 GOMP_loop_ull_doacross_start): New functions.
9946 (GOMP_loop_ull_runtime_start,
9947 GOMP_loop_ull_ordered_runtime_start,
9948 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9949 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9950 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9951 GOMP_loop_ull_nonmonotonic_runtime_next,
9952 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9953 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9954 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9955 (omp_pause_resource_t, omp_depend_t): New typedefs.
9956 (enum omp_lock_hint_t): Renamed to ...
9957 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
9958 enumerators using numbers and omp_lock_hint_* as their aliases.
9959 (omp_lock_hint_t): New typedef. Rename to ...
9960 (omp_sync_hint_t): ... this.
9961 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9962 omp_sync_hint_t instead of omp_lock_hint_t.
9963 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9964 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9965 Declare.
9966 (omp_target_is_present, omp_target_disassociate_ptr):
9967 Change first argument from void * to const void *.
9968 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9969 from void * to const void *.
9970 (omp_target_associate_ptr): Change first and second arguments from
9971 void * to const void *.
9972 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9973 omp_pause_hard): New parameters.
9974 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9975 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9976 New interfaces.
9977 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9978 omp_pause_hard): New parameters.
9979 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9980 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9981 New externals.
9982 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9983 EXTRA argument. If not needed to prepare array, if extra is 0,
9984 clear ws->doacross, otherwise allocate just doacross structure and
9985 extra payload. If array is needed, allocate also extra payload.
9986 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9987 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
9988 doacross == NULL.
9989 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
9990 gomp_team_start.
9991 (GOMP_parallel): Likewise. Formatting fix.
9992 (GOMP_parallel_reductions): New function.
9993 (GOMP_cancellation_point): If taskgroup has workshare
9994 flag set, check cancelled of prev taskgroup if any.
9995 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
9996 on prev taskgroup if any.
9997 * sections.c: Include string.h.
9998 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9999 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10000 (GOMP_sections2_start): New function.
10001 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10002 Pass NULL as taskgroup to gomp_team_start.
10003 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10004 gomp_work_share_start callers.
10005 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10006 If taskgroup has workshare flag set, check cancelled on prev
10007 taskgroup if any. Guard all cancellation tests with
10008 gomp_cancel_var test.
10009 (omp_target_is_present, omp_target_disassociate_ptr):
10010 Change ptr argument from void * to const void *.
10011 (omp_target_memcpy): Change src argument from void * to const void *.
10012 (omp_target_memcpy_rect): Likewise.
10013 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10014 instead of char * where needed.
10015 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10016 from void * to const void *.
10017 (omp_pause_resource, omp_pause_resource_all): New functions.
10018 * task.c (gomp_task_handle_depend): Handle new depend array format
10019 in addition to the old. Handle mutexinoutset kinds the same as
10020 inout for now, handle unspecified kinds.
10021 (gomp_create_target_task): If taskgroup has workshare flag set, check
10022 cancelled on prev taskgroup if any. Guard all cancellation tests with
10023 gomp_cancel_var test. Handle new depend array format count in
10024 addition to the old.
10025 (GOMP_task): Likewise. Adjust function comment.
10026 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10027 cancelled on prev taskgroup if any. Guard all cancellation tests with
10028 gomp_cancel_var test.
10029 (GOMP_taskwait_depend): New function.
10030 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10031 format in addition to the old. Handle mutexinoutset kinds the same as
10032 inout for now, handle unspecified kinds. Fix a function comment typo.
10033 (gomp_taskgroup_init): New function.
10034 (GOMP_taskgroup_start): Use it.
10035 (gomp_reduction_register, gomp_create_artificial_team,
10036 GOMP_taskgroup_reduction_register,
10037 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10038 gomp_parallel_reduction_register,
10039 gomp_workshare_task_reduction_register,
10040 gomp_workshare_taskgroup_start,
10041 GOMP_workshare_task_reduction_unregister): New functions.
10042 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10043 check cancelled on prev taskgroup if any. Guard all cancellation
10044 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10045 by calling GOMP_taskgroup_reduction_register.
10046 * team.c (gomp_thread_attr): Remove comment.
10047 (struct gomp_thread_start_data): Add handle field.
10048 (gomp_thread_start): Call pthread_detach.
10049 (gomp_new_team): Adjust gomp_init_work_share caller.
10050 (gomp_free_pool_helper): Call pthread_detach.
10051 (gomp_team_start): Add taskgroup argument, initialize implicit
10052 tasks' taskgroup field to that. Don't call
10053 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10054 (gomp_team_end): Determine nesting by thr->ts.level != 0
10055 rather than thr->ts.team != NULL.
10056 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10057 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10058 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10059 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10060 if more than 1 allocate also extra payload at the end of array. Never
10061 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10062 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10063 return true instead of ws.
10064 * Makefile.in: Regenerated.
10065 * configure: Regenerated.
10066 * config.h.in: Regenerated.
10067 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10068 in some cases.
10069 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10070 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10071 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10072 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10073 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10074 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10075 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10076 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10077 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10078 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10079 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10080 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10081 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10082 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10083 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10084 define a different N(test), don't define N(f0) to N(f14), but instead
10085 define N(f20) to N(f34) using != comparisons.
10086 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10087 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10088 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10089 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10090 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10091 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10092 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10093 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10094 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10095 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10096 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10097 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10098 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10099 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10100 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10101 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10102 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10103 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10104 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10105 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10106 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10107 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10108 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10109 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10110 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10111 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10112 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10113 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10114 * testsuite/libgomp.c++/depend-1.C: New test.
10115 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10116 * testsuite/libgomp.c++/depobj-1.C: New test.
10117 * testsuite/libgomp.c++/for-16.C: New test.
10118 * testsuite/libgomp.c++/for-21.C: New test.
10119 * testsuite/libgomp.c++/for-22.C: New test.
10120 * testsuite/libgomp.c++/for-23.C: New test.
10121 * testsuite/libgomp.c++/for-24.C: New test.
10122 * testsuite/libgomp.c++/for-25.C: New test.
10123 * testsuite/libgomp.c++/for-26.C: New test.
10124 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10125 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10126 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10127 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10128 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10129 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10130 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10131 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10132 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10133 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10134 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10135 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10136 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10137 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10138 * testsuite/libgomp.c/task-reduction-1.c: New test.
10139 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10140 * testsuite/libgomp.c/task-reduction-2.c: New test.
10141 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10142 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10143 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10144 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10145 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10146 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10147 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10148 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10149 * testsuite/libgomp.c/teams-1.c: New test.
10150 * testsuite/libgomp.c/teams-2.c: New test.
10151 * testsuite/libgomp.c/thread-limit-4.c: New test.
10152 * testsuite/libgomp.c/thread-limit-5.c: New test.
10153 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10154
10155 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10156
10157 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10158 acc_memcpy_to/from_device functions, now with async parameter.
10159 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10160 (acc_memcpy_from_device): Likewise.
10161 (acc_memcpy_to_device_async): New API function.
10162 (acc_memcpy_from_device_async): Likewise.
10163 (present_create_copy): Add async parameter and async setting/unsetting.
10164 (acc_create): Adjust present_create_copy call.
10165 (acc_copyin): Likewise.
10166 (acc_present_or_create): Likewise.
10167 (acc_present_or_copyin): Likewise.
10168 (acc_create_async): New API function.
10169 (acc_copyin_async): New API function.
10170 (delete_copyout): Add async parameter and async setting/unsetting.
10171 (acc_delete): Adjust delete_copyout call.
10172 (acc_copyout): Likewise.
10173 (acc_delete_async): New API function.
10174 (acc_copyout_async): Likewise.
10175 (update_dev_host): Add async parameter and async setting/unsetting.
10176 (acc_update_device): Adjust update_dev_host call.
10177 (acc_update_self): Likewise.
10178 (acc_update_device_async): New API function.
10179 (acc_update_self_async): Likewise.
10180 * openacc.h (acc_copyin_async): Declare new API function.
10181 (acc_create_async): Likewise.
10182 (acc_copyout_async): Likewise.
10183 (acc_delete_async): Likewise.
10184 (acc_update_device_async): Likewise.
10185 (acc_update_self_async): Likewise.
10186 (acc_memcpy_to_device_async): Likewise.
10187 (acc_memcpy_from_device_async): Likewise.
10188 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10189 (acc_copyin_async_64_h): New subroutine.
10190 (acc_copyin_async_array_h): New subroutine.
10191 (acc_create_async_32_h): New subroutine.
10192 (acc_create_async_64_h): New subroutine.
10193 (acc_create_async_array_h): New subroutine.
10194 (acc_copyout_async_32_h): New subroutine.
10195 (acc_copyout_async_64_h): New subroutine.
10196 (acc_copyout_async_array_h): New subroutine.
10197 (acc_delete_async_32_h): New subroutine.
10198 (acc_delete_async_64_h): New subroutine.
10199 (acc_delete_async_array_h): New subroutine.
10200 (acc_update_device_async_32_h): New subroutine.
10201 (acc_update_device_async_64_h): New subroutine.
10202 (acc_update_device_async_array_h): New subroutine.
10203 (acc_update_self_async_32_h): New subroutine.
10204 (acc_update_self_async_64_h): New subroutine.
10205 (acc_update_self_async_array_h): New subroutine.
10206 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10207 (acc_copyin_async_64_h): New subroutine.
10208 (acc_copyin_async_array_h): New subroutine.
10209 (acc_create_async_32_h): New subroutine.
10210 (acc_create_async_64_h): New subroutine.
10211 (acc_create_async_array_h): New subroutine.
10212 (acc_copyout_async_32_h): New subroutine.
10213 (acc_copyout_async_64_h): New subroutine.
10214 (acc_copyout_async_array_h): New subroutine.
10215 (acc_delete_async_32_h): New subroutine.
10216 (acc_delete_async_64_h): New subroutine.
10217 (acc_delete_async_array_h): New subroutine.
10218 (acc_update_device_async_32_h): New subroutine.
10219 (acc_update_device_async_64_h): New subroutine.
10220 (acc_update_device_async_array_h): New subroutine.
10221 (acc_update_self_async_32_h): New subroutine.
10222 (acc_update_self_async_64_h): New subroutine.
10223 (acc_update_self_async_array_h): New subroutine.
10224 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10225 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10226 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10227 acc_memcpy_to_device_async*, acc_update_device_async*, and
10228 acc_update_self_async* entries.
10229 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10230 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10231 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10232
10233 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10234
10235 PR bootstrap/82856
10236 * Makefile.am: Include multilib.am
10237 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10238 (CLEANFILES): Remove libgomp.info.
10239 * configure.ac: Remove AC_PREREQ.
10240 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10241 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10242 Regenerate.
10243
10244 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10245 Julian Brown <julian@codesourcery.com>
10246
10247 * testsuite/libgomp.oacc-c++/this.C: New.
10248
10249 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10250
10251 * plugin/plugin-nvptx.c (struct cuda_map): New.
10252 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10253 h_tail with (cuda_map *) map.
10254 (cuda_map_create): New function.
10255 (cuda_map_destroy): New function.
10256 (map_init): Update to use a linked list of cuda_map objects.
10257 (map_fini): Likewise.
10258 (map_pop): Likewise.
10259 (map_push): Likewise. Return CUdeviceptr instead of void.
10260 (init_streams_for_device): Remove stales references to ptx_stream
10261 members.
10262 (select_stream_for_async): Likewise.
10263 (nvptx_exec): Update call to map_init.
10264
10265 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10266 Julian Brown <julian@codesourcery.com>
10267
10268 PR middle-end/86336
10269 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10270
10271 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10272 Thomas Koenig <tkoenig@gcc.gnu.org>
10273
10274 PR fortran/25829
10275 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10276 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10277 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10278 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10279 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10280 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10281 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10282
10283 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10284 Tom de Vries <tdevries@suse.de>
10285
10286 PR target/85590
10287 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10288 (cuOccupancyMaxPotentialBlockSize): Declare.
10289 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10290 CUDA_ONE_CALL_MAYBE_NULL.
10291 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10292 CUoccupancyB2DSize and declare
10293 cuOccupancyMaxPotentialBlockSize.
10294 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10295 default num_gangs and num_workers when the driver supports it.
10296
10297 2018-08-08 Tom de Vries <tdevries@suse.de>
10298
10299 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10300 CUDA_ONE_CALL_MAYBE_NULL.
10301 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10302 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10303 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10304 are not found.
10305
10306 2018-08-08 Tom de Vries <tdevries@suse.de>
10307
10308 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10309 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10310 present.
10311
10312 2018-08-08 Tom de Vries <tdevries@suse.de>
10313
10314 * plugin/plugin-nvptx.c
10315 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10316 (nvptx_open_device): Use
10317 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10318
10319 2018-08-08 Tom de Vries <tdevries@suse.de>
10320
10321 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10322 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
10323
10324 2018-08-07 Tom de Vries <tdevries@suse.de>
10325
10326 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10327 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10328 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
10329 corresponding call in CUDA_ONE_CALL. Add def/undef of
10330 CUDA_ONE_CALL_MAYBE_NULL.
10331 (CUDA_CALL_EXISTS): Define.
10332
10333 2018-08-07 Tom de Vries <tdevries@suse.de>
10334
10335 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10336 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10337 corresponding undefs right after.
10338
10339 2018-08-04 Tom de Vries <tdevries@suse.de>
10340
10341 * plugin/configfrag.ac: For --without-cuda-driver, set
10342 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
10343 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10344 * configure: Regenerate.
10345
10346 2018-08-02 Tom de Vries <tdevries@suse.de>
10347
10348 PR target/86660
10349 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10350 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10351 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10352 Same.
10353 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10354 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10355 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10356
10357 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10358 Thomas Schwinge <thomas@codesourcery.com>
10359
10360 * config/nvptx/oacc-parallel.c: Truncate.
10361
10362 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10363 James Norris <jnorris@codesourcery.com>
10364
10365 * plugin/plugin-nvptx.c (struct map): Removed.
10366 (map_init, map_pop): Remove use of struct map.
10367 (map_push): Likewise and change argument list.
10368 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10369
10370 2018-08-01 Tom de Vries <tdevries@suse.de>
10371
10372 * plugin/cuda-lib.def: New file. Factor out of ...
10373 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10374 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10375 using CUDA_CALLS.
10376
10377 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
10378
10379 Revert 'AsyncI/O patch committed'.
10380 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10381 Thomas Koenig <tkoenig@gcc.gnu.org>
10382
10383 PR fortran/25829
10384 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10385 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10386 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10387 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10388 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10389 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10390 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10391
10392 2018-07-30 Tom de Vries <tdevries@suse.de>
10393
10394 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10395 (nvptx_exec): Ensure worker and vector default dims don't exceed
10396 targ_fn->max_threads_per_block.
10397
10398 2018-07-30 Tom de Vries <tdevries@suse.de>
10399
10400 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10401 (nvptx_open_device): Init default_dims for device.
10402 (nvptx_exec): Use default_dims from device.
10403
10404 2018-07-26 Jakub Jelinek <jakub@redhat.com>
10405
10406 PR testsuite/86660
10407 * testsuite/libgomp.c++/for-15.C (results): Include it in
10408 omp declare target region.
10409 (main): Use map (always, tofrom: results) instead of
10410 map (tofrom: results).
10411
10412 PR middle-end/86660
10413 * testsuite/libgomp.c/pr86660.c: New test.
10414
10415 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10416 Tom de Vries <tdevries@suse.de>
10417
10418 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10419 sufficient resources to launch a kernel, and give a hint on how to fix
10420 it.
10421
10422 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10423 Tom de Vries <tdevries@suse.de>
10424
10425 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10426 max_threads_per_block and max_threads_per_multiprocessor fields.
10427 (nvptx_open_device): Initialize new fields.
10428 (nvptx_exec): Use num_sms, and new fields.
10429
10430 2018-07-26 Tom de Vries <tdevries@suse.de>
10431
10432 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10433 to correct locations. Remove xfail.
10434
10435 2018-07-26 Tom de Vries <tdevries@suse.de>
10436
10437 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10438 acc_wait. Move acc_async_test calls to correct locations. Remove
10439 xfail.
10440
10441 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10442 Thomas Koenig <tkoenig@gcc.gnu.org>
10443
10444 PR fortran/25829
10445 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10446 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10447 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10448 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10449 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10450 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10451 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10452
10453 2018-07-17 Jakub Jelinek <jakub@redhat.com>
10454
10455 PR middle-end/86542
10456 * testsuite/libgomp.c++/pr86542.C: New test.
10457
10458 PR middle-end/86539
10459 * testsuite/libgomp.c++/pr86539.C: New test.
10460
10461 2018-07-11 Jakub Jelinek <jakub@redhat.com>
10462
10463 PR c++/86443
10464 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10465 (results): Make sure the variable is not inside declare target region.
10466 (qux): Remove unused function.
10467
10468 2018-07-10 Jakub Jelinek <jakub@redhat.com>
10469
10470 PR c++/86443
10471 * testsuite/libgomp.c++/for-15.C: New test.
10472
10473 2018-06-26 Jakub Jelinek <jakub@redhat.com>
10474
10475 PR c++/86291
10476 * testsuite/libgomp.c++/pr86291.C: New test.
10477
10478 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
10479
10480 * libgomp.texi (Top): Move www.openmp.org to https.
10481 (Enabling OpenMP): Ditto.
10482 (omp_get_active_level): Ditto.
10483 (omp_get_ancestor_thread_num): Ditto.
10484 (omp_get_cancellation): Ditto.
10485 (omp_get_default_device): Ditto.
10486 (omp_get_dynamic): Ditto.
10487 (omp_get_level): Ditto.
10488 (omp_get_max_active_levels): Ditto.
10489 (omp_get_max_task_priority): Ditto.
10490 (omp_get_max_threads): Ditto.
10491 (omp_get_nested): Ditto.
10492 (omp_get_num_devices): Ditto.
10493 (omp_get_num_procs): Ditto.
10494 (omp_get_num_teams): Ditto.
10495 (omp_get_num_threads): Ditto.
10496 (omp_get_proc_bind): Ditto.
10497 (omp_get_schedule): Ditto.
10498 (omp_get_team_num): Ditto.
10499 (omp_get_team_size): Ditto.
10500 (omp_get_thread_limit): Ditto.
10501 (omp_get_thread_num): Ditto.
10502 (omp_in_parallel): Ditto.
10503 (omp_in_final): Ditto.
10504 (omp_is_initial_device): Ditto.
10505 (omp_set_default_device): Ditto.
10506 (omp_set_dynamic): Ditto.
10507 (omp_set_max_active_levels): Ditto.
10508 (omp_set_nested): Ditto.
10509 (omp_set_num_threads): Ditto.
10510 (omp_set_schedule): Ditto.
10511 (omp_init_lock): Ditto.
10512 (omp_set_lock): Ditto.
10513 (omp_test_lock): Ditto.
10514 (omp_unset_lock): Ditto.
10515 (omp_destroy_lock): Ditto.
10516 (omp_init_nest_lock): Ditto.
10517 (omp_set_nest_lock): Ditto.
10518 (omp_test_nest_lock): Ditto.
10519 (omp_unset_nest_lock): Ditto.
10520 (omp_destroy_nest_lock): Ditto.
10521 (omp_get_wtick): Ditto.
10522 (omp_get_wtime): Ditto.
10523 (OMP_CANCELLATION): Ditto.
10524 (OMP_DISPLAY_ENV): Ditto.
10525 (OMP_DEFAULT_DEVICE): Ditto.
10526 (OMP_DYNAMIC): Ditto.
10527 (OMP_MAX_ACTIVE_LEVELS): Ditto.
10528 (OMP_MAX_TASK_PRIORITY): Ditto.
10529 (OMP_NESTED): Ditto.
10530 (OMP_NUM_THREADS): Ditto.
10531 (OMP_PROC_BIND): Ditto.
10532 (OMP_PLACES): Ditto.
10533 (OMP_STACKSIZE): Ditto.
10534 (OMP_SCHEDULE): Ditto.
10535 (OMP_THREAD_LIMIT): Ditto.
10536 (OMP_WAIT_POLICY): Ditto.
10537
10538 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
10539 James Norris <jnorris@codesourcery.com>
10540 Julian Brown <julian@codesourcery.com>
10541 Thomas Schwinge <thomas@codesourcery.com>
10542 Tom de Vries <tom@codesourcery.com>
10543
10544 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10545 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10546 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10547 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10548 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10549 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10550 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10551 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10552 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10553 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10554 Likewise.
10555 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10556 Likewise.
10557 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10558 Likewise.
10559 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10560 Likewise.
10561 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10562 Likewise.
10563 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10564 Likewise.
10565 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10566 Likewise.
10567 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10568 Likewise.
10569 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10570 Likewise.
10571 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10572 Likewise.
10573 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10574 Likewise.
10575 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10576 Likewise.
10577 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10578 Likewise.
10579 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10580 Likewise.
10581 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10582 Likewise.
10583 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10584 Likewise.
10585 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10586 Likewise.
10587 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10588 Likewise.
10589 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10590 Likewise.
10591 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10592 Likewise.
10593 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10594 Likewise.
10595 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10596 Likewise.
10597 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10598 Likewise.
10599 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10600 Likewise.
10601 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10602 Likewise.
10603 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10604 Likewise.
10605 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10606 Likewise.
10607 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10608 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10609 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10610 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10611 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10612 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10613 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10614 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10615 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10616 Likewise.
10617 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10618 Likewise.
10619 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10620 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10621 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10622 Likewise.
10623 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10624 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10625 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10626 Likewise.
10627 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10628 Likewise.
10629 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10630 Likewise.
10631 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10632 Likewise.
10633 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10634 Likewise.
10635 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10636 Likewise.
10637 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10638 Likewise.
10639 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10640 Likewise.
10641 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10642 Likewise.
10643 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10644 Likewise.
10645 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10646 Likewise.
10647 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10648 Likewise.
10649 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10650 Likewise.
10651 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10652 Likewise.
10653 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10654 Likewise.
10655 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10656 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10657 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10658 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10659 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10660 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10661 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10662
10663 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
10664 Thomas Schwinge <thomas@codesourcery.com>
10665 Cesar Philippidis <cesar@codesourcery.com>
10666
10667 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10668 (gomp_acc_remove_pointer): Update declaration.
10669 (gomp_acc_declare_allocate): Declare.
10670 (gomp_remove_var): Declare.
10671 * libgomp.map (OACC_2.5): Define.
10672 * oacc-mem.c (acc_map_data): Update refcount.
10673 (acc_unmap_data): Likewise.
10674 (present_create_copy): Likewise.
10675 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10676 (acc_copyin): Likewise.
10677 (FLAG_FINALIZE): Define.
10678 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10679 (acc_delete_finalize): New function.
10680 (acc_delete_finalize_async): New function.
10681 (acc_copyout_finalize): New function.
10682 (acc_copyout_finalize_async): New function.
10683 (gomp_acc_insert_pointer): Update refcounts.
10684 (gomp_acc_remove_pointer): Return if data is not present on the
10685 accelerator.
10686 * oacc-parallel.c (find_pset): Rename to find_pointer.
10687 (find_pointer): Add support for GOMP_MAP_POINTER.
10688 (handle_ftn_pointers): New function.
10689 (GOACC_parallel_keyed): Update refcounts of variables.
10690 (GOACC_enter_exit_data): Add support for finalized data mappings.
10691 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10692 of fortran arrays.
10693 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10694 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10695 for GOMP_MAP_FORCE_FROM.
10696 * openacc.f90 (module openacc_internal): Add
10697 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10698 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10699 acc_copyout_finalize and acc_delete_finalize.
10700 (acc_copyout_finalize_32_h): New subroutine.
10701 (acc_copyout_finalize_64_h): New subroutine.
10702 (acc_copyout_finalize_array_h): New subroutine.
10703 (acc_delete_finalize_32_h): New subroutine.
10704 (acc_delete_finalize_64_h): New subroutine.
10705 (acc_delete_finalize_array_h): New subroutine.
10706 * openacc.h (acc_copyout_finalize): Declare.
10707 (acc_copyout_finalize_async): Declare.
10708 (acc_delete_finalize): Declare.
10709 (acc_delete_finalize_async): Declare.
10710 * openacc_lib.h (acc_copyout_finalize): New interface.
10711 (acc_delete_finalize): New interface.
10712 * target.c (gomp_map_vars): Update dynamic_refcount.
10713 (gomp_remove_var): New function.
10714 (gomp_unmap_vars): Use it.
10715 (gomp_unload_image_from_device): Likewise.
10716 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10717 case to utilize OpenACC 2.5 data clause semantics.
10718 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10719 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10720 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10721 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10722 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10723 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10724 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10725 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10726 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10727 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10728 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10729 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10730 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10731 utilize OpenACC 2.5 data clause semantics.
10732 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10733 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10734 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10735 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10736 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10737 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10738 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10739 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10740 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10741
10742 2018-05-21 Janus Weil <janus@gcc.gnu.org>
10743
10744 PR fortran/85841
10745 PR testsuite/85865
10746 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10747 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10748 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10749 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10750 * testsuite/libgomp.fortran/task2.f90: Ditto.
10751 * testsuite/libgomp.fortran/vla1.f90: Ditto.
10752 * testsuite/libgomp.fortran/vla2.f90: Ditto.
10753 * testsuite/libgomp.fortran/vla3.f90: Ditto.
10754 * testsuite/libgomp.fortran/vla4.f90: Ditto.
10755 * testsuite/libgomp.fortran/vla5.f90: Ditto.
10756 * testsuite/libgomp.fortran/vla6.f90: Ditto.
10757 * testsuite/libgomp.fortran/vla8.f90: Ditto.
10758 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10759 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10760
10761 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
10762
10763 PR c++/85782
10764 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10765
10766 2018-05-09 Tom de Vries <tom@codesourcery.com>
10767
10768 PR libgomp/82901
10769 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10770 to GOACC_enter_exit_data.
10771
10772 2018-05-09 Tom de Vries <tom@codesourcery.com>
10773
10774 PR libgomp/83792
10775 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10776 (async_synchronous_p): New function.
10777 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10778 async_valid_p.
10779 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10780 async_valid_stream_id_p.
10781 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10782 * oacc-parallel.c (GOACC_parallel_keyed): Same.
10783
10784 2018-05-07 Tom de Vries <tom@codesourcery.com>
10785
10786 PR testsuite/85677
10787 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10788 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10789
10790 2018-05-03 Tom de Vries <tom@codesourcery.com>
10791
10792 PR testsuite/85106
10793 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10794 extra_tool_flags if it contains an -foffload=-fdump-* flag.
10795 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10796 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10797
10798 2018-05-02 Tom de Vries <tom@codesourcery.com>
10799
10800 PR libgomp/85411
10801 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10802 GOMP_OPENACC_DIM ...
10803 * env.c (parse_gomp_openacc_dim): ... here. New function.
10804 (initialize_env): Call parse_gomp_openacc_dim.
10805 (goacc_default_dims): Define.
10806 * libgomp.h (goacc_default_dims): Declare.
10807 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10808 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10809 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10810 GOMP_PLUGIN_acc_default_dim.
10811 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10812 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10813
10814 2018-05-02 Tom de Vries <tom@codesourcery.com>
10815
10816 PR testsuite/83791
10817 * testsuite/libgomp.c++/udr-9.C: Update.
10818 * testsuite/libgomp.c++/atomic-16.C: Remove.
10819 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10820 * testsuite/libgomp.c++/loop-13.C: Remove.
10821 * testsuite/libgomp.c++/loop-14.C: Remove.
10822 * testsuite/libgomp.c++/loop-15.C: Remove.
10823 * testsuite/libgomp.c++/monotonic-1.C: Remove.
10824 * testsuite/libgomp.c++/monotonic-2.C: Remove.
10825 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10826 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10827 * testsuite/libgomp.c++/ordered-1.C: Remove.
10828 * testsuite/libgomp.c++/pr45784.C: Remove.
10829 * testsuite/libgomp.c++/pr64824.C: Remove.
10830 * testsuite/libgomp.c++/pr64868.C: Remove.
10831 * testsuite/libgomp.c++/pr66199-1.C: Remove.
10832 * testsuite/libgomp.c++/pr66199-2.C: Remove.
10833 * testsuite/libgomp.c++/pr66199-3.C: Remove.
10834 * testsuite/libgomp.c++/pr66199-4.C: Remove.
10835 * testsuite/libgomp.c++/pr66199-5.C: Remove.
10836 * testsuite/libgomp.c++/pr66199-6.C: Remove.
10837 * testsuite/libgomp.c++/pr66199-7.C: Remove.
10838 * testsuite/libgomp.c++/pr66199-8.C: Remove.
10839 * testsuite/libgomp.c++/pr66199-9.C: Remove.
10840 * testsuite/libgomp.c++/pr69389.C: Remove.
10841 * testsuite/libgomp.c++/simd10.C: Remove.
10842 * testsuite/libgomp.c++/simd11.C: Remove.
10843 * testsuite/libgomp.c++/simd12.C: Remove.
10844 * testsuite/libgomp.c++/simd13.C: Remove.
10845 * testsuite/libgomp.c++/target-1.C: Remove.
10846 * testsuite/libgomp.c++/target-3.C: Remove.
10847 * testsuite/libgomp.c++/target-4.C: Remove.
10848 * testsuite/libgomp.c++/target-5.C: Remove.
10849 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10850 * testsuite/libgomp.c++/taskloop-1.C: Remove.
10851 * testsuite/libgomp.c++/taskloop-2.C: Remove.
10852 * testsuite/libgomp.c++/taskloop-3.C: Remove.
10853 * testsuite/libgomp.c++/taskloop-4.C: Remove.
10854 * testsuite/libgomp.c++/udr-9.C: Remove.
10855 * testsuite/libgomp.c++/for-10.C: Remove.
10856 * testsuite/libgomp.c++/for-11.C: Remove.
10857 * testsuite/libgomp.c++/for-12.C: Remove.
10858 * testsuite/libgomp.c++/for-13.C: Remove.
10859 * testsuite/libgomp.c++/for-14.C: Remove.
10860 * testsuite/libgomp.c++/for-9.C: Remove.
10861 * testsuite/libgomp.c/atomic-18.c: Move ...
10862 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10863 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10864 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10865 * testsuite/libgomp.c/loop-13.c: Move ...
10866 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10867 * testsuite/libgomp.c/loop-14.c: Move ...
10868 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10869 * testsuite/libgomp.c/loop-15.c: Remove.
10870 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10871 * testsuite/libgomp.c/monotonic-1.c: Move ...
10872 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10873 * testsuite/libgomp.c/monotonic-2.c: Move ...
10874 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10875 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10876 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10877 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10878 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10879 * testsuite/libgomp.c/ordered-4.c: Move ...
10880 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10881 * testsuite/libgomp.c/pr45784.c: Move ...
10882 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10883 * testsuite/libgomp.c/pr64824.c: Move ...
10884 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10885 * testsuite/libgomp.c/pr64868.c: Move ...
10886 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10887 * testsuite/libgomp.c/pr66199-1.c: Move ...
10888 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10889 * testsuite/libgomp.c/pr66199-2.c: Move ...
10890 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10891 * testsuite/libgomp.c/pr66199-3.c: Move ...
10892 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10893 * testsuite/libgomp.c/pr66199-4.c: Move ...
10894 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10895 * testsuite/libgomp.c/pr66199-5.c: Move ...
10896 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10897 * testsuite/libgomp.c/pr66199-6.c: Move ...
10898 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10899 * testsuite/libgomp.c/pr66199-7.c: Move ...
10900 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10901 * testsuite/libgomp.c/pr66199-8.c: Move ...
10902 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10903 * testsuite/libgomp.c/pr66199-9.c: Move ...
10904 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
10905 * testsuite/libgomp.c/pr69389.c: Move ...
10906 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
10907 * testsuite/libgomp.c/simd-14.c: Move ...
10908 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
10909 * testsuite/libgomp.c/simd-15.c: Move ...
10910 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
10911 * testsuite/libgomp.c/simd-16.c: Move ...
10912 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
10913 * testsuite/libgomp.c/simd-17.c: Move ...
10914 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
10915 * testsuite/libgomp.c/target-1.c: Move ...
10916 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
10917 * testsuite/libgomp.c/target-10.c: Move ...
10918 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
10919 * testsuite/libgomp.c/target-13.c: Move ...
10920 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
10921 * testsuite/libgomp.c/target-2.c: Move ...
10922 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
10923 * testsuite/libgomp.c/taskgroup-1.c: Move ...
10924 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
10925 * testsuite/libgomp.c/taskloop-1.c: Move ...
10926 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
10927 * testsuite/libgomp.c/taskloop-2.c: Move ...
10928 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
10929 * testsuite/libgomp.c/taskloop-3.c: Move ...
10930 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
10931 * testsuite/libgomp.c/taskloop-4.c: Move ...
10932 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
10933 * testsuite/libgomp.c/udr-1.c: Move ...
10934 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
10935 * testsuite/libgomp.c/for-1.c: Move ...
10936 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
10937 * testsuite/libgomp.c/for-1.h: Move ...
10938 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
10939 * testsuite/libgomp.c/for-2.c: Move ...
10940 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
10941 * testsuite/libgomp.c/for-2.h: Move ...
10942 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
10943 * testsuite/libgomp.c/for-3.c: Move ...
10944 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
10945 * testsuite/libgomp.c/for-4.c: Move ...
10946 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
10947 * testsuite/libgomp.c/for-5.c: Move ...
10948 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10949 * testsuite/libgomp.c/for-6.c: Move ...
10950 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10951
10952 2018-05-02 Tom de Vries <tom@codesourcery.com>
10953
10954 PR libgomp/82428
10955 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10956 __builtin_goacc_parlevel_{id,size}.
10957 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10958 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10959 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10960 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10961 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10962 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10963 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10964 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10965 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10966 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10967 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10968 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10969 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10970 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10971 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10972 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10973 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10974 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10975 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10976 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10977 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10978 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10979 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10980
10981 2018-05-02 Tom de Vries <tom@codesourcery.com>
10982
10983 PR testsuite/85106
10984 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10985
10986 2018-05-02 Tom de Vries <tom@codesourcery.com>
10987
10988 PR testsuite/85106
10989 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
10990
10991 2018-04-29 Julian Brown <julian@codesourcery.com>
10992 Tom de Vries <tom@codesourcery.com>
10993
10994 PR testsuite/85527
10995 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
10996 arbitrary order for iterations of atomic subtract check.
10997
10998 2018-04-28 Tom de Vries <tom@codesourcery.com>
10999
11000 PR testsuite/85527
11001 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11002 atomic capture results obtained in parallel loop to an array, instead of
11003 to a scalar.
11004
11005 2018-04-26 Tom de Vries <tom@codesourcery.com>
11006
11007 PR libgomp/84020
11008 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11009 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11010 (process_GOMP_NVPTX_JIT): New function.
11011 (link_ptx): Use process_GOMP_NVPTX_JIT.
11012
11013 2018-04-26 Richard Biener <rguenther@suse.de>
11014 Tom de Vries <tom@codesourcery.com>
11015
11016 PR lto/85422
11017 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11018
11019 2018-04-26 Tom de Vries <tom@codesourcery.com>
11020
11021 PR target/85519
11022 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11023 recursion depth from 25 to 23.
11024 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11025
11026 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11027
11028 * configure: Regenerated.
11029
11030 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11031 Tom de Vries <tom@codesourcery.com>
11032
11033 PR target/85445
11034 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11035
11036 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11037
11038 PR libgomp/85463
11039 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11040 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11041 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11042 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11043 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11044 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11045
11046 PR libfortran/85166
11047 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11048 abort".
11049 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11050
11051 2018-04-19 Jakub Jelinek <jakub@redhat.com>
11052
11053 * configure: Regenerated.
11054
11055 2018-04-18 David Malcolm <dmalcolm@redhat.com>
11056
11057 PR jit/85384
11058 * configure: Regenerate.
11059
11060 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11061 Tom de Vries <tom@codesourcery.com>
11062
11063 PR middle-end/84955
11064 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11065 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11066
11067 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11068
11069 PR fortran/83064
11070 PR testsuite/85346
11071 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11072 test from gfortran.dg to here.
11073
11074 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11075
11076 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11077 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11078
11079 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11080
11081 PR middle-end/84955
11082 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11083 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11084
11085 2018-04-05 Tom de Vries <tom@codesourcery.com>
11086
11087 PR target/85204
11088 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11089
11090 2018-03-26 Tom de Vries <tom@codesourcery.com>
11091
11092 PR tree-optimization/85063
11093 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11094 * testsuite/libgomp.c/switch-conversion.c: New test.
11095 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11096 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11097
11098 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11099
11100 PR fortran/84381
11101 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11102 call abort by STOP n.
11103 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11104 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11105 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11106 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11107 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11108 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11109 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11110 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11111 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11112 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11113 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11114 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11115 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11116 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11117 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11118 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11119 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11120 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11121 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11122 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11123 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11124 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11125 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11126 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11127 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11128 * testsuite/libgomp.fortran/character1.f90: Likewise.
11129 * testsuite/libgomp.fortran/character2.f90: Likewise.
11130 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11131 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11132 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11133 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11134 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11135 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11136 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11137 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11138 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11139 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11140 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11141 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11142 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11143 * testsuite/libgomp.fortran/do1.f90: Likewise.
11144 * testsuite/libgomp.fortran/do2.f90: Likewise.
11145 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11146 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11147 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11148 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11149 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11150 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11151 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11152 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11153 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11154 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11155 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11156 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11157 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11158 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11159 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11160 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11161 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11162 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11163 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11164 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11165 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11166 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11167 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11168 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11169 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11170 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11171 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11172 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11173 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11174 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11175 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11176 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11177 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11178 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11179 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11180 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11181 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11182 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11183 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11184 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11185 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11186 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11187 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11188 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11189 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11190 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11191 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11192 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11193 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11194 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11195 * testsuite/libgomp.fortran/lib2.f: Likewise.
11196 * testsuite/libgomp.fortran/lib3.f: Likewise.
11197 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11198 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11199 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11200 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11201 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11202 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11203 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11204 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11205 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11206 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11207 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11208 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11209 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11210 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11211 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11212 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11213 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11214 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11215 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11216 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11217 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11218 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11219 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11220 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11221 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11222 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11223 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11224 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11225 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11226 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11227 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11228 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11229 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11230 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11231 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11232 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11233 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11234 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11235 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11236 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11237 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11238 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11239 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11240 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11241 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11242 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11243 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11244 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11245 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11246 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11247 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11248 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11249 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11250 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11251 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11252 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11253 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11254 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11255 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11256 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11257 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11258 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11259 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11260 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11261 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11262 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11263 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11264 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11265 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11266 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11267 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11268 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11269 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11270 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11271 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11272 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11273 * testsuite/libgomp.fortran/stack.f90: Likewise.
11274 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11275 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11276 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11277 * testsuite/libgomp.fortran/target1.f90: Likewise.
11278 * testsuite/libgomp.fortran/target2.f90: Likewise.
11279 * testsuite/libgomp.fortran/target3.f90: Likewise.
11280 * testsuite/libgomp.fortran/target4.f90: Likewise.
11281 * testsuite/libgomp.fortran/target5.f90: Likewise.
11282 * testsuite/libgomp.fortran/target6.f90: Likewise.
11283 * testsuite/libgomp.fortran/target7.f90: Likewise.
11284 * testsuite/libgomp.fortran/target8.f90: Likewise.
11285 * testsuite/libgomp.fortran/task1.f90: Likewise.
11286 * testsuite/libgomp.fortran/task2.f90: Likewise.
11287 * testsuite/libgomp.fortran/task3.f90: Likewise.
11288 * testsuite/libgomp.fortran/task4.f90: Likewise.
11289 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11290 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11291 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11292 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11293 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11294 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11295 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11296 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11297 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11298 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11299 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11300 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11301 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11302 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11303 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11304 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11305 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11306 * testsuite/libgomp.fortran/udr3.f90: Likewise.
11307 * testsuite/libgomp.fortran/udr4.f90: Likewise.
11308 * testsuite/libgomp.fortran/udr5.f90: Likewise.
11309 * testsuite/libgomp.fortran/udr6.f90: Likewise.
11310 * testsuite/libgomp.fortran/udr7.f90: Likewise.
11311 * testsuite/libgomp.fortran/udr8.f90: Likewise.
11312 * testsuite/libgomp.fortran/udr9.f90: Likewise.
11313 * testsuite/libgomp.fortran/vla1.f90: Likewise.
11314 * testsuite/libgomp.fortran/vla2.f90: Likewise.
11315 * testsuite/libgomp.fortran/vla3.f90: Likewise.
11316 * testsuite/libgomp.fortran/vla4.f90: Likewise.
11317 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11318 * testsuite/libgomp.fortran/vla6.f90: Likewise.
11319 * testsuite/libgomp.fortran/vla7.f90: Likewise.
11320 * testsuite/libgomp.fortran/vla8.f90: Likewise.
11321 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11322 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11323 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11324 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11325 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11326 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11327 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11328 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11329 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11330 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11331 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11332 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11333 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11334 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11335 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11336 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11337 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11338 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11339 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11340 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11341 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11342 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11343 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11344 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11345 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11346 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11347 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11348 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11349 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11350 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11351 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11352 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11353 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11354 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11355 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11356 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11357 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11358 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11359 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11360 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11361 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11362 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11363 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11364 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11365 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11366 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11367 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11368 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11369 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11370 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11371 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11372 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11373 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11374 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11375 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11376 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11377 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11378 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11379 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11380 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11381 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11382 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11383 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11384 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11385 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11386 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11387 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11388 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11389 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11390 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11391 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11392 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11393 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11394 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11395 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11396 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11397 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11398 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11399 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11400 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11401 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11402 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11403 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11404 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11405 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11406 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11407 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11408 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11409 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11410 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11411 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11412 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11413 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11414 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11415
11416 2018-03-20 Richard Biener <rguenther@suse.de>
11417
11418 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11419 parallelizable loop.
11420
11421 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11422
11423 PR target/84148
11424 * configure: Regenerate.
11425
11426 2018-02-16 Jakub Jelinek <jakub@redhat.com>
11427
11428 PR fortran/84418
11429 * libgomp.fortran/pr84418-1.f90: New test.
11430 * libgomp.fortran/pr84418-2.f90: New test.
11431
11432 2018-02-14 Jakub Jelinek <jakub@redhat.com>
11433
11434 PR fortran/84313
11435 * testsuite/libgomp.fortran/threadprivate4.f90: Add
11436 -std=f2003 -fall-intrinsics into dg-additional-options.
11437
11438 2018-02-08 Martin Jambor <mjambor@suse.cz>
11439
11440 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11441 clonable.
11442
11443 2018-02-08 Martin Jambor <mjambor@suse.cz>
11444
11445 * testsuite/libgomp.hsa.c/staticvar.c: New test.
11446
11447 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11448
11449 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11450 [__cplusplus]: Declare extern "C".
11451
11452 2018-02-07 Tom de Vries <tom@codesourcery.com>
11453
11454 PR libgomp/84217
11455 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11456
11457 2018-01-29 Christoph Spiel <cspiel@freenet.de>
11458 Jakub Jelinek <jakub@redhat.com>
11459
11460 PR libgomp/84096
11461 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11462 instead of omp_lock_t.
11463
11464 2018-01-25 Tom de Vries <tom@codesourcery.com>
11465
11466 PR target/84028
11467 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11468
11469 2018-01-24 Tom de Vries <tom@codesourcery.com>
11470
11471 PR target/83589
11472 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11473
11474 2018-01-24 Tom de Vries <tom@codesourcery.com>
11475
11476 PR target/81352
11477 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11478
11479 2018-01-19 Tom de Vries <tom@codesourcery.com>
11480 Cesar Philippidis <cesar@codesourcery.com>
11481
11482 PR target/83920
11483 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11484 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11485
11486 2018-01-03 Jakub Jelinek <jakub@redhat.com>
11487
11488 Update copyright years.
11489
11490 * libgomp.texi: Bump @copying's copyright year.
11491
11492 2017-12-30 Tom de Vries <tom@codesourcery.com>
11493
11494 PR libgomp/83046
11495 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11496 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11497
11498 2017-12-27 Tom de Vries <tom@codesourcery.com>
11499
11500 PR c++/83046
11501 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11502 (test_nonstatic): Fix return type to workaround PR83046.
11503
11504 2017-12-05 Jakub Jelinek <jakub@redhat.com>
11505
11506 PR testsuite/83281
11507 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11508 j suffix instead of i.
11509 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11510 Likewise.
11511
11512 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
11513
11514 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11515 call to acc_wait (1).
11516
11517 2017-11-24 Jakub Jelinek <jakub@redhat.com>
11518
11519 PR fortran/81304
11520 * testsuite/libgomp.fortran/pr81304.f90: New test.
11521
11522 2017-11-23 Jakub Jelinek <jakub@redhat.com>
11523
11524 PR fortran/81841
11525 * libgomp.fortran/pr81841.f90: New test.
11526
11527 2017-11-22 Jakub Jelinek <jakub@redhat.com>
11528
11529 PR libgomp/83106
11530 * target.c (gomp_target_init): Compute lengths just once and
11531 use them in both malloc size and subsequent copying.
11532
11533 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11534
11535 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11536 * acinclude.m4: Add cet.m4.
11537 * configure: Regenerate.
11538 * Makefile.in: Likewise.
11539 * testsuite/Makefile.in: Likewise.
11540
11541 2017-11-15 Tom de Vries <tom@codesourcery.com>
11542
11543 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11544 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
11545 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11546 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
11547 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11548 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
11549
11550 2017-11-14 Tom de Vries <tom@codesourcery.com>
11551
11552 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11553 non-nvidia devices.
11554
11555 2017-11-07 Jakub Jelinek <jakub@redhat.com>
11556
11557 PR c++/82835
11558 * testsuite/libgomp.c++/pr82835.C: New test.
11559
11560 2017-11-06 Martin Liska <mliska@suse.cz>
11561
11562 * testsuite/libgomp.c++/loop-2.C: Return a value
11563 for functions with non-void return type, or change type to void,
11564 or add -Wno-return-type for test.
11565 * testsuite/libgomp.c++/loop-4.C: Likewise.
11566 * testsuite/libgomp.c++/parallel-1.C: Likewise.
11567 * testsuite/libgomp.c++/shared-1.C: Likewise.
11568 * testsuite/libgomp.c++/single-1.C: Likewise.
11569 * testsuite/libgomp.c++/single-2.C: Likewise.
11570
11571 2017-10-31 Tom de Vries <tom@codesourcery.com>
11572
11573 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11574 "do {} while (false)".
11575 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11576 after HSA_DEBUG call.
11577
11578 2017-10-28 Jakub Jelinek <jakub@redhat.com>
11579
11580 * target.c (struct gomp_coalesce_buf): New type.
11581 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11582 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11583 (gomp_copy_host2dev): Add CBUF argument, if copying into
11584 the cached ranges, memcpy into buffer instead of copying
11585 into device.
11586 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11587 Add CBUF argument, pass it through to other calls.
11588 (gomp_map_vars): Aggregate copies from host to device if small enough
11589 and with small enough gaps in between into memcpy into a buffer and
11590 fewer host to device copies from the buffer.
11591 (gomp_update): Adjust gomp_copy_host2dev caller.
11592
11593 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
11594
11595 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11596 run" directive.
11597 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11598 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11599 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11600 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11601
11602 2017-10-16 Tom de Vries <tom@codesourcery.com>
11603
11604 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11605 openacc_nvidia_accel_selected.
11606 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11607 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11608 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11609 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11610 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11611 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11612 openacc_nvidia_accel_selected. Skip for shared memory device.
11613 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11614 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11615
11616 2017-10-09 Martin Jambor <mjambor@suse.cz>
11617
11618 PR hsa/82416
11619 * testsuite/libgomp.hsa.c/pr82416.c: New test.
11620
11621 2017-10-07 Tom de Vries <tom@codesourcery.com>
11622
11623 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11624 Remove acc_device_nvidia references.
11625 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11626 Same.
11627
11628 2017-10-05 Tom de Vries <tom@codesourcery.com>
11629
11630 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11631 vector_length(32) clause from acc parallel directive.
11632 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11633
11634 2017-10-04 Tom de Vries <tom@codesourcery.com>
11635
11636 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11637 (main): Reduce sum of arr elements. Assert that hres is exactly
11638 representable in 32-bit floating point.
11639 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11640 (main): Reduce sum of arr elements. Assert that hres and hmres are
11641 exactly representable in 32-bit floating point.
11642 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11643
11644 2017-09-28 Tom de Vries <tom@codesourcery.com>
11645
11646 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11647 setting.
11648 * testsuite/libgomp.c++/pr69393.C: Same.
11649 * testsuite/libgomp.c++/taskloop-1.C: Same.
11650 * testsuite/libgomp.c++/taskloop-3.C: Same.
11651 * testsuite/libgomp.c++/taskloop-4.C: Same.
11652 * testsuite/libgomp.c/for-4.c: Same.
11653 * testsuite/libgomp.c/pr66199-3.c: Same.
11654 * testsuite/libgomp.c/pr66199-4.c: Same.
11655 * testsuite/libgomp.c/pr66199-6.c: Same.
11656 * testsuite/libgomp.c/taskloop-1.c: Same.
11657 * testsuite/libgomp.c/taskloop-3.c: Same.
11658 * testsuite/libgomp.c/taskloop-4.c: Same.
11659 * testsuite/libgomp.fortran/aligned1.f03: Same.
11660 * testsuite/libgomp.fortran/condinc1.f: Same.
11661 * testsuite/libgomp.fortran/condinc3.f90: Same.
11662 * testsuite/libgomp.fortran/crayptr1.f90: Same.
11663 * testsuite/libgomp.fortran/crayptr2.f90: Same.
11664 * testsuite/libgomp.fortran/crayptr3.f90: Same.
11665 * testsuite/libgomp.fortran/omp_cond1.f: Same.
11666 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11667 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11668 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11669 * testsuite/libgomp.fortran/recursion1.f90: Same.
11670 * testsuite/libgomp.fortran/target2.f90: Same.
11671 * testsuite/libgomp.fortran/target5.f90: Same.
11672 * testsuite/libgomp.fortran/task3.f90: Same.
11673
11674 2017-09-28 Tom de Vries <tom@codesourcery.com>
11675
11676 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11677 vector_length(32) clause from acc parallel directive.
11678 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11679
11680 2017-09-27 Tom de Vries <tom@codesourcery.com>
11681
11682 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11683 Remove acc_device_nvidia references.
11684
11685 2017-09-16 Tom de Vries <tom@codesourcery.com>
11686
11687 PR c/81875
11688 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11689
11690 2017-09-14 Tom de Vries <tom@codesourcery.com>
11691
11692 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11693 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11694 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11695 * testsuite/libgomp.c/c.exp: Include test-cases from
11696 libgomp.c-c++-common.
11697 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
11698 files.
11699
11700 2017-09-14 Jakub Jelinek <jakub@redhat.com>
11701
11702 PR c++/81314
11703 * testsuite/libgomp.c++/pr81314.C: New test.
11704
11705 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
11706
11707 * libgomp.texi (Top): www.openacc.org now uses https.
11708 (Enabling OpenACC): Ditto.
11709 (acc_get_num_devices): Ditto.
11710 (acc_set_device_type): Ditto.
11711 (acc_get_device_type): Ditto.
11712 (acc_set_device_num): Ditto.
11713 (acc_get_device_num): Ditto.
11714 (acc_async_test): Ditto.
11715 (acc_async_test_all): Ditto.
11716 (acc_wait): Ditto.
11717 (acc_wait_all): Ditto.
11718 (acc_wait_all_async): Ditto.
11719 (acc_wait_async): Ditto.
11720 (acc_init): Ditto.
11721 (acc_shutdown): Ditto.
11722 (acc_on_device): Ditto.
11723 (acc_malloc): Ditto.
11724 (acc_free): Ditto.
11725 (acc_copyin): Ditto.
11726 (acc_present_or_copyin): Ditto.
11727 (acc_create): Ditto.
11728 (acc_present_or_create): Ditto.
11729 (acc_copyout): Ditto.
11730 (acc_delete): Ditto.
11731 (acc_update_device): Ditto.
11732 (acc_update_self): Ditto.
11733 (acc_map_data): Ditto.
11734 (acc_unmap_data): Ditto.
11735 (acc_deviceptr): Ditto.
11736 (acc_hostptr): Ditto.
11737 (acc_is_present): Ditto.
11738 (acc_memcpy_to_device): Ditto.
11739 (acc_memcpy_from_device): Ditto.
11740 (acc_get_current_cuda_device): Ditto.
11741 (acc_get_current_cuda_context): Ditto.
11742 (acc_get_cuda_stream): Ditto.
11743 (acc_set_cuda_stream): Ditto.
11744 (ACC_DEVICE_TYPE): Ditto.
11745 (ACC_DEVICE_NUM): Ditto.
11746 (OpenACC Library Interoperability): Ditto.
11747
11748 2017-08-09 Jakub Jelinek <jakub@redhat.com>
11749
11750 PR c/81687
11751 * testsuite/libgomp.c/pr81687-1.c: New test.
11752 * testsuite/libgomp.c/pr81687-2.c: New test.
11753
11754 2017-08-07 Jakub Jelinek <jakub@redhat.com>
11755
11756 PR c/69389
11757 * testsuite/libgomp.c/pr69389.c: New test.
11758 * testsuite/libgomp.c++/pr69389.C: New test.
11759
11760 2017-08-07 Tom de Vries <tom@codesourcery.com>
11761
11762 PR middle-end/78266
11763 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11764 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11765
11766 2017-07-27 Jakub Jelinek <jakub@redhat.com>
11767
11768 PR c/45784
11769 * testsuite/libgomp.c/pr45784.c: New test.
11770 * testsuite/libgomp.c++/pr45784.C: New test.
11771
11772 2017-07-19 Tom de Vries <tom@codesourcery.com>
11773
11774 * testsuite/libgomp.oacc-c/vec.c: New test.
11775
11776 2017-07-03 Tom de Vries <tom@codesourcery.com>
11777
11778 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11779
11780 2017-06-27 Tom de Vries <tom@codesourcery.com>
11781
11782 * plugin/plugin-nvptx.c (notify_var): New function.
11783 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11784
11785 2017-06-27 Tom de Vries <tom@codesourcery.com>
11786
11787 * env.c (parse_unsigned_long_1): Factor out of ...
11788 (parse_unsigned_long): ... here.
11789 (parse_int_1): Factor out of ...
11790 (parse_int): ... here.
11791 (parse_int_secure): New function.
11792 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11793 * secure_getenv.h: Factor out of ...
11794 * plugin/plugin-hsa.c: ... here.
11795 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11796
11797 2017-06-21 Jakub Jelinek <jakub@redhat.com>
11798
11799 PR c++/81130
11800 * testsuite/libgomp.c++/pr81130.C: New test.
11801
11802 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11803
11804 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11805 default args.
11806 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11807 dg-xfail-run-if default args.
11808
11809 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11810
11811 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11812 * testsuite/libgomp.c/pr39591-3.c: Likewise.
11813
11814 2017-05-30 Jakub Jelinek <jakub@redhat.com>
11815
11816 PR libgomp/80822
11817 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11818 (gomp_affinity_init_level): Use it. Always analyze the core and thread
11819 sibling lists, depending on level just pick up what CPUs to put
11820 together into a place vs. whether add multiple ordered places.
11821
11822 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
11823
11824 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11825 * libgomp.map (OACC_2.0.1): Add these.
11826 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11827 for "acc_wait", and "acc_wait_all", respectively.
11828 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11829 for "acc_wait", and "acc_wait_all", respectively.
11830 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11831 * libgomp.texi (acc_wait, acc_wait_all): Update.
11832 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11833 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11834 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11835
11836 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11837 acc_present_or_copyin and acc_present_or_create procedures,
11838 respectively.
11839 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11840 generally different variants of OpenACC Runtime Library functions.
11841 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11842
11843 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11844 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11845
11846 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11847 of preprocessor definitions.
11848 * libgomp.h (strong_alias): Guard by "#ifdef
11849 HAVE_ATTRIBUTE_ALIAS".
11850 * oacc-mem.c: Provide "acc_pcreate" as alias for
11851 "acc_present_or_create", and "acc_pcopyin" as alias for
11852 "acc_present_or_copyin".
11853 * libgomp.map: New version "OACC_2.0.1".
11854 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11855 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11856 its content into...
11857 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11858 Extend testing.
11859
11860 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11861 when disabling nvptx offloading.
11862
11863 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
11864
11865 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11866 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11867 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11868
11869 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11870 * testsuite/lib/libgomp.exp
11871 (check_effective_target_openacc_nvidia_accel_configured): New
11872 proc.
11873 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11874 (check_effective_target_c++): New procs.
11875 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11876 (check_effective_target_c++): Likewise.
11877
11878 2017-05-22 Jakub Jelinek <jakub@redhat.com>
11879
11880 PR middle-end/80809
11881 * testsuite/libgomp.c/pr80809-2.c: New test.
11882 * testsuite/libgomp.c/pr80809-3.c: New test.
11883
11884 PR middle-end/80809
11885 * testsuite/libgomp.c/pr80809-1.c: New test.
11886
11887 PR middle-end/80853
11888 * testsuite/libgomp.c/pr80853.c: New test.
11889
11890 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
11891
11892 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11893 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11894 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11895 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11896 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11897
11898 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11899 Debug output for failure.
11900
11901 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11902
11903 * testsuite/lib/libgomp.exp: Load scanlang.exp.
11904
11905 2017-04-27 Jakub Jelinek <jakub@redhat.com>
11906
11907 PR bootstrap/80531
11908 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
11909 bootstrap compare failures.
11910
11911 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
11912
11913 * testsuite/libgomp.c/target-36.c: New testcase.
11914
11915 2017-04-13 Jakub Jelinek <jakub@redhat.com>
11916
11917 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
11918 instead of char.
11919
11920 2017-04-11 Jakub Jelinek <jakub@redhat.com>
11921
11922 PR libgomp/80394
11923 * testsuite/libgomp.c/pr80394.c: New test.
11924
11925 2017-04-04 Jakub Jelinek <jakub@redhat.com>
11926
11927 PR libgomp/79876
11928 * config/posix/thread-stacksize.h: New file.
11929 * config/darwin/thread-stacksize.h: New file.
11930 * config/nvptx/thread-stacksize.h: New file.
11931 * env.c: Include thread-stacksize.h.
11932 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
11933 instead of 0. Call pthread_attr_setstacksize even if
11934 GOMP_DEFAULT_STACKSIZE is non-zero.
11935
11936 2017-03-30 Jakub Jelinek <jakub@redhat.com>
11937
11938 * env.c (initialize_env): Initialize stacksize to 0.
11939
11940 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
11941
11942 PR c++/80029
11943 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
11944
11945 2017-03-08 Jakub Jelinek <jakub@redhat.com>
11946
11947 PR c/79940
11948 * testsuite/libgomp.c/pr79940.c: New test.
11949
11950 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11951
11952 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11953 targets.
11954 Add __float128 options.
11955
11956 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
11957
11958 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11959 hppa*-*-* dg-skip-if directive.
11960
11961 2017-02-09 Jakub Jelinek <jakub@redhat.com>
11962
11963 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11964 dg-skip-if directive into a comment.
11965
11966 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
11967 Chung-Lin Tang <cltang@codesourcery.com>
11968
11969 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11970 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11971 add additional case.
11972 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11973 "openacc_nvidia_accel_selected".
11974 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11975 Add num_workers(8) clause.
11976
11977 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
11978
11979 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11980 hppa*-*-*.
11981 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11982 include complex.h on hppa*-*-hpux*.
11983 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11984
11985 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
11986
11987 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
11988
11989 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
11990 GOMP_OFFLOAD_openacc_exec. Adjust all users.
11991 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
11992 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
11993 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
11994 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
11995 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
11996 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
11997 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
11998 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
11999
12000 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12001
12002 * libgomp-plugin.h: #include <stdbool.h>.
12003 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12004 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12005 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12006 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12007 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12008 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12009 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12010 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12011 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12012 (GOMP_OFFLOAD_openacc_async_test)
12013 (GOMP_OFFLOAD_openacc_async_test_all)
12014 (GOMP_OFFLOAD_openacc_async_wait)
12015 (GOMP_OFFLOAD_openacc_async_wait_async)
12016 (GOMP_OFFLOAD_openacc_async_wait_all)
12017 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12018 (GOMP_OFFLOAD_openacc_async_set_async)
12019 (GOMP_OFFLOAD_openacc_create_thread_data)
12020 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12021 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12022 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12023 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12024 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12025 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12026 these.
12027 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12028 (GOMP_OFFLOAD_unload_image): Fix argument types.
12029
12030 2017-01-26 Jakub Jelinek <jakub@redhat.com>
12031
12032 * testsuite/lib/libgomp.exp
12033 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12034 check_compile invocation. Fix up removal of executable. Drop
12035 bogus "2>&1" argument.
12036
12037 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12038 directive.
12039
12040 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
12041 Martin Jambor <mjambor@suse.cz>
12042
12043 * plugin/hsa.h: Moved to top level include.
12044 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12045
12046 2017-01-21 Jakub Jelinek <jakub@redhat.com>
12047
12048 PR other/79046
12049 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12050 of cat to get version from BASE-VER file.
12051 * testsuite/Makefile.in: Regenerated.
12052
12053 2017-01-19 Jakub Jelinek <jakub@redhat.com>
12054
12055 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12056 for _WIN64.
12057
12058 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12059
12060 * plugin/hsa.h: Add GCC runtime library exception.
12061 * plugin/hsa_ext_finalize.h: Likewise.
12062
12063 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12064 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12065 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12066 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12067 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12068 library to link ptx plugin against.
12069 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12070 (CUDA_CALLS): Define.
12071 (cuda_lib, cuda_lib_inited): New variables.
12072 (init_cuda_lib): New function.
12073 (CUDA_CALL_PREFIX): Define.
12074 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12075 (CUDA_CALL): Use FN instead of (FN).
12076 (CUDA_CALL_NOCHECK): Define.
12077 (cuda_error, fini_streams_for_device, select_stream_for_async,
12078 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12079 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12080 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12081 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12082 CUDA_CALL_NOCHECK.
12083 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12084 CUDA_CALL_NOCHECK.
12085 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12086 Use CUDA_CALL_NOCHECK.
12087 * plugin/cuda/cuda.h: New file.
12088 * config.h.in: Regenerated.
12089 * configure: Regenerated.
12090
12091 PR other/79046
12092 * configure.ac: Add GCC_BASE_VER.
12093 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12094 get version from BASE-VER file.
12095 * testsuite/Makefile.in: Regenerated.
12096 * configure: Regenerated.
12097 * Makefile.in: Regenerated.
12098
12099 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12100
12101 PR libgomp/60670
12102 * Makefile.am: Make fincludedir multilib-aware.
12103 * Makefile.in: Regenerate.
12104
12105 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12106
12107 Update copyright years.
12108
12109 * libgomp.texi: Bump @copying's copyright year.
12110
12111 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12112
12113 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12114 pthread_spinlock_t instead of gomp_mutex_t lock.
12115 (gomp_get_thread_pool): Likewise.
12116 (gomp_release_thread_pool): Likewise.
12117 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12118 Likewise.
12119
12120 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12121
12122 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12123 thread pool in case nthreads == 1.
12124
12125 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12126
12127 * config/nvptx/env.c: Delete.
12128 * icv.c: Move definitions of ICV variables back ...
12129 * env.c: ...here. Do not compile environment-related functionality if
12130 LIBGOMP_OFFLOADED_ONLY is set.
12131
12132 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12133
12134 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12135 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12136 * configure: Regenerate.
12137 * config.h.in: Likewise.
12138
12139 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12140
12141 * Makefile.in: Regenerate with automake-1.11.6.
12142 * aclocal.m4: Likewise.
12143 * configure: Likewise.
12144 * testsuite/Makefile.in: Likewise.
12145
12146 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
12147
12148 * config/nvptx/critical.c: Delete to use generic implementation.
12149
12150 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12151
12152 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12153 ../../affinity.c as fallback.
12154 * config/nvptx/affinity.c: Delete to use fallback implementation.
12155
12156 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
12157 Jakub Jelinek <jakub@redhat.com>
12158 Dmitry Melnik <dm@ispras.ru>
12159
12160 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12161 * Makefile.in. Regenerate.
12162 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12163 (LIBGOMP_USE_PTHREADS): ...here; new define.
12164 * configure: Regenerate.
12165 * config.h.in: Likewise.
12166 * config/posix/affinity.c: Move to...
12167 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12168 interface by LIBGOMP_USE_PTHREADS.
12169 * critical.c: Split out GOMP_atomic_{start,end} into...
12170 * atomic.c: ...here (new file).
12171 * env.c: Split out ICV definitions into...
12172 * icv.c: ...here (new file) and...
12173 * icv-device.c: ...here. New file.
12174 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12175 (gomp_destroy_lock_30): Ditto.
12176 (gomp_set_lock_30): Ditto.
12177 (gomp_unset_lock_30): Ditto.
12178 (gomp_test_lock_30): Ditto.
12179 (gomp_init_nest_lock_30): Ditto.
12180 (gomp_destroy_nest_lock_30): Ditto.
12181 (gomp_set_nest_lock_30): Ditto.
12182 (gomp_unset_nest_lock_30): Ditto.
12183 (gomp_test_nest_lock_30): Ditto.
12184 * lock.c: New.
12185 * config/nvptx/lock.c: New.
12186 * config/nvptx/bar.c: New.
12187 * config/nvptx/bar.h: New.
12188 * config/nvptx/doacross.h: New.
12189 * config/nvptx/error.c: New.
12190 * config/nvptx/icv-device.c: New.
12191 * config/nvptx/mutex.h: New.
12192 * config/nvptx/pool.h: New.
12193 * config/nvptx/proc.c: New.
12194 * config/nvptx/ptrlock.h: New.
12195 * config/nvptx/sem.h: New.
12196 * config/nvptx/simple-bar.h: New.
12197 * config/nvptx/target.c: New.
12198 * config/nvptx/task.c: New.
12199 * config/nvptx/team.c: New.
12200 * config/nvptx/time.c: New.
12201 * config/posix/simple-bar.h: New.
12202 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12203 (gomp_num_teams_var): Declare.
12204 (struct gomp_thread_pool): Change threads_dock member to
12205 gomp_simple_barrier_t.
12206 [__nvptx__] (gomp_thread): New implementation.
12207 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12208 (gomp_thread_destructor): Ditto.
12209 (gomp_init_thread_affinity): Ditto.
12210 * team.c: Guard uses of Pthreads-specific interfaces by
12211 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12212 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12213 * config/nvptx/alloc.c: Delete.
12214 * config/nvptx/barrier.c: Ditto.
12215 * config/nvptx/fortran.c: Ditto.
12216 * config/nvptx/iter.c: Ditto.
12217 * config/nvptx/iter_ull.c: Ditto.
12218 * config/nvptx/loop.c: Ditto.
12219 * config/nvptx/loop_ull.c: Ditto.
12220 * config/nvptx/ordered.c: Ditto.
12221 * config/nvptx/parallel.c: Ditto.
12222 * config/nvptx/priority_queue.c: Ditto.
12223 * config/nvptx/sections.c: Ditto.
12224 * config/nvptx/single.c: Ditto.
12225 * config/nvptx/splay-tree.c: Ditto.
12226 * config/nvptx/work.c: Ditto.
12227 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12228 -foffload=-lgfortran in addition to -lgfortran.
12229 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12230 * plugin/plugin-nvptx.c: Include <limits.h>.
12231 (struct targ_fn_descriptor): Add new fields.
12232 (struct ptx_device): Ditto. Set them...
12233 (nvptx_open_device): ...here.
12234 (nvptx_adjust_launch_bounds): New.
12235 (nvptx_host2dev): Allow NULL 'nvthd'.
12236 (nvptx_dev2host): Ditto.
12237 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12238 (link_ptx): Adjust log sizes.
12239 (nvptx_host2dev): Allow NULL 'nvthd'.
12240 (nvptx_dev2host): Ditto.
12241 (nvptx_set_clocktick): New. Use it...
12242 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12243 fields.
12244 (GOMP_OFFLOAD_dev2dev): New.
12245 (nvptx_adjust_launch_bounds): New.
12246 (nvptx_stacks_size): New.
12247 (nvptx_stacks_alloc): New.
12248 (nvptx_stacks_free): New.
12249 (GOMP_OFFLOAD_run): New.
12250 (GOMP_OFFLOAD_async_run): New (stub).
12251
12252 2016-11-23 Martin Jambor <mjambor@suse.cz>
12253
12254 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12255 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12256 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12257
12258 2016-11-23 Martin Liska <mliska@suse.cz>
12259 Martin Jambor <mjambor@suse.cz>
12260
12261 * plugin/hsa.h: New file.
12262 * plugin/hsa_ext_finalize.h: New file.
12263 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12264 header file unistd.h, and functions secure_getenv, __secure_getenv,
12265 getuid, geteuid, getgid and getegid.
12266 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12267 -D_GNU_SOURCE.
12268 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12269 Handle various cases of secure_getenv presence, add an implementation
12270 when we can test effective UID and GID.
12271 (struct hsa_runtime_fn_info): New structure.
12272 (hsa_runtime_fn_info hsa_fns): New variable.
12273 (hsa_runtime_lib): Likewise.
12274 (support_cpu_devices): Likewise.
12275 (init_enviroment_variables): Load newly introduced ENV
12276 variables.
12277 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12278 (hsa_fatal): Likewise.
12279 (DLSYM_FN): New macro.
12280 (init_hsa_runtime_functions): New function.
12281 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12282 structure. Depending on environment, also allow CPU devices.
12283 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12284 (get_kernarg_memory_region): Likewise.
12285 (GOMP_OFFLOAD_init_device): Likewise.
12286 (destroy_hsa_program): Likewise.
12287 (init_basic_kernel_info): New function.
12288 (GOMP_OFFLOAD_load_image): Use it.
12289 (create_and_finalize_hsa_program): Call hsa run-time functions via
12290 hsa_fns structure.
12291 (create_single_kernel_dispatch): Likewise.
12292 (release_kernel_dispatch): Likewise.
12293 (init_single_kernel): Likewise.
12294 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12295 (get_group_size): New function.
12296 (run_kernel): Likewise.
12297 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12298 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12299 structure.
12300 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12301 * testsuite/libgomp-test-support.exp.in: Likewise.
12302 * Makefile.in: Regenerated.
12303 * aclocal.m4: Likewise.
12304 * config.h.in: Likewise.
12305 * configure: Likewise.
12306 * testsuite/Makefile.in: Likewise.
12307
12308 2016-11-15 Martin Jambor <mjambor@suse.cz>
12309 Alexander Monakov <amonakov@ispras.ru>
12310
12311 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12312 mapping clauses to target constructs.
12313 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12314
12315 2016-11-15 Matthias Klose <doko@ubuntu.com>
12316
12317 * configure: Regenerate.
12318
12319 2016-11-10 Jakub Jelinek <jakub@redhat.com>
12320
12321 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12322 * omp_lib.h.in (openmp_version): Likewise.
12323 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12324 of 201307.
12325 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12326
12327 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12328 (fib_wrapper): Add map(from: x) clause.
12329 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12330 (e_53_2): Likewise.
12331 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12332 (accum): Add map(tmp) clause.
12333 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12334 (accum): Add map(tofrom: tmp) clause.
12335 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12336 (gramSchmidt): Likewise.
12337 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12338 map(tofrom: sum) clause.
12339 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12340 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
12341 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12342 only allowed on the loop iterator.
12343 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12344 * testsuite/libgomp.fortran/taskloop2.f90: New test.
12345 * testsuite/libgomp.fortran/taskloop4.f90: New test.
12346 * testsuite/libgomp.fortran/doacross1.f90: New test.
12347 * testsuite/libgomp.fortran/doacross3.f90: New test.
12348 * testsuite/libgomp.fortran/taskloop1.f90: New test.
12349 * testsuite/libgomp.fortran/taskloop3.f90: New test.
12350 * testsuite/libgomp.fortran/doacross2.f90: New test.
12351 * testsuite/libgomp.c/doacross-1.c (main): Add missing
12352 #pragma omp atomic read.
12353 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12354 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12355
12356 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
12357 Nathan Sidwell <nathan@acm.org>
12358
12359 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12360 to determine default geometry.
12361 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12362 dimension.
12363
12364 2016-11-01 Jakub Jelinek <jakub@redhat.com>
12365
12366 * hashtab.h: Use standard GPLv3 with runtime exception
12367 boilerplate.
12368
12369 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
12370
12371 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12372 size when allocating new thread.
12373
12374 2016-09-14 Marek Polacek <polacek@redhat.com>
12375
12376 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12377
12378 2016-08-19 Jakub Jelinek <jakub@redhat.com>
12379
12380 PR fortran/71014
12381 * testsuite/libgomp.fortran/pr71014.f90: New test.
12382
12383 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
12384
12385 PR middle-end/70895
12386 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12387 firstprivate clauses.
12388 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12389 copy clauses.
12390 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12391 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12392 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12393 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12394 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12395 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12396 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12397 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12398 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12399 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12400 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12401 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12402
12403 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
12404
12405 PR fortran/70598
12406 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12407
12408 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12409
12410 PR c++/58706
12411 * testsuite/libgomp.c++/pr58706.C: New test.
12412
12413 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
12414
12415 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12416 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12417 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12418 Likewise.
12419 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12420 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12421 Likewise.
12422 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12423
12424 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12425 test, and don't hardcode -O0.
12426
12427 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12428
12429 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12430
12431 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12432
12433 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12434 test.
12435
12436 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
12437
12438 PR middle-end/71734
12439 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12440 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12441
12442 2016-07-01 Jakub Jelinek <jakub@redhat.com>
12443
12444 PR fortran/71717
12445 * testsuite/libgomp.fortran/associate3.f90: New test.
12446
12447 2016-06-17 Jakub Jelinek <jakub@redhat.com>
12448
12449 * testsuite/libgomp.c++/target-21.C: New test.
12450
12451 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12452
12453 * testsuite/libgomp.c++/target-20.C: New test.
12454
12455 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12456 Cesar Philippidis <cesar@codesourcery.com>
12457
12458 PR middle-end/71373
12459 * libgomp.oacc-c/nested-function-1.c: New file.
12460 * libgomp.oacc-c/nested-function-2.c: Likewise.
12461 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12462 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12463 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12464
12465 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12466
12467 PR c/71381
12468 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12469 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12470 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12471
12472 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
12473
12474 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12475 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12476
12477 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
12478
12479 PR c/70688
12480 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12481
12482 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12483
12484 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12485 instead of invalid schedule(static, 0).
12486 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12487
12488 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12489
12490 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12491 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12492 parameter, use to set async stream around call to gomp_unmap_vars,
12493 call gomp_unmap_vars() with 'do_copyfrom' set to true.
12494 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12495 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12496 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12497 (event_add): Add int parameter, initialize 'val' field when
12498 adding new ptx_event struct.
12499 (nvptx_evec): Adjust event_add() call arguments.
12500 (nvptx_host2dev): Likewise.
12501 (nvptx_dev2host): Likewise.
12502 (nvptx_wait_async): Likewise.
12503 (nvptx_wait_all_async): Likewise.
12504 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12505 pass to event_add() call.
12506 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12507 parameter.
12508 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12509 call openacc.register_async_cleanup_func() hook.
12510 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12511 * target.c (gomp_copy_from_async): Delete function.
12512 (gomp_map_vars): Remove async_refcount.
12513 (gomp_unmap_vars): Likewise.
12514 (gomp_load_image_to_device): Likewise.
12515 (omp_target_associate_ptr): Likewise.
12516 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12517 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12518 (gomp_copy_from_async): Remove.
12519
12520 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12521
12522 * target.c (gomp_device_copy): New function.
12523 (gomp_copy_host2dev): Likewise.
12524 (gomp_copy_dev2host): Likewise.
12525 (gomp_free_device_memory): Likewise.
12526 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12527 (gomp_map_pointer): Likewise.
12528 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12529 NULL value from alloc_func plugin hook.
12530 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12531 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12532 (gomp_unmap_vars): Likewise.
12533 (gomp_update): Adjust to call gomp_copy_dev2host and
12534 gomp_copy_host2dev functions.
12535 (gomp_unload_image_from_device): Handle false value from
12536 unload_image_func plugin hook.
12537 (gomp_init_device): Handle false value from init_device_func
12538 plugin hook.
12539 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12540 (omp_target_free): Adjust to call gomp_free_device_memory.
12541 (omp_target_memcpy): Handle return values from host2dev_func,
12542 dev2host_func, and dev2dev_func plugin hooks.
12543 (omp_target_memcpy_rect_worker): Likewise.
12544 (gomp_target_fini): Handle false value from fini_device_func
12545 plugin hook.
12546 * libgomp.h (struct gomp_device_descr): Adjust return type of
12547 init_device_func, fini_device_func, unload_image_func, free_func,
12548 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12549 * oacc-init.c (acc_shutdown_1): Handle false value from
12550 fini_device_func plugin hook.
12551 * oacc-host.c (host_init_device): Change return type to bool.
12552 (host_fini_device): Likewise.
12553 (host_unload_image): Likewise.
12554 (host_free): Likewise.
12555 (host_dev2host): Likewise.
12556 (host_host2dev): Likewise.
12557 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12558 (acc_memcpy_to_device): Likewise.
12559 (acc_memcpy_from_device): Likewise.
12560 (delete_copyout): Add libfnname parameter, handle free_func
12561 hook fatal error case.
12562 (acc_delete): Adjust delete_copyout call.
12563 (acc_copyout): Likewise.
12564 (update_dev_host): Move gomp_mutex_unlock to after
12565 host2dev/dev2host hook calls.
12566
12567 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12568 to 'hsa_error_msg', for clarity.
12569 (hsa_fatal): Likewise.
12570 (hsa_error): New function.
12571 (init_hsa_context): Change return type to bool, adjust to return
12572 false on error.
12573 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12574 return value.
12575 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12576 return false on error.
12577 (get_agent_info): Adjust to return NULL on error.
12578 (destroy_hsa_program): Change return type to bool, adjust to
12579 return false on error.
12580 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12581 (destroy_module): Change return type to bool, adjust to
12582 return false on error.
12583 (GOMP_OFFLOAD_unload_image): Likewise.
12584 (GOMP_OFFLOAD_fini_device): Likewise.
12585 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12586 (GOMP_OFFLOAD_free): Change to return false when called.
12587 (GOMP_OFFLOAD_dev2host): Likewise.
12588 (GOMP_OFFLOAD_host2dev): Likewise.
12589 (GOMP_OFFLOAD_dev2dev): Likewise.
12590
12591 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12592 (CUDA_CALL): Likewise.
12593 (CUDA_CALL_ASSERT): Likewise.
12594 (map_init): Change return type to bool, use CUDA_CALL* macros.
12595 (map_fini): Likewise.
12596 (init_streams_for_device): Change return type to bool, adjust
12597 call to map_init.
12598 (fini_streams_for_device): Change return type to bool, adjust
12599 call to map_fini.
12600 (select_stream_for_async): Release stream_lock before calls to
12601 GOMP_PLUGIN_fatal, adjust call to map_init.
12602 (nvptx_init): Use CUDA_CALL* macros.
12603 (nvptx_attach_host_thread_to_device): Change return type to bool,
12604 use CUDA_CALL* macros.
12605 (nvptx_open_device): Use CUDA_CALL* macros.
12606 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12607 macros.
12608 (nvptx_get_num_devices): Use CUDA_CALL* macros.
12609 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12610 (nvptx_exec): Use CUDA_CALL* macros.
12611 (nvptx_alloc): Use CUDA_CALL* macros.
12612 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12613 (nvptx_host2dev): Likewise.
12614 (nvptx_dev2host): Likewise.
12615 (nvptx_wait): Use CUDA_CALL* macros.
12616 (nvptx_wait_async): Likewise.
12617 (nvptx_wait_all): Likewise.
12618 (nvptx_wait_all_async): Likewise.
12619 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12620 use CUDA_CALL* macros, adjust call to map_fini.
12621 (GOMP_OFFLOAD_init_device): Change return type to bool,
12622 adjust code accordingly.
12623 (GOMP_OFFLOAD_fini_device): Likewise.
12624 (GOMP_OFFLOAD_load_image): Adjust calls to
12625 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12626 use CUDA_CALL* macros.
12627 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12628 return code.
12629 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12630 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12631 handle error return.
12632 (GOMP_OFFLOAD_dev2host): Likewise.
12633 (GOMP_OFFLOAD_host2dev): Likewise.
12634 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12635 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12636
12637 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
12638
12639 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12640 (acc_free): Likewise.
12641 (acc_memcpy_to_device): Likewise.
12642 (acc_memcpy_from_device): Likewise.
12643 (acc_deviceptr): Likewise.
12644 (acc_hostptr): Likewise.
12645 (acc_is_present): Likewise.
12646 (acc_map_data): Likewise.
12647 (acc_unmap_data): Likewise.
12648 (present_create_copy): Likewise.
12649 (delete_copyout): Likewise.
12650 (update_dev_host): Likewise.
12651 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12652 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12653 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12654 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12655 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12656 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12657 it only runs on nvptx targets.
12658 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12659 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12660 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12661 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12662 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12663 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12664 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12665 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12666 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12667 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12668 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12669 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12670 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12671 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12672 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12673 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12674 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12675 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12676 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12677 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12678 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12679 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12680 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12681
12682 2016-05-23 Martin Jambor <mjambor@suse.cz>
12683
12684 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12685
12686 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
12687
12688 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12689 to gomp_init_targets_once.
12690 (acc_set_device_type): Remove !cached_base_dev condition on call to
12691 gomp_init_targets_once, move call to before acc_device_lock acquire,
12692 to avoid deadlock.
12693 (acc_get_device_num): Remove !cached_base_dev condition on call to
12694 gomp_init_targets_once.
12695 (acc_set_device_num): Likewise.
12696
12697 2016-05-16 Martin Jambor <mjambor@suse.cz>
12698
12699 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12700
12701 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
12702
12703 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12704 expected partitioning.
12705
12706 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
12707
12708 PR middle-end/70626
12709 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12710 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12711 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12712
12713 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
12714
12715 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12716 non-fatal.
12717
12718 2016-04-19 Jakub Jelinek <jakub@redhat.com>
12719
12720 PR middle-end/70680
12721 * testsuite/libgomp.c/pr70680-1.c: New test.
12722 * testsuite/libgomp.c/pr70680-2.c: New test.
12723
12724 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12725
12726 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12727 pass parameter variables to subroutines.
12728
12729 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12730
12731 PR middle-end/70643
12732 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12733
12734 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
12735
12736 PR testsuite/68242
12737 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12738 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12739
12740 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
12741
12742 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12743 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12744 GOACC_declare prototype.
12745
12746 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12747 Merge this file, and...
12748 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12749 ... this file, and...
12750 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12751 ... this file, and...
12752 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12753 ... this file, and...
12754 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12755 ... this file, and...
12756 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12757 ... this file, and...
12758 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12759 ... this file, and...
12760 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12761 ... this file, and...
12762 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12763 ... this file, and...
12764 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12765 ... this file, and...
12766 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12767 ... this file, and...
12768 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12769 ... this file, and...
12770 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12771 ... this file into...
12772 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12773 file.
12774
12775 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12776 Make failure observable.
12777
12778 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12779
12780 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12781 field.
12782 * target.c (gomp_target_fallback_firstprivate,
12783 gomp_target_unshare_firstprivate): Removed.
12784 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12785 before waiting for dependencies.
12786 (gomp_target_task_fn): Don't copy firstprivate vars here.
12787 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12788 firstprivate_copies here.
12789 (gomp_create_target_task): Don't initialize firstprivate_copies field.
12790 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12791 explicit/implicit firstprivate.
12792
12793 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12794
12795 PR lto/70289
12796 PR ipa/70348
12797 PR tree-optimization/70373
12798 PR middle-end/70533
12799 PR middle-end/70534
12800 PR middle-end/70535
12801 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12802 test.
12803 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12804 test.
12805 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12806 test.
12807 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12808 test.
12809 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12810 test.
12811 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12812 test.
12813 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12814 test.
12815 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12816 test.
12817 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12818 test.
12819 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12820 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12821 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12822 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12823 test.
12824 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12825 test.
12826 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12827 test.
12828 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12829 test.
12830 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12831 coverage.
12832 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12833 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12834 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12835 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12836 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12837 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12838 coverage.
12839 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12840 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12841 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12842 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12843 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12844 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12845 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12846 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12847 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12848 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12849 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12850 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12851 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12852 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12853 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12854
12855 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
12856 James Norris <jnorris@codesourcery.com>
12857 Nathan Sidwell <nathan@codesourcery.com>
12858 Julian Brown <julian@codesourcery.com>
12859 Cesar Philippidis <cesar@codesourcery.com>
12860 Chung-Lin Tang <cltang@codesourcery.com>
12861 Tom de Vries <tom@codesourcery.com>
12862
12863 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12864 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12865 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12866 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12867 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12868 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12869 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12870 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12871 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12872 XFAIL.
12873 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12874 Incorporate...
12875 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12876 file.
12877 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12878 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12879 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12880 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12881 Likewise.
12882 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12883 Likewise.
12884 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12885 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12886 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12887 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12888 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12889 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12890 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12891 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12892 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12893 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12894 Likewise.
12895 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12896 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12897 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12898 file...
12899 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12900 file into...
12901 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12902 file. Update.
12903 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
12904 file.
12905 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
12906 Likewise.
12907 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
12908 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
12909 ... this new file. Update.
12910 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
12911 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
12912 ... this new file. Update.
12913 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
12914 file. Incorporate...
12915 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
12916 file, and...
12917 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
12918 file, and...
12919 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
12920 file.
12921 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
12922
12923 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
12924
12925 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
12926 set-torture-options.
12927
12928 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
12929
12930 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
12931 gcc-dg-runtest.
12932 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12933 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
12934 -fno-builtin-acc_on_device instead of -O0.
12935 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
12936 -O0.
12937 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12938 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
12939 Likewise.
12940 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12941 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12942 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12943 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12944 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12945 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12946 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12947 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12948 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12949 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12950 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12951 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12952 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12953 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12954 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12955 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12956 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12957 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12958 Don't specify -O2.
12959 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12960 Likewise.
12961 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12962 Likewise.
12963
12964 2016-03-24 Martin Liska <mliska@suse.cz>
12965
12966 * plugin/plugin-hsa.c (packet_store_release): New function
12967 that is taken from the HSA runtime manual.
12968 (GOMP_OFFLOAD_run): Use the function.
12969
12970 2016-03-23 Jakub Jelinek <jakub@redhat.com>
12971
12972 PR c++/70376
12973 * testsuite/libgomp.c++/pr70376.C: New test.
12974
12975 2016-03-23 Tom de Vries <tom@codesourcery.com>
12976
12977 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12978 initialization of lresult and lvresult.
12979 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12980
12981 2016-03-23 James Norris <jnorris@codesourcery.com>
12982 Daichi Fukuoka <dc-fukuoka@sgi.com>
12983
12984 PR libgomp/69414
12985 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12986 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12987 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12988 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
12989
12990 2016-03-23 Martin Liska <mliska@suse.cz>
12991
12992 PR hsa/70337
12993 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
12994 argument just in case a dispatched kernel uses that argument.
12995
12996 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
12997
12998 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12999 -ftree-parallelize-loops/-fopenacc changes.
13000 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13001 Likewise.
13002 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13003 Likewise.
13004 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13005 Likewise.
13006 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13007 Likewise.
13008 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13009 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13010
13011 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13012
13013 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13014 always_ld_library_path the path to libgcc_s.
13015
13016 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13017
13018 PR testsuite/70009
13019 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13020
13021 2016-03-09 Tom de Vries <tom@codesourcery.com>
13022
13023 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13024 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13025 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13026 Same.
13027 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13028 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13029 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13030 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13031
13032 2016-03-07 Martin Jambor <mjambor@suse.cz>
13033
13034 * testsuite/lib/libgomp.exp
13035 (check_effective_target_hsa_offloading_selected_nocache): New.
13036 (check_effective_target_hsa_offloading_selected): Likewise.
13037 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13038 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13039 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13040 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13041 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13042 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13043 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13044 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13045 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13046 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13047 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13048 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13049 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13050 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13051 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13052 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13053 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13054
13055 2016-03-07 Martin Jambor <mjambor@suse.cz>
13056
13057 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13058 non-shared memory accelerators.
13059 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13060 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13061 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13062 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13063 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13064 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13065 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13066 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13067 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13068
13069 2016-03-07 Martin Jambor <mjambor@suse.cz>
13070
13071 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13072 ALWAYS_CFLAGS.
13073
13074 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13075
13076 PR libgomp/69555
13077 * testsuite/libgomp.c++/pr69555-1.C: New test.
13078 * testsuite/libgomp.c++/pr69555-2.C: New test.
13079
13080 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13081 Martin Jambor <mjambor@suse.cz>
13082
13083 * testsuite/lib/libgomp.exp
13084 (check_effective_target_offload_device_shared_as): New proc.
13085 * testsuite/libgomp.c++/declare_target-1.C: New test.
13086
13087 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13088
13089 PR driver/68463
13090 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13091
13092 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13093
13094 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13095 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13096 dims.
13097 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13098 -ftree-parallelize-loops/-fopenacc changes.
13099 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13100 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13101 Likewise.
13102 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13103 Likewise.
13104 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13105 Likewise.
13106 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13107 Likewise.
13108 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13109 Likewise.
13110 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13111 Likewise.
13112 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13113 Likewise.
13114 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13115 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13116 Likewise.
13117 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13118 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13119 Likewise.
13120 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13121 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13122 Likewise.
13123
13124 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13125
13126 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13127
13128 2016-02-19 Jakub Jelinek <jakub@redhat.com>
13129
13130 PR driver/69805
13131 * testsuite/libgomp.c/pr69805.c: New test.
13132
13133 2016-02-16 Tom de Vries <tom@codesourcery.com>
13134
13135 PR lto/67709
13136 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13137
13138 2016-02-09 Tom de Vries <tom@codesourcery.com>
13139
13140 PR tree-optimization/69599
13141 * testsuite/libgomp.c/omp-nested-3.c: New test.
13142 * testsuite/libgomp.c/pr46032-2.c: New test.
13143 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13144 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13145
13146 2016-02-09 Tom de Vries <tom@codesourcery.com>
13147
13148 PR lto/69707
13149 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13150
13151 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13152
13153 * testsuite/libgomp.c/target-31.c: Fix testcase.
13154
13155 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13156
13157 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13158 clause.
13159 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13160 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13161 reduction and map clauses.
13162 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13163
13164 2016-02-02 James Norris <jnorris@codesourcery.com>
13165
13166 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13167
13168 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13169
13170 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13171 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13172
13173 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13174 cases.
13175
13176 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13177 variables.
13178 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13179 (hsa_kmt_lib): Set variables.
13180 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13181 always_ld_library_path.
13182 * Makefile.in: Regenerate.
13183 * configure: Likewise.
13184 * testsuite/Makefile.in: Likewise.
13185
13186 * plugin/configfrag.ac (offload_additional_options)
13187 (offload_additional_lib_paths): Don't amend for hsa offloading.
13188 * configure: Regenerate.
13189
13190 * plugin/configfrag.ac: Don't configure for offloading target if
13191 we don't build the corresponding plugin.
13192 * configure: Regenerate.
13193
13194 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13195
13196 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13197 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13198
13199 2016-01-26 Tom de Vries <tom@codesourcery.com>
13200
13201 PR tree-optimization/69110
13202 * testsuite/libgomp.c/pr69110.c: New test.
13203
13204 2016-01-25 Richard Biener <rguenther@suse.de>
13205
13206 PR lto/69393
13207 * testsuite/libgomp.c++/pr69393.C: New testcase.
13208
13209 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13210
13211 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13212 function wasn't mapped to the device with non-shared memory.
13213
13214 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13215
13216 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13217
13218 2016-01-19 Martin Jambor <mjambor@suse.cz>
13219 Martin Liska <mliska@suse.cz>
13220
13221 * plugin/Makefrag.am: Add HSA plugin requirements.
13222 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13223 (HSA_RUNTIME_LIB): Likewise.
13224 (HSA_RUNTIME_CPPFLAGS): Likewise.
13225 (HSA_RUNTIME_INCLUDE): New substitution.
13226 (HSA_RUNTIME_LIB): Likewise.
13227 (HSA_RUNTIME_LDFLAGS): Likewise.
13228 (hsa-runtime): New configure option.
13229 (hsa-runtime-include): Likewise.
13230 (hsa-runtime-lib): Likewise.
13231 (PLUGIN_HSA): New substitution variable.
13232 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13233 configure options.
13234 (PLUGIN_HSA_CPPFLAGS): Likewise.
13235 (PLUGIN_HSA_LDFLAGS): Likewise.
13236 (PLUGIN_HSA_LIBS): Likewise.
13237 Check that we have access to HSA run-time.
13238 * libgomp-plugin.h (offload_target_type): New element
13239 OFFLOAD_TARGET_TYPE_HSA.
13240 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13241 args.
13242 (bool gomp_create_target_task): Updated.
13243 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13244 new field can_run_func.
13245 * libgomp_g.h (GOMP_target_ext): Update prototype.
13246 * oacc-host.c (host_run): Added a new parameter args.
13247 * target.c (calculate_firstprivate_requirements): New function.
13248 (copy_firstprivate_data): Likewise.
13249 (gomp_target_fallback_firstprivate): Use them.
13250 (gomp_target_unshare_firstprivate): New function.
13251 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13252 devices.
13253 (GOMP_target): Do host fallback for all shared memory devices. Do not
13254 pass any args to plugins.
13255 (GOMP_target_ext): Introduce device-specific argument parameter args.
13256 Allow host fallback if device shares memory. Do not remap data if
13257 device has shared memory.
13258 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13259 like host fallback for mappings.
13260 (GOMP_target_data): Treat shared memory devices like host fallback.
13261 (GOMP_target_data_ext): Likewise.
13262 (GOMP_target_update): Likewise.
13263 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13264 gomp_create_target_task.
13265 (GOMP_target_enter_exit_data): Likewise.
13266 (omp_target_alloc): Treat shared memory devices like host fallback.
13267 (omp_target_free): Likewise.
13268 (omp_target_is_present): Likewise.
13269 (omp_target_memcpy): Likewise.
13270 (omp_target_memcpy_rect): Likewise.
13271 (omp_target_associate_ptr): Likewise.
13272 (gomp_load_plugin_for_device): Also load can_run.
13273 * task.c (GOMP_PLUGIN_target_task_completion): Free
13274 firstprivate_copies.
13275 (gomp_create_target_task): Accept new argument args and store it to
13276 ttask.
13277 * plugin/plugin-hsa.c: New file.
13278
13279 2016-01-18 Tom de Vries <tom@codesourcery.com>
13280
13281 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13282 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13283 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13284 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13285 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13286 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13287 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13288 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13289 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13290 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13291 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13292 Same.
13293 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13294 Same.
13295 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13296 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13297 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13298 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13299 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13300 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13301 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13302 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13303 Same.
13304 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13305
13306 2016-01-15 Jakub Jelinek <jakub@redhat.com>
13307
13308 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13309
13310 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13311
13312 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13313
13314 2016-01-12 James Norris <jnorris@codesourcery.com>
13315
13316 * libgomp.texi: Updates for OpenACC.
13317
13318 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
13319
13320 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13321
13322 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13323
13324 PR fortran/66680
13325 * testsuite/libgomp.fortran/pr66680.f90: New test.
13326
13327 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13328
13329 PR middle-end/68960
13330 * testsuite/libgomp.c/pr68960.c: New test.
13331
13332 2016-01-06 Nathan Sidwell <nathan@acm.org>
13333
13334 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13335 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13336
13337 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13338
13339 Update copyright years.
13340
13341 * libgomp.texi: Bump @copying's copyright year.
13342
13343 2015-12-31 Nathan Sidwell <nathan@acm.org>
13344
13345 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13346 dg-additional-options syntax.
13347 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13348 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13349 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13350 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13351 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13352 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13353 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13354 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13355 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13356 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13357 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13358 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13359 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13360 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13361 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13362 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13363 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13364 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13365
13366 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
13367
13368 * libgomp.h (REFCOUNT_LINK): Define.
13369 (struct splay_tree_key_s): Add link_key.
13370 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13371 Replace target address of the pointer with target address of newly
13372 mapped object in the splay tree. Set link pointer on target to the
13373 device address of the mapped object.
13374 (gomp_unmap_vars): Restore target address of the pointer in the splay
13375 tree for REFCOUNT_LINK objects after unmapping.
13376 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13377 declare target link" objects.
13378 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
13379 "omp declare target link" objects, which were mapped for the image.
13380 (gomp_exit_data): Restore target address of the pointer in the splay
13381 tree for REFCOUNT_LINK objects after unmapping.
13382 * testsuite/libgomp.c/target-link-1.c: New file.
13383
13384 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
13385
13386 * libgomp.h (gomp_device_state): New enum.
13387 (struct gomp_device_descr): Replace is_initialized with state.
13388 (gomp_fini_device): Remove declaration.
13389 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13390 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13391 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
13392 (acc_set_device_type): Use state instead of is_initialized.
13393 (acc_set_device_num): Likewise.
13394 * target.c (resolve_device): Use state instead of is_initialized.
13395 Do not initialize finalized device.
13396 (gomp_map_vars): Do nothing if device is finalized.
13397 (gomp_unmap_vars): Likewise.
13398 (gomp_update): Likewise.
13399 (GOMP_offload_register_ver): Use state instead of is_initialized.
13400 (GOMP_offload_unregister_ver): Likewise.
13401 (gomp_init_device): Likewise.
13402 (gomp_unload_device): Likewise.
13403 (gomp_fini_device): Remove.
13404 (gomp_get_target_fn_addr): Do nothing if device is finalized.
13405 (GOMP_target): Go to host fallback if device is finalized.
13406 (GOMP_target_ext): Likewise.
13407 (gomp_exit_data): Do nothing if device is finalized.
13408 (gomp_target_task_fn): Go to host fallback if device is finalized.
13409 (gomp_target_fini): New static function.
13410 (gomp_target_init): Use state instead of is_initialized.
13411 Call gomp_target_fini at exit.
13412
13413 2015-12-09 Tom de Vries <tom@codesourcery.com>
13414
13415 PR tree-optimization/68716
13416 * testsuite/libgomp.c/omp-nested-2.c: New test.
13417
13418 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
13419
13420 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13421 target openacc_nvidia_accel_selected.
13422 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13423 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13424 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13425 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13426
13427 2015-12-01 Julian Brown <julian@codesourcery.com>
13428 James Norris <James_Norris@mentor.com>
13429
13430 * oacc-parallel.c (GOACC_host_data): New function.
13431 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13432 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13433 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13434 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13435 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13436 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13437 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13438
13439 2015-11-30 James Norris <jnorris@codesourcery.com>
13440 Cesar Philippidis <cesar@codesourcery.com>
13441
13442 libgomp/
13443 * libgomp.oacc-fortran/routine-5.f90: New test.
13444 * libgomp.oacc-fortran/routine-7.f90: New test.
13445 * libgomp.oacc-fortran/routine-9.f90: New test.
13446
13447 2015-11-30 Tom de Vries <tom@codesourcery.com>
13448
13449 PR tree-optimization/46032
13450 * testsuite/libgomp.c/pr46032.c: New test.
13451
13452 2015-11-27 Jakub Jelinek <jakub@redhat.com>
13453
13454 PR libgomp/68579
13455 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13456 (gomp_create_target_task): Call it before freeing
13457 GOMP_TARGET_TASK_DATA tasks.
13458
13459 PR c/63326
13460 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13461 in between case label and OpenMP standalone directives.
13462 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13463
13464 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
13465
13466 * configure: Regenerate.
13467
13468 2015-11-26 Jakub Jelinek <jakub@redhat.com>
13469
13470 * testsuite/libgomp.c/target-35.c: New test.
13471
13472 2015-11-22 James Norris <jnorris@codesourcery.com>
13473 Cesar Philippidis <cesar@codesourcery.com>
13474
13475 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13476 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13477 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13478 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13479 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13480
13481 2015-11-20 Jakub Jelinek <jakub@redhat.com>
13482
13483 PR middle-end/68221
13484 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13485 * testsuite/libgomp.c/reduction-12.c: Likewise.
13486 * testsuite/libgomp.c++/reduction-11.C: Likewise.
13487 * testsuite/libgomp.c++/reduction-12.C: Likewise.
13488
13489 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
13490
13491 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13492 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13493 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13494 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13495 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13496 and fix.
13497 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13498 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13499
13500 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
13501
13502 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13503 worker & gang cases.
13504 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13505
13506 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
13507
13508 * config/nvptx/priority_queue.c: New file.
13509
13510 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13511
13512 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13513 sections.
13514
13515 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13516 Aldy Hernandez <aldyh@redhat.com>
13517 Ilya Verbin <ilya.verbin@intel.com>
13518
13519 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13520 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13521 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13522 iterators or IV by chunk size.
13523 * parallel.c (gomp_resolve_num_threads): Don't assume that
13524 if thr->ts.team is non-NULL, then pool must be non-NULL.
13525 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13526 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13527 GOMP_PLUGIN_target_task_completion.
13528 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13529 * Makefile.in: Regenerate.
13530 * libgomp.h: Shuffle prototypes and forward definitions around so
13531 priority queues can be defined.
13532 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13533 (enum gomp_target_task_state): New enum.
13534 (struct gomp_target_task): Add state, tgt, task and team fields.
13535 (gomp_create_target_task): Change return type to bool, add
13536 state argument.
13537 (gomp_target_task_fn): Change return type to bool.
13538 (struct gomp_device_descr): Add async_run_func.
13539 (struct gomp_task): Remove children, next_child, prev_child,
13540 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13541 Add pnode field.
13542 (struct gomp_taskgroup): Remove children.
13543 Add taskgroup_queue.
13544 (struct gomp_team): Change task_queue type to a priority queue.
13545 (splay_compare): Define inline.
13546 (priority_queue_offset): New.
13547 (priority_node_to_task): New.
13548 (task_to_priority_node): New.
13549 * oacc-mem.c: Do not include splay-tree.h.
13550 * priority_queue.c: New file.
13551 * priority_queue.h: New file.
13552 * splay-tree.c: Do not include splay-tree.h.
13553 (splay_tree_foreach_internal): New.
13554 (splay_tree_foreach): New.
13555 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13556 (splay_tree_callback): Define typedef.
13557 * target.c (splay_compare): Move to libgomp.h.
13558 (GOMP_target): Don't adjust *thr in any way around running offloaded
13559 task.
13560 (GOMP_target_ext): Likewise. Handle target nowait.
13561 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13562 return value from gomp_create_target_task, if false, fallthrough
13563 as if no dependencies exist.
13564 (gomp_target_task_fn): Change return type to bool, return true
13565 if the task should have another part scheduled later. Handle
13566 target nowait.
13567 (gomp_load_plugin_for_device): Initialize async_run.
13568 * task.c (gomp_init_task): Initialize children_queue.
13569 (gomp_clear_parent_in_list): New.
13570 (gomp_clear_parent_in_tree): New.
13571 (gomp_clear_parent): Handle priorities.
13572 (GOMP_task): Likewise.
13573 (priority_queue_move_task_first,
13574 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13575 New functions.
13576 (gomp_create_target_task): Use priority queues. Change return type
13577 to bool, add state argument, return false if for async
13578 {{enter,exit} data,update} constructs no dependencies need to be
13579 waited for, handle target nowait. Set task->fn to NULL instead of
13580 gomp_target_task_fn.
13581 (verify_children_queue): Remove.
13582 (priority_list_upgrade_task): New.
13583 (priority_queue_upgrade_task): New.
13584 (verify_task_queue): Remove.
13585 (priority_list_downgrade_task): New.
13586 (priority_queue_downgrade_task): New.
13587 (gomp_task_run_pre): Use priority queues.
13588 Abstract code out to priority_queue_downgrade_task.
13589 (gomp_task_run_post_handle_dependers): Use priority queues.
13590 (gomp_task_run_post_remove_parent): Likewise.
13591 (gomp_task_run_post_remove_taskgroup): Likewise.
13592 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
13593 tasks specially.
13594 (GOMP_taskwait): Likewise.
13595 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
13596 priority-queue_upgrade_task.
13597 (GOMP_taskgroup_start): Use priority queues.
13598 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
13599 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
13600 barrier.
13601 * taskloop.c (GOMP_taskloop): Handle priorities.
13602 * team.c (gomp_new_team): Call priority_queue_init.
13603 (free_team): Call priority_queue_free.
13604 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13605 team created for target nowait in implicit parallel region.
13606 (gomp_team_start): For nested check, test thr->ts.level instead of
13607 thr->ts.team != NULL.
13608 * testsuite/libgomp.c/doacross-3.c: New test.
13609 * testsuite/libgomp.c/ordered-5.c: New test.
13610 * testsuite/libgomp.c/priority.c: New test.
13611 * testsuite/libgomp.c/target-31.c: New test.
13612 * testsuite/libgomp.c/target-32.c: New test.
13613 * testsuite/libgomp.c/target-33.c: New test.
13614 * testsuite/libgomp.c/target-34.c: New test.
13615
13616 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13617
13618 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13619
13620 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13621 loop is sequential.
13622
13623 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13624
13625 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13626 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13627
13628 2015-11-12 James Norris <jnorris@codesourcery.com>
13629 Joseph Myers <joseph@codesourcery.com>
13630
13631 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13632 * oacc-parallel.c (GOACC_declare): New function.
13633 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13634 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13635 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13636 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13637 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13638
13639 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
13640
13641 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13642
13643 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
13644
13645 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13646 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13647
13648 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13649
13650 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13651 inadvertent commit.
13652
13653 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13654
13655 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13656 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13657 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13658 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13659 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13660
13661 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
13662
13663 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13664 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13665
13666 2015-11-05 Jakub Jelinek <jakub@redhat.com>
13667 Ilya Verbin <ilya.verbin@intel.com>
13668
13669 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13670 GOMP_loop_nonmonotonic_dynamic_start,
13671 GOMP_loop_nonmonotonic_guided_next,
13672 GOMP_loop_nonmonotonic_guided_start,
13673 GOMP_loop_ull_nonmonotonic_dynamic_next,
13674 GOMP_loop_ull_nonmonotonic_dynamic_start,
13675 GOMP_loop_ull_nonmonotonic_guided_next,
13676 GOMP_loop_ull_nonmonotonic_guided_start,
13677 GOMP_parallel_loop_nonmonotonic_dynamic,
13678 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13679 (GOMP_target_41): Renamed to ...
13680 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13681 arguments.
13682 (GOMP_target_data_41): Renamed to ...
13683 (GOMP_target_data_ext): ... this.
13684 (GOMP_target_update_41): Renamed to ...
13685 (GOMP_target_update_ext): ... this.
13686 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13687 GOMP_target_data_ext and GOMP_target_update_ext instead of
13688 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13689 Export GOMP_loop_nonmonotonic_dynamic_next,
13690 GOMP_loop_nonmonotonic_dynamic_start,
13691 GOMP_loop_nonmonotonic_guided_next,
13692 GOMP_loop_nonmonotonic_guided_start,
13693 GOMP_loop_ull_nonmonotonic_dynamic_next,
13694 GOMP_loop_ull_nonmonotonic_dynamic_start,
13695 GOMP_loop_ull_nonmonotonic_guided_next,
13696 GOMP_loop_ull_nonmonotonic_guided_start,
13697 GOMP_parallel_loop_nonmonotonic_dynamic and
13698 GOMP_parallel_loop_nonmonotonic_guided.
13699 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13700 GOMP_parallel_loop_nonmonotonic_guided,
13701 GOMP_loop_nonmonotonic_dynamic_start,
13702 GOMP_loop_nonmonotonic_guided_start,
13703 GOMP_loop_nonmonotonic_dynamic_next,
13704 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13705 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13706 GOMP_loop_ull_nonmonotonic_guided_start,
13707 GOMP_loop_ull_nonmonotonic_dynamic_next,
13708 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13709 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13710 functions.
13711 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
13712 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13713 Use gomp_map_val function.
13714 (gomp_target_fallback_firstprivate): New static function.
13715 (GOMP_target_41): Renamed to ...
13716 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13717 arguments. Move firstprivate fallback handling into a new
13718 function.
13719 (GOMP_target_data_41): Renamed to ...
13720 (GOMP_target_data_ext): ... this.
13721 (GOMP_target_update_41): Renamed to ...
13722 (GOMP_target_update_ext): ... this.
13723 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13724 gomp_map_0len_lookup instead of gomp_map_lookup.
13725 (omp_target_is_present): Use gomp_map_0len_lookup instead of
13726 gomp_map_lookup.
13727 * testsuite/libgomp.c/target-28.c: Likewise.
13728 * testsuite/libgomp.c/monotonic-1.c: New test.
13729 * testsuite/libgomp.c/monotonic-2.c: New test.
13730 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13731 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13732 * testsuite/libgomp.c/pr66199-5.c: New test.
13733 * testsuite/libgomp.c/pr66199-6.c: New test.
13734 * testsuite/libgomp.c/pr66199-7.c: New test.
13735 * testsuite/libgomp.c/pr66199-8.c: New test.
13736 * testsuite/libgomp.c/pr66199-9.c: New test.
13737 * testsuite/libgomp.c/reduction-11.c: New test.
13738 * testsuite/libgomp.c/reduction-12.c: New test.
13739 * testsuite/libgomp.c/reduction-13.c: New test.
13740 * testsuite/libgomp.c/reduction-14.c: New test.
13741 * testsuite/libgomp.c/reduction-15.c: New test.
13742 * testsuite/libgomp.c/target-12.c (main): Adjust for
13743 omp_target_is_present change for one-past-last element.
13744 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13745 the same var is both mapped and privatized.
13746 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13747 handling of zero-length array sections.
13748 * testsuite/libgomp.c/target-28.c: New test.
13749 * testsuite/libgomp.c/target-29.c: New test.
13750 * testsuite/libgomp.c/target-30.c: New test.
13751 * testsuite/libgomp.c/target-teams-1.c: New test.
13752 * testsuite/libgomp.c++/member-6.C: New test.
13753 * testsuite/libgomp.c++/member-7.C: New test.
13754 * testsuite/libgomp.c++/monotonic-1.C: New test.
13755 * testsuite/libgomp.c++/monotonic-2.C: New test.
13756 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13757 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13758 * testsuite/libgomp.c++/pr66199-3.C: New test.
13759 * testsuite/libgomp.c++/pr66199-4.C: New test.
13760 * testsuite/libgomp.c++/pr66199-5.C: New test.
13761 * testsuite/libgomp.c++/pr66199-6.C: New test.
13762 * testsuite/libgomp.c++/pr66199-7.C: New test.
13763 * testsuite/libgomp.c++/pr66199-8.C: New test.
13764 * testsuite/libgomp.c++/pr66199-9.C: New test.
13765 * testsuite/libgomp.c++/reduction-11.C: New test.
13766 * testsuite/libgomp.c++/reduction-12.C: New test.
13767 * testsuite/libgomp.c++/target-13.C: New test.
13768 * testsuite/libgomp.c++/target-14.C: New test.
13769 * testsuite/libgomp.c++/target-15.C: New test.
13770 * testsuite/libgomp.c++/target-16.C: New test.
13771 * testsuite/libgomp.c++/target-17.C: New test.
13772 * testsuite/libgomp.c++/target-18.C: New test.
13773 * testsuite/libgomp.c++/target-19.C: New test.
13774
13775 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13776
13777 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13778 and reduction copy.
13779 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13780 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13781 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13782 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13783 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13784 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13785 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13786 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13787 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13788 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13789 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13790 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13791 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13792 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13793
13794 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13795
13796 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13797 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13798 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13799 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13800 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13801 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13802 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13803 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13804
13805 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
13806
13807 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13808 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13809 (GOMP_OFFLOAD_openacc_parallel): Likewise.
13810 * oacc-host.c (host_openacc_exec): Likewise.
13811 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13812
13813 2015-11-03 Julian Brown <julian@codesourcery.com>
13814 Thomas Schwinge <thomas@codesourcery.com>
13815
13816 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13817 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13818 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13819 Likewise.
13820 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13821 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13822
13823 2015-11-03 James Norris <jnorris@codesourcery.com>
13824
13825 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13826 file.
13827 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13828 Likewise.
13829 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13830 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13831 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13832 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13833 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13834
13835 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
13836
13837 * openacc.h (enum acc_device_t): Reformat. Ensure layout
13838 compatibility.
13839 (enum acc_async_t): Reformat.
13840 (acc_on_device): Declare compatible with builtin and provide C++
13841 wrapper.
13842 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13843
13844 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
13845 Cesar Philippidis <cesar@codesourcery.com>
13846
13847 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13848 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13849 ... this. Add a description of the test at the top of the file.
13850 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13851 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13852 ... this. Add a description of the test at the top of the file.
13853
13854 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
13855
13856 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13857 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13858 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13859 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13860 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13861 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13862
13863 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
13864
13865 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13866 dimensions.
13867
13868 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
13869
13870 PR testsuite/68063
13871 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13872
13873 2015-10-27 James Norris <jnorris@codesourcery.com>
13874
13875 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13876 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13877
13878 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
13879
13880 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13881 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13882
13883 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13884 acc_device_nvidia usage.
13885 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13886 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13887 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13888
13889 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13890 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13891
13892 PR libgomp/66518
13893 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13894
13895 PR libgomp/65437
13896 PR libgomp/66518
13897 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13898 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13899
13900 2015-10-23 Tom de Vries <tom@codesourcery.com>
13901
13902 PR testsuite/68063
13903 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
13904
13905 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
13906
13907 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
13908 vector_length.
13909 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13910
13911 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
13912 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
13913
13914 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
13915 to 0 when mapnum is 0.
13916
13917 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
13918
13919 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
13920 Cast to int from int32_t.
13921
13922 2015-10-13 Jakub Jelinek <jakub@redhat.com>
13923 Aldy Hernandez <aldyh@redhat.com>
13924 Ilya Verbin <ilya.verbin@intel.com>
13925
13926 * config/linux/affinity.c (omp_get_place_num_procs,
13927 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13928 * config/linux/doacross.h: New file.
13929 * config/posix/affinity.c (omp_get_place_num_procs,
13930 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13931 * config/posix/doacross.h: New file.
13932 * env.c: Include gomp-constants.h.
13933 (struct gomp_task_icv): Rename run_sched_modifier to
13934 run_sched_chunk_size.
13935 (gomp_max_task_priority_var): New variable.
13936 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
13937 (handle_omp_display_env): Change _OPENMP value from 201307 to
13938 201511. Print OMP_MAX_TASK_PRIORITY.
13939 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
13940 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
13941 chunk_size and run_sched_modifier to run_sched_chunk_size.
13942 (omp_get_max_task_priority, omp_get_initial_device,
13943 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
13944 omp_get_partition_place_nums): New functions.
13945 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
13946 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13947 to chunk_size.
13948 (omp_get_num_places_, omp_get_place_num_procs_,
13949 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13950 omp_get_place_proc_ids_8_, omp_get_place_num_,
13951 omp_get_partition_num_places_, omp_get_partition_place_nums_,
13952 omp_get_partition_place_nums_8_, omp_get_initial_device_,
13953 omp_get_max_task_priority_): New functions.
13954 * libgomp_g.h (GOMP_loop_doacross_static_start,
13955 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13956 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13957 GOMP_loop_ull_doacross_dynamic_start,
13958 GOMP_loop_ull_doacross_guided_start,
13959 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13960 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13961 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13962 GOMP_target_data_41, GOMP_target_update_41,
13963 GOMP_target_enter_exit_data): New prototypes.
13964 (GOMP_task): Add prototype argument.
13965 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13966 (struct gomp_doacross_work_share): New type.
13967 (struct gomp_work_share): Add doacross field.
13968 (struct gomp_task_icv): Rename run_sched_modifier to
13969 run_sched_chunk_size.
13970 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13971 GOMP_TASK_UNDEFERRED. Add comments.
13972 (struct gomp_task_depend_entry): Add comments.
13973 (struct gomp_task): Likewise.
13974 (struct gomp_taskgroup): Likewise.
13975 (struct gomp_target_task): New type.
13976 (struct gomp_team): Add comment.
13977 (gomp_get_place_proc_ids_8, gomp_doacross_init,
13978 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13979 gomp_create_target_task, gomp_target_task_fn): New prototypes.
13980 (struct target_var_desc): New type.
13981 (struct target_mem_desc): Adjust comment. Use struct
13982 target_var_desc instead of splay_tree_key for list.
13983 (REFCOUNT_INFINITY): Define.
13984 (struct splay_tree_key_s): Remove copy_from field.
13985 (struct gomp_device_descr): Add dev2dev_func field.
13986 (enum gomp_map_vars_kind): New enum.
13987 (gomp_map_vars): Add one argument.
13988 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
13989 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
13990 omp_get_place_num_procs, omp_get_place_num_procs_,
13991 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
13992 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
13993 omp_get_place_num_, omp_get_partition_num_places,
13994 omp_get_partition_num_places_, omp_get_partition_place_nums,
13995 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
13996 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
13997 omp_target_free, omp_target_is_present, omp_target_memcpy,
13998 omp_target_memcpy_rect, omp_target_associate_ptr and
13999 omp_target_disassociate_ptr.
14000 (GOMP_4.0.2): Renamed to ...
14001 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14002 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14003 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14004 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14005 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14006 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14007 GOMP_loop_ull_doacross_guided_start,
14008 GOMP_loop_ull_doacross_runtime_start,
14009 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14010 GOMP_doacross_ull_wait.
14011 * libgomp.texi: Document omp_get_max_task_priority.
14012 Rename modifier argument to chunk_size for omp_set_schedule and
14013 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14014 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14015 to run_sched_chunk_size renaming.
14016 (GOMP_loop_ordered_runtime_start): Likewise.
14017 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14018 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14019 GOMP_parallel_loop_runtime_start): New functions.
14020 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14021 to run_sched_chunk_size renaming.
14022 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14023 GOMP_loop_doacross_guided_start): New functions or aliases.
14024 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14025 run_sched_modifier to run_sched_chunk_size renaming.
14026 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14027 (gomp_loop_ull_doacross_static_start,
14028 gomp_loop_ull_doacross_dynamic_start,
14029 gomp_loop_ull_doacross_guided_start,
14030 GOMP_loop_ull_doacross_runtime_start): New functions.
14031 (GOMP_loop_ull_doacross_static_start,
14032 GOMP_loop_ull_doacross_dynamic_start,
14033 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14034 * oacc-mem.c (acc_map_data, present_create_copy,
14035 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14036 to gomp_map_vars.
14037 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14038 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14039 instead of false to gomp_map_vars.
14040 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14041 * omp.h.in (omp_lock_hint_t): New type.
14042 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14043 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14044 omp_get_place_num, omp_get_partition_num_places,
14045 omp_get_partition_place_nums, omp_get_initial_device,
14046 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14047 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14048 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14049 prototypes.
14050 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14051 (omp_lock_hint_none, omp_lock_hint_uncontended,
14052 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14053 omp_lock_hint_speculative): New parameters.
14054 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14055 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14056 omp_get_place_num, omp_get_partition_num_places,
14057 omp_get_partition_place_nums, omp_get_initial_device,
14058 omp_get_max_task_priority): New interfaces.
14059 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14060 to chunk_size.
14061 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14062 (omp_lock_hint_none, omp_lock_hint_uncontended,
14063 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14064 omp_lock_hint_speculative): New parameters.
14065 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14066 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14067 omp_get_place_num, omp_get_partition_num_places,
14068 omp_get_partition_place_nums, omp_get_initial_device,
14069 omp_get_max_task_priority): New functions and subroutines.
14070 * ordered.c: Include stdarg.h and string.h.
14071 (MAX_COLLAPSED_BITS): Define.
14072 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14073 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14074 GOMP_doacross_ull_wait): New functions.
14075 * target.c: Include errno.h.
14076 (resolve_device): If device is not initialized, call
14077 gomp_init_device on it.
14078 (gomp_map_lookup): New function.
14079 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14080 Don't bump refcount if REFCOUNT_INFINITY. Handle
14081 GOMP_MAP_ALWAYS_TO_P.
14082 (get_kind): Rename is_openacc argument to short_mapkind.
14083 (gomp_map_pointer): Use gomp_map_lookup.
14084 (gomp_map_fields_existing): New function.
14085 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14086 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14087 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14088 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14089 Adjust for tgt->list changed type and copy_from living in there.
14090 (gomp_copy_from_async): Adjust for tgt->list changed type and
14091 copy_from living in there.
14092 (gomp_unmap_vars): Likewise.
14093 (gomp_update): Likewise. Rename is_openacc argument to
14094 short_mapkind. Don't fail if object is not mapped.
14095 (gomp_load_image_to_device): Initialize refcount to
14096 REFCOUNT_INFINITY.
14097 (gomp_target_fallback): New function.
14098 (gomp_get_target_fn_addr): Likewise.
14099 (GOMP_target): Adjust gomp_map_vars caller, use
14100 gomp_get_target_fn_addr and gomp_target_fallback.
14101 (GOMP_target_41): New function.
14102 (gomp_target_data_fallback): New function.
14103 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14104 (GOMP_target_data_41): New function.
14105 (GOMP_target_update): Adjust gomp_update caller.
14106 (GOMP_target_update_41): New function.
14107 (gomp_exit_data, GOMP_target_enter_exit_data,
14108 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14109 omp_target_is_present, omp_target_memcpy,
14110 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14111 omp_target_associate_ptr, omp_target_disassociate_ptr,
14112 gomp_load_plugin_for_device): New functions.
14113 * task.c: Include gomp-constants.h. Include taskloop.c
14114 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14115 (gomp_task_handle_depend): New function.
14116 (GOMP_task): Use it. Add priority argument. Use
14117 gomp-constant.h constants instead of hardcoded numbers.
14118 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14119 (gomp_create_target_task): New function.
14120 (verify_children_queue, verify_taskgroup_queue,
14121 verify_task_queue): New functions.
14122 (gomp_task_run_pre): Call verify_*_queue functions.
14123 If an upcoming tied task is about to leave the sibling or
14124 taskgroup queues in an invalid state, adjust appropriately.
14125 Remove taskgroup argument. Add comments.
14126 (gomp_task_run_post_handle_dependers): Add comments.
14127 (gomp_task_run_post_remove_parent): Likewise.
14128 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14129 (GOMP_taskwait): Likewise. Add comments.
14130 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14131 problem such that the first non parent_depends_on task does not
14132 end up at the end of the children queue.
14133 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14134 GOMP_TASK_UNDEFERRED.
14135 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14136 * taskloop.c: New file.
14137 * testsuite/lib/libgomp.exp
14138 (check_effective_target_offload_device_nonshared_as): New proc.
14139 * testsuite/libgomp.c/affinity-2.c: New test.
14140 * testsuite/libgomp.c/doacross-1.c: New test.
14141 * testsuite/libgomp.c/doacross-2.c: New test.
14142 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14143 Add map clause to target.
14144 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14145 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14146 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14147 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14148 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14149 Likewise.
14150 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14151 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14152 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14153 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14154 not defined. Use those where needed.
14155 * testsuite/libgomp.c/for-4.c: New test.
14156 * testsuite/libgomp.c/for-5.c: New test.
14157 * testsuite/libgomp.c/for-6.c: New test.
14158 * testsuite/libgomp.c/linear-1.c: New test.
14159 * testsuite/libgomp.c/ordered-4.c: New test.
14160 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14161 only allowed on the loop iterator.
14162 * testsuite/libgomp.c/pr66199-3.c: New test.
14163 * testsuite/libgomp.c/pr66199-4.c: New test.
14164 * testsuite/libgomp.c/reduction-7.c: New test.
14165 * testsuite/libgomp.c/reduction-8.c: New test.
14166 * testsuite/libgomp.c/reduction-9.c: New test.
14167 * testsuite/libgomp.c/reduction-10.c: New test.
14168 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14169 map(tofrom:s).
14170 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14171 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14172 * testsuite/libgomp.c/target-11.c: New test.
14173 * testsuite/libgomp.c/target-12.c: New test.
14174 * testsuite/libgomp.c/target-13.c: New test.
14175 * testsuite/libgomp.c/target-14.c: New test.
14176 * testsuite/libgomp.c/target-15.c: New test.
14177 * testsuite/libgomp.c/target-16.c: New test.
14178 * testsuite/libgomp.c/target-17.c: New test.
14179 * testsuite/libgomp.c/target-18.c: New test.
14180 * testsuite/libgomp.c/target-19.c: New test.
14181 * testsuite/libgomp.c/target-20.c: New test.
14182 * testsuite/libgomp.c/target-21.c: New test.
14183 * testsuite/libgomp.c/target-22.c: New test.
14184 * testsuite/libgomp.c/target-23.c: New test.
14185 * testsuite/libgomp.c/target-24.c: New test.
14186 * testsuite/libgomp.c/target-25.c: New test.
14187 * testsuite/libgomp.c/target-26.c: New test.
14188 * testsuite/libgomp.c/target-27.c: New test.
14189 * testsuite/libgomp.c/taskloop-1.c: New test.
14190 * testsuite/libgomp.c/taskloop-2.c: New test.
14191 * testsuite/libgomp.c/taskloop-3.c: New test.
14192 * testsuite/libgomp.c/taskloop-4.c: New test.
14193 * testsuite/libgomp.c++/ctor-13.C: New test.
14194 * testsuite/libgomp.c++/doacross-1.C: New test.
14195 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14196 Replace offload_device with offload_device_nonshared_as.
14197 * testsuite/libgomp.c++/for-12.C: New test.
14198 * testsuite/libgomp.c++/for-13.C: New test.
14199 * testsuite/libgomp.c++/for-14.C: New test.
14200 * testsuite/libgomp.c++/linear-1.C: New test.
14201 * testsuite/libgomp.c++/member-1.C: New test.
14202 * testsuite/libgomp.c++/member-2.C: New test.
14203 * testsuite/libgomp.c++/member-3.C: New test.
14204 * testsuite/libgomp.c++/member-4.C: New test.
14205 * testsuite/libgomp.c++/member-5.C: New test.
14206 * testsuite/libgomp.c++/ordered-1.C: New test.
14207 * testsuite/libgomp.c++/reduction-5.C: New test.
14208 * testsuite/libgomp.c++/reduction-6.C: New test.
14209 * testsuite/libgomp.c++/reduction-7.C: New test.
14210 * testsuite/libgomp.c++/reduction-8.C: New test.
14211 * testsuite/libgomp.c++/reduction-9.C: New test.
14212 * testsuite/libgomp.c++/reduction-10.C: New test.
14213 * testsuite/libgomp.c++/reference-1.C: New test.
14214 * testsuite/libgomp.c++/simd14.C: New test.
14215 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14216 * testsuite/libgomp.c++/target-5.C: New test.
14217 * testsuite/libgomp.c++/target-6.C: New test.
14218 * testsuite/libgomp.c++/target-7.C: New test.
14219 * testsuite/libgomp.c++/target-8.C: New test.
14220 * testsuite/libgomp.c++/target-9.C: New test.
14221 * testsuite/libgomp.c++/target-10.C: New test.
14222 * testsuite/libgomp.c++/target-11.C: New test.
14223 * testsuite/libgomp.c++/target-12.C: New test.
14224 * testsuite/libgomp.c++/taskloop-1.C: New test.
14225 * testsuite/libgomp.c++/taskloop-2.C: New test.
14226 * testsuite/libgomp.c++/taskloop-3.C: New test.
14227 * testsuite/libgomp.c++/taskloop-4.C: New test.
14228 * testsuite/libgomp.c++/taskloop-5.C: New test.
14229 * testsuite/libgomp.c++/taskloop-6.C: New test.
14230 * testsuite/libgomp.c++/taskloop-7.C: New test.
14231 * testsuite/libgomp.c++/taskloop-8.C: New test.
14232 * testsuite/libgomp.c++/taskloop-9.C: New test.
14233 * testsuite/libgomp.fortran/affinity1.f90: New test.
14234 * testsuite/libgomp.fortran/affinity2.f90: New test.
14235
14236 2015-10-13 Tom de Vries <tom@codesourcery.com>
14237
14238 PR tree-optimization/67476
14239 * testsuite/libgomp.c/autopar-3.c: New test.
14240 * testsuite/libgomp.c/autopar-4.c: New test.
14241 * testsuite/libgomp.c/autopar-5.c: New test.
14242 * testsuite/libgomp.c/autopar-6.c: New test.
14243 * testsuite/libgomp.c/autopar-7.c: New test.
14244 * testsuite/libgomp.c/autopar-8.c: New test.
14245
14246 2015-10-12 James Norris <jnorris@codesourcery.com>
14247
14248 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14249 initializer.
14250
14251 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14252
14253 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14254 using load_gcc_lib.
14255
14256 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14257
14258 * oacc-ptx.h: Remove file, moving its content into...
14259 * config/nvptx/fortran.c: ... here...
14260 * config/nvptx/oacc-init.c: ..., here...
14261 * config/nvptx/oacc-parallel.c: ..., and here.
14262 * config/nvptx/openacc.f90: New file.
14263 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14264 (link_ptx): Don't link in predefined bits of PTX code.
14265
14266 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14267 Bernd Schmidt <bernds@codesourcery.com>
14268
14269 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14270 (struct targ_ptx_obj): New.
14271 (nvptx_tdata): Move earlier, change data format.
14272 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14273 objects.
14274 (GOMP_OFFLOAD_load_image): Adjust.
14275
14276 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14277
14278 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14279 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14280 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14281 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14282 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14283 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14284 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14285 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14286 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14287 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14288 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14289 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14290 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14291 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14292 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14293 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14294 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14295 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14296 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14297 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14298 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14299 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14300 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14301 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14302 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14303 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14304 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14305 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14306 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14307 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14308 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14309 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14310 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14311 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14312 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14313 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14314 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14315 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14316 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14317 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14318 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14319 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14320 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14321 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14322 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14323 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14324 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14325 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14326 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14327 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14328 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14329 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14330 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14331 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14332 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14333 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14334 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14335 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14336 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14337 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14338 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14339 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14340 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14341
14342 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14343
14344 * oacc-init.c (acc_on_device): Force optimization level.
14345
14346 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14347
14348 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14349 (cuda_errlist): Delete.
14350 (cuda_error): Reimplement.
14351
14352 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14353
14354 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14355 array.
14356 * libgomp.map (GOACC_parallel_keyed): New.
14357 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
14358 all callers.
14359 (GOACC_parallel_keyed): New interface. Lose geometry arguments
14360 and take keyed varargs list. Adjust call to exec_func.
14361 (GOACC_parallel): Force host fallback.
14362 * libgomp_g.h (GOACC_parallel): Remove.
14363 (GOACC_parallel_keyed): Declare.
14364 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14365 (struct targ_gn_descriptor): Replace name field with launch field.
14366 (nvptx_exec): Lose separate geometry args, take array. Process
14367 dynamic dimensions and adjust.
14368 (struct nvptx_tdata): Replace fn_names field with fn_descs.
14369 (GOMP_OFFLOAD_load_image): Adjust for change in function table
14370 data.
14371 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14372 passing.
14373 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14374 passing.
14375
14376 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14377
14378 PR libgomp/67141
14379 * oacc-int.h (goacc_host_init): Add declaration.
14380 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14381 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14382
14383 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14384 Sebastian Pop <s.pop@samsung.com>
14385
14386 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14387 match o/p.
14388 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14389 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14390 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14391 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14392 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14393
14394 2015-09-03 Jakub Jelinek <jakub@redhat.com>
14395
14396 * configure.tgt: Add missing ;; in between nvptx and rtems
14397 snippets.
14398
14399 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14400
14401 * config/posix/pool.h (gomp_adjust_thread_attr): New.
14402 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14403 (gomp_thread_pool_reservoir): Add priority member.
14404 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14405 priority.
14406 (parse_thread_pools): Likewise.
14407 * team.c (gomp_team_start): Call configuration provided
14408 gomp_adjust_thread_attr(). Destroy thread attributes if
14409 necessary.
14410 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14411
14412 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14413
14414 * config/posix/pool.h: New.
14415 * config/rtems/pool.h: Likewise.
14416 * config/rtems/proc.c: Likewise.
14417 * libgomp.h (gomp_thread_destructor): Declare.
14418 * team.c: Include configuration provided "pool.h".
14419 (gomp_get_thread_pool): Define in configuration.
14420 (gomp_team_end): Call configuration defined
14421 gomp_release_thread_pool().
14422
14423 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14424
14425 * config/rtems/bar.c: New.
14426 * config/rtems/bar.h: Likewise.
14427 * config/rtems/mutex.c: Likewise.
14428 * config/rtems/mutex.h: Likewise.
14429 * config/rtems/sem.c: Likewise.
14430 * config/rtems/sem.h: Likewise.
14431 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14432 <sys/lock.h> header file.
14433 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14434 supported by Newlib.
14435 * configure: Regenerate.
14436
14437 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14438
14439 * team.c (gomp_new_thread_pool): Delete and move content to ...
14440 (gomp_get_thread_pool): ... new function. Allocate and
14441 initialize thread pool on demand.
14442 (get_last_team): Use gomp_get_thread_pool().
14443 (gomp_team_start): Delete thread pool initialization.
14444
14445 2015-09-03 Tom de Vries <tom@codesourcery.com>
14446
14447 PR tree-optimization/65637
14448 * testsuite/libgomp.c/autopar-2.c: New test.
14449
14450 2015-08-29 Tom de Vries <tom@codesourcery.com>
14451
14452 PR tree-optimization/46193
14453 * testsuite/libgomp.c/pr46193.c: New test.
14454
14455 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14456
14457 libgomp/
14458 * libgomp.map: Add 4.0.2 version.
14459 * target.c (offload_image_descr): Add version field.
14460 (gomp_load_image_to_device): Add version argument. Adjust plugin
14461 call. Improve load mismatch diagnostic.
14462 (gomp_unload_image_from_device): Add version argument. Adjust plugin
14463 call.
14464 (GOMP_offload_regster): Make stub function, move bulk to ...
14465 (GOMP_offload_register_ver): ... here. Process version argument.
14466 (GOMP_offload_unregister): Make stub function, move bulk to ...
14467 (GOMP_offload_unregister_ver): ... here. Process version argument.
14468 (gomp_init_device): Process version field.
14469 (gomp_unload_device): Process version field.
14470 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14471 macros. Check plugin version.
14472 * libgomp.h (gomp_device_descr): Add version function field. Adjust
14473 loader and unloader types.
14474 * oacc-host.c: Include gomp-constants.h.
14475 (host_version): New.
14476 (host_load_image, host_unload_image): Adjust.
14477 (host_dispatch): Add host_version.
14478 * plugin/plugin-nvptx.c: Include gomp-constants.h.
14479 (GOMP_OFFLOAD_version): New.
14480 (GOMP_OFFLOAD_load_image): Add version arg and check it.
14481 (GOMP_OFFLOAD_unload_image): Likewise.
14482 * plugin/plugin-host.c: Include gomp-constants.h.
14483 (GOMP_OFFLOAD_version): New.
14484 (GOMP_OFFLOAD_load_image): Add version arg.
14485 (GOMP_OFFLOAD_unload_image): Likewise.
14486
14487 2015-08-24 Tom de Vries <tom@codesourcery.com>
14488
14489 PR tree-optimization/65468
14490 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14491
14492 2015-08-24 Tom de Vries <tom@codesourcery.com>
14493
14494 PR tree-optimization/65468
14495 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14496
14497 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
14498
14499 PR libgomp/66761
14500 PR libgomp/67303
14501 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14502 (gomp_iter_guided_next): Idem.
14503 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14504 (gomp_iter_ull_guided_next): Idem.
14505 * config/linux/wait.h (do_spin): Idem.
14506
14507 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14508
14509 * libgomp-plugin.h (enum offload_target_type): Remove
14510 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14511 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14512 * openacc.h (enum acc_device_t): Likewise.
14513 * openacc_lib.h: Likewise.
14514 * oacc-init.c (name_of_acc_device_t): Don't handle it.
14515 (acc_on_device): Just use __builtin_acc_on_device.
14516 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14517 of acc_on_device builtin.
14518 * plugin/plugin-host.h: Remove file.
14519 * plugin/plugin-host.c: Likewise, but salvage some content into...
14520 * oacc-host.c: ... this file.
14521 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14522 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14523 * Makefile.in: Regenerate.
14524 * configure: Likewise.
14525 * testsuite/lib/libgomp.exp
14526 (check_effective_target_openacc_host_nonshm_selected): Remove.
14527 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14528 ACC_DEVICE_TYPE=host_nonshm.
14529 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14530 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14531 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14532 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14533 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14534 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14535
14536 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14537 Jakub Jelinek <jakub@redhat.com>
14538
14539 * config/nvptx/affinity.c: New file.
14540 * config/nvptx/alloc.c: Likewise.
14541 * config/nvptx/bar.c: Likewise.
14542 * config/nvptx/barrier.c: Likewise.
14543 * config/nvptx/critical.c: Likewise.
14544 * config/nvptx/env.c: Likewise.
14545 * config/nvptx/error.c: Likewise.
14546 * config/nvptx/fortran.c: Likewise.
14547 * config/nvptx/iter.c: Likewise.
14548 * config/nvptx/iter_ull.c: Likewise.
14549 * config/nvptx/libgomp-plugin.c: Likewise.
14550 * config/nvptx/lock.c: Likewise.
14551 * config/nvptx/loop.c: Likewise.
14552 * config/nvptx/loop_ull.c: Likewise.
14553 * config/nvptx/mutex.c: Likewise.
14554 * config/nvptx/oacc-async.c: Likewise.
14555 * config/nvptx/oacc-cuda.c: Likewise.
14556 * config/nvptx/oacc-host.c: Likewise.
14557 * config/nvptx/oacc-init.c: Likewise.
14558 * config/nvptx/oacc-mem.c: Likewise.
14559 * config/nvptx/oacc-parallel.c: Likewise.
14560 * config/nvptx/oacc-plugin.c: Likewise.
14561 * config/nvptx/omp-lock.h: Likewise.
14562 * config/nvptx/ordered.c: Likewise.
14563 * config/nvptx/parallel.c: Likewise.
14564 * config/nvptx/proc.c: Likewise.
14565 * config/nvptx/ptrlock.c: Likewise.
14566 * config/nvptx/sections.c: Likewise.
14567 * config/nvptx/sem.c: Likewise.
14568 * config/nvptx/single.c: Likewise.
14569 * config/nvptx/splay-tree.c: Likewise.
14570 * config/nvptx/target.c: Likewise.
14571 * config/nvptx/task.c: Likewise.
14572 * config/nvptx/team.c: Likewise.
14573 * config/nvptx/time.c: Likewise.
14574 * config/nvptx/work.c: Likewise.
14575 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14576 * configure: Regenerate.
14577 * configure.tgt (config_path): Set to "nvptx" for target
14578 nvptx*-*-*.
14579
14580 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14581
14582 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14583
14584 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
14585
14586 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14587 (cuda_errlist): Constify.
14588 (errmsg): Move into ...
14589 (cuda_error): ... here. Make smaller.
14590 (_XSTR, _STR): Delete.
14591 (cuda_synames): Delete.
14592 (verify_device_library): Delete.
14593 (nvptx_init): Don't call it.
14594
14595 2015-07-28 Tom de Vries <tom@codesourcery.com>
14596
14597 * testsuite/libgomp.c/uns-outer-4.c: New test.
14598
14599 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14600
14601 * testsuite/libgomp.c/pr66714.c: New test.
14602
14603 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
14604
14605 PR libgomp/66950
14606 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14607 (fib_ref): New function.
14608 (fib): Correct corner cases in the recursion.
14609 (main): Replace the non-simd loop with fib_ref call.
14610 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14611 subroutine.
14612 (fibonacci): Lower the parameter N to 30. Correct accordingly check
14613 for the last array element value. Replace the non-simd loop with
14614 fib_ref call. Remove redundant b_ref array. Remove the comparison
14615 of the last array element with according Fibonacci sequence element.
14616 (fib): Correct corner cases in the recursion.
14617
14618 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
14619
14620 * target.c (gomp_offload_image_to_device): Rename to ...
14621 (gomp_load_image_to_device): ... here.
14622 (GOMP_offload_register): Adjust call.
14623 (gomp_init_device): Likewise.
14624 (gomp_unload_image_from_device): New. Broken out of ...
14625 (GOMP_offload_unregister): ... here. Call it.
14626 (gomp_unload_device): New.
14627 * libgomp.h (gomp_unload_device): Declare.
14628 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14629 mem maps.
14630
14631 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
14632
14633 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14634 wait=-specific if.
14635 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14636 !=0 condition.
14637 (goacc_waits): Move !num_waits handling to ...
14638 (GOACC_wait): ... here, the only caller that might have zero waits.
14639
14640 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14641 (struct ptx_image_data): Move earlier, add fns field.
14642 (struct ptx_device): Add images and image_lock fields.
14643 (ptx_images, ptx_image_lock): Delete.
14644 (nvptx_open_device): Initialize images and image_lock fields.
14645 (nvptx_close_device): Destroy image_lock.
14646 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14647 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14648 fields.
14649
14650 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14651
14652 * target.c (GOMP_offload_register): Use int for device type arg.
14653 (GOMP_offload_unregister): Likewise.
14654
14655 * target.c (struct_offload_image_descr): Constify host_table.
14656 (gomp_offload_image_to_device): Likewise.
14657 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14658
14659 * libgomp.h (gomp_device_descr): Constify target data arguments.
14660 * target.c (struct offload_image_descr): Constify target_data.
14661 (gomp_offload_image_to_device): Likewise.
14662 (GOMP_offload_register): Likewise.
14663 (GOMP_offload_unregister): Likewise.
14664 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14665 GOMP_OFFLOAD_unload_image): Constify target data.
14666 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14667 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14668
14669 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
14670
14671 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14672 Workaround driver library const error.
14673 (struct nvptx_tdata, nvptx_tdata_t): New.
14674 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14675 type.
14676
14677 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
14678
14679 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14680 of EPS parameter from integer to real.
14681 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14682 type of EPS parameter from integer to real.
14683
14684 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
14685
14686 * team.c (get_last_team): New.
14687 (gomp_new_team): Recycle last non-nested team if possible.
14688 (gomp_team_end): Move team work share list free lock destruction
14689 to ...
14690 (free_team): ... here.
14691
14692 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
14693
14694 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14695 and ref from int to double. Replaced their comparison with
14696 an inequality of their difference and EPS.
14697 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14698 comparison of pri and a reference number with an inequality of their
14699 difference and EPS.
14700 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14701 the comparison of sum and sum_ref with an inequality of their
14702 difference and EPS.
14703 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14704 the comparison of pri and a reference number with an inequality of
14705 their difference and EPS.
14706
14707 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
14708
14709 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14710 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14711 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14712 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14713 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14714 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14715 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14716 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14717 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14718 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14719 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14720 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14721 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14722 variables.
14723 (vec_mult): Likewise. Add #pragma omp taskwait.
14724 (main): Adjust caller.
14725 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14726 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14727 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14728 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14729 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14730 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14731 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14732 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14733 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14734 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14735 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14736 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14737 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14738 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14739 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14740 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14741 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14742 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14743 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14744 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14745 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14746 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14747 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14748 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14749 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14750 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14751 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14752 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14753 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14754 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14755 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14756 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14757 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14758 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14759 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14760 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14761 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14762 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14763 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14764 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14765 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14766 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14767 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14768 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14769 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14770 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14771 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14772 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14773 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14774 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14775 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14776 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14777 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14778 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14779 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14780 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14781 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14782 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14783 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14784 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14785 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14786 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14787 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14788 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14789 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14790 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14791 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14792 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14793 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14794 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14795 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14796 (vec_mult): Add !$omp taskwait.
14797 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14798 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14799 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14800 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14801 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14802 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14803 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14804 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14805 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14806 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14807 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14808 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14809 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14810 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14811 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14812 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14813 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14814 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14815 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14816 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14817 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14818 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14819 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14820 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14821 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14822 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14823 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14824 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14825 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14826 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14827 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14828 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14829 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14830 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14831 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14832 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14833 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14834 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14835 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14836 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14837 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14838 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14839 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14840 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14841 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14842 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14843 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14844 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14845 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14846 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14847 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14848 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14849 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14850 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14851 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14852 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14853 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14854 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14855 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14856 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14857 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14858 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14859 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14860 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14861 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14862 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14863 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14864
14865 2015-07-10 Tom de Vries <tom@codesourcery.com>
14866
14867 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14868 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14869
14870 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
14871
14872 PR libgomp/65099
14873 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14874 in a 64-bit configuration.
14875 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14876 offloading testing if no such device is available.
14877 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14878 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14879
14880 2015-07-08 Tom de Vries <tom@codesourcery.com>
14881
14882 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14883 second call to f.
14884 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14885
14886 2015-07-07 Tom de Vries <tom@codesourcery.com>
14887
14888 PR tree-optimization/66642
14889 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14890 iteration count case.
14891 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14892 function, factor out of ...
14893 (main): ... here. Test low iteration count case.
14894
14895 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
14896
14897 * libgomp.h (gomp_thread_pool): Comment last_team field.
14898
14899 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
14900
14901 * testsuite/libgomp.c++/pr66702-1.C: Require
14902 vect_simd_clones effective target.
14903 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
14904
14905 2015-06-30 Tom de Vries <tom@codesourcery.com>
14906
14907 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14908 already set. Use DEFAULT_CFLAGS in dg-runtest.
14909 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14910 "-O2".
14911
14912 2015-06-30 Tom de Vries <tom@codesourcery.com>
14913
14914 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14915 already set. Use DEFAULT_CFLAGS in dg-runtest.
14916 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
14917 * testsuite/libgomp.c++/pr64824.C: Same.
14918 * testsuite/libgomp.c++/pr64868.C: Same.
14919 * testsuite/libgomp.c++/pr66199-1.C: Same.
14920 * testsuite/libgomp.c++/pr66199-2.C: Same.
14921 * testsuite/libgomp.c++/target-2.C: Same.
14922 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
14923 -std=<standard> option.
14924 * testsuite/libgomp.c++/udr-11.C: Same.
14925 * testsuite/libgomp.c++/udr-12.C: Same.
14926 * testsuite/libgomp.c++/udr-13.C: Same.
14927 * testsuite/libgomp.c++/udr-14.C: Same.
14928 * testsuite/libgomp.c++/udr-15.C: Same.
14929 * testsuite/libgomp.c++/udr-16.C: Same.
14930 * testsuite/libgomp.c++/udr-17.C: Same.
14931 * testsuite/libgomp.c++/udr-18.C: Same.
14932 * testsuite/libgomp.c++/udr-19.C: Same.
14933 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
14934 * testsuite/libgomp.c++/simd-1.C: Same.
14935 * testsuite/libgomp.c++/simd-2.C: Same.
14936 * testsuite/libgomp.c++/simd-3.C: Same.
14937 * testsuite/libgomp.c++/simd-4.C: Same.
14938 * testsuite/libgomp.c++/simd-5.C: Same.
14939 * testsuite/libgomp.c++/simd-6.C: Same.
14940 * testsuite/libgomp.c++/simd-7.C: Same.
14941 * testsuite/libgomp.c++/simd-8.C: Same.
14942 * testsuite/libgomp.c++/simd-9.C: Same.
14943 * testsuite/libgomp.c++/simd10.C: Same.
14944 * testsuite/libgomp.c++/simd11.C: Same.
14945 * testsuite/libgomp.c++/simd12.C: Same.
14946 * testsuite/libgomp.c++/simd13.C: Same.
14947
14948 2015-06-30 Jakub Jelinek <jakub@redhat.com>
14949
14950 PR middle-end/66702
14951 * testsuite/libgomp.c++/pr66702-1.C: New test.
14952 * testsuite/libgomp.c++/pr66702-2.C: New test.
14953
14954 2015-06-30 Tom de Vries <tom@codesourcery.com>
14955
14956 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14957 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14958 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14959 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14960
14961 2015-06-30 Tom de Vries <tom@codesourcery.com>
14962
14963 PR tree-optimization/66652
14964 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14965 using restrict pointers.
14966 (main): Add arguments to calls to f.
14967 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14968
14969 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
14970
14971 * configure.ac: Fix check for header <sys/sysctl.h>.
14972 * configure: Regenerate.
14973 * config.h.in: Likewise.
14974
14975 2015-06-23 Tom de Vries <tom@codesourcery.com>
14976
14977 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14978 abort.
14979 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14980
14981 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
14982
14983 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14984 acc_device_nvidia.
14985
14986 PR libgomp/66518
14987 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
14988 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14989
14990 2015-06-15 Tom de Vries <tom@codesourcery.com>
14991
14992 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
14993 dg-additional-options for any remaining options.
14994 * testsuite/libgomp.c/atomic-2.c: Same.
14995 * testsuite/libgomp.c/atomic-4.c: Same.
14996 * testsuite/libgomp.c/atomic-5.c: Same.
14997 * testsuite/libgomp.c/atomic-6.c: Same.
14998 * testsuite/libgomp.c/autopar-1.c: Same.
14999 * testsuite/libgomp.c/copyin-1.c: Same.
15000 * testsuite/libgomp.c/copyin-2.c: Same.
15001 * testsuite/libgomp.c/copyin-3.c: Same.
15002 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15003 * testsuite/libgomp.c/nestedfn-5.c: Same.
15004 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15005 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15006 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15007 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15008 * testsuite/libgomp.c/pr32362-1.c: Same.
15009 * testsuite/libgomp.c/pr32362-2.c: Same.
15010 * testsuite/libgomp.c/pr32362-3.c: Same.
15011 * testsuite/libgomp.c/pr39591-1.c: Same.
15012 * testsuite/libgomp.c/pr39591-2.c: Same.
15013 * testsuite/libgomp.c/pr39591-3.c: Same.
15014 * testsuite/libgomp.c/pr58392.c: Same.
15015 * testsuite/libgomp.c/pr58756.c: Same.
15016 * testsuite/libgomp.c/simd-1.c: Same.
15017 * testsuite/libgomp.c/simd-10.c: Same.
15018 * testsuite/libgomp.c/simd-11.c: Same.
15019 * testsuite/libgomp.c/simd-12.c: Same.
15020 * testsuite/libgomp.c/simd-13.c: Same.
15021 * testsuite/libgomp.c/simd-14.c: Same.
15022 * testsuite/libgomp.c/simd-15.c: Same.
15023 * testsuite/libgomp.c/simd-2.c: Same.
15024 * testsuite/libgomp.c/simd-3.c: Same.
15025 * testsuite/libgomp.c/simd-4.c: Same.
15026 * testsuite/libgomp.c/simd-5.c: Same.
15027 * testsuite/libgomp.c/simd-6.c: Same.
15028 * testsuite/libgomp.c/simd-7.c: Same.
15029 * testsuite/libgomp.c/simd-8.c: Same.
15030 * testsuite/libgomp.c/simd-9.c: Same.
15031
15032 2015-06-15 Tom de Vries <tom@codesourcery.com>
15033
15034 * testsuite/libgomp.c/pr35625.c: Fix typo.
15035
15036 2015-06-15 Tom de Vries <tom@codesourcery.com>
15037
15038 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15039 in dg-options.
15040 * testsuite/libgomp.c/atomic-3.c: Same.
15041 * testsuite/libgomp.c/debug-1.c: Same.
15042 * testsuite/libgomp.c/nqueens-1.c: Same.
15043 * testsuite/libgomp.c/pr26171.c: Same.
15044 * testsuite/libgomp.c/pr48591.c: Same.
15045 * testsuite/libgomp.c/pr64824.c: Same.
15046 * testsuite/libgomp.c/pr64868.c: Same.
15047 * testsuite/libgomp.c/pr66133.c: Same.
15048 * testsuite/libgomp.c/pr66199-1.c: Same.
15049 * testsuite/libgomp.c/pr66199-2.c: Same.
15050 * testsuite/libgomp.c/target-8.c: Same.
15051
15052 2015-06-15 Tom de Vries <tom@codesourcery.com>
15053
15054 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15055 -std={gnu99,c99}.
15056 * testsuite/libgomp.c/for-1.c: Same.
15057 * testsuite/libgomp.c/for-2.c: Same.
15058 * testsuite/libgomp.c/for-3.c: Same.
15059 * testsuite/libgomp.c/pr35625.c: Same.
15060 * testsuite/libgomp.c/pr39154.c: Same.
15061 * testsuite/libgomp.c/simd-16.c: Same.
15062 * testsuite/libgomp.c/simd-17.c: Same.
15063
15064 2015-06-13 Tom de Vries <tom@codesourcery.com>
15065
15066 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15067
15068 2015-06-13 Tom de Vries <tom@codesourcery.com>
15069
15070 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15071 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15072 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15073 (N): Define.
15074 (main): Use N instead of hardcoded constants.
15075
15076 2015-06-05 Tom de Vries <tom@codesourcery.com>
15077
15078 merge from gomp4 branch:
15079 2015-05-28 Tom de Vries <tom@codesourcery.com>
15080
15081 PR tree-optimization/65443
15082 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15083 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15084 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15085
15086 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15087
15088 * testsuite/libgomp.graphite/bounds.c: Adjust for
15089 cleanup-tree-dump removal.
15090 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15091 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15092 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15093 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15094 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15095 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15096 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15097 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15098 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15099 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15100
15101 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
15102
15103 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15104 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15105 (futex_wake) [!__x86_64__]: Ditto.
15106
15107 2015-05-28 Julian Brown <julian@codesourcery.com>
15108
15109 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15110 function comment. Only call gomp_fatal if new argument is true.
15111 (acc_dev_num_out_of_range): New function.
15112 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15113 acc_dev_num_out_of_range as appropriate.
15114 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15115 (acc_get_device_num, acc_set_device_num): Update calls to
15116 resolve_device.
15117 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15118 output.
15119
15120 2015-05-28 Julian Brown <julian@codesourcery.com>
15121
15122 PR libgomp/65742
15123 * oacc-init.c (plugin/plugin-host.h): Include.
15124 (acc_on_device): Check whether we're in an offloaded region for
15125 host_nonshm
15126 plugin. Don't use __builtin_acc_on_device.
15127 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15128 nonshm_exec flag in thread-local data.
15129 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15130 data for host_nonshm plugin.
15131 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15132 for host_nonshm plugin.
15133 * plugin/plugin-host.h: New.
15134
15135 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15136
15137 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15138
15139 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15140
15141 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15142 Declare as int.
15143 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15144 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15145 Declare as int.
15146
15147 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15148
15149 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15150
15151 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15152
15153 * target.c (gomp_map_pointer): New function abstracting out
15154 GOMP_MAP_POINTER handling.
15155 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15156 gomp_map_pointer().
15157
15158 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15159
15160 PR middle-end/66199
15161 * testsuite/libgomp.c/pr66199-1.c: New test.
15162 * testsuite/libgomp.c/pr66199-2.c: New test.
15163 * testsuite/libgomp.c++/pr66199-1.C: New test.
15164 * testsuite/libgomp.c++/pr66199-2.C: New test.
15165 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15166 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15167
15168 2015-05-19 Julian Brown <julian@codesourcery.com>
15169
15170 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15171 on cuInit failure.
15172
15173 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15174
15175 PR middle-end/66133
15176 * testsuite/libgomp.c/pr66133.c: New test.
15177
15178 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15179
15180 * Makefile.in: Regenerated with automake-1.11.6.
15181 * aclocal.m4: Likewise.
15182 * config.h.in: Likewise.
15183 * configure: Likewise.
15184 * testsuite/Makefile.in: Likewise.
15185
15186 2015-05-08 Jason Merrill <jason@redhat.com>
15187
15188 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15189 _Complex.
15190
15191 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15192
15193 2015-05-06 Julian Brown <julian@codesourcery.com>
15194
15195 * oacc-init.c (acc_device_lock): Add explanatory comment.
15196 (resolve_device): Add comment about locking requirement.
15197 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15198 gomp_init_device and gomp_fini_device calls.
15199 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15200 (acc_get_device_num, acc_set_device_num): Add locking around
15201 resolve_device and gomp_init_device calls.
15202
15203 2015-05-06 Julian Brown <julian@codesourcery.com>
15204
15205 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15206 goacc_thread_lock on error paths.
15207 * oacc-mem.c (lookup_host): Remove locking from function. Note
15208 locking requirement for caller in function comment.
15209 (lookup_dev): Likewise.
15210 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15211 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15212 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15213 Add locking.
15214
15215 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15216
15217 PR testsuite/65205
15218 PR libgomp/65993
15219 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15220 don't expect "0x" prefix for "%p" format specifier, don't expect
15221 "(nil)" for NULL pointer.
15222 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15223 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15224 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15225 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15226 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15227 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15228 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15229 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15230 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15231 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15232 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15233 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15234 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15235 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15236 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15237 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15238 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15239 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15240 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15241 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15242 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15243 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15244 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15245 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15246 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15247 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15248 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15249 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15250 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15251 accurately specify what we're looking for.
15252 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15253 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15254 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15255 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15256 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15257
15258 2015-04-30 James Norris <jnorris@codesourcery.com>
15259
15260 PR testsuite/65205
15261 * testsuite/lib/libgomp.exp
15262 (check_effective_target_openacc_host_selected)
15263 (check_effective_target_openacc_host_nonshm_selected): New
15264 procedures.
15265 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15266 dg-shouldfail.
15267 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15268 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15269 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15270 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15271 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15272 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15273 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15274 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15275 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15276 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15277 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15278 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15279 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15280 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15281 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15282 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15283 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15284 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15285 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15286 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15287 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15288 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15289 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15290 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15291 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15292 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15293 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15294 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15295 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15296 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15297 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15298 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15299 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15300 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15301 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15302 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15303 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15304 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15305 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15306 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15307 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15308 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15309 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15310
15311 2015-04-08 Julian Brown <julian@codesourcery.com>
15312
15313 * libgomp.h (target_mem_desc: Remove mem_map field.
15314 (acc_dispatch_t): Remove open_device_func, close_device_func,
15315 get_device_num_func, set_device_num_func, target_data members.
15316 Change create_thread_data_func argument to device number instead of
15317 generic pointer.
15318 * oacc-async.c (assert.h): Include.
15319 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15320 (acc_wait_all, acc_wait_all_async): Use current host thread's
15321 active device, not base_dev.
15322 * oacc-cuda.c (acc_get_current_cuda_device)
15323 (acc_get_current_cuda_context, acc_get_cuda_stream)
15324 (acc_set_cuda_stream): Likewise.
15325 * oacc-host.c (host_dispatch): Don't set open_device_func,
15326 close_device_func, get_device_num_func or set_device_num_func.
15327 * oacc-init.c (base_dev, init_key): Remove.
15328 (cached_base_dev): New.
15329 (name_of_acc_device_t): New.
15330 (acc_init_1): Initialise default-numbered device, not zeroth.
15331 (acc_shutdown_1): Close all devices of a given type.
15332 (goacc_destroy_thread): Don't use base_dev.
15333 (lazy_open, lazy_init, lazy_init_and_open): Remove.
15334 (goacc_attach_host_thread_to_device): New.
15335 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15336 (acc_get_num_devices): Don't use base_dev.
15337 (acc_set_device_type): Reimplement.
15338 (acc_get_device_type): Don't use base_dev.
15339 (acc_get_device_num): Tweak logic.
15340 (acc_set_device_num): Likewise.
15341 (acc_on_device): Use acc_get_device_type.
15342 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15343 (goacc_lazy_initialize): Reimplement with acc_init and
15344 goacc_attach_host_thread_to_device.
15345 * oacc-int.h (goacc_thread): Add base_dev field.
15346 (base_dev): Remove extern declaration.
15347 (goacc_attach_host_thread_to_device): Add prototype.
15348 * oacc-mem.c (acc_malloc): Use current thread's device instead of
15349 base_dev.
15350 (acc_free): Likewise.
15351 (acc_memcpy_to_device): Likewise.
15352 (acc_memcpy_from_device): Likewise.
15353 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15354 goacc_lazy_initialize (throughout).
15355 (GOACC_parallel): Use tgt_offset to locate target functions.
15356 * target.c (gomp_map_vars): Don't set tgt->mem_map.
15357 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15358 (gomp_load_plugin_for_device): Remove open_device, close_device,
15359 get_device_num, set_device_num openacc hook initialisation. Don't set
15360 openacc.target_data.
15361 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15362 (GOMP_OFFLOAD_openacc_close_device)
15363 (GOMP_OFFLOAD_openacc_get_device_num)
15364 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15365 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15366 to int.
15367 * plugin/plugin-nvptx.c (ptx_inited): Remove.
15368 (instantiated_devices, ptx_dev_lock): New.
15369 (struct ptx_image_data): New.
15370 (ptx_devices, ptx_images, ptx_image_lock): New.
15371 (fini_streams_for_device): Reorder cuStreamDestroy call.
15372 (nvptx_get_num_devices): Remove forward declaration.
15373 (nvptx_init): Change return type to bool.
15374 (nvptx_fini): Remove.
15375 (nvptx_attach_host_thread_to_device): New.
15376 (nvptx_open_device): Return struct ptx_device* instead of void*.
15377 (nvptx_close_device): Change argument type to struct ptx_device*,
15378 return type to void.
15379 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15380 (kernel_target_data, kernel_host_table): Remove static globals.
15381 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15382 (GOMP_OFFLOAD_init_device): Reimplement.
15383 (GOMP_OFFLOAD_fini_device): Likewise.
15384 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15385 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15386 (GOMP_OFFLOAD_host2dev): Use ORD argument.
15387 (GOMP_OFFLOAD_openacc_open_device)
15388 (GOMP_OFFLOAD_openacc_close_device)
15389 (GOMP_OFFLOAD_openacc_set_device_num)
15390 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15391 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15392 (device number).
15393
15394 testsuite/
15395 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15396
15397 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15398
15399 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15400 * libgomp.h (struct gomp_memory_mapping): Remove.
15401 (struct target_mem_desc): Change type of mem_map from
15402 gomp_memory_mapping * to splay_tree_s *.
15403 (struct gomp_device_descr): Remove register_image_func, get_table_func.
15404 Add load_image_func, unload_image_func.
15405 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15406 Remove offload_regions_registered.
15407 (gomp_init_tables): Remove.
15408 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15409 to splay_tree_s *.
15410 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15411 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15412 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15413 offload_regions_registered.
15414 Initialize load_image_func, unload_image_func, mem_map.root.
15415 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15416 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15417 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15418 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15419 gomp_memory_mapping *. Use dev's lock and splay_tree.
15420 (lookup_dev): Use dev's lock.
15421 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15422 (acc_is_present): Likewise.
15423 (acc_map_data): Likewise.
15424 (acc_unmap_data): Likewise. Use dev's lock.
15425 (present_create_copy): Likewise.
15426 (delete_copyout): Pass dev to lookup_host instead of mem_map.
15427 (update_dev_host): Likewise.
15428 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
15429 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15430 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15431 (GOMP_OFFLOAD_get_table): Remove
15432 (GOMP_OFFLOAD_load_image): New function.
15433 (GOMP_OFFLOAD_unload_image): New function.
15434 * target.c (register_lock): New mutex for offload image registration.
15435 (num_devices): Do not guard with PLUGIN_SUPPORT.
15436 (gomp_realloc_unlock): New static function.
15437 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
15438 before gomp_fatal.
15439 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15440 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
15441 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15442 mem_map's.
15443 (gomp_unmap_vars): Likewise.
15444 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
15445 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
15446 (gomp_offload_image_to_device): New static function.
15447 (GOMP_offload_register): Add mutex lock.
15448 Call gomp_offload_image_to_device for all initialized devices.
15449 Replace gomp_realloc with gomp_realloc_unlock.
15450 (GOMP_offload_unregister): New function.
15451 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
15452 get_table_func from the plugin with calls to init_device_func and
15453 gomp_offload_image_to_device.
15454 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15455 to splay_tree_s *.
15456 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
15457 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
15458 (GOMP_target_data): Do not call gomp_init_tables.
15459 (GOMP_target_update): Likewise. Remove argument from gomp_update.
15460 (gomp_load_plugin_for_device): Replace register_image and get_table
15461 with load_image and unload_image in DLSYM ().
15462 (gomp_register_images_for_device): Remove function.
15463 (gomp_target_init): Do not initialize current_device.mem_map.*,
15464 current_device.offload_regions_registered.
15465 Remove call to gomp_register_images_for_device.
15466 Do not free offload_images and num_offload_images.
15467
15468 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15469
15470 PR fortran/65597
15471 * testsuite/libgomp.fortran/pr65597.f90: New test.
15472
15473 2015-03-27 Tom de Vries <tom@codesourcery.com>
15474
15475 PR testsuite/65594
15476 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15477 (init, check): New function.
15478 (foo): Change return type to void.
15479 (main): Call init and check.
15480
15481 2015-03-27 Tom de Vries <tom@codesourcery.com>
15482
15483 PR testsuite/65594
15484 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15485 (foo): Use M for non-inner loops to scale down test-case.
15486
15487 2015-03-25 Kai Tietz <ktietz@redhat.com>
15488
15489 PR libgomp/64972
15490 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15491 (GOACC_data_start): Likewise.
15492 * target.c (gomp_map_vars): Likewise.
15493
15494 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
15495
15496 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15497 hppa*-*-hpux*.
15498
15499 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15500
15501 * testsuite/libgomp.c/target-10.c: New test.
15502 * testsuite/libgomp.c++/target-4.C: New test.
15503
15504 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
15505
15506 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15507 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15508
15509 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
15510
15511 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15512 * configure.ac (*-*-rtems*): Assume Pthread is supported.
15513 (pthread.h): Check for this header file.
15514 * configure: Regenerate.
15515
15516 2015-02-25 Tom de Vries <tom@codesourcery.com>
15517
15518 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15519 (check_reduction_op, check_reduction_macro, max, min):
15520 Declare.
15521 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15522 function.
15523 (main): Use new functions.
15524
15525 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
15526
15527 * target.c (gomp_load_plugin_for_device): Use const char * instead of
15528 char * for variables holding dlerror return values.
15529 (DLSYM_OPT): Ditto.
15530
15531 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15532
15533 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15534
15535 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15536 Cesar Philippidis <cesar@codesourcery.com>
15537
15538 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15539 GOACC_ctaid, and GOACC_nctaid routines.
15540
15541 2015-02-11 Jakub Jelinek <jakub@redhat.com>
15542
15543 PR c/64824
15544 * testsuite/libgomp.c/atomic-18.c: New test.
15545 * testsuite/libgomp.c++/atomic-16.C: New test.
15546
15547 2015-02-04 Jakub Jelinek <jakub@redhat.com>
15548
15549 PR c/64824
15550 PR c/64868
15551 * testsuite/libgomp.c/pr64824.c: New test.
15552 * testsuite/libgomp.c/pr64868.c: New test.
15553 * testsuite/libgomp.c++/pr64824.C: New test.
15554 * testsuite/libgomp.c++/pr64868.C: New test.
15555
15556 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
15557
15558 PR libgomp/64635
15559 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15560 Link with -lpthread.
15561 * config/aix/plugin-suffix.h: Delete.
15562
15563 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
15564
15565 PR libgomp/64635
15566 * configure.tgt (*-*-aix*): Use config_path "aix posix".
15567 (*-*-darwin*): Use config_path "bsd darwin posix".
15568 (*-*-hpux*): Use config_path "hpux posix".
15569 * target.c: Add include of plugin-suffix.h and use
15570 SONAME_SUFFIX macro.
15571 * config/aix/plugin-suffix.h: New file.
15572 * config/darwin/plugin-suffix.h: New file.
15573 * config/hpux/plugin-suffix.h: New file.
15574 * config/posix/plugin-suffix.h: New file.
15575
15576 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15577
15578 PR middle-end/64734
15579 * libgomp.c/pr64734.c: New test.
15580
15581 2015-01-23 Tom de Vries <tom@codesourcery.com>
15582
15583 PR libgomp/64672
15584 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15585
15586 2015-01-23 Tom de Vries <tom@codesourcery.com>
15587
15588 PR libgomp/64707
15589 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15590 dg-options.
15591
15592 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
15593
15594 PR libgomp/64625
15595 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15596 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15597 formal parameter. Update all users.
15598 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15599 Document unused formal parameter.
15600
15601 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
15602
15603 * oacc-parallel.c: Don't include <alloca.h>.
15604 (GOACC_parallel): Use gomp_alloca instead of alloca.
15605
15606 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
15607
15608 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15609
15610 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
15611 James Norris <jnorris@codesourcery.com>
15612 Tom de Vries <tom@codesourcery.com>
15613 Julian Brown <julian@codesourcery.com>
15614 Cesar Philippidis <cesar@codesourcery.com>
15615 Nathan Sidwell <nathan@codesourcery.com>
15616 Tobias Burnus <burnus@net-b.de>
15617
15618 * Makefile.am (search_path): Add $(top_srcdir)/../include.
15619 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15620 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15621 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15622 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15623 Include $(top_srcdir)/plugin/Makefrag.am.
15624 (nodist_libsubinclude_HEADERS): Add openacc.h.
15625 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15626 openacc.f90, openacc.mod, openacc_kinds.mod.
15627 (omp_lib.mod): Generalize into...
15628 (%.mod): ... this new rule.
15629 (openacc_kinds.mod, openacc.mod): New rules.
15630 * plugin/configfrag.ac: New file.
15631 * configure.ac: Move plugin/offloading support into it. Include
15632 it. Instantiate testsuite/libgomp-test-support.pt.exp.
15633 * plugin/Makefrag.am: New file.
15634 * testsuite/Makefile.am (OFFLOAD_TARGETS)
15635 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15636 export.
15637 (libgomp-test-support.exp): New rule.
15638 (all-local): Depend on it.
15639 * Makefile.in: Regenerate.
15640 * testsuite/Makefile.in: Regenerate.
15641 * config.h.in: Likewise.
15642 * configure: Likewise.
15643 * configure.tgt: Harden shell syntax.
15644 * env.c: Include "oacc-int.h".
15645 (parse_acc_device_type): New function.
15646 (gomp_debug_var, goacc_device_type, goacc_device_num): New
15647 variables.
15648 (initialize_env): Initialize those. Call
15649 goacc_runtime_initialize.
15650 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15651 (gomp_fatal): Call gomp_vfatal.
15652 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15653 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15654 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15655 (splay_tree_node, splay_tree, splay_tree_key)
15656 (struct target_mem_desc, struct splay_tree_key_s)
15657 (struct gomp_memory_mapping, struct acc_dispatch_t)
15658 (struct gomp_device_descr, gomp_acc_insert_pointer)
15659 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15660 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15661 (gomp_free_memmap, gomp_fini_device): New declarations.
15662 (gomp_vdebug, gomp_debug): New macros.
15663 Include "splay-tree.h".
15664 * libgomp.map (OACC_2.0): New symbol version. Use for
15665 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15666 acc_set_device_type_h_, acc_get_device_type,
15667 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15668 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15669 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15670 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15671 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15672 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15673 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15674 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15675 acc_copyin_array_h_, acc_present_or_copyin,
15676 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15677 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15678 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15679 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15680 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15681 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15682 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15683 acc_update_device, acc_update_device_32_h_,
15684 acc_update_device_64_h_, acc_update_device_array_h_,
15685 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15686 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15687 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15688 acc_is_present_64_h_, acc_is_present_array_h_,
15689 acc_memcpy_to_device, acc_memcpy_from_device,
15690 acc_get_current_cuda_device, acc_get_current_cuda_context,
15691 acc_get_cuda_stream, acc_set_cuda_stream.
15692 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
15693 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15694 GOACC_update, GOACC_wait, GOACC_get_thread_num,
15695 GOACC_get_num_threads.
15696 (GOMP_PLUGIN_1.0): New symbol version. Use for
15697 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15698 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15699 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15700 GOMP_PLUGIN_acc_thread.
15701 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15702 environment variable.
15703 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15704 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15705 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15706 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15707 (splay_tree_remove): New declarations.
15708 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15709 (splay_tree_remove, splay_tree_lookup): Move into...
15710 * splay-tree.c: ... this new file.
15711 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15712 (splay_tree_node, splay_tree, splay_tree_key)
15713 (struct target_mem_desc, struct splay_tree_key_s)
15714 (struct gomp_device_descr): Don't declare.
15715 (num_devices_openmp): New variable.
15716 (gomp_get_num_devices ): Use it.
15717 (gomp_init_targets_once): New function.
15718 (gomp_get_num_devices ): Use it.
15719 (get_kind, gomp_copy_from_async, gomp_free_memmap)
15720 (gomp_fini_device, gomp_register_image_for_device): New functions.
15721 (gomp_map_vars): Add devaddrs parameter.
15722 (gomp_update): Add mm parameter.
15723 (gomp_init_device): Move most of it into...
15724 (gomp_init_tables): ... this new function.
15725 (gomp_register_images_for_device): Remove function.
15726 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15727 Make them hidden instead of static.
15728 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15729 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15730 (GOMP_target_end_data, GOMP_target_update)
15731 (gomp_load_plugin_for_device, gomp_target_init): Update for
15732 OpenACC changes.
15733 * oacc-async.c: New file.
15734 * oacc-cuda.c: Likewise.
15735 * oacc-host.c: Likewise.
15736 * oacc-init.c: Likewise.
15737 * oacc-int.h: Likewise.
15738 * oacc-mem.c: Likewise.
15739 * oacc-parallel.c: Likewise.
15740 * oacc-plugin.c: Likewise.
15741 * oacc-plugin.h: Likewise.
15742 * oacc-ptx.h: Likewise.
15743 * openacc.f90: Likewise.
15744 * openacc.h: Likewise.
15745 * openacc_lib.h: Likewise.
15746 * plugin/plugin-host.c: Likewise.
15747 * plugin/plugin-nvptx.c: Likewise.
15748 * libgomp-plugin.c: Likewise.
15749 * libgomp-plugin.h: Likewise.
15750 * libgomp_target.h: Remove file after merging content into the
15751 former file. Update all users.
15752 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15753 (offload_targets_s, offload_targets_s_openacc): New variables.
15754 (check_effective_target_openacc_nvidia_accel_present)
15755 (check_effective_target_openacc_nvidia_accel_selected): New
15756 procedures.
15757 (libgomp_init): Update for OpenACC changes.
15758 * testsuite/libgomp-test-support.exp.in: New file.
15759 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15760 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15761 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15762 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15763 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15764 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15765 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15766 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15767 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15768 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15769 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15770 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15771 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15772 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15773 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15774 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15775 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15776 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15777 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15778 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15779 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15780 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15781 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15782 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15783 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15784 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15785 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15786 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15787 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15788 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15789 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15790 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15791 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15792 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15793 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15794 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15795 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15796 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15797 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15798 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15799 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15800 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15801 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15802 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15803 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15804 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15805 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15806 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15807 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15808 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15809 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15810 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15811 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15812 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15813 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15814 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15815 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15816 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15817 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15818 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15819 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15820 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15821 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15822 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15823 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15824 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15825 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15826 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15827 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15828 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15829 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15830 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15831 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15832 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15833 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15834 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15835 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15836 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15837 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15838 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15839 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15840 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15841 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15842 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15843 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15844 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15845 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15846 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15847 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15848 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15849 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15850 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15851 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15852 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15853 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15854 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15855 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15856 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15857 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15858 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15859 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15860 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15861 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15862 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15863 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15864 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15865 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15866 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15867 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15868 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15869 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15870 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15871 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15872 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15873 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15874 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15875 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15876 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15877 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15878 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15879 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15880 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15881 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15882 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15883 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15884 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15885 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15886 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15887 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15888 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15889 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15890 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15891 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15892 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15893 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15894 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15895 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15896 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15897 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15898 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15899 Likewise.
15900 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15901 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15902 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15903 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15904 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
15905 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15906 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
15907 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15908 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15909 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15910 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15911 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15912 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15913 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
15914 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
15915 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
15916 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
15917 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
15918 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
15919 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
15920 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
15921 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
15922 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
15923 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
15924 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
15925 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
15926 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15927 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15928 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15929 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15930 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15931 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15932 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15933 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15934 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
15935 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
15936 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
15937 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
15938 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
15939 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
15940 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
15941 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
15942 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
15943 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
15944 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
15945 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
15946 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
15947 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15948 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15949 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15950 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15951 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15952 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15953 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15954 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15955 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15956 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15957 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15958 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15959 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15960
15961 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
15962 Julian Brown <julian@codesourcery.com>
15963 David Malcolm <dmalcolm@redhat.com>
15964
15965 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15966 to "GNU Offloading and Multi Processing Runtime Library". Change
15967 all users.
15968 * configure: Regenerate.
15969 * libgomp.texi: Update.
15970
15971 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
15972
15973 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15974 "$tgt_dir/lib32".
15975 * configure: Regenerate.
15976
15977 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15978 "intelmic" in $offload_targets.
15979
15980 2015-01-05 Jakub Jelinek <jakub@redhat.com>
15981
15982 Update copyright years.
15983
15984 * libgomp.texi: Bump @copying's copyright year.
15985
15986 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15987
15988 * testsuite/lib/libgomp.exp: Load target-utils.exp.
15989 Move load of target-supports.exp earlier.
15990
15991 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
15992
15993 * testsuite/libgomp.c/target-9.c: New test.
15994
15995 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
15996
15997 * config.h.in: Regenerate.
15998 * configure: Regenerate.
15999 * configure.ac: Add GCC_CHECK_EMUTLS.
16000 * libgomp.h: Add check for USE_EMUTLS: this case
16001 is equal to HAVE_TLS.
16002 * team.c: Likewise.
16003
16004 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
16005
16006 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16007
16008 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16009 Ilya Verbin <ilya.verbin@intel.com>
16010
16011 * testsuite/libgomp.c/target-critical-1.c: New test.
16012
16013 2014-11-26 Jakub Jelinek <jakub@redhat.com>
16014
16015 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16016 to dg-options unless expensive testing is on.
16017 (TESTITERS): Define to N if not defined.
16018 (main): Use TESTITERS instead of N.
16019 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16020 dg-additional-options depending on whether expensive testing is on.
16021 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16022 Decrease N to 100000 and CHUNKSZ to 10000.
16023
16024 2014-11-24 Jakub Jelinek <jakub@redhat.com>
16025
16026 PR fortran/63938
16027 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16028 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16029
16030 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
16031
16032 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16033
16034 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16035
16036 PR bootstrap/63784
16037 * configure: Regenerated.
16038
16039 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
16040
16041 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16042 vect_simd_clones effective target.
16043 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16044
16045 2014-11-14 Jakub Jelinek <jakub@redhat.com>
16046
16047 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16048 of 32 as block_size.
16049 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16050 instead of 32 as block_size.
16051
16052 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16053 Ilya Verbin <ilya.verbin@intel.com>
16054
16055 * Makefile.in: Regenerate.
16056 * configure: Regenerate.
16057 * configure.ac: Set up offload_additional_options,
16058 offload_additional_lib_paths and offload_targets.
16059 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16060 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16061 * testsuite/Makefile.in: Regenerate.
16062 * testsuite/lib/libgomp.exp (libgomp_init): Append
16063 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16064 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16065 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16066
16067 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16068 Ilya Verbin <ilya.verbin@intel.com>
16069 Kirill Yukhin <kirill.yukhin@intel.com>
16070 Ilya Tocar <ilya.tocar@intel.com>
16071
16072 * testsuite/lib/libgomp.exp
16073 (check_effective_target_offload_device): New.
16074 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16075 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16076 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16077 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16078 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16079 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16080 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16081 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16082 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16083 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16084 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16085 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16086 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16087 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16088 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16089 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16090 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16091 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16092 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16093 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16094 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16095 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16096 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16097 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16098 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16099 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16100 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16101 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16102 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16103 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16104 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16105 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16106 * testsuite/libgomp.c/target-7.c: Fix test.
16107 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16108 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16109 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16110 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16111 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16112 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16113 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16114 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16115 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16116 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16117 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16118 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16119 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16120 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16121 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16122 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16123 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16124 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16125 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16126 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16127 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16128 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16129 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16130 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16131 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16132 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16133 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16134 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16135 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16136 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16137 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16138
16139 2014-11-13 Jakub Jelinek <jakub@redhat.com>
16140 Ilya Verbin <ilya.verbin@intel.com>
16141 Thomas Schwinge <thomas@codesourcery.com>
16142 Andrey Turetskiy <andrey.turetskiy@intel.com>
16143
16144 * libgomp.map (GOMP_4.0.1): New symbol version.
16145 Add GOMP_offload_register.
16146 * libgomp_target.h: New file.
16147 * splay-tree.h: New file.
16148 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16149 (gomp_target_init): New forward declaration.
16150 (gomp_is_initialized): New static variable.
16151 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16152 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16153 New structures.
16154 (offload_images, num_offload_images, devices, num_devices): New static
16155 variables.
16156 (splay_compare): New static function.
16157 (struct gomp_device_descr): New structure.
16158 (gomp_get_num_devices): Call gomp_target_init.
16159 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16160 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16161 (GOMP_offload_register): New function.
16162 (GOMP_target): Arrange for host callback to be performed in a separate
16163 initial thread and contention group, inheriting ICVs from
16164 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16165 Add device initialization and lookup for target function in splay tree.
16166 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16167 (GOMP_target_end_data): Call gomp_unmap_vars.
16168 (GOMP_target_update): Add device initialization and call gomp_update.
16169 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16170 (gomp_target_init): New static functions.
16171
16172 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16173 Thomas Schwinge <thomas@codesourcery.com>
16174 Ilya Verbin <ilya.verbin@intel.com>
16175 Andrey Turetskiy <andrey.turetskiy@intel.com>
16176
16177 * config.h.in: Regenerate.
16178 * configure: Regenerate.
16179 * configure.ac: Check for libdl, required for plugin support.
16180 (PLUGIN_SUPPORT): Define if plugins are supported.
16181 (enable_offload_targets): Support Intel MIC targets.
16182 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16183
16184 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16185
16186 PR target/63610
16187 * configure: Regenerate.
16188
16189 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16190
16191 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16192
16193 2014-10-06 Marek Polacek <polacek@redhat.com>
16194
16195 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16196 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16197 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16198 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16199
16200 2014-10-06 Marek Polacek <polacek@redhat.com>
16201
16202 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16203 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16204 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16205 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16206 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16207 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16208 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16209 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16210 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16211 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16212 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16213 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16214 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16215 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16216 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16217 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16218 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16219 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16220 declarations.
16221
16222 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16223
16224 PR libgomp/61200
16225 * testsuite/libgomp.c/pr61200.c: New test.
16226
16227 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16228
16229 PR c++/63248
16230 * testsuite/libgomp.c++/pr63248.C: New test.
16231
16232 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16233
16234 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16235 is not zero, but taskgroup->children is NULL and there are
16236 any task->children, schedule those instead of waiting.
16237 * testsuite/libgomp.c/depend-6.c: New test.
16238 * testsuite/libgomp.c/depend-7.c: New test.
16239 * testsuite/libgomp.c/depend-8.c: New test.
16240 * testsuite/libgomp.c/depend-9.c: New test.
16241 * testsuite/libgomp.c/depend-10.c: New test.
16242
16243 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16244
16245 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16246 (struct gomp_taskwait): New type.
16247 (struct gomp_task): Add taskwait and parent_depends_on, remove
16248 in_taskwait and taskwait_sem fields.
16249 (gomp_finish_task): Don't destroy taskwait_sem.
16250 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16251 taskwait and parent_depends_on.
16252 (GOMP_task): For if (0) tasks with depend clause that depend on
16253 earlier tasks don't defer them, instead call
16254 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16255 Initialize redundant_out field, for redundant out entries just
16256 move them at the end of linked list instead of removing them
16257 completely, and set redundant_out flag instead of redundant.
16258 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16259 that task.
16260 (gomp_task_run_post_handle_dependers): If parent is in
16261 gomp_task_maybe_wait_for_dependencies and newly runnable task
16262 is not parent_depends_on, queue it in parent->children linked
16263 list after all runnable tasks with parent_depends_on set.
16264 Adjust for addition of taskwait indirection.
16265 (gomp_task_run_post_remove_parent): If parent is in
16266 gomp_task_maybe_wait_for_dependencies and task to be removed
16267 is parent_depends_on, decrement n_depend and if needed awake
16268 parent. Adjust for addition of taskwait indirection.
16269 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16270 (gomp_task_maybe_wait_for_dependencies): New function.
16271 * testsuite/libgomp.c/depend-5.c: New test.
16272
16273 2014-07-13 Tobias Burnus <burnus@net-b.de>
16274
16275 * testsuite/libgomp.fortran/pr34020.f90: Make compile
16276 with TS 18508/Fortran 2015.
16277
16278 2014-07-06 Marek Polacek <polacek@redhat.com>
16279
16280 PR c/6940
16281 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16282
16283 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16284
16285 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16286 matches regex $lang_source_re, add $lang_include_flags to options.
16287 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16288 * testsuite/libgomp.c++/c++.exp: Likewise.
16289 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16290 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16291 ALWAYS_CFLAGS.
16292 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16293
16294 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16295
16296 * testsuite/libgomp.fortran/fortran.exp: Explain
16297 gfortran-dg-runtest usage.
16298
16299 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16300
16301 * testsuite/libgomp.fortran/simd5.f90: New test.
16302 * testsuite/libgomp.fortran/simd6.f90: New test.
16303 * testsuite/libgomp.fortran/simd7.f90: New test.
16304
16305 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16306
16307 * testsuite/libgomp.c/for-2.c: Define SC to static for
16308 #pragma omp for simd testing.
16309 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16310 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16311 SC macro.
16312 * testsuite/libgomp.c/simd-14.c: New test.
16313 * testsuite/libgomp.c/simd-15.c: New test.
16314 * testsuite/libgomp.c/simd-16.c: New test.
16315 * testsuite/libgomp.c/simd-17.c: New test.
16316 * testsuite/libgomp.c++/for-10.C: Define SC to static for
16317 #pragma omp for simd testing.
16318 * testsuite/libgomp.c++/simd10.C: New test.
16319 * testsuite/libgomp.c++/simd11.C: New test.
16320 * testsuite/libgomp.c++/simd12.C: New test.
16321 * testsuite/libgomp.c++/simd13.C: New test.
16322
16323 * testsuite/libgomp.fortran/aligned1.f03: New test.
16324 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16325 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16326 tasks with !$omp parallel !$omp single.
16327 * testsuite/libgomp.fortran/target8.f90: New test.
16328 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16329 not to use trim in the combiner, instead call elemental function.
16330 (fn): New elemental function.
16331 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16332 Make elemental.
16333 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16334 omp_in): Likewise.
16335 * testsuite/libgomp.fortran/udr12.f90: New test.
16336 * testsuite/libgomp.fortran/udr13.f90: New test.
16337 * testsuite/libgomp.fortran/udr14.f90: New test.
16338 * testsuite/libgomp.fortran/udr15.f90: New test.
16339
16340 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16341
16342 * omp_lib.f90.in (openmp_version): Set to 201307.
16343 * omp_lib.h.in (openmp_version): Likewise.
16344 * testsuite/libgomp.c/target-8.c: New test.
16345 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16346 and inbranch clauses.
16347 * testsuite/libgomp.fortran/depend-3.f90: New test.
16348 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16349 openmp_version.
16350 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16351 * testsuite/libgomp.fortran/target1.f90: New test.
16352 * testsuite/libgomp.fortran/target2.f90: New test.
16353 * testsuite/libgomp.fortran/target3.f90: New test.
16354 * testsuite/libgomp.fortran/target4.f90: New test.
16355 * testsuite/libgomp.fortran/target5.f90: New test.
16356 * testsuite/libgomp.fortran/target6.f90: New test.
16357 * testsuite/libgomp.fortran/target7.f90: New test.
16358
16359 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16360
16361 PR fortran/60928
16362 * testsuite/libgomp.fortran/allocatable9.f90: New test.
16363 * testsuite/libgomp.fortran/allocatable10.f90: New test.
16364 * testsuite/libgomp.fortran/allocatable11.f90: New test.
16365 * testsuite/libgomp.fortran/allocatable12.f90: New test.
16366 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16367 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16368 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16369 * testsuite/libgomp.fortran/associate1.f90: New test.
16370 * testsuite/libgomp.fortran/associate2.f90: New test.
16371 * testsuite/libgomp.fortran/procptr1.f90: New test.
16372
16373 2014-06-06 Jakub Jelinek <jakub@redhat.com>
16374
16375 * testsuite/libgomp.fortran/simd1.f90: New test.
16376 * testsuite/libgomp.fortran/udr1.f90: New test.
16377 * testsuite/libgomp.fortran/udr2.f90: New test.
16378 * testsuite/libgomp.fortran/udr3.f90: New test.
16379 * testsuite/libgomp.fortran/udr4.f90: New test.
16380 * testsuite/libgomp.fortran/udr5.f90: New test.
16381 * testsuite/libgomp.fortran/udr6.f90: New test.
16382 * testsuite/libgomp.fortran/udr7.f90: New test.
16383 * testsuite/libgomp.fortran/udr8.f90: New test.
16384 * testsuite/libgomp.fortran/udr9.f90: New test.
16385 * testsuite/libgomp.fortran/udr10.f90: New test.
16386 * testsuite/libgomp.fortran/udr11.f90: New test.
16387
16388 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
16389
16390 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16391 vect_simd_clones effective target.
16392 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16393
16394 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16395
16396 PR middle-end/61252
16397 * testsuite/libgomp.c++/simd-9.C: New test.
16398
16399 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
16400
16401 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16402 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16403 texts according to their @menu entry positions.
16404
16405 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16406
16407 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16408 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16409 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16410 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16411 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16412 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16413 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16414 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16415 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16416 * testsuite/libgomp.fortran/depend-1.f90: New test.
16417 * testsuite/libgomp.fortran/depend-2.f90: New test.
16418 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16419 * testsuite/libgomp.fortran/simd1.f90: New test.
16420 * testsuite/libgomp.fortran/simd2.f90: New test.
16421 * testsuite/libgomp.fortran/simd3.f90: New test.
16422 * testsuite/libgomp.fortran/simd4.f90: New test.
16423 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16424
16425 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16426
16427 * testsuite/libgomp.c/simd-10.c: New test.
16428 * testsuite/libgomp.c/simd-11.c: New test.
16429 * testsuite/libgomp.c/simd-12.c: New test.
16430 * testsuite/libgomp.c/simd-13.c: New test.
16431
16432 2014-04-24 Jakub Jelinek <jakub@redhat.com>
16433
16434 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16435 atomic type clauses in any order and optional comma in between.
16436 * testsuite/libgomp.c++/atomic-15.C: Likewise.
16437 * testsuite/libgomp.c/atomic-17.c: Likewise.
16438
16439 * testsuite/libgomp.c/simd-7.c: New test.
16440 * testsuite/libgomp.c/simd-8.c: New test.
16441 * testsuite/libgomp.c/simd-9.c: New test.
16442 * testsuite/libgomp.c/loop-16.c: New test.
16443
16444 2014-04-02 Richard Henderson <rth@redhat.com>
16445
16446 * config/linux/futex.h (futex_wait): Get error value from errno.
16447 (futex_wake): Likewise.
16448
16449 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16450
16451 PR c++/60331
16452 * testsuite/libgomp.c++/udr-11.C: New test.
16453 * testsuite/libgomp.c++/udr-12.C: New test.
16454 * testsuite/libgomp.c++/udr-13.C: New test.
16455 * testsuite/libgomp.c++/udr-14.C: New test.
16456 * testsuite/libgomp.c++/udr-15.C: New test.
16457 * testsuite/libgomp.c++/udr-16.C: New test.
16458 * testsuite/libgomp.c++/udr-17.C: New test.
16459 * testsuite/libgomp.c++/udr-18.C: New test.
16460 * testsuite/libgomp.c++/udr-19.C: New test.
16461
16462 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16463
16464 Update copyright years
16465
16466 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16467
16468 * hashtab.h: Use the standard form for the copyright notice.
16469
16470 2014-01-02 Tobias Burnus <burnus@net-b.de>
16471
16472 * libgomp.texi: Bump @copying's copyright year.
16473
16474 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
16475
16476 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16477 alloca () with __builtin_alloca ().
16478 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16479 * testsuite/libgomp.c/lock-3.c: Likewise.
16480 * testsuite/libgomp.c/pr48591.c: Likewise.
16481
16482 2013-12-17 Jakub Jelinek <jakub@redhat.com>
16483
16484 PR testsuite/59534
16485 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16486 comparisons.
16487
16488 2013-12-16 Jakub Jelinek <jakub@redhat.com>
16489
16490 PR libgomp/58756
16491 * testsuite/libgomp.c/pr58756.c: New test.
16492
16493 2013-12-12 Jakub Jelinek <jakub@redhat.com>
16494
16495 PR libgomp/59467
16496 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16497 !$omp parallel.
16498
16499 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
16500
16501 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16502 ALWAYS_CFLAGS.
16503 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16504 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16505 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16506 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16507 Likewise.
16508
16509 * libgomp_g.h: Include <stddef.h> for size_t.
16510
16511 * libgomp.spec.in: Update comment about libgomp's dependencies.
16512 * configure.ac: Likewise.
16513 * configure: Regenerate.
16514
16515 2013-10-16 Tobias Burnus <burnus@net-b.de>
16516
16517 * libgomp.texi: (Runtime Library Routines): Update references for
16518 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16519 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16520 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16521 (Environment Variables): Update references for OpenMP 4.0. Add
16522 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16523 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16524 order.
16525
16526 2013-10-14 Jakub Jelinek <jakub@redhat.com>
16527
16528 * env.c (parse_bind_var): Initialize value to avoid
16529 (false positive) warning.
16530
16531 2013-10-12 Jakub Jelinek <jakub@redhat.com>
16532
16533 PR libgomp/58691
16534 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16535 to check variable.
16536 (gomp_init_num_threads): Move i variable declaration into
16537 #ifdef CPU_ALLOC_SIZE block.
16538 * config/linux/affinity.c (gomp_affinity_init_level): Test
16539 gomp_places_list_len == 0 rather than gomp_places_list == 0
16540 when checking for topology reading error.
16541 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16542 * env.c (parse_affinity): Add ignore argument, if true, don't populate
16543 gomp_places_list, only parse env var and always return false.
16544 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
16545 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16546 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16547 and either of these variables were parsed correctly into a places
16548 list.
16549
16550 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16551 Jakub Jelinek <jakub@redhat.com>
16552
16553 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16554 of 5 loopfn matches.
16555 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16556 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16557 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16558 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16559 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16560 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16561 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16562 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16563
16564 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16565
16566 * Makefile.am (omp_lib.mod): Streamline rule.
16567 * Makefile.in: Regenerate.
16568
16569 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16570 exceptions.
16571
16572 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16573 * testsuite/libgomp.fortran/lib1.f90: Likewise.
16574 * testsuite/libgomp.fortran/lib2.f: Likewise.
16575 * testsuite/libgomp.fortran/lib3.f: Likewise.
16576
16577 * configure.ac: Typo fix.
16578 * configure: Regenerate.
16579
16580 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16581 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16582
16583 * omp.h.in: Don't touch the user's namespace.
16584
16585 2013-10-11 Jakub Jelinek <jakub@redhat.com>
16586 Tobias Burnus <burnus@net-b.de>
16587 Richard Henderson <rth@redhat.com>
16588
16589 * target.c: New file.
16590 * Makefile.am (libgomp_la_SOURCES): Add target.c.
16591 * Makefile.in: Regenerated.
16592 * libgomp_g.h (GOMP_task): Add depend argument.
16593 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16594 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16595 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16596 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16597 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16598 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16599 GOMP_taskgroup_start, GOMP_taskgroup_end,
16600 GOMP_parallel_sections): New prototypes.
16601 * fortran.c (omp_is_initial_device): Add ialias_redirect.
16602 (omp_is_initial_device_): New function.
16603 (ULP, STR1, STR2, ialias_redirect): Removed.
16604 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16605 omp_set_default_device_8_, omp_get_default_device_,
16606 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16607 functions.
16608 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16609 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16610 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16611 @@GOMP_4.0.
16612 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16613 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16614 omp_set_default_device, omp_set_default_device_,
16615 omp_set_default_device_8_, omp_get_default_device,
16616 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16617 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16618 omp_get_team_num_): Export @@OMP_4.0.
16619 * team.c (struct gomp_thread_start_data): Add place field.
16620 (gomp_thread_start): Clear thr->thread_pool and
16621 thr->task before returning. Use gomp_team_barrier_wait_final
16622 instead of gomp_team_barrier_wait. Initialize thr->place.
16623 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16624 team_cancelled and task_queued_count fields.
16625 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16626 before calling pthread_exit.
16627 (gomp_free_thread): No longer static. Use
16628 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16629 (gomp_team_start): Add flags argument. Set
16630 thr->thread_pool->threads_busy to nthreads immediately after creating
16631 new pool. Use gomp_managed_threads_lock instead of
16632 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
16633 (gomp_team_end): Use gomp_managed_threads_lock instead of
16634 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
16635 of gomp_team_barrier_wait. If team->team_cancelled, call
16636 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16637 rather than thr->ts.work_share.
16638 (initialize_team): Don't call gomp_sem_init here.
16639 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16640 caller.
16641 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16642 * env.c (gomp_global_icv): Add default_device_var, target_data and
16643 bind_var initializers.
16644 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16645 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16646 gomp_places_list_len): New variables.
16647 (parse_bind_var, parse_one_place, parse_places_var): New functions.
16648 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16649 sized places.
16650 (gomp_cancel_var): New global variable.
16651 (parse_int): New function.
16652 (handle_omp_display_env): New function.
16653 (initialize_env): Use it. Initialize default_device_var.
16654 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
16655 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
16656 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
16657 been successfully parsed (and call gomp_init_affinity in that case).
16658 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16659 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16660 omp_get_team_num, omp_is_initial_device): New functions.
16661 * libgomp.h: Include stdlib.h.
16662 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16663 Define.
16664 (struct target_mem_desc): Forward declare.
16665 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16666 and thread_limit_var fields.
16667 (gomp_get_num_devices): New prototype.
16668 (gomp_cancel_var): New extern decl.
16669 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16670 team_cancelled and task_queued_count fields. Add comments about
16671 task_{,queued_,running_}count.
16672 (gomp_cancel_kind): New enum.
16673 (gomp_work_share_end_cancel): New prototype.
16674 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16675 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16676 and depend fields.
16677 (struct gomp_taskgroup): New type.
16678 (struct gomp_task_depend_entry,
16679 struct gomp_dependers_vec): New types.
16680 (gomp_finish_task): Free depend_hash if non-NULL.
16681 (struct gomp_team_state): Add place_partition_off
16682 and place_partition_len fields.
16683 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16684 gomp_places_list_len): New extern decls.
16685 (struct gomp_thread): Add place field.
16686 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16687 (gomp_init_thread_affinity): Add place argument.
16688 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16689 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16690 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16691 gomp_affinity_init_level, gomp_affinity_print_place): New
16692 prototypes.
16693 (gomp_team_start): Add flags argument.
16694 (gomp_thread_limit_var, gomp_remaining_threads_count,
16695 gomp_remaining_threads_lock): Remove.
16696 (gomp_managed_threads_lock): New variable.
16697 (struct gomp_thread_pool): Add threads_busy field.
16698 (gomp_free_thread): New prototype.
16699 * task.c: Include hashtab.h.
16700 (hash_entry_type): New typedef.
16701 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16702 (gomp_init_task): Clear dependers, depend_hash, depend_count,
16703 copy_ctors_done and taskgroup fields.
16704 (GOMP_task): Add depend argument, handle depend clauses. If
16705 gomp_team_barrier_cancelled or if it's taskgroup has been
16706 cancelled, don't queue or start new tasks. Set copy_ctors_done
16707 field if needed. Initialize taskgroup field. If copy_ctors_done
16708 and already cancelled, don't discard the task. If taskgroup is
16709 non-NULL, enqueue the task into taskgroup queue. Increment
16710 num_children field in taskgroup. Increment task_queued_count.
16711 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16712 gomp_task_run_post_remove_taskgroup): New inline functions.
16713 (gomp_task_run_post_handle_depend_hash,
16714 gomp_task_run_post_handle_dependers,
16715 gomp_task_run_post_handle_depend): New functions.
16716 (GOMP_taskwait): Use them. If more than one new tasks
16717 have been queued, wake other threads if needed.
16718 (gomp_barrier_handle_tasks): Likewise. If
16719 gomp_team_barrier_cancelled, don't start any new tasks, just free
16720 all tasks.
16721 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16722 * omp_lib.f90.in
16723 (omp_proc_bind_kind, omp_proc_bind_false,
16724 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16725 omp_proc_bind_spread): New params.
16726 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16727 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16728 omp_get_team_num, omp_is_initial_device): New interfaces.
16729 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16730 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16731 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16732 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16733 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16734 useless use omp_lib_kinds.
16735 * omp.h.in (omp_proc_bind_t): New typedef.
16736 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16737 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16738 omp_get_team_num, omp_is_initial_device): New prototypes.
16739 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16740 through to gomp_team_start.
16741 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16742 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16743 Adjust gomp_parallel_loop_start callers.
16744 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16745 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16746 GOMP_loop_end_cancel): New functions.
16747 (GOMP_parallel_end): Add ialias_redirect.
16748 * hashtab.h: New file.
16749 * libgomp.texi (Environment Variables): Minor cleanup,
16750 update section refs to OpenMP 4.0rc2.
16751 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16752 environment variables.
16753 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16754 team->work_shares_to_free to thr->ts.work_share before calling
16755 free_work_share.
16756 (gomp_work_share_end_cancel): New function.
16757 * config/linux/proc.c: Include errno.h.
16758 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16759 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16760 sizeof (cpu_set_t) to determine number of iterations. Fix up check
16761 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
16762 gomp_cpuset_size is sizeof (cpu_set_t).
16763 (gomp_init_num_threads): Initialize gomp_cpuset_size,
16764 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16765 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16766 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
16767 contain any logical CPUs.
16768 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16769 is NULL. Use gomp_cpusetp instead of &cpuset and pass
16770 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16771 pthread_getaffinity_np. Check gomp_places_list instead of
16772 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
16773 * config/linux/bar.c (gomp_barrier_wait_end,
16774 gomp_barrier_wait_last): Use BAR_* defines.
16775 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
16776 from state where needed. Set work_share_cancelled to 0 on last
16777 thread.
16778 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16779 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16780 functions.
16781 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16782 Add cpusetsize argument.
16783 (gomp_cpuset_size, gomp_cpusetp): Declare.
16784 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16785 (affinity_counter): Remove.
16786 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16787 if CPU_ALLOC_SIZE isn't defined.
16788 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16789 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16790 bind current thread to the first place.
16791 (gomp_init_thread_affinity): Rewritten. Add place argument, just
16792 pthread_setaffinity_np to gomp_places_list[place].
16793 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16794 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16795 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16796 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16797 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16798 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16799 (gomp_barrier_t): Add awaited_final field.
16800 (gomp_barrier_init): Initialize awaited_final field.
16801 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16802 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16803 prototypes.
16804 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
16805 defines.
16806 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16807 gomp_team_barrier_cancelled): New inline functions.
16808 (gomp_barrier_last_thread,
16809 gomp_team_barrier_set_task_pending,
16810 gomp_team_barrier_clear_task_pending,
16811 gomp_team_barrier_set_waiting_for_tasks,
16812 gomp_team_barrier_waiting_for_tasks,
16813 gomp_team_barrier_done): Use BAR_* defines.
16814 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16815 (gomp_barrier_wait_end): Use BAR_* defines.
16816 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16817 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16818 Use BAR_* defines.
16819 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16820 gomp_team_barrier_cancel): New functions.
16821 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16822 argument.
16823 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16824 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16825 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16826 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16827 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16828 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16829 (gomp_barrier_t): Add cancellable field.
16830 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16831 gomp_team_barrier_cancel): New prototypes.
16832 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16833 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16834 gomp_team_barrier_cancelled): New inline functions.
16835 (gomp_barrier_wait_start, gomp_barrier_last_thread,
16836 gomp_team_barrier_set_task_pending,
16837 gomp_team_barrier_clear_task_pending,
16838 gomp_team_barrier_set_waiting_for_tasks,
16839 gomp_team_barrier_waiting_for_tasks,
16840 gomp_team_barrier_done): Use BAR_* defines.
16841 * barrier.c (GOMP_barrier_cancel): New function.
16842 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16843 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16844 omp_proc_bind_spread): New params.
16845 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16846 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16847 omp_get_team_num, omp_is_initial_device): New externals.
16848 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16849 New functions.
16850 (gomp_resolve_num_threads): Adjust for thread_limit now being in
16851 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16852 infinity. If not nested, just return minimum of max_num_threads
16853 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16854 to the returned value. Otherwise, don't update atomically
16855 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16856 (GOMP_parallel_end): Adjust for thread_limit now being in
16857 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16858 infinity. Adjust threads_busy in the pool rather than
16859 gomp_remaining_threads_count. Remember team->nthreads and call
16860 gomp_team_end before adjusting threads_busy, if not nested
16861 afterwards, just set it to 1 non-atomically. Add ialias.
16862 (GOMP_parallel_start): Adjust gomp_team_start caller.
16863 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16864 * testsuite/libgomp.c/affinity-1.c: New test.
16865 * testsuite/libgomp.c/atomic-15.c: New test.
16866 * testsuite/libgomp.c/atomic-16.c: New test.
16867 * testsuite/libgomp.c/atomic-17.c: New test.
16868 * testsuite/libgomp.c/cancel-for-1.c: New test.
16869 * testsuite/libgomp.c/cancel-for-2.c: New test.
16870 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16871 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16872 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16873 * testsuite/libgomp.c/cancel-sections-1.c: New test.
16874 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16875 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16876 * testsuite/libgomp.c/depend-1.c: New test.
16877 * testsuite/libgomp.c/depend-2.c: New test.
16878 * testsuite/libgomp.c/depend-3.c: New test.
16879 * testsuite/libgomp.c/depend-4.c: New test.
16880 * testsuite/libgomp.c/for-1.c: New test.
16881 * testsuite/libgomp.c/for-1.h: New file.
16882 * testsuite/libgomp.c/for-2.c: New test.
16883 * testsuite/libgomp.c/for-2.h: New file.
16884 * testsuite/libgomp.c/for-3.c: New test.
16885 * testsuite/libgomp.c/pr58392.c: New test.
16886 * testsuite/libgomp.c/simd-1.c: New test.
16887 * testsuite/libgomp.c/simd-2.c: New test.
16888 * testsuite/libgomp.c/simd-3.c: New test.
16889 * testsuite/libgomp.c/simd-4.c: New test.
16890 * testsuite/libgomp.c/simd-5.c: New test.
16891 * testsuite/libgomp.c/simd-6.c: New test.
16892 * testsuite/libgomp.c/target-1.c: New test.
16893 * testsuite/libgomp.c/target-2.c: New test.
16894 * testsuite/libgomp.c/target-3.c: New test.
16895 * testsuite/libgomp.c/target-4.c: New test.
16896 * testsuite/libgomp.c/target-5.c: New test.
16897 * testsuite/libgomp.c/target-6.c: New test.
16898 * testsuite/libgomp.c/target-7.c: New test.
16899 * testsuite/libgomp.c/taskgroup-1.c: New test.
16900 * testsuite/libgomp.c/thread-limit-1.c: New test.
16901 * testsuite/libgomp.c/thread-limit-2.c: New test.
16902 * testsuite/libgomp.c/thread-limit-3.c: New test.
16903 * testsuite/libgomp.c/udr-1.c: New test.
16904 * testsuite/libgomp.c/udr-2.c: New test.
16905 * testsuite/libgomp.c/udr-3.c: New test.
16906 * testsuite/libgomp.c++/affinity-1.C: New test.
16907 * testsuite/libgomp.c++/atomic-10.C: New test.
16908 * testsuite/libgomp.c++/atomic-11.C: New test.
16909 * testsuite/libgomp.c++/atomic-12.C: New test.
16910 * testsuite/libgomp.c++/atomic-13.C: New test.
16911 * testsuite/libgomp.c++/atomic-14.C: New test.
16912 * testsuite/libgomp.c++/atomic-15.C: New test.
16913 * testsuite/libgomp.c++/cancel-for-1.C: New test.
16914 * testsuite/libgomp.c++/cancel-for-2.C: New test.
16915 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
16916 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
16917 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
16918 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
16919 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
16920 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
16921 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
16922 * testsuite/libgomp.c++/cancel-test.h: New file.
16923 * testsuite/libgomp.c++/for-9.C: New test.
16924 * testsuite/libgomp.c++/for-10.C: New test.
16925 * testsuite/libgomp.c++/for-11.C: New test.
16926 * testsuite/libgomp.c++/simd-1.C: New test.
16927 * testsuite/libgomp.c++/simd-2.C: New test.
16928 * testsuite/libgomp.c++/simd-3.C: New test.
16929 * testsuite/libgomp.c++/simd-4.C: New test.
16930 * testsuite/libgomp.c++/simd-5.C: New test.
16931 * testsuite/libgomp.c++/simd-6.C: New test.
16932 * testsuite/libgomp.c++/simd-7.C: New test.
16933 * testsuite/libgomp.c++/simd-8.C: New test.
16934 * testsuite/libgomp.c++/target-1.C: New test.
16935 * testsuite/libgomp.c++/target-2.C: New test.
16936 * testsuite/libgomp.c++/target-2-aux.cc: New file.
16937 * testsuite/libgomp.c++/target-3.C: New test.
16938 * testsuite/libgomp.c++/taskgroup-1.C: New test.
16939 * testsuite/libgomp.c++/udr-1.C: New test.
16940 * testsuite/libgomp.c++/udr-2.C: New test.
16941 * testsuite/libgomp.c++/udr-3.C: New test.
16942 * testsuite/libgomp.c++/udr-4.C: New test.
16943 * testsuite/libgomp.c++/udr-5.C: New test.
16944 * testsuite/libgomp.c++/udr-6.C: New test.
16945 * testsuite/libgomp.c++/udr-7.C: New test.
16946 * testsuite/libgomp.c++/udr-8.C: New test.
16947 * testsuite/libgomp.c++/udr-9.C: New test.
16948
16949 2013-09-20 Jakub Jelinek <jakub@redhat.com>
16950
16951 PR testsuite/57605
16952 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16953 ALWAYS_CFLAGS.
16954
16955 2013-09-20 Alan Modra <amodra@gmail.com>
16956
16957 * configure: Regenerate.
16958
16959 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16960
16961 * testsuite/libgomp.c/sections-2.c: New test.
16962
16963 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
16964
16965 * testsuite/libgomp.fortran/strassen.f90:
16966 Add dg-skip-if aarch64_tiny.
16967
16968 2013-06-20 Iain Sandoe <iain@codesourcery.com>
16969 Cesar Philippidis <cesar@codesourcery.com>
16970
16971 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16972 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16973 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16974 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16975 * testsuite/libgomp.graphite/graphite.exp: Likewise.
16976 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16977 Use dg-runtest rather than gfortran-dg-runtest.
16978
16979 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
16980
16981 * testsuite/libgomp.c/icv-2.c: Extend current handling of
16982 Linux-based x86 systems to cover all GNU systems.
16983 * testsuite/libgomp.c/lock-3.c: Likewise.
16984 * testsuite/libgomp.c/pr48591.c: Likewise.
16985
16986 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
16987
16988 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
16989 GNU/Hurd, as done for Linux-based systems.
16990
16991 * config/posix/ptrlock.h: Fix comment.
16992
16993 2013-05-27 Tobias Burnus <burnus@net-b.de>
16994
16995 PR fortran/57423
16996 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
16997 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
16998 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16999 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17000 omp_destroy_nest_lock): Correct arguments to match the one in
17001 the OpenMP spec.
17002 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17003 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17004 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17005 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17006
17007 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17008
17009 * testsuite/libgomp.c/loop-13.c: New test.
17010 * testsuite/libgomp.c/loop-14.c: New test.
17011 * testsuite/libgomp.c/loop-15.c: New test.
17012 * testsuite/libgomp.c++/loop-13.C: New test.
17013 * testsuite/libgomp.c++/loop-14.C: New test.
17014 * testsuite/libgomp.c++/loop-15.C: New test.
17015
17016 2013-02-06 Jakub Jelinek <jakub@redhat.com>
17017
17018 PR middle-end/56217
17019 * testsuite/libgomp.c++/pr56217.C: New test.
17020
17021 2013-02-01 Alan Modra <amodra@gmail.com>
17022
17023 * task.c (GOMP_task, GOMP_taskwait): Comment.
17024
17025 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17026 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17027
17028 PR libgomp/55561
17029 * config/linux/wait.h (do_spin): Use atomic load for addr.
17030 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17031 for intptr and ptrlock.
17032 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17033 for ptrlock.
17034
17035 2013-01-22 Alan Modra <amodra@gmail.com>
17036
17037 PR libgomp/51376
17038 PR libgomp/56073
17039 * task.c (GOMP_task): Revert 2011-12-09 change.
17040 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17041 barrier to read task->children..
17042 (gomp_barrier_handle_tasks): ..and matching atomic store with
17043 release barrier here when setting parent->children to NULL.
17044
17045 2013-01-16 Jakub Jelinek <jakub@redhat.com>
17046 Tobias Burnus <burnus@net-b.de>
17047
17048 PR driver/55884
17049 * testsuite/libgomp.fortran/fortran.exp: Use
17050 -fintrinsic-modules-path= instead of
17051 -fintrinsic-modules-path.
17052
17053 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17054
17055 Update copyright years.
17056
17057 2012-12-19 Tobias Burnus <burnus@net-b.de>
17058
17059 * testsuite/libgomp.fortran/fortran.exp: Set
17060 -fintrinsic-modules-path.
17061
17062 2012-12-19 Tobias Burnus <burnus@net-b.de>
17063
17064 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17065 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17066
17067 2012-11-21 Jakub Jelinek <jakub@redhat.com>
17068
17069 PR libgomp/55411
17070 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17071 if pool had any threads_used.
17072
17073 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17074
17075 * testsuite/libgomp.c++/pr24455.C: Use
17076 -Wl,-undefined,dynamic_lookup on darwin.
17077
17078 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
17079
17080 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17081
17082 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17083
17084 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17085
17086 2012-10-23 Ian Bolton <ian.bolton@arm.com>
17087 Jim MacArthur <jim.macarthur@arm.com>
17088 Marcus Shawcroft <marcus.shawcroft@arm.com>
17089 Nigel Stephens <nigel.stephens@arm.com>
17090 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17091 Richard Earnshaw <rearnsha@arm.com>
17092 Sofiane Naci <sofiane.naci@arm.com>
17093 Stephen Thomas <stephen.thomas@arm.com>
17094 Tejas Belagod <tejas.belagod@arm.com>
17095 Yufeng Zhang <yufeng.zhang@arm.com>
17096
17097 * configure.tgt: Add AArch64.
17098
17099 2012-10-04 Jason Merrill <jason@redhat.com>
17100
17101 * testsuite/libgomp.c++/tls-init1.C: New.
17102
17103 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
17104
17105 * configure: Regenerated.
17106
17107 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17108
17109 * config/linux/mips/futex.h (sys_futex0): Change to static
17110 function with noinline, nomips16 attributes under MIPS16. Adjust
17111 asm statement to place 'li v0,SYS_futex' immediately before
17112 syscall insn.
17113
17114 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17115
17116 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17117 conflict with index.html on case-insensitive file systems.
17118
17119 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17120
17121 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17122 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17123
17124 2012-07-02 Richard Guenther <rguenther@suse.de>
17125 Michael Matz <matz@suse.de>
17126 Tobias Grosser <tobias@grosser.es>
17127 Sebastian Pop <sebpop@gmail.com>
17128
17129 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17130 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17131 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17132 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17133
17134 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17135
17136 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17137
17138 2012-06-22 Richard Guenther <rguenther@suse.de>
17139
17140 Merge from graphite branch
17141 2012-01-13 Tobias Grosser <tobias@grosser.es>
17142
17143 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17144 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17145
17146 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17147
17148 PR middle-end/53580
17149 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17150 use GOMP_barrier () call instead.
17151 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17152 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17153 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17154 call GOMP_barrier instead.
17155 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17156
17157 2012-06-06 Jakub Jelinek <jakub@redhat.com>
17158
17159 PR libgomp/52993
17160 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17161 argument to memset call.
17162
17163 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17164
17165 * configure: Regenerated.
17166
17167 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17168
17169 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17170
17171 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17172
17173 PR bootstrap/52812
17174 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17175
17176 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17177
17178 PR middle-end/52547
17179 * testsuite/libgomp.c/pr52547.c: New test.
17180
17181 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17182
17183 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17184
17185 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17186
17187 * configure.tgt (mips-sgi-irix6*): Remove.
17188
17189 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17190
17191 * configure.tgt (alpha*-dec-osf*): Remove.
17192
17193 * config/osf/sem.h: Remove.
17194 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17195
17196 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17197
17198 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17199
17200 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17201
17202 PR libstdc++/52188
17203 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17204 Remove ENABLE_SYMVERS_SOL2.
17205 * configure: Regenerate.
17206 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17207 (PREPROCESS): New variable.
17208 (libgomp.ver): New target.
17209 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17210 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17211 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17212 Use libgomp.ver.
17213 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17214 * Makefile.in: Regenerate.
17215
17216 2012-02-14 Walter Lee <walt@tilera.com>
17217
17218 * configure.tgt: Handle tilegx and tilepro.
17219 * config/linux/tile/futex.h: New file.
17220
17221 2012-02-08 Richard Guenther <rguenther@suse.de>
17222
17223 PR tree-optimization/46886
17224 * testsuite/libgomp.c/pr46886.c: New testcase.
17225
17226 2012-01-25 Matthias Klose <doko@ubuntu.com>
17227
17228 * config/linux/arm: Remove empty directory.
17229 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17230
17231 2011-12-09 Alan Modra <amodra@gmail.com>
17232
17233 PR libgomp/51376
17234 * task.c (GOMP_taskwait): Don't access task->children outside of
17235 task_lock mutex region.
17236 (GOMP_task): Likewise.
17237
17238 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17239
17240 PR libgomp/51132
17241 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17242 to file scope.
17243 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17244 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17245 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17246 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17247 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17248
17249 2011-12-02 Alan Modra <amodra@gmail.com>
17250
17251 * config/linux/affinity.c: Use atomic rather than sync builtin.
17252 * config/linux/lock.c: Likewise.
17253 * config/linux/ptrlock.h: Likewise.
17254 * config/linux/ptrlock.c: Likewise.
17255 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17256 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17257 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17258 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17259 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17260 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17261 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17262 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17263 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17264 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17265
17266 2011-11-30 Alan Modra <amodra@gmail.com>
17267
17268 PR libgomp/51298
17269 * config/linux/bar.h: Use atomic rather than sync builtins.
17270 * config/linux/bar.c: Likewise. Add missing acquire
17271 synchronisation on generation field.
17272 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17273 double unlock.
17274
17275 2011-11-30 Alan Modra <amodra@gmail.com>
17276
17277 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17278 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17279 * config/linux/mutex.h: Use atomic rather than sync builtins.
17280 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17281 * config/linux/omp-lock.h: Comment fix.
17282 * config/linux/arm/mutex.h: Delete.
17283 * config/linux/powerpc/mutex.h: Delete.
17284 * config/linux/ia64/mutex.h: Delete.
17285 * config/linux/mips/mutex.h: Delete.
17286
17287 2011-11-30 Alan Modra <amodra@gmail.com>
17288
17289 PR libgomp/51249
17290 * config/linux/sem.h: Rewrite.
17291 * config/linux/sem.c: Rewrite.
17292
17293 2011-11-28 Richard Henderson <rth@redhat.com>
17294
17295 * libgomp.h (enum memmodel): New.
17296
17297 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
17298
17299 * configure: Regenerate.
17300
17301 2011-10-10 Matthias Klose <doko@ubuntu.com>
17302
17303 * config/posix95: Remove empty directory.
17304
17305 2011-08-26 Jakub Jelinek <jakub@redhat.com>
17306
17307 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17308
17309 2011-08-19 Jakub Jelinek <jakub@redhat.com>
17310
17311 PR fortran/49792
17312 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17313 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17314
17315 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17316
17317 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17318
17319 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17320
17321 PR libgomp/49965
17322 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17323
17324 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
17325
17326 * config/linux/proc.h: New.
17327 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
17328 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
17329 (gomp_init_num_threads): Update call to cpuset_popcount.
17330 (get_num_procs): Ditto.
17331 * config/linux/affinity.c (gomp_init_affinity): Call
17332 gomp_cpuset_popcount.
17333
17334 2011-08-02 Jakub Jelinek <jakub@redhat.com>
17335
17336 PR fortran/42041
17337 PR fortran/46752
17338 * omp.h.in (omp_in_final): New prototype.
17339 * omp_lib.f90.in (omp_in_final): New interface.
17340 (omp_integer_kind, omp_logical_kind): Remove
17341 and replace all its uses in the module with 4.
17342 (openmp_version): Change to 201107.
17343 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17344 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17345 kind for the parameters.
17346 (omp_in_final): New external.
17347 (openmp_version): Change to 201107.
17348 * task.c (omp_in_final): New function.
17349 (gomp_init_task): Initialize final_task.
17350 (GOMP_task): Remove unused attribute from flags. Handle final
17351 tasks.
17352 (GOMP_taskyield): New function.
17353 (omp_in_final): Return true if if (false) or final (true) task
17354 or descendant of final (true).
17355 * fortran.c (omp_in_final_): New function.
17356 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17357 (GOMP_3.0): Export GOMP_taskyield.
17358 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17359 variables.
17360 (parse_unsigned_long_list): New function.
17361 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
17362 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
17363 even if parse_affinity returned false.
17364 * config/linux/affinity.c (gomp_init_affinity): Handle
17365 gomp_cpu_affinity_len == 0.
17366 * libgomp_g.h (GOMP_taskyield): New prototype.
17367 * libgomp.h (struct gomp_task): Add final_task field.
17368 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17369 * team.c (gomp_team_start): Override new task's nthreads_var icv
17370 if list form OMP_NUM_THREADS has been used and it has value for
17371 the new nesting level.
17372
17373 * testsuite/libgomp.c/atomic-11.c: New test.
17374 * testsuite/libgomp.c/atomic-12.c: New test.
17375 * testsuite/libgomp.c/atomic-13.c: New test.
17376 * testsuite/libgomp.c/atomic-14.c: New test.
17377 * testsuite/libgomp.c/reduction-6.c: New test.
17378 * testsuite/libgomp.c/task-5.c: New test.
17379 * testsuite/libgomp.c++/atomic-2.C: New test.
17380 * testsuite/libgomp.c++/atomic-3.C: New test.
17381 * testsuite/libgomp.c++/atomic-4.C: New test.
17382 * testsuite/libgomp.c++/atomic-5.C: New test.
17383 * testsuite/libgomp.c++/atomic-6.C: New test.
17384 * testsuite/libgomp.c++/atomic-7.C: New test.
17385 * testsuite/libgomp.c++/atomic-8.C: New test.
17386 * testsuite/libgomp.c++/atomic-9.C: New test.
17387 * testsuite/libgomp.c++/task-8.C: New test.
17388 * testsuite/libgomp.c++/reduction-4.C: New test.
17389 * testsuite/libgomp.fortran/allocatable7.f90: New test.
17390 * testsuite/libgomp.fortran/allocatable8.f90: New test.
17391 * testsuite/libgomp.fortran/crayptr3.f90: New test.
17392 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17393 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17394 * testsuite/libgomp.fortran/pointer1.f90: New test.
17395 * testsuite/libgomp.fortran/pointer2.f90: New test.
17396 * testsuite/libgomp.fortran/task4.f90: New test.
17397
17398 2011-08-02 Tobias Burnus <burnus@net-b.de>
17399
17400 * libgomp.texi: Update OpenMP spec references to 3.1.
17401 (omp_in_final,OMP_PROC_BIND): New sections.
17402 (OMP_NUM_THREADS): Document that the value can be now a list.
17403 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17404
17405 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
17406
17407 * config/linux/x86/futex.h: Check __x86_64__ instead of
17408 __LP64__.
17409
17410 2011-07-29 Jakub Jelinek <jakub@redhat.com>
17411
17412 PR middle-end/49897
17413 PR middle-end/49898
17414 * testsuite/libgomp.c/pr49897-1.c: New test.
17415 * testsuite/libgomp.c/pr49897-2.c: New test.
17416 * testsuite/libgomp.c/pr49898-1.c: New test.
17417 * testsuite/libgomp.c/pr49898-2.c: New test.
17418
17419 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
17420
17421 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17422 for ia32 instead of ilp32.
17423
17424 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17425 * testsuite/libgomp.c/atomic-6.c: Likewise.
17426
17427 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
17428
17429 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17430 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17431
17432 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17433
17434 PR libgomp/45351
17435 * config/osf/sem.h: New file.
17436 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17437
17438 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17439
17440 PR target/49541
17441 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17442 ldflags.
17443
17444 2011-07-15 Jakub Jelinek <jakub@redhat.com>
17445
17446 * config/linux/wait.h (do_spin): New inline, largely copied
17447 from do_wait, just don't do futex_wait here, instead return true if
17448 it should be done.
17449 (do_wait): Implement using do_spin.
17450 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17451 to prototype.
17452 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17453 __sync_bool_compare_and_swap, pass the oldval to
17454 gomp_mutex_lock_slow.
17455 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17456 If all mutex contenders are just spinning and not sleeping, don't
17457 change state to 2 unnecessarily. Optimize the loop when state has
17458 already become 2 to use just one atomic operation per loop instead
17459 of two.
17460 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17461 to prototype.
17462 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17463 __sync_bool_compare_and_swap, pass the oldval to
17464 gomp_mutex_lock_slow.
17465
17466 2011-06-22 Jakub Jelinek <jakub@redhat.com>
17467
17468 PR libgomp/49490
17469 * iter.c (gomp_iter_static_next): For chunk size 0
17470 only use n ceil/ nthreads size for the first
17471 n % nthreads threads in the team instead of
17472 all threads except for the last few ones which
17473 get less work or none at all.
17474 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17475 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17476 chunk argument, set run_sched_modifier to 0 for static
17477 resp. 1 for other kinds. If chunk argument is 0
17478 and not static, set value to 1.
17479
17480 2011-05-19 Jakub Jelinek <jakub@redhat.com>
17481
17482 PR c++/49043
17483 * testsuite/libgomp.c++/pr49043.C: New test.
17484
17485 PR c++/48869
17486 * testsuite/libgomp.c++/pr48869.C: New test.
17487
17488 2011-05-06 Jakub Jelinek <jakub@redhat.com>
17489
17490 PR fortran/48894
17491 * fortran.c: Include limits.h.
17492 (TO_INT): Define.
17493 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17494 *set.
17495 (omp_set_num_threads_8_, omp_set_schedule_8_,
17496 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17497 omp_get_team_size_8_): Use TO_INT macro.
17498 * testsuite/libgomp.fortran/pr48894.f90: New test.
17499
17500 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17501
17502 PR middle-end/48591
17503 * testsuite/libgomp.c/pr48591.c: New test.
17504
17505 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17506
17507 PR bootstrap/48135
17508 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17509 * configure: Regenerate.
17510
17511 2011-02-27 Jakub Jelinek <jakub@redhat.com>
17512
17513 PR fortran/47886
17514 * testsuite/libgomp.fortran/task3.f90: New test.
17515
17516 2011-02-24 Tobias Burnus <burnus@net-b.de>
17517
17518 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17519
17520 2011-02-23 Jakub Jelinek <jakub@redhat.com>
17521
17522 PR libgomp/47854
17523 * libgomp.texi (omp_get_wtime): Don't say time in the past
17524 must be Unix Epoch.
17525
17526 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17527
17528 PR libgomp/47804
17529 * testsuite/libgomp.fortran/fortran.exp: Check for both
17530 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
17531 but $blddir != "", still append ${blddir}/${lang_library_path}
17532 to ld_library_path.
17533
17534 2011-02-16 Tobias Burnus <burnus@net-b.de>
17535
17536 PR libgomp/47758
17537 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17538 of libquadmath.a before adding its libpath to ldflags.
17539
17540 2011-02-14 Jakub Jelinek <jakub@redhat.com>
17541
17542 PR libgomp/47731
17543 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17544 to FUTEX_WAIT futex syscall.
17545 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17546
17547 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17548
17549 * configure: Regenerate.
17550
17551 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
17552
17553 PR libstdc++/36104
17554 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17555
17556 2011-01-16 Gerald Pfeifer
17557
17558 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17559
17560 2010-12-14 Jakub Jelinek <jakub@redhat.com>
17561
17562 PR fortran/46874
17563 * libgomp.fortran/allocatable6.f90: New test.
17564
17565 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17566
17567 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17568 * configure: Regenerate.
17569
17570 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
17571
17572 PR target/40125
17573 PR lto/46695
17574 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17575 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17576 * aclocal.m4: Regenerate.
17577 * configure: Regenerate.
17578 * Makefile.in: Regenerate.
17579 * testsuite/Makefile.in: Regenerate.
17580
17581 2010-12-02 Jakub Jelinek <jakub@redhat.com>
17582
17583 PR fortran/46753
17584 * libgomp.fortran/pr46753.f90: New test.
17585
17586 PR libgomp/43706
17587 * env.c (initialize_env): Default to spin count 300000
17588 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17589 is specified.
17590
17591 PR libgomp/45240
17592 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17593 at the end if sync builtins aren't supported.
17594
17595 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17596
17597 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17598
17599 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17600
17601 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17602
17603 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
17604
17605 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17606
17607 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17608 Tobias Burnus <burnus@net-b.de>
17609
17610 PR fortran/32049
17611 * configure.ac:
17612 * configure: Regenerate.
17613
17614 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
17615
17616 * config/linux/futex.h: New.
17617 * config/linux/arm/mutex.h: New.
17618 * configure.tgt (arm*-*-linux*): Add config path.
17619
17620 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
17621
17622 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17623
17624 2010-09-23 Tobias Burnus <burnus@net-b.de>
17625
17626 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17627 Change Fortran datatype to LOGICAL.
17628 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17629 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17630
17631 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17632
17633 * configure: Regenerate.
17634
17635 2010-07-26 Jakub Jelinek <jakub@redhat.com>
17636
17637 * libgomp.texi: Add function keyword to a couple of Fortran
17638 interfaces, use integer instead of int for Fortran.
17639
17640 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
17641
17642 * libgomp.texi: Fix spelling and pasto problems throughout.
17643 Adjust prototypes to match code.
17644
17645 2010-07-24 Tobias Burnus <burnus@net-b.de>
17646
17647 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17648 silence -fwhole-file warning.
17649
17650 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17651
17652 * configure.tgt (*-*-solaris2.[56]*): Removed.
17653
17654 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17655
17656 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17657 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17658 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17659 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17660 targetting solaris2*.
17661 * configure: Regenerate.
17662 * config.h.in: Regenerate.
17663
17664 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17665 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17666 Add libgomp_version_dep.
17667 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17668 versioning.
17669 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17670 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17671 * Makefile.in: Regenerate.
17672
17673 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17674 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17675 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17676 to common block, protected by
17677 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17678
17679 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
17680
17681 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
17682
17683 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
17684
17685 PR bootstrap/43170
17686 * configure: Regenerate.
17687
17688 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17689
17690 PR other/43620
17691 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17692 * configure: Regenerate.
17693 * Makefile.in: Regenerate.
17694 * testsuite/Makefile.in: Regenerate.
17695
17696 2010-04-26 Jakub Jelinek <jakub@redhat.com>
17697
17698 PR c/43893
17699 * testsuite/libgomp.c/pr43893.c: New test.
17700 * testsuite/libgomp.c++/pr43893.C: New test.
17701
17702 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17703
17704 PR middle-end/43570
17705 * testsuite/libgomp.fortran/vla8.f90: New test.
17706
17707 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17708
17709 PR libgomp/43706
17710 * config/linux/affinity.c (gomp_init_affinity): Decrease
17711 gomp_available_cpus if affinity mask confines the process to fewer
17712 CPUs.
17713 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17714 non-NULL, just return gomp_available_cpus.
17715
17716 PR libgomp/43569
17717 * sections.c (gomp_sections_init): Initialize ws->mode.
17718
17719 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17720
17721 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17722 not unused bar variable.
17723 * configure: Regenerate.
17724
17725 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17726
17727 * Makefile.in: Regenerate.
17728 * aclocal.m4: Regenerate.
17729 * testsuite/Makefile.in: Regenerate.
17730
17731 2010-03-22 Jakub Jelinek <jakub@redhat.com>
17732
17733 PR libgomp/42942
17734 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17735 (initialize_env): Adjust callers.
17736 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17737 when the argument is 0.
17738
17739 * testsuite/libgomp.c/pr42942.c: New test.
17740
17741 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17742
17743 PR middle-end/42644
17744 PR middle-end/42130
17745 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17746 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17747
17748 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17749
17750 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17751 * testsuite/libgomp.c++/task-6.C: Likewise.
17752
17753 2010-01-28 Steve Ellcey <sje@cup.hp.com>
17754
17755 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17756
17757 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
17758
17759 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17760 * configure: Regenerate.
17761
17762 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17763
17764 PR fortran/42866
17765 * testsuite/libgomp.fortran/allocatable5.f90: New test.
17766
17767 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
17768
17769 * configure.ac: Test for executability of GFORTRAN.
17770 * configure: Regenerate.
17771
17772 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17773
17774 * configure: Regenerate.
17775
17776 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
17777
17778 PR libgomp/42602
17779 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17780
17781 2010-01-03 Richard Guenther <rguenther@suse.de>
17782
17783 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17784
17785 2009-12-23 Sebastian Pop <sebpop@gmail.com>
17786
17787 * testsuite/libgomp.graphite/pr4118.c: New.
17788
17789 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17790
17791 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17792 for darwin, protect the test with require-effective-target tls_runtime.
17793 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17794
17795 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17796
17797 PR target/41605
17798 * testsuite/lib/libgomp.exp: Provide -B options to allow for
17799 link spec %s substitutions for static libraries.
17800
17801 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
17802
17803 PR testsuite/42135
17804 * libgomp.graphite/force-parallel-2.c: Reduce array size.
17805
17806 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17807
17808 * Makefile.in: Regenerate.
17809 * configure: Regenerate.
17810 * testsuite/Makefile.in: Regenerate.
17811
17812 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
17813
17814 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17815 settings for LC_ALL and LANG.
17816
17817 2009-11-25 Jakub Jelinek <jakub@redhat.com>
17818
17819 PR fortran/42162
17820 * testsuite/libgomp.fortran/pr42162.f90: New test.
17821
17822 2009-11-13 Jakub Jelinek <jakub@redhat.com>
17823
17824 PR middle-end/42029
17825 * testsuite/libgomp.c/pr42029.c: New test.
17826
17827 2009-10-26 Jakub Jelinek <jakub@redhat.com>
17828
17829 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17830 *s. Accept ld version without text in ()s.
17831 * configure: Regenerated.
17832
17833 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
17834
17835 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17836
17837 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17838
17839 PR libgomp/41418
17840 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17841 or a hyphen (happens with fortran language disabled).
17842 * configure: Regenerate.
17843
17844 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17845
17846 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17847 use sed script portable to Solaris /bin/sed for extracting ld
17848 version.
17849 * configure: Regenerate.
17850
17851 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
17852
17853 * testsuite/libgomp.graphite/bounds.c: New test.
17854
17855 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17856
17857 * Makefile.am (libgomp_la_LINK): New.
17858 * Makefile.in: Regenerate.
17859
17860 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17861
17862 * configure.ac (AC_PREREQ): Bump to 2.64.
17863
17864 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17865
17866 * Makefile.am (install-html, install-pdf): Remove.
17867 * Makefile.in: Regenerate.
17868
17869 * Makefile.in: Regenerate.
17870 * aclocal.m4: Regenerate.
17871 * config.h.in: Regenerate.
17872 * configure: Regenerate.
17873 * testsuite/Makefile.in: Regenerate.
17874
17875 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17876
17877 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17878 * Makefile.in: Regenerate.
17879
17880 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
17881
17882 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17883 * Makefile.in: Regenerate.
17884
17885 2009-08-19 Tobias Burnus <burnus@net-b.de>
17886
17887 PR fortran/41102
17888 omp_lib.h.in: Fix -std=f95 errors.
17889
17890 2009-08-14 David Edelsohn <edelsohn@gnu.org>
17891
17892 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17893 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17894 * testsuite/libgomp.graphite/graphite.exp: New.
17895
17896 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
17897
17898 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17899 only build.
17900
17901 2009-08-04 David Daney <ddaney@caviumnetworks.com>
17902
17903 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
17904 needed memory barrier semantics.
17905 * config/linux/mips/mutex.h: New file.
17906
17907 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17908
17909 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
17910
17911 2009-07-16 Joseph Myers <joseph@codesourcery.com>
17912
17913 * configure: Regenerate.
17914
17915 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
17916
17917 PR testsuite/40699
17918 PR testsuite/40707
17919 PR testsuite/40709
17920 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
17921 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
17922 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
17923
17924 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
17925
17926 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
17927 options when choosing a multilib.
17928
17929 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
17930
17931 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
17932 ld_library_path. Use add_path. Add just find_libgcc_s to
17933 ld_library_path, not every libgcc multilib directory.
17934 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
17935 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
17936 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
17937 Use add_path.
17938 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
17939
17940 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
17941
17942 * Makefile.am (LTLDFLAGS): Define.
17943 (LINK): Define.
17944 * Makefile.in: Regenerate.
17945
17946 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
17947
17948 PR fortran/39718
17949 * testsuite/libgomp.fortran/fortran.exp: Don't link with
17950 libgfortranbegin, check existence of libgfortran.a instead of
17951 libgfortranbegin.a.
17952
17953 2009-05-20 Jakub Jelinek <jakub@redhat.com>
17954
17955 PR libgomp/40174
17956 * team.c (gomp_thread_start): Destroy thr->release semaphore.
17957 (gomp_free_pool_helper): Likewise.
17958
17959 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
17960 Jakub Jelinek <jakub@redhat.com>
17961
17962 PR fortran/35423
17963 * testsuite/libgomp.fortran/workshare2.f90: New test.
17964
17965 2009-04-09 Nick Clifton <nickc@redhat.com>
17966
17967 * iter.c: Change copyright header to refer to version 3 of the
17968 GNU General Public License with version 3.1 of the GCC Runtime
17969 Library Exception and to point readers at the COPYING3 and
17970 COPYING3.RUNTIME files and the FSF's license web page.
17971 * alloc.c: Likewise.
17972 * barrier.c: Likewise.
17973 * config/bsd/proc.c: Likewise.
17974 * config/linux/affinity.c: Likewise.
17975 * config/linux/alpha/futex.h: Likewise.
17976 * config/linux/bar.c: Likewise.
17977 * config/linux/bar.h: Likewise.
17978 * config/linux/ia64/futex.h: Likewise.
17979 * config/linux/ia64/mutex.h: Likewise.
17980 * config/linux/lock.c: Likewise.
17981 * config/linux/mips/futex.h: Likewise.
17982 * config/linux/mutex.c: Likewise.
17983 * config/linux/mutex.h: Likewise.
17984 * config/linux/powerpc/futex.h: Likewise.
17985 * config/linux/proc.c: Likewise.
17986 * config/linux/ptrlock.c: Likewise.
17987 * config/linux/ptrlock.h: Likewise.
17988 * config/linux/s390/futex.h: Likewise.
17989 * config/linux/sem.c: Likewise.
17990 * config/linux/sem.h: Likewise.
17991 * config/linux/sparc/futex.h: Likewise.
17992 * config/linux/wait.h: Likewise.
17993 * config/linux/x86/futex.h: Likewise.
17994 * config/mingw32/proc.c: Likewise.
17995 * config/mingw32/time.c: Likewise.
17996 * config/posix/affinity.c: Likewise.
17997 * config/posix/bar.c: Likewise.
17998 * config/posix/bar.h: Likewise.
17999 * config/posix/lock.c: Likewise.
18000 * config/posix/mutex.h: Likewise.
18001 * config/posix/proc.c: Likewise.
18002 * config/posix/ptrlock.h: Likewise.
18003 * config/posix/sem.c: Likewise.
18004 * config/posix/sem.h: Likewise.
18005 * config/posix/time.c: Likewise.
18006 * config/posix95/lock.c: Likewise.
18007 * critical.c: Likewise.
18008 * env.c: Likewise.
18009 * error.c: Likewise.
18010 * fortran.c: Likewise.
18011 * iter_ull.c: Likewise.
18012 * libgomp.h: Likewise.
18013 * libgomp_f.h.in: Likewise.
18014 * libgomp_g.h: Likewise.
18015 * loop.c: Likewise.
18016 * loop_ull.c: Likewise.
18017 * omp.h.in: Likewise.
18018 * omp_lib.f90.in: Likewise.
18019 * omp_lib.h.in: Likewise.
18020 * ordered.c: Likewise.
18021 * parallel.c: Likewise.
18022 * sections.c: Likewise.
18023 * single.c: Likewise.
18024 * task.c: Likewise.
18025 * team.c: Likewise.
18026 * work.c: Likewise.
18027
18028 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18029
18030 * testsuite/config/default.exp: Change copyright header to refer to
18031 version 3 of the GNU General Public License and to point readers
18032 at the COPYING3 file and the FSF's license web page.
18033
18034 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18035
18036 PR middle-end/39573
18037 * libgomp.c++/pr39573.C: New test.
18038
18039 2009-04-01 Jakub Jelinek <jakub@redhat.com>
18040
18041 PR other/39591
18042 * testsuite/libgomp.c/pr39591-1.c: New test.
18043 * testsuite/libgomp.c/pr39591-2.c: New test.
18044 * testsuite/libgomp.c/pr39591-3.c: New test.
18045
18046 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
18047
18048 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18049 * testsuite/libgomp.c/atomic-6.c: Ditto.
18050
18051 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18052
18053 PR c/39495
18054 * testsuite/libgomp.c/loop-12.c: New test.
18055 * testsuite/libgomp.c/loop-11.c: New test.
18056 * testsuite/libgomp.c++/loop-11.C: New test.
18057 * testsuite/libgomp.c++/loop-12.C: New test.
18058 * testsuite/libgomp.c++/for-8.C: New test.
18059
18060 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18061
18062 * configure: Regenerate.
18063
18064 2009-02-11 Jakub Jelinek <jakub@redhat.com>
18065
18066 PR middle-end/39154
18067 * testsuite/libgomp.c/pr39154.c: New test.
18068
18069 2009-01-30 Ian Lance Taylor <iant@google.com>
18070
18071 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18072 libgomp_ld_is_gold. Get gold version number.
18073 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18074 * configure: Rebuild.
18075
18076 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18077
18078 * testsuite/lib/libgomp.exp: Add -B option for targets that
18079 use libgfortran.a%s in their specs.
18080
18081 2009-01-07 Jakub Jelinek <jakub@redhat.com>
18082
18083 PR libgomp/38086
18084 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18085 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18086 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18087 * configure: Regenerated.
18088 * config.h.in: Likewise.
18089
18090 2008-12-28 Jakub Jelinek <jakub@redhat.com>
18091
18092 PR c++/38650
18093 * testsuite/libgomp.c/pr38650.c: New test.
18094 * testsuite/libgomp.c++/pr38650.C: New test.
18095
18096 2008-12-27 Jakub Jelinek <jakub@redhat.com>
18097
18098 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18099
18100 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
18101
18102 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18103
18104 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18105
18106 * configure: Regenerate.
18107
18108 2008-12-08 Jakub Jelinek <jakub@redhat.com>
18109
18110 PR middle-end/36802
18111 * testsuite/libgomp.c/pr36802-1.c: New test.
18112 * testsuite/libgomp.c/pr36802-2.c: New test.
18113 * testsuite/libgomp.c/pr36802-3.c: New test.
18114
18115 2008-12-01 Janis Johnson <janis187@us.ibm.com>
18116
18117 PR libgomp/38270
18118 * config/linux/powerpc/mutex.h: New.
18119
18120 2008-12-01 Jakub Jelinek <jakub@redhat.com>
18121
18122 PR c++/38257
18123 * testsuite/libgomp.c++/for-7.C: New test.
18124
18125 PR c++/38348
18126 * testsuite/libgomp.c++/for-6.C: New test.
18127
18128 2008-11-26 Janis Johnson <janis187@us.ibm.com>
18129
18130 PR testsuite/28870
18131 * testsuite/lib/libgomp.exp: Include new timeout library files.
18132 (libgomp_target_compile): Set timeout value from new proc.
18133
18134 2008-11-13 Steve Ellcey <sje@cup.hp.com>
18135
18136 PR libgomp/37938
18137 * config/linux/ia64/mutex.h: New.
18138
18139 2008-11-04 Tobias Burnus <burnus@net-b.de>
18140
18141 PR libgomp/37935
18142 * libgomp.texi (Runtime library routines, environment variables):
18143 Update for OpenMP version 3.0.
18144
18145 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18146 Steve Ellcey <sje@cup.hp.com>
18147
18148 * configure: Regenerate for new libtool.
18149 * Makefile.in: Ditto.
18150 * testsuite/Makefile.in: Ditto.
18151
18152 2008-09-19 Jakub Jelinek <jakub@redhat.com>
18153 Andreas Tobler <a.tobler@schweiz.org>
18154
18155 * config/bsd/proc.c: New file.
18156 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18157 * configure.ac: Check for header <sys/sysctl.h>
18158 * configure: Regenerate.
18159 * config.h.in: Likewise.
18160
18161 2008-09-05 Janis Johnson <janis187@us.ibm.com>
18162
18163 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18164
18165 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18166
18167 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18168 * Makefile.in: Regenerated.
18169 * testsuite/Makefile.in: Regenerated.
18170
18171 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
18172
18173 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18174 depend on blddir if blddir exists.
18175 (libgomp_target_compile): Likewise.
18176 * testsuite/libgomp.c++/c++.exp: Likewise.
18177 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18178
18179 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18180
18181 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18182 Do not list GPL as Invariant Section.
18183
18184 2008-07-28 Ilie Garbacea <ilie@mips.com>
18185 Chao-ying Fu <fu@mips.com>
18186
18187 * configure.tgt: Enable futex for MIPS.
18188 * config/linux/mips/futex.h: New file.
18189
18190 2008-07-16 Jakub Jelinek <jakub@redhat.com>
18191
18192 * team.c (gomp_team_end): Free team immediately if it has
18193 just one thread.
18194
18195 2008-07-08 David Edelsohn <edelsohn@gnu.org>
18196
18197 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18198 * testsuite/libgomp.fortran/fortran.exp: Same.
18199 * testsuite/libgomp.c/c.exp: Same.
18200 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18201 directory to library path first.
18202
18203 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18204
18205 * env.c (parse_stacksize): Add cast to avoid warning.
18206 (parse_spincount): Likewise.
18207
18208 2008-06-27 Jakub Jelinek <jakub@redhat.com>
18209
18210 * testsuite/libgomp.c/loop-10.c: New test.
18211 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18212 * libgomp.c++/loop-6.C (main): Likewise.
18213
18214 PR debug/36617
18215 * testsuite/libgomp.c/debug-1.c: New test.
18216
18217 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18218
18219 * testsuite/libgomp.c/nqueens-1.c: New test.
18220
18221 PR c++/36523
18222 * testsuite/libgomp.c++/task-7.C: New function.
18223
18224 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18225
18226 * configure: Regenerate.
18227
18228 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18229
18230 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18231 mutex when HAVE_SYNC_BUILTINS isn't defined.
18232
18233 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18234
18235 * libgomp.texi (omp_test_lock): Fix typo.
18236
18237 2008-06-12 Tobias Burnus <burnus@net-b.de>
18238
18239 * omp_lib.f90.in: Add "implicit none".
18240
18241 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18242
18243 PR middle-end/36506
18244 * testsuite/libgomp.c/reduction-5.c: New test.
18245
18246 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18247
18248 * libgomp.h (struct gomp_task): Add in_tied_task field.
18249 * task.c (gomp_init_task): Initialize it.
18250 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18251 unconditionally. Don't call gomp_team_barrier_wake if
18252 current task is implicit or if(0) from implicit and number of
18253 running tasks is equal to nthreads - 1.
18254
18255 PR libgomp/36471
18256 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18257 omp_get_team_size_8): Fix pastos.
18258
18259 PR libgomp/36469
18260 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18261 * configure: Regenerated.
18262 * config.h.in: Regenerated.
18263 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18264 defined.
18265
18266 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18267
18268 PR bootstrap/36452
18269 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18270 (GOMP_loop_ull_dynamic_start): Likewise.
18271 (GOMP_loop_ull_guided_start): Likewise.
18272 (GOMP_loop_ull_ordered_static_start): Likewise.
18273 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18274 (GOMP_loop_ull_ordered_guided_start): Likewise.
18275
18276 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18277 Richard Henderson <rth@redhat.com>
18278 Ulrich Drepper <drepper@redhat.com>
18279 Jakob Blomer <jakob.blomer@ira.uka.de>
18280
18281 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18282 Substitute also OMP_*LOCK_25*.
18283 * configure: Regenerated.
18284 * config.h.in: Regenerated.
18285 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18286 ptrlock.c and task.c.
18287 * Makefile.in: Regenerated.
18288 * testsuite/Makefile.in: Regenerated.
18289 * task.c: New file.
18290 * loop_ull.c: New file.
18291 * iter_ull.c: New file.
18292 * libgomp.h: Include ptrlock.h.
18293 (enum gomp_task_kind): New type.
18294 (struct gomp_team): Add task_lock, task_queue, task_count,
18295 task_running_count, single_count fields. Add
18296 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18297 Remove work_share_lock, generation_mask,
18298 oldest_live_gen, num_live_gen and init_work_shares fields, add
18299 work work_share_list_alloc, work_share_list_free and work_share_chunk
18300 fields. Change work_shares from pointer to pointers into an array.
18301 Change ordered_release field into gomp_sem_t ** from flexible array
18302 member. Add implicit_task and initial_work_shares fields.
18303 Move close to the end of the struct.
18304 (struct gomp_team_state): Add single_count, last_work_share,
18305 active_level and level fields, remove work_share_generation.
18306 (gomp_barrier_handle_tasks): New prototype.
18307 (gomp_finish_task): New inline function.
18308 (struct gomp_work_share): Move chunk_size, end, incr into
18309 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18310 next_ll fields. Reshuffle fields. Add next_alloc,
18311 next_ws, next_free and inline_ordered_team_ids fields, change
18312 ordered_team_ids into pointer from flexible array member.
18313 Add mode field. Put lock and next into a different cache line
18314 from most of the write-once fields.
18315 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18316 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18317 gomp_iter_ull_guided_next): New prototypes.
18318 (gomp_new_icv): New prototype.
18319 (struct gomp_thread): Add thread_pool and task fields.
18320 (struct gomp_thread_pool): New type.
18321 (gomp_new_team): New prototype.
18322 (gomp_team_start): Change type of last argument.
18323 (gomp_new_work_share): Removed.
18324 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18325 (gomp_work_share_init_done): New static inline.
18326 (gomp_throttled_spin_count_var, gomp_available_cpus,
18327 gomp_managed_threads): New extern decls.
18328 (gomp_init_task): New prototype.
18329 (gomp_spin_count_var): New extern var decl.
18330 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18331 or no alias support, or if not PIC.
18332 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18333 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18334 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18335 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18336 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18337 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18338 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18339 gomp_test_nest_lock_25): New prototypes.
18340 (omp_lock_symver, strong_alias): Define.
18341 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18342 decls.
18343 (gomp_end_task): New.
18344 (struct gomp_task_icv, gomp_global_icv): New.
18345 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18346 (struct gomp_task): New.
18347 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18348 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18349 (gomp_icv): New.
18350 (gomp_schedule_type): Reorder enum to match
18351 omp_sched_t.
18352 * team.c (struct gomp_thread_start_data): Add thread_pool and task
18353 fields.
18354 (gomp_thread_start): Add gomp_team_barrier_wait call.
18355 For non-nested case remove clearing of docked thread thr fields.
18356 Use pool fields instead of global gomp_* variables. Use
18357 gomp_barrier_wait_last when needed. Initialize ts.active_level.
18358 Create tasks for each member thread.
18359 (free_team): Only destroy team barrier, task_lock here and free it.
18360 (gomp_free_thread): Free last_team if non-NULL.
18361 (gomp_team_end): Call gomp_team_barrier_wait instead of
18362 gomp_barrier_wait. For nested case call one extra
18363 gomp_barrier_wait. Move here some destruction from free_team.
18364 Call free_team on pool->last_team if any, rather than freeing
18365 current team. Destroy work_share_list_free_lock ifndef
18366 HAVE_SYNC_BUILTINS.
18367 (gomp_new_icv): New function.
18368 (gomp_threads, gomp_threads_size, gomp_threads_used,
18369 gomp_threads_dock): Removed.
18370 (gomp_thread_destructor): New variable.
18371 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18372 functions.
18373 (gomp_team_start): Create new pool if current thread doesn't have
18374 one. Use pool fields instead of global gomp_* variables.
18375 Initialize thread_pool field for new threads. Clear single_count.
18376 Change last argument from ws to team, don't create
18377 new team, set ts.work_share to &team->work_shares[0] and clear
18378 ts.last_work_share. Don't clear ts.work_share_generation.
18379 If number of threads changed, adjust atomically gomp_managed_threads.
18380 Use gomp_init_task instead of gomp_new_task,
18381 set thr->task to the corresponding implicit_task array entry.
18382 Create tasks for each member thread. Initialize ts.level.
18383 (initialize_team): Call pthread_key_create on
18384 gomp_thread_destructor.
18385 (team_destructor): New function.
18386 (new_team): Removed.
18387 (gomp_new_team): New function.
18388 (free_team): Free gomp_work_share blocks chained through next_alloc,
18389 instead of freeing work_shares and destroying work_share_lock.
18390 (gomp_team_end): Call gomp_fini_work_share. If number of threads
18391 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
18392 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18393 of gomp_barrier_wait.
18394 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18395 instead of gomp_barrier_wait. Call gomp_work_share_init_done
18396 if gomp_work_share_start returned true. Don't unlock ws->lock.
18397 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18398 of gomp_barrier_wait.
18399 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
18400 gomp_work_share_init_done if gomp_work_share_start returned true.
18401 Don't unlock ws->lock.
18402 * work.c: Include stddef.h.
18403 (free_work_share): Use work_share_list_free_lock instead
18404 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
18405 Call gomp_fini_work_share and then either free ws if orphaned, or
18406 put it into work_share_list_free list of the current team.
18407 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18408 functions.
18409 (gomp_work_share_start, gomp_work_share_end,
18410 gomp_work_share_end_nowait): Rewritten.
18411 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18412 (openmp_version): Set to 200805.
18413 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18414 omp_sched_guided, omp_sched_auto): New parameters.
18415 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18416 omp_set_max_active_levels, omp_get_max_active_levels,
18417 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18418 omp_get_active_level): New interfaces.
18419 * omp_lib.h.in (openmp_version): Set to 200805.
18420 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18421 omp_sched_guided, omp_sched_auto): New parameters.
18422 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18423 omp_set_max_active_levels, omp_get_max_active_levels,
18424 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18425 omp_get_active_level): New externals.
18426 * loop.c: Include limits.h.
18427 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18428 GFS_AUTO.
18429 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18430 Likewise. Use gomp_icv.
18431 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18432 ts.static_trip here.
18433 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18434 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
18435 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18436 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
18437 don't unlock ws->lock, otherwise lock it.
18438 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18439 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
18440 (gomp_parallel_loop_start): Call gomp_new_team instead of
18441 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
18442 Adjust gomp_team_start caller. Pass 0 as second argument to
18443 gomp_resolve_num_threads.
18444 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18445 If adding ws->chunk_size nthreads + 1 times after end won't
18446 overflow, set ws->mode to 1.
18447 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18448 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18449 GOMP_loop_ull_ordered_static_start,
18450 GOMP_loop_ull_ordered_dynamic_start,
18451 GOMP_loop_ull_ordered_guided_start,
18452 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18453 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18454 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18455 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18456 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18457 prototypes.
18458 * libgomp.map: Export lock routines also @@OMP_2.0.
18459 (GOMP_loop_ordered_dynamic_first,
18460 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18461 GOMP_loop_ordered_static_first): Remove.
18462 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18463 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18464 GOMP_loop_ull_ordered_dynamic_next,
18465 GOMP_loop_ull_ordered_dynamic_start,
18466 GOMP_loop_ull_ordered_guided_next,
18467 GOMP_loop_ull_ordered_guided_start,
18468 GOMP_loop_ull_ordered_runtime_next,
18469 GOMP_loop_ull_ordered_runtime_start,
18470 GOMP_loop_ull_ordered_static_next,
18471 GOMP_loop_ull_ordered_static_start,
18472 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18473 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18474 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18475 (omp_set_schedule, omp_get_schedule,
18476 omp_get_thread_limit, omp_set_max_active_levels,
18477 omp_get_max_active_levels, omp_get_level,
18478 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18479 omp_set_schedule_, omp_set_schedule_8_,
18480 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18481 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18482 omp_get_max_active_levels_, omp_get_level_,
18483 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18484 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18485 New exports @@OMP_3.0.
18486 * omp.h.in (omp_sched_t): New type.
18487 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18488 omp_set_max_active_levels, omp_get_max_active_levels,
18489 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18490 omp_get_active_level): New prototypes.
18491 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18492 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18493 gomp_thread_limit_var, gomp_remaining_threads_count,
18494 gomp_remaining_threads_lock): New variables.
18495 (parse_spincount): New function.
18496 (initialize_env): Call gomp_init_num_threads unconditionally.
18497 Initialize gomp_available_cpus. Call parse_spincount,
18498 initialize gomp_{,throttled_}spin_count_var
18499 depending on presence and value of OMP_WAIT_POLICY and
18500 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
18501 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18502 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
18503 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
18504 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
18505 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18506 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18507 (gomp_global_icv): New.
18508 (parse_schedule): Use it. Parse "auto".
18509 (omp_set_num_threads): Use gomp_icv.
18510 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18511 Likewise.
18512 (omp_get_max_threads): Move from parallel.c.
18513 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18514 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18515 add ialias.
18516 (parse_stacksize, parse_wait_policy): New functions.
18517 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18518 both wrappers for compatibility and new locks.
18519 (omp_set_schedule, omp_get_schedule,
18520 omp_get_thread_limit, omp_set_max_active_levels,
18521 omp_get_max_active_levels, omp_get_level,
18522 omp_get_ancestor_thread_num, omp_get_team_size,
18523 omp_get_active_level): New ialias_redirect.
18524 (omp_set_schedule_, omp_set_schedule_8_,
18525 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18526 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18527 omp_get_max_active_levels_, omp_get_level_,
18528 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18529 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18530 New functions.
18531 * parallel.c: Include limits.h.
18532 (gomp_resolve_num_threads): Add count argument. Rewritten.
18533 (GOMP_parallel_start): Call gomp_new_team and pass that as last
18534 argument to gomp_team_start. Pass 0 as second argument to
18535 gomp_resolve_num_threads.
18536 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18537 if gomp_thread_limit_var != ULONG_MAX.
18538 (omp_in_parallel): Implement using ts.active_level.
18539 (omp_get_max_threads): Move to env.c.
18540 (omp_get_level, omp_get_ancestor_thread_num,
18541 omp_get_team_size, omp_get_active_level): New functions,
18542 add ialias.
18543 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18544 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
18545 gomp_iter_dynamic_next instead of the _locked variant and don't take
18546 lock around it, otherwise acquire it before calling
18547 gomp_iter_dynamic_next_locked.
18548 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18549 gomp_iter_dynamic_next instead of the _locked variant and don't take
18550 lock around it.
18551 (GOMP_parallel_sections_start): Call gomp_new_team instead of
18552 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
18553 Adjust gomp_team_start caller. Pass count as second argument to
18554 gomp_resolve_num_threads, don't adjust num_threads after the call.
18555 Use gomp_icv.
18556 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18557 ws->chunk_size by incr.
18558 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
18559 code.
18560 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18561 types.
18562 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18563 (omp_check_defines): Check even the compat defines.
18564 * config/linux/ptrlock.c: New file.
18565 * config/linux/ptrlock.h: New file.
18566 * config/linux/wait.h: New file.
18567 * config/posix/ptrlock.c: New file.
18568 * config/posix/ptrlock.h: New file.
18569 * config/linux/bar.h (gomp_team_barrier_wait,
18570 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18571 (gomp_team_barrier_set_task_pending,
18572 gomp_team_barrier_clear_task_pending,
18573 gomp_team_barrier_set_waiting_for_tasks,
18574 gomp_team_barrier_waiting_for_tasks,
18575 gomp_team_barrier_done): New inlines.
18576 (gomp_barrier_t): Rewritten.
18577 (gomp_barrier_state_t): New typedef.
18578 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18579 gomp_barrier_wait_start): Rewritten.
18580 (gomp_barrier_wait_end): Change second argument to
18581 gomp_barrier_state_t.
18582 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18583 inlines.
18584 * config/linux/bar.c: Include wait.h instead of libgomp.h and
18585 futex.h.
18586 (gomp_barrier_wait_end): Rewritten.
18587 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18588 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18589 * config/posix/bar.h (gomp_barrier_t): Add generation field.
18590 (gomp_barrier_state_t): New typedef.
18591 (gomp_team_barrier_wait,
18592 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18593 (gomp_barrier_wait_start): Or all but low 2 bits from generation
18594 into the return value. Return gomp_barrier_state_t.
18595 (gomp_team_barrier_set_task_pending,
18596 gomp_team_barrier_clear_task_pending,
18597 gomp_team_barrier_set_waiting_for_tasks,
18598 gomp_team_barrier_waiting_for_tasks,
18599 gomp_team_barrier_done): New inlines.
18600 (gomp_barrier_wait_end): Change second argument to
18601 gomp_barrier_state_t.
18602 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18603 inlines.
18604 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18605 (gomp_barrier_wait_end): Change second argument to
18606 gomp_barrier_state_t.
18607 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18608 gomp_team_barrier_wake): New functions.
18609 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18610 futex.h.
18611 (gomp_futex_wake, gomp_futex_wait): New variables.
18612 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18613 * config/linux/lock.c: Rewrite to make locks task owned,
18614 for backwards compatibility provide the old entrypoints
18615 if symbol versioning. Include wait.h instead of libgomp.h and
18616 futex.h.
18617 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18618 * config/posix95/lock.c: Rewrite to make locks task owned,
18619 for backwards compatibility provide the old entrypoints
18620 if symbol versioning.
18621 * config/posix/lock.c: Rewrite to make locks task owned,
18622 for backwards compatibility provide the old entrypoints
18623 if symbol versioning.
18624 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18625 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18626 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18627 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18628 (sys_futex0): Return error code.
18629 (futex_wake, futex_wait): If ENOSYS was returned, clear
18630 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18631 (cpu_relax, atomic_write_barrier): New static inlines.
18632 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18633 (futex_wake, futex_wait): If ENOSYS was returned, clear
18634 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18635 (cpu_relax, atomic_write_barrier): New static inlines.
18636 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18637 (sys_futex0): Return error code.
18638 (futex_wake, futex_wait): If ENOSYS was returned, clear
18639 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18640 (cpu_relax, atomic_write_barrier): New static inlines.
18641 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18642 (sys_futex0): Return error code.
18643 (futex_wake, futex_wait): If ENOSYS was returned, clear
18644 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18645 (cpu_relax, atomic_write_barrier): New static inlines.
18646 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18647 (sys_futex0): Return error code.
18648 (futex_wake, futex_wait): If ENOSYS was returned, clear
18649 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18650 (cpu_relax, atomic_write_barrier): New static inlines.
18651 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18652 (sys_futex0): Return error code.
18653 (futex_wake, futex_wait): If ENOSYS was returned, clear
18654 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18655 (cpu_relax, atomic_write_barrier): New static inlines.
18656 * config/linux/sem.c: Include wait.h instead of libgomp.h and
18657 futex.h.
18658 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18659 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18660 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18661 types.
18662 (omp_nest_lock_t): Change owner into void *, add lock field.
18663 * config/posix95/omp-lock.h: Include semaphore.h.
18664 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18665 (omp_lock_t): Use sem_t instead of mutex if semaphores
18666 aren't broken.
18667 (omp_nest_lock_t): Likewise. Change owner to void *.
18668 * config/posix/omp-lock.h: Include semaphore.h.
18669 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18670 (omp_lock_t): Use sem_t instead of mutex if semaphores
18671 aren't broken.
18672 (omp_nest_lock_t): Likewise. Add owner field.
18673
18674 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18675
18676 * testsuite/libgomp.c/collapse-1.c: New test.
18677 * testsuite/libgomp.c/collapse-2.c: New test.
18678 * testsuite/libgomp.c/collapse-3.c: New test.
18679 * testsuite/libgomp.c/icv-1.c: New test.
18680 * testsuite/libgomp.c/icv-2.c: New test.
18681 * testsuite/libgomp.c/lib-2.c: New test.
18682 * testsuite/libgomp.c/lock-1.c: New test.
18683 * testsuite/libgomp.c/lock-2.c: New test.
18684 * testsuite/libgomp.c/lock-3.c: New test.
18685 * testsuite/libgomp.c/loop-4.c: New test.
18686 * testsuite/libgomp.c/loop-5.c: New test.
18687 * testsuite/libgomp.c/loop-6.c: New test.
18688 * testsuite/libgomp.c/loop-7.c: New test.
18689 * testsuite/libgomp.c/loop-8.c: New test.
18690 * testsuite/libgomp.c/loop-9.c: New test.
18691 * testsuite/libgomp.c/nested-3.c: New test.
18692 * testsuite/libgomp.c/nestedfn-6.c: New test.
18693 * testsuite/libgomp.c/sort-1.c: New test.
18694 * testsuite/libgomp.c/task-1.c: New test.
18695 * testsuite/libgomp.c/task-2.c: New test.
18696 * testsuite/libgomp.c/task-3.c: New test.
18697 * testsuite/libgomp.c/task-4.c: New test.
18698 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18699 to C++ testsuite default compiler options.
18700 * testsuite/libgomp.c++/collapse-1.C: New test.
18701 * testsuite/libgomp.c++/collapse-2.C: New test.
18702 * testsuite/libgomp.c++/ctor-10.C: New test.
18703 * testsuite/libgomp.c++/for-1.C: New test.
18704 * testsuite/libgomp.c++/for-2.C: New test.
18705 * testsuite/libgomp.c++/for-3.C: New test.
18706 * testsuite/libgomp.c++/for-4.C: New test.
18707 * testsuite/libgomp.c++/for-5.C: New test.
18708 * testsuite/libgomp.c++/loop-8.C: New test.
18709 * testsuite/libgomp.c++/loop-9.C: New test.
18710 * testsuite/libgomp.c++/loop-10.C: New test.
18711 * testsuite/libgomp.c++/task-1.C: New test.
18712 * testsuite/libgomp.c++/task-2.C: New test.
18713 * testsuite/libgomp.c++/task-3.C: New test.
18714 * testsuite/libgomp.c++/task-4.C: New test.
18715 * testsuite/libgomp.c++/task-5.C: New test.
18716 * testsuite/libgomp.c++/task-6.C: New test.
18717 * testsuite/libgomp.fortran/allocatable1.f90: New test.
18718 * testsuite/libgomp.fortran/allocatable2.f90: New test.
18719 * testsuite/libgomp.fortran/allocatable3.f90: New test.
18720 * testsuite/libgomp.fortran/allocatable4.f90: New test.
18721 * testsuite/libgomp.fortran/collapse1.f90: New test.
18722 * testsuite/libgomp.fortran/collapse2.f90: New test.
18723 * testsuite/libgomp.fortran/collapse3.f90: New test.
18724 * testsuite/libgomp.fortran/collapse4.f90: New test.
18725 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18726 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18727 * testsuite/libgomp.fortran/lib4.f90: New test.
18728 * testsuite/libgomp.fortran/lock-1.f90: New test.
18729 * testsuite/libgomp.fortran/lock-2.f90: New test.
18730 * testsuite/libgomp.fortran/nested1.f90: New test.
18731 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18732 * testsuite/libgomp.fortran/strassen.f90: New test.
18733 * testsuite/libgomp.fortran/tabs1.f90: New test.
18734 * testsuite/libgomp.fortran/tabs2.f: New test.
18735 * testsuite/libgomp.fortran/task1.f90: New test.
18736 * testsuite/libgomp.fortran/task2.f90: New test.
18737 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18738 * testsuite/libgomp.fortran/vla5.f90: Likewise.
18739 * testsuite/libgomp.c/pr26943-2.c: Likewise.
18740 * testsuite/libgomp.c/pr26943-3.c: Likewise.
18741 * testsuite/libgomp.c/pr26943-4.c: Likewise.
18742
18743 2008-05-23 Jakub Jelinek <jakub@redhat.com>
18744
18745 PR c++/36308
18746 * testsuite/libgomp.c++/ctor-11.C: New test.
18747 * testsuite/libgomp.c++/ctor-12.C: New test.
18748
18749 2008-05-15 Janis Johnson <janis187@us.ibm.com>
18750
18751 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18752
18753 2008-05-07 Jakub Jelinek <jakub@redhat.com>
18754
18755 PR middle-end/36106
18756 * testsuite/libgomp.c/atomic-5.c: New test.
18757 * testsuite/libgomp.c/atomic-6.c: New test.
18758 * testsuite/libgomp.c/autopar-1.c: New test.
18759
18760 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18761
18762 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18763 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18764 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18765 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18766 * configure: Regenerate.
18767 * Makefile.in, testsuite/Makefile.in: Likewise.
18768
18769 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
18770
18771 PR bootstrap/35457
18772 * aclocal.m4: Regenerate.
18773 * configure: Regenerate.
18774
18775 2008-03-18 Jakub Jelinek <jakub@redhat.com>
18776
18777 PR middle-end/35611
18778 * testsuite/libgomp.c/atomic-4.c: New test.
18779
18780 PR libgomp/35625
18781 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18782 (gomp_iter_guided_next): Likewise.
18783 * testsuite/libgomp.c/pr35625.c: New test.
18784
18785 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18786
18787 * aclocal.m4: Regenerate.
18788 * configure: Likewise.
18789 * Makefile.in: Likewise.
18790 * testsuite/Makefile.in: Likewise.
18791
18792 2008-03-13 Jakub Jelinek <jakub@redhat.com>
18793
18794 PR middle-end/35185
18795 * testsuite/libgomp.c++/pr35185.C: New test.
18796
18797 2008-03-12 Jakub Jelinek <jakub@redhat.com>
18798
18799 PR middle-end/35549
18800 * testsuite/libgomp.c/pr35549.c: New test.
18801
18802 2008-03-06 Jakub Jelinek <jakub@redhat.com>
18803
18804 * testsuite/libgomp.c/atomic-3.c: New test.
18805
18806 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18807
18808 PR fortran/33197
18809 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18810 .F08 file suffixes.
18811
18812 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
18813
18814 PR libgomp/33131
18815 * configure.ac: Add ACX_HEADER_STRING.
18816 * env.c: Include strings.h.
18817 * aclocal.m4: Regenerate.
18818 * config.h.in: Regenerate.
18819 * configure: Regenerate.
18820 * Makefile.in: Regenerate.
18821 * testsuite/Makefile.in: Regenerate.
18822
18823 2008-02-15 Jakub Jelinek <jakub@redhat.com>
18824
18825 PR middle-end/35196
18826 * testsuite/libgomp.c/pr35196.c: New test.
18827
18828 PR middle-end/35130
18829 * testsuite/libgomp.fortran/pr35130.f90: New test.
18830 * testsuite/libgomp.c/pr35130.c: New test.
18831
18832 2008-01-25 Jakub Jelinek <jakub@redhat.com>
18833
18834 PR middle-end/33880
18835 * testsuite/libgomp.c/pr33880.c: New test.
18836 * testsuite/libgomp.fortran/pr33880.f90: New test.
18837
18838 2008-01-24 David Edelsohn <edelsohn@gnu.org>
18839
18840 * configure: Regenerate.
18841
18842 2008-01-08 Jakub Jelinek <jakub@redhat.com>
18843
18844 * configure.ac: Move futex checking into ../config/futex.m4.
18845 * configure: Rebuilt.
18846 * aclocal.m4: Rebuilt.
18847 * Makefile.in: Rebuilt.
18848
18849 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18850 2007-10-15 ../config/tls.m4 change.
18851
18852 2007-12-19 Jakub Jelinek <jakub@redhat.com>
18853
18854 PR c++/34513
18855 * testsuite/libgomp.c/pr34513.c: New test.
18856 * testsuite/libgomp.c++/pr34513.C: New test.
18857
18858 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
18859
18860 PR target/32765
18861 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18862
18863 2007-12-04 Jakub Jelinek <jakub@redhat.com>
18864
18865 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
18866
18867 2007-12-03 Jakub Jelinek <jakub@redhat.com>
18868
18869 * testsuite/libgomp.c/private-1.c: New test.
18870
18871 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
18872 Paolo Bonzini <bonzini@gnu.org>
18873
18874 * Makefile.am: Use space as vpath separator. Use 'vpath %'
18875 instead of 'VPATH ='.
18876 * Makefile.in: Regenerate.
18877
18878 2007-11-23 Matthias Klose <doko@ubuntu.com>
18879
18880 * configure.ac: Adjust makeinfo version check.
18881 * configure: Regenerate.
18882
18883 2007-11-10 Jakub Jelinek <jakub@redhat.com>
18884
18885 PR fortran/34020
18886 * testsuite/libgomp.fortran/pr34020.f90: New test.
18887
18888 2007-11-06 Jakub Jelinek <jakub@redhat.com>
18889
18890 PR c++/33894
18891 * testsuite/libgomp.c++/atomic-1.C: New test.
18892
18893 2007-10-25 Jakub Jelinek <jakub@redhat.com>
18894
18895 PR libgomp/33275
18896 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18897 Make x and y integers rather than (implicit) reals. Add private (j)
18898 clause to the last omp parallel.
18899
18900 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
18901
18902 * configure: Regenerate following changes to ../config/tls.m4.
18903
18904 2007-09-28 Jakub Jelinek <jakub@redhat.com>
18905
18906 * testsuite/libgomp.fortran/stack.f90: New test.
18907
18908 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
18909
18910 * config/mingw32/proc.c: New file.
18911
18912 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
18913
18914 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
18915 (main): Use __get_cpuid to get i386 target fetaures.
18916 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18917 (main): Use __get_cpuid to get x86_64 target fetaures.
18918
18919 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
18920
18921 PR target/32765
18922 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
18923 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
18924
18925 2007-07-12 Jakub Jelinek <jakub@redhat.com>
18926
18927 PR fortran/32550
18928 * testsuite/libgomp.fortran/pr32550.f90: New test.
18929 * testsuite/libgomp.fortran/crayptr2.f90: New test.
18930
18931 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
18932
18933 * aclocal.m4: Regenerated.
18934
18935 2007-07-05 Tobias Burnus <burnus@net-b.de>
18936
18937 PR fortran/32359
18938 * testsuite/libgomp.fortran/pr32359.f90: New.
18939
18940 2007-07-02 Jakub Jelinek <jakub@redhat.com>
18941
18942 PR libgomp/32468
18943 * sections.c (GOMP_parallel_sections_start): Only decrease
18944 number of threads to COUNT if dyn_var is true.
18945 * testsuite/libgomp.c/pr32468.c: New test.
18946
18947 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18948
18949 PR libgomp/26308
18950 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18951
18952 2007-06-21 Jakub Jelinek <jakub@redhat.com>
18953
18954 PR middle-end/32362
18955 * testsuite/libgomp.c/pr32362-1.c: New test.
18956 * testsuite/libgomp.c/pr32362-2.c: New test.
18957 * testsuite/libgomp.c/pr32362-3.c: New test.
18958
18959 2007-06-07 Jakub Jelinek <jakub@redhat.com>
18960
18961 * team.c (gomp_team_start): Fix setting up thread_attr
18962 stack size.
18963
18964 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
18965
18966 * configure: Regenerate.
18967
18968 2007-05-23 Steve Ellcey <sje@cup.hp.com>
18969
18970 * Makefile.in: Regenerate.
18971 * configure: Regenerate.
18972 * aclocal.m4: Regenerate.
18973 * testsuite/Makefile.in: Regenerate.
18974
18975 2007-05-04 Jakub Jelinek <jakub@redhat.com>
18976
18977 * config/linux/proc.c: New file.
18978
18979 PR libgomp/28482
18980 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18981
18982 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
18983
18984 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18985
18986 2007-04-16 Matthias Klose <doko@debian.org>
18987
18988 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
18989 flags if not building with -m64.
18990 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
18991 flag for i?86-*-* targets, if current target matches -m64.
18992
18993 2007-04-14 Steve Ellcey <sje@cup.hp.com>
18994
18995 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
18996 * Makefile.in: Regenerate.
18997
18998 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18999
19000 PR testsuite/31369
19001 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19002 ld_library_path.
19003 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19004
19005 2007-04-04 Jakub Jelinek <jakub@redhat.com>
19006
19007 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19008 decls.
19009 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19010 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19011 (parse_affinity): New function.
19012 (initialize_env): Call it and gomp_init_affinity.
19013 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19014 create new pthread_attr_t and call gomp_init_thread_affinity
19015 on it for each thread before passing the attribute to pthread_create.
19016 * config/linux/affinity.c: New file.
19017 * config/posix/affinity.c: New file.
19018 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19019 * configure: Rebuilt.
19020 * config.h.in: Rebuilt.
19021 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19022 * Makefile.in: Rebuilt.
19023
19024 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19025
19026 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19027 *-*-darwin*.
19028 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19029 and use it if found.
19030
19031 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
19032
19033 * testsuite/config/default.exp: New file.
19034 * testsuite/lib/libgomp.exp: New file.
19035 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19036 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19037 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19038 (libgomp_load): Remove.
19039 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19040 always_ld_library_path, not ld_library_path. Set additional_flags
19041 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19042 (target_compile): Do not call libgomp_init. Append lang_library_path
19043 and lang_link_flags to options.
19044 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19045 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19046 here.
19047 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19048 always_ld_library_path. Set LD_LIBRARY_PATH here.
19049 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19050 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19051 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19052 CX8 flag.
19053 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19054 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19055 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19056 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19057 * testsuite/libgomp.c/atomic-10.c: Ditto.
19058
19059 2007-03-21 Jakub Jelinek <jakub@redhat.com>
19060
19061 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19062 dg-final cleanup-modules line.
19063 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19064 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19065 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19066 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19067 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19068 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19069 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19070
19071 2007-03-18 Andreas Schwab <schwab@suse.de>
19072
19073 * acinclude.m4: Adjust regular expression for ld version
19074 extraction.
19075 * configure: Regenerate.
19076
19077 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19078
19079 * Makefile.am: Add install-pdf target as copied from
19080 automake v1.10 rules.
19081 * Makefile.in: Regenerate
19082
19083 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19084
19085 PR libgomp/28486
19086 * configure: Regenerate.
19087
19088 PR c++/30703
19089 * testsuite/libgomp.c++/pr30703.C: New test.
19090
19091 2007-02-02 Jakub Jelinek <jakub@redhat.com>
19092
19093 Revert:
19094 2006-07-05 Eric Christopher <echristo@apple.com>
19095 * configure.ac: Depend addition of -pthread on host OS.
19096 * configure: Regenerate.
19097
19098 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19099
19100 * libgomp.texi: Fix spacing after abbreviations.
19101
19102 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
19103
19104 PR libgomp/30546
19105 * configure.ac: Add check for makeinfo
19106 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19107 if an appropriate version of makeinfo is found.
19108 * aclocal.m4: Regenerated.
19109 * configure: Regenerated.
19110 * Makefile.in: Regenerated.
19111 * testsuite/Makefile.in: Regenerated.
19112
19113 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
19114
19115 PR libgomp/30540
19116 * libgomp.texi: More about implementation-dependent settings.
19117
19118 2007-01-26 Tobias Burnus <burnus@net-b.de>
19119
19120 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19121
19122 2007-01-24 Jakub Jelinek <jakub@redhat.com>
19123
19124 PR middle-end/30494
19125 * testsuite/libgomp.c/pr30494.c: New test.
19126
19127 2007-01-15 Tom Tromey <tromey@redhat.com>
19128
19129 * configure: Rebuilt.
19130 * configure.ac: Fixed comment.
19131
19132 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
19133
19134 * libgomp.texi: Document implementation specific default values of
19135 environment variables.
19136
19137 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19138
19139 PR libgomp/28209
19140 * libgomp.texi: New file.
19141 * configure.ac: Add --enable-generated-files-in-srcdir option.
19142 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19143 files to srcdir.
19144 * Makefile.in: Regenerated.
19145 * config.h.in: Regenerated.
19146 * testsuite/Makefile.in: Regenerated.
19147 * NOTES: Removed.
19148
19149 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
19150
19151 PR libgomp/29949
19152 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19153
19154 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19155
19156 * configure: Regenerate.
19157
19158 2006-12-04 Jakub Jelinek <jakub@redhat.com>
19159
19160 PR libgomp/29947
19161 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19162 start if there shouldn't be any loop iterations.
19163 (gomp_loop_ordered_static_start): Remove start == end test.
19164 * testsuite/libgomp.c/pr29947-1.c: New test.
19165 * testsuite/libgomp.c/pr29947-2.c: New test.
19166
19167 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19168
19169 * configure.tgt: Force initial-exec TLS model on Linux only.
19170
19171 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19172
19173 * configure: Regenerated.
19174
19175 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
19176
19177 * env.c (parse_schedule): Reject out of range values.
19178 (parse_unsigned_long): Reject out of range, negative or zero values.
19179
19180 2006-10-29 Jakub Jelinek <jakub@redhat.com>
19181
19182 PR fortran/29629
19183 * testsuite/libgomp.fortran/pr29629.f90: New test.
19184
19185 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19186
19187 PR libgomp/29494
19188 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19189 * config/posix95: New directory.
19190 * config/posix95/omp-lock.h: New file.
19191 * config/posix95/lock.c: Likewise.
19192
19193 2006-10-14 Geoffrey Keating <geoffk@apple.com>
19194
19195 * aclocal.m4: Regenerate.
19196 * configure: Regenerate.
19197
19198 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19199
19200 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19201 '<' to '<='.
19202
19203 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19204
19205 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19206 test.
19207 * configure: Regenerate.
19208 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19209
19210 2006-09-26 Jakub Jelinek <jakub@redhat.com>
19211
19212 PR middle-end/25261
19213 PR middle-end/28790
19214 * testsuite/libgomp.c/nestedfn-4.c: New test.
19215 * testsuite/libgomp.c/nestedfn-5.c: New test.
19216 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19217
19218 PR fortran/29097
19219 * testsuite/libgomp.fortran/condinc1.f: New test.
19220 * testsuite/libgomp.fortran/condinc2.f: New test.
19221 * testsuite/libgomp.fortran/condinc3.f90: New test.
19222 * testsuite/libgomp.fortran/condinc4.f90: New test.
19223 * testsuite/libgomp.fortran/condinc1.inc: New file.
19224
19225 2006-09-18 Tom Tromey <tromey@redhat.com>
19226
19227 * configure: Rebuilt.
19228
19229 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19230
19231 PR c/28768
19232 PR preprocessor/14634
19233 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19234 to AC_DEFINE.
19235 * configure: Regenerate.
19236
19237 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19238
19239 * testsuite/libgomp.fortran/reduction3.f90: Change
19240 -2147483648 to -huge(i)-1 to avoid overflow.
19241 * testsuite/libgomp.fortran/reduction4.f90: Change
19242 Z'ffffffff' to not(0) to avoid overflow.
19243
19244 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19245
19246 PR libgomp/25938
19247 * Makefile.am (libsubincludedir): New.
19248 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19249 * Makefile.in: Regenerate.
19250
19251 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19252
19253 PR libgomp/28725
19254 * env.c: Include ctype.h.
19255 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19256 leading and/or trailing whitespace and compare strings case
19257 insensitively.
19258
19259 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19260
19261 PR fortran/28390
19262 * testsuite/libgomp.fortran/pr28390.f: New test.
19263
19264 2006-07-05 Eric Christopher <echristo@apple.com>
19265
19266 * configure.ac: Depend addition of -pthread on host OS.
19267 * configure: Regenerate.
19268
19269 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19270
19271 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19272 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19273 defined.
19274
19275 2006-06-20 Jakub Jelinek <jakub@redhat.com>
19276
19277 PR libgomp/26175
19278 PR libgomp/26477
19279 * configure.ac: If neither --enable-linux-futex nor
19280 --disable-linux-futex is passed, determine the default by checking
19281 for compiling and/or running against NPTL. With --enable-linux-futex,
19282 check if SYS_gettid and SYS_futex are defined.
19283 * configure: Rebuilt.
19284
19285 2006-06-14 Richard Henderson <rth@redhat.com>
19286
19287 PR libgomp/28008
19288 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19289 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19290
19291 2006-06-09 Richard Henderson <rth@redhat.com>
19292
19293 * env.c (gomp_nthreads_var): Change to unsigned long.
19294 (gomp_run_sched_chunk): Likewise.
19295 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19296 (initialize_env): Initialize gomp_thread_attr.
19297 * libgomp.h (gomp_nthreads_var): Update decl.
19298 (gomp_run_sched_chunk): Likewise.
19299 (gomp_thread_attr): Declare.
19300 * team.c (gomp_thread_attr): Export.
19301 (initialize_team): Don't initialize it.
19302
19303 2006-06-09 Jakub Jelinek <jakub@redhat.com>
19304
19305 PR fortran/27916
19306 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19307 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19308
19309 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19310
19311 * config/mingw32/time.c: New file.
19312 * configure.tgt: Use it.
19313
19314 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
19315
19316 * Makefile.am: Add install-html target. Add install-html to .PHONY
19317 * Makefile.in: Regenerate.
19318
19319 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19320
19321 PR libgomp/27612
19322 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19323 * testsuite/libgomp.c/critical-1.c: Likewise.
19324 * testsuite/libgomp.c/loop-1.c: Likewise.
19325 * testsuite/libgomp.c/loop-2.c: Likewise.
19326 * testsuite/libgomp.c/single-1.c: Likewise.
19327 * testsuite/libgomp.c/ordered-1.c: Likewise.
19328 * testsuite/libgomp.c/ordered-2.c: Likewise.
19329
19330 2006-05-15 Jakub Jelinek <jakub@redhat.com>
19331
19332 PR middle-end/27416
19333 * libgomp.fortran/pr27416-1.f90: New test.
19334
19335 2006-05-03 Jakub Jelinek <jakub@redhat.com>
19336
19337 PR fortran/27395
19338 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19339 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19340
19341 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19342
19343 PR c++/26943
19344 * testsuite/libgomp.c/pr26943-1.c: New test.
19345 * testsuite/libgomp.c/pr26943-2.c: New test.
19346 * testsuite/libgomp.c/pr26943-3.c: New test.
19347 * testsuite/libgomp.c/pr26943-4.c: New test.
19348 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19349 * testsuite/libgomp.c++/pr26943.C: New test.
19350
19351 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19352
19353 PR middle-end/27337
19354 * testsuite/libgomp.c++/pr27337.C: New test.
19355
19356 2006-04-26 Jakub Jelinek <jakub@redhat.com>
19357
19358 PR c/26171
19359 * testsuite/libgomp.c/pr26171.c: New test.
19360
19361 2006-04-25 Richard Henderson <rth@redhat.com>
19362
19363 PR libgomp/25865
19364 * configure.ac: Use GCC_CHECK_TLS.
19365 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19366 * Makefile.in, aclocal.m4, configure: Regenerate.
19367
19368 2006-04-10 Matthias Klose <doko@debian.org>
19369
19370 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19371 directory names containing underscores.
19372
19373 2006-03-21 Jakub Jelinek <jakub@redhat.com>
19374
19375 PR c++/26691
19376 * testsuite/libgomp.c++/pr26691.C: New test.
19377
19378 2006-03-13 Jakub Jelinek <jakub@redhat.com>
19379
19380 * testsuite/libgomp.fortran/retval2.f90: New test.
19381
19382 2006-03-09 Diego Novillo <dnovillo@redhat.com>
19383
19384 * testsuite/libgomp.c++: New directory.
19385
19386 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
19387
19388 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19389 * config/posix/sem.c: Implement the above.
19390
19391 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
19392
19393 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19394 define HAVE_BROKEN_POSIX_SEMAPHORES.
19395 * configure: Rebuilt.
19396 * config.h.in: Rebuilt.
19397
19398 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19399
19400 PR bootstrap/26161
19401 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19402 for the other pthread check.
19403 * configure: Regenerate.
19404 * config.h.in: Regenerate.
19405
19406 2006-02-15 Jakub Jelinek <jakub@redhat.com>
19407
19408 PR libgomp/25938
19409 PR libgomp/25984
19410 * Makefile.am (fincludedir): New variable.
19411 (nodist_include_HEADERS): Remove Fortran files.
19412 (nodist_finclude_HEADERS): New variable.
19413 * Makefile.in: Regenerated.
19414
19415 2006-02-13 Jakub Jelinek <jakub@redhat.com>
19416
19417 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19418 Remove tests for returning assumed character length arrays.
19419
19420 2006-02-12 Roger Sayle <roger@eyesopen.com>
19421 John David Anglin <dave@hiauly1.hia.nrc.ca>
19422
19423 PR libgomp/25936
19424 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19425
19426 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
19427
19428 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19429
19430 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19431
19432 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19433 part of LD_LIBRARY_PATH manually.
19434
19435 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
19436
19437 PR libgomp/25852
19438 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19439 libgomp_init.
19440
19441 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
19442
19443 PR libgomp/25884
19444 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19445 * configure.ac (PERL): Don't set.
19446 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19447 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19448 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19449 * omp.h.in: Wrap the new configure substitutions with @ characters.
19450 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19451 * aclocal.m4, configure, Makefile.in: Regenerate.
19452 * mkomp_h.pl: Delete.
19453
19454 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
19455
19456 PR libgomp/25259
19457 * configure.ac: Use GCC_HEADER_STDINT.
19458 * libgomp.h: Include gstdint.h.
19459 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19460 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19461
19462 2006-01-24 Richard Henderson <rth@redhat.com>
19463
19464 PR libgomp/25942
19465 * configure.ac: Add AM_MAINTAINER_MODE.
19466 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19467
19468 2006-01-24 Diego Novillo <dnovillo@redhat.com>
19469
19470 * Makefile.in: Regenerate.
19471 * testsuite/Makefile.in: Regenerate.
19472 * aclocal.m4: Regenerate.
19473
19474 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
19475
19476 * config/posix/proc.c: Conditional include of sys/loadavg.h for
19477 Solaris.
19478 * configure.ac: Add check for loadavg.h.
19479 (link_gomp): Adjust comment.
19480 * configure: Regenerate.
19481 * config.h.in: Regenerate.
19482
19483 2006-01-21 Steve Ellcey <sje@cup.hp.com>
19484
19485 PR libgomp/25877
19486 * configure.ac: Remove check for alloca.h.
19487 * configure: Regenerate.
19488 * config.h.in: Regenerate.
19489 * libgomp.h: define gomp_alloca to be __builtin_alloca.
19490 * team.c: Remove use of alloca.h.
19491 Call gomp_alloca instead of alloca.
19492
19493 2006-01-20 Steve Ellcey <sje@cup.hp.com>
19494
19495 PR libgomp/25877
19496 * team.c: Add include of alloca.h.
19497 * configure.ac: Add check for alloca.h.
19498 * configure: Regenerate.
19499 * config.h.in: Regenerate.
19500
19501 2006-01-17 Jakub Jelinek <jakub@redhat.com>
19502
19503 PR fortran/25219
19504 * testsuite/libgomp.fortran/pr25219.f90: New test.
19505
19506 2005-12-05 Uros Bizjak <uros@kss-loka.si>
19507
19508 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19509 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19510 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19511 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19512 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19513 testsuite/libgomp.fortran/threadprivate1.f90,
19514 testsuite/libgomp.fortran/threadprivate2.f90,
19515 testsuite/libgomp.fortran/threadprivate3.f90,
19516 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19517 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19518 testsuite/libgomp.fortran/omp_parse3.f90: Change required
19519 effective-target to TLS runtime.
19520
19521 * testsuite/libgomp.fortran/pr25162.f: Require
19522 effective-target TLS runtime.
19523
19524 2005-12-01 Jakub Jelinek <jakub@redhat.com>
19525
19526 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19527 * testsuite/libgomp.c/nestedfn-3.c: New test.
19528
19529 2005-11-30 Jakub Jelinek <jakub@redhat.com>
19530
19531 PR fortran/25162
19532 * testsuite/libgomp.fortran/pr25162.f: New test.
19533
19534 2005-11-28 Jakub Jelinek <jakub@redhat.com>
19535
19536 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19537 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19538
19539 2005-11-25 Jakub Jelinek <jakub@redhat.com>
19540
19541 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19542 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19543 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19544 single.c, team.c, work.c, config/linux/alpha/futex.h,
19545 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19546 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19547 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19548 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19549 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19550 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19551 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19552 FSF address.
19553
19554 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19555
19556 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19557 to nodist_noinst_HEADERS.
19558 * Makefile.in: Rebuilt.
19559
19560 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19561 add integer count field.
19562 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19563 omp_nest_lock_t type change.
19564 (omp_init_nest_lock): Likewise. Initialize count to 0.
19565 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19566 Increment count.
19567 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19568 Decrement count.
19569 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19570 Increment count if successful and return the new nesting level.
19571 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19572 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19573 * testsuite/libgomp.c/lib-1.c: New test.
19574 * testsuite/libgomp.fortran/lib1.f90: New test.
19575 * testsuite/libgomp.fortran/lib2.f: New test.
19576 * testsuite/libgomp.fortran/lib3.f: New test.
19577
19578 2005-11-17 Richard Henderson <rth@redhat.com>
19579
19580 PR 24845
19581 * Makefile.am (nodist_toolexeclib_HEADERS): New.
19582 * configure.ac (link_gomp): New. Substitute it.
19583 (AC_CONFIG_FILES): Add libgomp.spec.
19584 * libgomp.spec.in: New file.
19585 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19586 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19587
19588 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19589
19590 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19591 reduction(-:var) behaving the same as reduction(+:var).
19592 * testsuite/libgomp.c/reduction-4.c: New test.
19593
19594 2005-11-15 Uros Bizjak <uros@kss-loka.si>
19595
19596 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19597 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19598 testsuite/libgomp.c/copyin-3.c,
19599 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19600 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19601 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19602 testsuite/libgomp.c++/pr24455.C,
19603 testsuite/libgomp.fortran/threadprivate1.f90,
19604 testsuite/libgomp.fortran/threadprivate2.f90,
19605 testsuite/libgomp.fortran/threadprivate3.f90,
19606 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19607 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19608 testsuite/libgomp.fortran/omp_parse3.f90: Require
19609 effective-target TLS.
19610
19611 2005-11-14 Diego Novillo <dnovillo@redhat.com>
19612
19613 * HEADER: Remove.
19614
19615 2005-11-13 Jakub Jelinek <jakub@redhat.com>
19616
19617 PR libgomp/24797
19618 * team.c (initialize_team): Pass NULL rather than free as
19619 pthread_key_create destructor. Initialize thread specific data
19620 pointer in initial thread to a static local variable rather than
19621 malloced memory.
19622
19623 2005-11-11 Uros Bizjak <uros@kss-loka.si>
19624
19625 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19626 its location to ld_library_path.
19627
19628 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19629
19630 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19631
19632 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19633
19634 * testsuite/libgomp.c: Rename from libgomp.dg.
19635
19636 2005-11-09 Diego Novillo <dnovillo@redhat.com>
19637
19638 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19639 threadprivate variable 'i'.
19640
19641 2005-11-09 Jakub Jelinek <jakub@redhat.com>
19642
19643 * config/linux/s390/futex.h: New file.
19644 * configure.tgt: Use it.
19645
19646 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19647 before the parallel.
19648
19649 2005-11-08 Jakub Jelinek <jakub@redhat.com>
19650
19651 PR c++/24734
19652 * testsuite/libgomp.c++/master-1.C: New test.
19653
19654 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19655
19656 * testsuite/libgomp.dg/copyin-3.c: New test.
19657
19658 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19659
19660 * testsuite/libgomp.fortran/retval1.f90: New test.
19661 * testsuite/libgomp.fortran/vla7.f90: New test.
19662
19663 2005-11-06 Jakub Jelinek <jakub@redhat.com>
19664
19665 * testsuite/libgomp.fortran/vla2.f90: New test.
19666 * testsuite/libgomp.fortran/vla3.f90: New test.
19667 * testsuite/libgomp.fortran/vla4.f90: New test.
19668 * testsuite/libgomp.fortran/vla5.f90: New test.
19669 * testsuite/libgomp.fortran/vla6.f90: New test.
19670
19671 2005-11-01 Jakub Jelinek <jakub@redhat.com>
19672
19673 * config/linux/sparc/futex.h: New file.
19674 * configure.tgt: Use it.
19675 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19676
19677 * critical.c: Include stdlib.h.
19678 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19679 ignoring return value.
19680 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19681 LIBGOMP_CHECK_SYNC_BUILTINS check.
19682 * configure: Rebuilt.
19683
19684 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19685
19686 * testsuite/libgomp.fortran/vla1.f90: New test.
19687
19688 2005-10-31 Richard Henderson <rth@redhat.com>
19689
19690 * testsuite/libgomp.fortran/character2.f90: Fix race condition
19691 setting 's' in different threads.
19692
19693 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19694
19695 * libgomp.h (attribute_hidden, ialias): Define.
19696 * config/posix/proc.c (omp_get_num_procs): Add ialias.
19697 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19698 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19699 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19700 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19701 omp_test_lock, omp_test_nest_lock): Likewise.
19702 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19703 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19704 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19705 omp_test_lock, omp_test_nest_lock): Likewise.
19706 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19707 omp_get_dynamic, omp_get_nested): Likewise.
19708 * parallel.c (omp_get_num_threads, omp_get_max_threads,
19709 omp_get_thread_num, omp_in_parallel): Likewise.
19710 * fortran.c (ialias_redirect): Define.
19711 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19712 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19713 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19714 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19715 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19716 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19717 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19718 omp_get_wtime): Add ialias_redirect.
19719
19720 2005-10-30 Jakub Jelinek <jakub@redhat.com>
19721
19722 * fortran.c: Include stdlib.h.
19723
19724 2005-10-29 Jakub Jelinek <jakub@redhat.com>
19725
19726 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19727 * Makefile.in: Regenerated.
19728
19729 2005-10-28 Jakub Jelinek <jakub@redhat.com>
19730
19731 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19732 * libgomp_f.h.in (omp_check_defines): New function.
19733 * env.c: Include libgomp_f.h.
19734 (initialize_env): Call omp_check_defines.
19735
19736 * testsuite/libgomp.dg/copyin-2.c: New test.
19737 * testsuite/libgomp.c++/copyin-2.C: New test.
19738 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19739
19740 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19741 * testsuite/libgomp.fortran/sharing2.f90: New test.
19742
19743 * testsuite/libgomp.dg/copyin-1.c: New test.
19744 * testsuite/libgomp.c++/copyin-1.C: New test.
19745
19746 2005-10-26 Jakub Jelinek <jakub@redhat.com>
19747
19748 * testsuite/libgomp.fortran/crayptr1.f90: New test.
19749
19750 * testsuite/libgomp.fortran/workshare1.f90: New test.
19751
19752 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19753 only test.
19754 * libgomp.fortran/sharing1.f90: New test.
19755
19756 2005-10-24 Jakub Jelinek <jakub@redhat.com>
19757
19758 PR c++/24502
19759 * testsuite/libgomp.c++/loop-7.C: New test.
19760
19761 * testsuite/libgomp.dg/nestedfn-2.c: New test.
19762
19763 * testsuite/libgomp.dg/nestedfn-1.c: New test.
19764 * testsuite/libgomp.fortran/reduction6.f90: New test.
19765 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19766
19767 2005-10-23 Richard Henderson <rth@redhat.com>
19768
19769 * testsuite/libgomp.c++/ctor-1.C: New.
19770 * testsuite/libgomp.c++/ctor-2.C: New.
19771 * testsuite/libgomp.c++/ctor-3.C: New.
19772 * testsuite/libgomp.c++/ctor-4.C: New.
19773 * testsuite/libgomp.c++/ctor-5.C: New.
19774 * testsuite/libgomp.c++/ctor-6.C: New.
19775 * testsuite/libgomp.c++/ctor-7.C: New.
19776 * testsuite/libgomp.c++/ctor-8.C: New.
19777 * testsuite/libgomp.c++/ctor-9.C: New.
19778
19779 2005-10-21 Diego Novillo <dnovillo@redhat.com>
19780
19781 PR 24455
19782 * testsuite/libgomp.c++/pr24455-1.C: New test.
19783 * testsuite/libgomp.c++/pr24455.C: New test.
19784 * testsuite/libgomp.dg/pr24455-1.c: New test.
19785 * testsuite/libgomp.dg/pr24455.c: New test.
19786
19787 2005-10-20 Richard Henderson <rth@redhat.com>
19788
19789 * testsuite/libgomp.c++/loop-6.C: New.
19790 * testsuite/libgomp.dg/loop-3.c: New.
19791
19792 2005-10-20 Jakub Jelinek <jakub@redhat.com>
19793
19794 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19795 explicitly private.
19796 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19797 explicitly shared.
19798
19799 2005-10-19 Diego Novillo <dnovillo@redhat.com>
19800
19801 * testsuite/libgomp.fortran/jacobi.f: New test.
19802
19803 2005-10-19 Richard Henderson <rth@redhat.com>
19804
19805 * configure.tgt (i?86-linux): Default to with_arch instead of
19806 CFLAGS. Add -mtune to match target_cpu.
19807 (x86_64-linux): Tune to i686.
19808
19809 * fortran.c (omp_test_nest_lock_): Fix typo.
19810
19811 2005-10-19 Jakub Jelinek <jakub@redhat.com>
19812
19813 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19814 gomp_ordered_sync): Do nothing if team->nthreads == 1.
19815 * testsuite/libgomp.dg/ordered-3.c: New test.
19816
19817 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19818 Remove volatile keyword.
19819
19820 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19821 in COMMON block to avoid warnings on 64-bit targets.
19822
19823 2005-10-18 Diego Novillo <dnovillo@redhat.com>
19824
19825 * testsuite/libgomp.dg/shared-3.c: New test.
19826
19827 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19828
19829 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19830 * testsuite/libgomp.fortran/reduction5.f90: New test.
19831
19832 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19833
19834 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19835 dg-options.
19836 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
19837 flush loop now that __sync_synchronize has proper memory barrier.
19838 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19839 Add -ffixed-form to dg-options.
19840
19841 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19842
19843 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19844 from subdirectories.
19845 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19846 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19847 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19848 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19849 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19850 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19851 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19852 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19853 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19854 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19855 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19856 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19857 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19858 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19859 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19860 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19861 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19862 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19863 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19864 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19865 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19866 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19867 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19868 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19869 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19870
19871 2005-10-17 Jakub Jelinek <jakub@redhat.com>
19872
19873 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19874 lang_library_path exists. Use find instead of glob to gather tests.
19875 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19876
19877 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19878
19879 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19880 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19881 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19882 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19883 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19884 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19885 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19886 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19887 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19888 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19889 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19890 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19891 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19892
19893 2005-10-15 Jakub Jelinek <jakub@redhat.com>
19894
19895 * testsuite/libgomp.dg/vla-1.c: New test.
19896
19897 * testsuite/libgomp.fortran/reference2.f90: New test.
19898
19899 * testsuite/libgomp.fortran/character2.f90: Remove explicit
19900 declaration of omp_get_thread_num.
19901 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
19902 use omp_lib.
19903
19904 * testsuite/libgomp.fortran/reduction1.f90: New test.
19905 * testsuite/libgomp.fortran/reduction2.f90: New test.
19906 * testsuite/libgomp.fortran/reduction3.f90: New test.
19907 * testsuite/libgomp.fortran/reduction4.f90: New test.
19908
19909 2005-10-13 Richard Henderson <rth@redhat.com>
19910
19911 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
19912 * Makefile.in: Regenerate.
19913 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
19914 * libgomp.h: Include bar.h.
19915 (struct gomp_barrier): Remove.
19916 (struct gomp_team): Add barrier. Replace master_barrier with
19917 master_release. Replace threads with ordered_release.
19918 (struct gomp_thread): Replace barrier with release.
19919 * ordered.c (gomp_ordered_first): Update for ordered_release change.
19920 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
19921 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
19922 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
19923 (GOMP_single_copy_end): Likewise.
19924 * team.c (gomp_threads_dock): New.
19925 (gomp_barrier_init, gomp_barrier_destroy): Remove.
19926 (gomp_thread_start): Use gomp_barrier_wait.
19927 (new_team, free_team): Update for gomp_team changes.
19928 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
19929 (gomp_team_end): Use gomp_barrier_wait.
19930 (initialize_team): Update for gomp_thread changes.
19931 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
19932 (gomp_work_share_end_nowait): Use atomic ops when available.
19933 * config/linux/bar.c, config/linux/bar.h: New files.
19934 * config/posix/bar.c, config/posix/bar.h: New files.
19935
19936 2005-10-13 Jakub Jelinek <jakub@redhat.com>
19937
19938 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
19939 * testsuite/libgomp.dg/single-2.c: New test.
19940
19941 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
19942 lang_link_flags): Unset, so that they aren't inherited from previously
19943 sourced *.exp.
19944
19945 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
19946
19947 2005-10-12 Richard Henderson <rth@redhat.com>
19948
19949 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19950 (libgomp_init): Use lang_test_file, lang_library_path, and
19951 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
19952
19953 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19954 (lang_test_file, lang_link_flags): New.
19955 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19956
19957 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19958 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19959 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19960 testsuite/libgomp.c++/parallel-1.C,
19961 testsuite/libgomp.c++/reduction-1.C,
19962 testsuite/libgomp.c++/reduction-2.C,
19963 testsuite/libgomp.c++/reduction-3.C,
19964 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19965 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19966 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19967 New files, largely cribbed from the C testsuite.
19968
19969 2005-10-12 Jakub Jelinek <jakub@redhat.com>
19970
19971 * testsuite/libgomp.fortran/character1.f90: New test.
19972 * testsuite/libgomp.fortran/character2.f90: New test.
19973
19974 * testsuite/libgomp.dg/nested-1.c: New test.
19975 * testsuite/libgomp.dg/nested-2.c: New test.
19976 * testsuite/libgomp.fortran/do1.f90: New test.
19977 * testsuite/libgomp.fortran/do2.f90: New test.
19978
19979 * testsuite/libgomp.fortran/reference1.f90: New test.
19980
19981 2005-10-11 Jakub Jelinek <jakub@redhat.com>
19982
19983 * testsuite/libgomp.dg/reduction-1.c: New test.
19984 * testsuite/libgomp.dg/reduction-2.c: New test.
19985 * testsuite/libgomp.dg/reduction-3.c: New test.
19986
19987 2005-10-10 Jakub Jelinek <jakub@redhat.com>
19988
19989 * testsuite/libgomp.dg/atomic-1.c: New test.
19990 * testsuite/libgomp.dg/atomic-2.c: New test.
19991
19992 2005-10-09 Richard Henderson <rth@redhat.com>
19993
19994 * critical.c (atomic_lock): New.
19995 (initialize_critical): Initialize it.
19996 (GOMP_atomic_start, GOMP_atomic_end): New.
19997 * libgomp.map: Export them.
19998 * libgomp_g.h: Declare them.
19999
20000 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20001
20002 2005-10-02 Richard Henderson <rth@redhat.com>
20003
20004 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20005 to XCFLAGS instead of CFLAGS.
20006
20007 2005-09-30 Richard Henderson <rth@redhat.com>
20008
20009 * configure.ac: Determine whether -pthread or -lpthread is needed.
20010 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20011 * Makefile.in, configure: Rebuild.
20012
20013 2005-09-28 Richard Henderson <rth@redhat.com>
20014
20015 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20016 * testsuite/libgomp.dg/omp-single-3.c: New test.
20017
20018 2005-09-28 Diego Novillo <dnovillo@redhat.com>
20019
20020 * testsuite/libgomp.dg/omp-single-2.c: New test.
20021 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20022
20023 2005-09-27 Richard Henderson <rth@redhat.com>
20024
20025 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20026 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20027
20028 2005-09-27 Jakub Jelinek <jakub@redhat.com>
20029
20030 * testsuite/libgomp.dg/omp-loop03.c: New test.
20031
20032 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20033
20034 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20035
20036 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20037
20038 * testsuite/libgomp.dg/omp-single-1.c: New test.
20039 * testsuite/libgomp.dg/shared-1.c: Return 0.
20040 Add prototype for abort.
20041 * testsuite/libgomp.dg/shared-2.c: Likewise.
20042
20043 2005-09-26 Jakub Jelinek <jakub@redhat.com>
20044
20045 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20046 constructs.
20047
20048 2005-09-26 Diego Novillo <dnovillo@redhat.com>
20049
20050 * testsuite/libgomp.dg/shared-1.c: New test.
20051 * testsuite/libgomp.dg/shared-2.c: New test.
20052
20053 2005-09-24 Richard Henderson <rth@redhat.com>
20054
20055 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20056
20057 2005-09-24 Richard Henderson <rth@redhat.com>
20058
20059 * iter.c (gomp_iter_static_next): Round up when computing number
20060 of iterations. Don't bother distributing a remainder equally.
20061
20062 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20063 Don't call srand. Zero b before testing.
20064 (main): New.
20065
20066 2005-09-24 Jakub Jelinek <jakub@redhat.com>
20067
20068 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20069 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20070
20071 2005-09-23 Jakub Jelinek <jakub@redhat.com>
20072
20073 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20074 without !$omp end do, followed immediately by subroutine end.
20075
20076 2005-09-23 Diego Novillo <dnovillo@redhat.com>
20077
20078 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20079
20080 2005-09-22 Richard Henderson <rth@redhat.com>
20081
20082 * critical.c (GOMP_critical_name_start): Change argument to void**.
20083 Reuse the pointer space if the mutex fits.
20084 (GOMP_critical_name_end): Likewise.
20085 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20086 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20087 (GOMP_critical_name_end): Likewise.
20088 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20089 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20090
20091 2005-09-20 Richard Henderson <rth@redhat.com>
20092
20093 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20094 (create_lock_lock): New.
20095 (initialize_critical): Initialize it.
20096 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20097 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20098
20099 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20100
20101 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20102
20103 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20104
20105 * testsuite/libgomp.dg/omp-loop01.c: New test.
20106 * testsuite/libgomp.dg/omp-loop02.c: New test.
20107
20108 2005-09-20 Jakub Jelinek <jakub@redhat.com>
20109
20110 * configure.ac (AC_PROG_FC): Add.
20111 (USE_FORTRAN): New automake conditional.
20112 * configure: Rebuilt.
20113 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20114 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20115 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20116 Add rules to build them.
20117 * Makefile.in: Rebuilt.
20118 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20119 OMP_NEST_LOCK_KIND.
20120 * libgomp.map: Add Fortran wrappers.
20121 * libgomp_f.h.in: New file.
20122 * omp_lib.h.in: New file.
20123 * omp_lib.f90.in: New file.
20124 * fortran.c: New file.
20125 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20126 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20127 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20128 libgfortran has been built.
20129 * testsuite/libgomp.fortran/fortran.exp: New file.
20130 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20131 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20132 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20133 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20134 * testsuite/libgomp.fortran/omp_hello.f: New test.
20135 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20136 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20137 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20138 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20139 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20140 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20141 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20142 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20143
20144 2005-08-30 Richard Henderson <rth@redhat.com>
20145
20146 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20147 function for when aliases are not usable.
20148 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20149 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20150 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20151 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20152 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20153 GOMP_loop_ordered_guided_next): Likewise.
20154 * ordered.c (GOMP_ordered_start): Likewise.
20155
20156 2005-08-01 Diego Novillo <dnovillo@redhat.com>
20157
20158 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20159 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20160 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20161 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20162 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20163 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20164 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20165 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20166 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20167
20168 2005-07-07 Eric Christopher <echristo@redhat.com>
20169 Diego Novillo <dnovillo@redhat.com>
20170
20171 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20172 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20173 up code.
20174 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20175 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20176 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20177 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20178 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20179 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20180 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20181
20182 2005-06-13 Diego Novillo <dnovillo@redhat.com>
20183
20184 * TOPLEVEL.patch: Remove.
20185
20186 2005-05-16 Richard Henderson <rth@redhat.com>
20187
20188 * configure.ac: Test for clock_gettime.
20189 * config.h.in, configure: Rebuild.
20190 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20191 (omp_get_wtime): Use clock_gettime if available.
20192 (omp_get_wtick): Use clock_getres if available.
20193
20194 2005-05-11 Richard Henderson <rth@redhat.com>
20195
20196 * config/linux/ia64/futex.h: New file.
20197 * configure.tgt: Use it.
20198
20199 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20200
20201 2005-05-07 Richard Henderson <rth@redhat.com>
20202
20203 * config/linux/powerpc/futex.h: New file.
20204 * configure.tgt: Use it.
20205
20206 * config/linux/i486/futex.h: Merge ...
20207 * config/linux/x86_64/futex.h: ... into ...
20208 * config/linux/x86/futex.h: ... here.
20209 * configure.tgt: Update to match.
20210
20211 2005-05-06 Richard Henderson <rth@redhat.com>
20212
20213 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20214 * config/linux/i486/futex.h: Likewise.
20215 * config/linux/x86_64/futex.h: Likewise.
20216
20217 * config/linux/lock.c: New file.
20218 * config/linux/omp-lock.h: New file.
20219
20220 * critical.c, env.h: Don't include omp.h
20221 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20222 * config/posix/time.c: Likewise.
20223 * config/posix/omp-lock.h: New file.
20224 * libgomp.h: Include omp-lock.h and omp.h.
20225 * Makefile.am (nodist_include_HEADERS): New.
20226 (omp.h): New rule.
20227 * configure.ac (PERL): New.
20228 * mkomp_h.pl: New file.
20229 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20230 with templates.
20231 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20232
20233 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20234 build directory. Re-add -march=i486 hack.
20235
20236 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20237 (libgomp_link_flags): Remove.
20238 (libgomp_initialized): Remove.
20239 (libgomp_init): Don't protect from reinitialization. Copy code
20240 from libstdc++ for getting the multilib set correctly.
20241
20242 2005-05-05 Richard Henderson <rth@redhat.com>
20243
20244 * config/linux/alpha/futex.h: New file.
20245 * configure.tgt (alpha*-*-linux*): Use it.
20246
20247 * config/posix/mutex.c: New file.
20248 * config/posix/sem.c: Use libgomp.h.
20249
20250 * configure.tgt (x86_64-linux): Also test CC for -m32.
20251 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20252
20253 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20254 after $gccpath.
20255
20256 * Makefile.am (SUBDIRS): New.
20257 (libgomp_la_LDFLAGS): Add -lpthread.
20258 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20259 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20260
20261 * libgomp_g.h: New file.
20262 * libgomp.h: Split out all public declarations to libgomp_g.h.
20263 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20264 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20265 * config/linux/sem.h: Likewise.
20266 * config/posix/sem.h: Likewise.
20267
20268 * Makefile.am (AM_LDFLAGS): New.
20269 (libgomp_version_script): Split out from ...
20270 (libgomp_la_LDFLAGS): ... here.
20271 (libgomp_version_info): New.
20272 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20273 (LIBGOMP_ENABLE): New.
20274 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20275 (LIBGOMP_ENABLE_SYMVERS): New.
20276 * configure.ac (AC_INIT): Version 1.0.
20277 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20278 (enable-linux-futex): Likewise. Rename from enable-futex.
20279 (libtool_VERSION): New.
20280 (LIBGOMP_ENABLE_SYMVERS): Use it.
20281 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20282 * Makefile.in, aclocal.m4, configure: Rebuild.
20283
20284 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20285 (gomp_mutex_unlock_slow): Fix typo.
20286 * config/linux/sem.c: Similarly.
20287 (gomp_sem_post_slow): Fix typo.
20288 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20289 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20290 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20291
20292 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20293 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20294 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20295 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20296 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20297 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20298 LDFLAGS. Pull enable_futex check to top-level.
20299 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20300 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20301
20302 First attempt at real configury.
20303 * Makefile, config.h: Remove file.
20304 * Makefile.am, Makefile.in: New file.
20305 * acinclude.m4 aclocal.m4: New file.
20306 * configure.ac, configure.tgt, configure: New file.
20307
20308 * config/posix/lock.c: Rename from sys-lock.c.
20309 * config/posix/mutex.h: Rename from sys-mutex.h.
20310 * config/posix/sem.c: Rename from sys-sem.c.
20311 * config/posix/sem.h: Rename from sys-sem.h.
20312 * config/posix/proc.c: Rename from sys-proc.c.
20313 * config/posix/time.c: Rename from sys-proc.c.
20314
20315 * config/linux/mutex.c: New file.
20316 * config/linux/mutex.h: New file.
20317 * config/linux/sem.c: New file.
20318 * config/linux/sem.h: New file.
20319 * config/linux/i486/futex.h: New file.
20320 * config/linux/x86_64/futex.h: New file.
20321
20322 2005-05-04 Richard Henderson <rth@redhat.com>
20323
20324 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20325 * libgomp.h: Declare them.
20326 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20327 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20328
20329 2005-05-04 Richard Henderson <rth@redhat.com>
20330
20331 * libgomp-1 code drop
20332
20333 2005-05-04 Richard Henderson <rth@redhat.com>
20334
20335 * iter.c (gomp_iter_static_next): Return tri-state on 0.
20336 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20337 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20338 (gomp_iter_static_next): Update.
20339 (gomp_ordered_static_next): Update.
20340 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20341 (gomp_loop_ordered_static_start): Likewise. Exit early for a
20342 totally empty range.
20343 (gomp_loop_ordered_static_next): Refine test for calling
20344 gomp_ordered_static_next.
20345 * testsuite/ordered-1.c: Add case for more threads than iterations.
20346
20347 * iter.c (gomp_iter_runtime_next_locked): Remove.
20348 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20349 gomp_loop_guided_start, gomp_loop_ordered_static_start,
20350 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20351 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20352 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20353 gomp_loop_ordered_guided_next): Downcase name, make static, add
20354 an external alias with the old name.
20355 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20356 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20357 switch and call one of the above static functions.
20358 * libgomp.h: Update.
20359
20360 * work.c (gomp_work_share_start): Lock the mutex for !first too.
20361 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20362 GOMP_loop_guided_start, GOMP_loop_runtime_start,
20363 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20364 GOMP_loop_ordered_guided_start): Update to match.
20365 * sections.c (GOMP_sections_start): Likewise.
20366 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20367
20368 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20369 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20370 Use bounds check instead of modulus.
20371 (gomp_ordered_sync): Split out of GOMP_ordered_start.
20372 (gomp_ordered_last): Don't sync with ordered_owner here.
20373 (gomp_ordered_next): Likewise.
20374 (gomp_ordered_static_loop_next): Likewise.
20375 * loop.c, libgomp.h: Update to match.
20376
20377 * libgomp.h (GOMP_barrier): Declare.
20378
20379 * testsuite/barrier-1.c: New file.
20380 * testsuite/critical-1.c: New file.
20381 * testsuite/ordered-2.c: New file.
20382 * testsuite/ordered-1.c: New file.
20383 * testsuite/sections-1.c: New file.
20384 * testsuite/single-1.c: New file.
20385 * testsuite/Makefile (TESTS): Add them.
20386
20387 2005-05-04 Richard Henderson <rth@redhat.com>
20388
20389 * libgomp.h (struct gomp_work_share): Add ordered_owner.
20390 * loop.c (GOMP_loop_static_start): If not the startup thread,
20391 acquire the mutex to wait for initialization complete.
20392 (GOMP_loop_ordered_static_start): Likewise.
20393 (GOMP_loop_ordered_runtime_start): Likewise.
20394 (GOMP_loop_ordered_static_first): Remove.
20395 (GOMP_loop_ordered_dynamic_first): Remove.
20396 (GOMP_loop_ordered_guided_first): Remove.
20397 (GOMP_loop_ordered_runtime_first): Remove.
20398 * ordered.c (gomp_ordered_loop_first): Post to own release when
20399 we're the first thread.
20400 (gomp_ordered_loop_last): Wait on release if not owner.
20401 (gomp_ordered_loop_next): Likewise.
20402 (gomp_ordered_static_loop_init): New.
20403 (gomp_ordered_static_loop_next): Use ordered_owner.
20404 (GOMP_ordered_start): Likewise.
20405 * work.c (gomp_new_work_share): Initialize ordered_owner.
20406
20407 2005-05-03 Richard Henderson <rth@redhat.com>
20408
20409 * Makefile (OPT): New.
20410 (CFLAGS): Use it.
20411
20412 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20413 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20414 * libgomp.h, libgomp.map, NOTES: Update to match.
20415
20416 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20417 Add initialized and thr members.
20418 (gomp_thread_start): Pause when initially spawned to wait for
20419 the whole team to be created.
20420 (gomp_team_start): Release team members at the end.
20421
20422 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
20423 (f_foo_1): Use GOMP_loop_end.
20424 (f_foo_2): Use GOMP_loop_end_nowait.
20425
20426 * testsuite/loop-2.c: New file.
20427 * testsuite/Makefile (TESTS): Add it.
20428
20429 2005-05-03 Richard Henderson <rth@redhat.com>
20430
20431 * iter.c (gomp_iter_static_next): Fix overflow check typo.
20432 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20433 * team.c (new_team): Initialize oldest_live_gen to 1 if no
20434 initial work_share.
20435
20436 * testsuite/Makefile: New file.
20437 * testsuite/loop-1.c: New file.
20438
20439 2005-05-03 Richard Henderson <rth@redhat.com>
20440
20441 Initial implementation and checkin.
20442 \f
20443 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20444
20445 Copying and distribution of this file, with or without modification,
20446 are permitted in any medium without royalty provided the copyright
20447 notice and this notice are preserved.